
/* CSS RESET & VARIABLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --primary: #0071eb; /* GYG/Viator inspired action blue */
    --primary-hover: #005bb5;
    --dark: #121820;
    --gray-light: #f5f7fa;
    --gray-blue: #D1D1E1;
    --gray-border: #e0e6ed;
    --text-muted: #626e7a;
    --accent-gold: #ffb400;
    --accent-orange: #f7941d;
    --orange-light: #ffc949;
    --orange-border: #fde0bd;
	--radius: 8px;
    }

body {
    color: var(--dark);
    background-color: #fff;
    line-height: 1.5;
    font-size: 1.0625rem; /* 17px base for paragraphs; browser default is 16px */
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOP CONTACT BAR */
.top-bar {
    width: 100%;
    background: var(--dark);
    color: var(--accent-orange);
    padding: 0.95rem 5%;
    font-size: 0.95rem;
    text-align: center;
}

.top-bar a {
    font-weight: 700;
    text-decoration: underline;
}

.top-bar a:hover {
    color: #fff;
}

/* NAVIGATION */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}

.logo {
    display: block;
}

.logo img {
    display: block;
    height: 56px;
    width: auto;
}

:where(.site-header) nav a {
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.btn-contact {
    background-color: var(--gray-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* NAV DROPDOWN (opens on hover and keyboard focus) */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .caret {
    font-size: 0.75rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 1.5rem;
    min-width: 280px;
    padding-top: 0.75rem; /* invisible bridge so the menu stays open while moving the mouse down */
    list-style: none;
    z-index: 1001;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 var(--radius) var(--radius);
}

.dropdown-menu a {
    display: block;
    margin-left: 0;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-top: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.dropdown-menu li:first-child a {
    border-top: 1px solid var(--gray-border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--gray-light);
    color: var(--primary);
}

.nav-dropdown.open .dropdown-menu {
    display: block;
}

/* Hover/focus opening only on devices with a mouse; touch screens use nav.js */
@media (hover: hover) {
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: block;
    }
}

@media screen and (max-width:950px) {
    .site-header {flex-direction: column;}
    .logo {margin-bottom: 2rem;}

    :where(.site-header) nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.75rem 1.5rem; /* row gap, column gap */
    }

    /* gap now handles spacing, so drop the desktop left margins */
    :where(.site-header) nav a {margin-left: 0;}
    .dropdown-menu {left: 0;}
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(18, 24, 32, 0.55), rgba(18, 24, 32, 0.55)), 
    url('img/hero-home.jpg') center/cover no-repeat;
    color: #fff;
    padding: 5rem 5% 6rem;
    text-align: center;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* keeps the heading vertically centred in the taller hero */
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* "VIEW TOUR" BUTTON ON TOUR CARDS */
.btn-view {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-view:hover {
    background: var(--primary-hover);
}

/* CATEGORY PILLS */
.categories {
    /* Little padding below so the scrollbar sits just under the buttons; the margin keeps the old spacing */
    padding: 3rem 5% 0.6rem;
    margin-bottom: 2.4rem;
    display: flex;
    gap: 0.8rem;
    overflow-x: auto; /* the browser's own scrollbar shows when the buttons don't fit */
    white-space: nowrap;
}

.pill {
    background: var(--gray-light);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--gray-border);
    transition: all 0.2s;
}

.pill:hover, .pill.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

/* LAYOUT CONTAINERS */
.container {
    padding: 3rem 5% 5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--dark);
    margin-bottom: 2rem;
}

/* TOUR CARD GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Horizontal scrolling row of tour cards */
.tour-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1rem; /* room for card hover lift and shadow */
}

.tour-scroll .tour-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

/* Phones: narrower cards and a row that runs to the screen edge, so the next
   card peeks in on the right and it's clear the row can be swiped */
@media screen and (max-width: 700px) {
    /* .container has 5% side padding, which is 1/18 of its 90% content width,
       so these exact percentages reach the page edge without any overflow */
    .tour-scroll {
        margin: 0 calc(100% / -18);
        padding-left: calc(100% / 18);
        padding-right: calc(100% / 18);
        scroll-padding-left: 5%; /* snapped cards line up with the page text */
    }

    .tour-scroll .tour-card {
        flex-basis: min(78vw, 300px); /* smaller on the narrowest phones so the peek stays visible */
    }
}

.tour-card {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3; /* the tours app's photo shape, so the whole photo shows */
    object-fit: cover;
    background: var(--gray-light);
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Tour card: short "Lesotho + Sani Pass + ..." line under the duration. */
.meta:has(+ .card-line) {
    margin-bottom: 0.3rem;
}

.card-line {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating span {
    color: var(--text-muted);
    font-weight: 400;
}

.card-footer {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column; /* price on top, full-width button below */
    gap: 0.8rem;
}

.card-footer .btn-view {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 1rem;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap; /* keeps "R56,000.00" on one line */
}

/* INTRO SECTION (text left, image right) */
.intro-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 5%;
    max-width: 85%;
    margin: 0 auto 3rem;
    background: var(--gray-blue);
    border-radius: var(--radius);
}

.intro-text p {
    color: var(--dark);
    margin-bottom: 1rem;
}

.intro-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.intro-text a:hover {
    color: var(--primary-hover);
}

.intro-image img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Below 800px the intro stacks with the image above the text */
@media screen and (max-width:800px) {
    .intro-section {grid-template-columns: 1fr; gap: 2rem; max-width: none; padding: 2rem 5%; border-radius: 0; border-left: none; border-right: none;}
    .intro-image {order: -1;}
    .intro-image img {height: 280px;}
}

/* LATEST BLOG POSTS (3 across; scrolls horizontally below 800px) */
.blog-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    display: block;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-card-link {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Section title with a link on the right */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Upcoming events on the home page: the journal cards without a photo,
   title first with the dates under it */
.events-section {
    padding-top: 0;
}

.events-section .blog-card-title {
    margin-bottom: 0.4rem;
}

.events-section .blog-card-date {
    margin-bottom: 1rem;
}

@media screen and (max-width:800px) {
    .blog-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0.25rem 1rem; /* room for card hover lift and shadow */
    }

    .blog-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

/* PAGE HEADER BANNER (listing pages) */
.page-header {
    background: var(--gray-light);
    padding: 3rem 5%;
    border-bottom: 1px solid var(--gray-border);
}

.page-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 750px;
}

/* CATEGORY INTRO (guest + SEO description on category pages) */
.category-intro {
    max-width: 850px;
    margin-bottom: 4rem;
}

.category-intro h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-intro p {
    color: var(--dark);
    margin-bottom: 1rem;
}

.category-intro a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Longer write-up below the tour cards on category pages */
.category-content {
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
}

.category-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
}

.category-contact .contact-details {
    margin-bottom: 2rem;
}

/* All tours page: one block of tour cards per category */
.tour-category {
    /* 5.5556% = the container's 5% side padding as a share of its 90% content width,
       so the bands run edge to edge while the content stays aligned */
    margin: 0 -5.5556%;
    padding: 4rem 5.5556%;
    scroll-margin-top: 88px; /* stops the sticky header covering the section after a quick link jump */
}

/* Light gray behind every other category (the intro section is the first section in main) */
.tour-category:nth-of-type(even) {
    background: var(--gray-light);
}

.tour-category .tour-card {
    background: #fff; /* keeps cards white on the gray bands */
}

.tour-category:last-child {
    padding-bottom: 0;
}

.tour-category .section-header {
    margin-bottom: 0.5rem; /* keeps the wrapped "View all" link off the text on phones */
}

.tour-category .section-subtitle {
    margin-bottom: 1.5rem;
}

@media screen and (max-width:950px) {
    .tour-category {scroll-margin-top: 200px;} /* header stacks and gets taller */
}

/* Quick links to each category (under the intro text) */
.intro-video-text .quick-links h2 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.6rem;
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.4rem;
}

/* Second group of tour cards on the same page */
.card-grid-3 + .section-title {
    margin-top: 3.5rem;
}

/* LISTING CARDS: three per row, then two, then one on phones */
.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 320px)); /* cards stop growing at 320px on desktop */
    gap: 2rem;
}

.section-title + .card-grid-3 {
    margin-top: 1.5rem;
}

@media screen and (max-width:950px) {
    .card-grid-3 {grid-template-columns: repeat(2, 1fr);}
}

@media screen and (max-width:600px) {
    .card-grid-3 {grid-template-columns: 1fr;}
}

/* PACKAGES PAGE: one bordered panel per package, side by side, tours listed day by day */
.package-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0 3rem;
}

.package {
    flex: 1 1 340px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    border: 1px solid #c9d3df; /* a step darker than --gray-border so the panel reads clearly */
    border-radius: var(--radius);
    padding: 1.5rem;
}

.package-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.package-days {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.package-days a {
    color: var(--primary);
}

.package-day {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.package-duration {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.package-footer {
    margin-top: auto; /* keeps prices and buttons level across panels */
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--gray-border);
    padding-top: 1rem;
}

.package-save {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a7f37;
}

@media screen and (max-width:600px) {
    .package {padding: 1.2rem;}
}

/* BOOKING / ENQUIRY FORMS (tour and packages pages) */
html {
    scroll-behavior: smooth;
}

.booking-section {
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 2rem;
    scroll-margin-top: 90px; /* keeps the sticky header from covering the heading */
}

.booking-form-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form-wrap h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.booking-intro {
    color: var(--dark);
    margin-bottom: 2rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}

.form-control:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

textarea.form-control {
    resize: vertical;
}

.booking-form .btn-book {
    align-self: flex-start;
}

.btn-book {
    display: inline-block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-book:hover {
    background: var(--primary-hover);
}

@media screen and (max-width:700px) {
    .form-row {grid-template-columns: 1fr;}
}

/* BLOG LAYOUT: main column + sidebar (blog post and journal) */
.blog-container {
    padding: 2.5rem 5%;
    max-width: 1280px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* SIDEBAR STYLING */
.sidebar-widget {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: #fff;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.5rem;
}

.author-box {
    text-align: center;
}

.author-img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    margin: 0 auto 0.8rem;
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
}

.author-bio {
    font-size: 0.85rem;
    color: var(--dark);
    margin-top: 0.5rem;
}

/* RELATED POSTS LIST */
.related-list {
    list-style: none;
}

.related-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item a {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    display: block;
}

.related-item a:hover {
    color: var(--primary);
}

.related-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* CONTACT DETAILS (contact page sidebar) */
.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    overflow-wrap: anywhere; /* long email address wraps instead of overflowing */
}

.contact-details li:last-child {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-details a {
    color: var(--primary);
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* JOURNAL LISTING: full-width horizontal post cards */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journal-card {
    display: block;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.journal-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.journal-card a {
    display: flex;
}

.journal-card-img {
    flex: 0 0 220px;
    width: 220px;
    min-height: 170px;
    object-fit: cover;
}

.journal-card-body {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.journal-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.journal-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0.6rem;
}

.journal-card-excerpt {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.journal-card:hover .journal-card-title {
    color: var(--primary);
}

/* PAGINATION (journal and other listings) */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.page-link {
    min-width: 2.6rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

a.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-link.is-current:hover {
    color: #fff;
}

.page-link.is-disabled {
    color: var(--text-muted);
    opacity: 0.6;
    cursor: default;
}

/* Small screens: image on top of the text */
@media screen and (max-width:600px) {
    .journal-card a {flex-direction: column;}
    .journal-card-img {width: 100%; flex-basis: auto; height: 180px;}
}

/* TRANSFERS PAGE CONTENT */
.transfer-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.8rem;
}

.transfer-content ul {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.transfer-content li {
    margin-bottom: 0.6rem;
}

/* SIDEBAR TABLE (e.g. popular transfers) */
.transfer-table {
    width: 100%;
    max-width: 560px;
    border-collapse: separate; /* lets the rounded border show */
    border-spacing: 0;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.transfer-table th,
.transfer-table td {
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--gray-border);
}

.transfer-table th {
    background: var(--gray-light);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.transfer-table tbody tr:last-child td {
    border-bottom: none;
}

.transfer-table td:last-child,
.transfer-table th:last-child {
    text-align: right;
    white-space: nowrap;
}

.transfer-table td:last-child {
    font-weight: 700;
}

/* SHORE EXCURSIONS: two image panels linking to each port */
.port-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.port-panel {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 380px;
    padding: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* dark gradient at the bottom keeps the white title readable on any photo */
.port-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 24, 32, 0.8), rgba(18, 24, 32, 0.1) 60%);
}

.port-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* The panel photo fills the panel behind the gradient and the text */
.port-panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.port-panel::before {
    z-index: 1;
}

.port-panel-text {
    position: relative;
    z-index: 2;
}

.port-panel-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.port-panel-tagline {
    display: block;
    margin-top: 0.4rem;
    font-size: 1rem;
    opacity: 0.9;
}

.port-panel-title::after {
    content: " →";
}

.shore-why {
    margin-top: 4.5rem;
}

/* Green tick bullet list in category pages */
.category-content ul {
    list-style: none;
}

.category-content li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
}

.category-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: bold;
}

/* FAQ: click a question to open its answer */
.faq {
    max-width: 850px;
    margin-top: 4.5rem;
}

.faq h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-item {
    border-bottom: 1px solid var(--gray-border);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--gray-border);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 1rem 0;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 0 0 1rem;
}

@media screen and (max-width:700px) {
    .port-panels {grid-template-columns: 1fr;}
    .port-panel {min-height: 260px;}
}

/* INTRO WITH VIDEO (port pages): text left, click-to-load video right */
.intro-with-video {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.intro-video-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.intro-video-text p {
    color: var(--dark);
    margin-bottom: 1rem;
}

.intro-video-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.video-facade {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark) center / cover no-repeat;
}

.video-play {
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    background: rgba(18, 24, 32, 0.75);
    color: #fff;
    font-size: 1.6rem;
    padding-left: 0.3rem; /* optically centres the triangle */
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.video-play:hover,
.video-play:focus-visible {
    background: var(--primary);
    transform: scale(1.08);
}

.video-placeholder-text {
    display: none;
    color: #fff;
    font-weight: 600;
    opacity: 0.8;
}

.video-facade.is-empty .video-play {
    display: none;
}

.video-facade.is-empty .video-placeholder-text {
    display: block;
}

.video-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media screen and (max-width:800px) {
    .intro-with-video {grid-template-columns: 1fr; gap: 2rem;}
}

/* TRUST SIGNALS */
.trust-section {
    background: var(--gray-light);
    padding: 4rem 5%;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--dark);
}

/* FOOTER */
footer {
    background: var(--dark);
    color: #fff;
    padding: 3rem 5% 2rem;
}

/* Row of links across the top of the footer, centred */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    font-weight: 600;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-col li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-about {
    display: flow-root; /* contains the floated photo */
}

.footer-about img {
    float: left;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0.2rem 1rem 0.5rem 0;
}

.footer-about p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

/* Footer columns stack on small screens */
@media screen and (max-width:700px) {
    .footer-grid {grid-template-columns: 1fr;}
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
.hero h1 { font-size: 2rem; }
/* Phones get a portrait crop of the hero photo (750 x 900, static/img/hero-home-phone.jpg).
   When you change the hero photo, change this one too. */
.hero {
    background-image: linear-gradient(rgba(18, 24, 32, 0.55), rgba(18, 24, 32, 0.55)),
    url('img/hero-home-phone.jpg');
}
}

/* ===== TOUR PAGE (moved from single-tour.html) ===== */
/* BREADCRUMB */
/* Tour page breadcrumb strip (category pages style theirs under .page-header) */
body > .breadcrumb {
  padding: 1rem 5%;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-light);
}

body > .breadcrumb a:hover {
  text-decoration: underline;
}

/* PAGE LAYOUT CONTAINER */
.product-container {
  padding: 2rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

/* TOUR TITLE & HEADER META */
.tour-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.tour-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tour-meta .rating {
  font-size: inherit;
  margin-bottom: 0;
}

/* TOUR PAGE HERO PHOTOS: main photo 4:3 (the tours app's photo shape, so it
   shows whole and centred); the two small photos stack beside it, together
   exactly as tall as the main one. */
.gallery {
  display: flex;
  gap: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.gallery img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.gallery-main {
  flex: 0 0 calc((100% - 0.5rem) * 2 / 3);
}

.gallery-main picture {
  display: block;
}

.gallery-main img {
  aspect-ratio: 4 / 3;
}

.gallery-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-side img {
  flex: 1 1 0;
  min-height: 0;
}

/* TWO COLUMN LAYOUT (MAIN CONTENT vs BOOKING SIDEBAR) */
.tour-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* HIGHLIGHTS / QUICK INFO BAR */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.fact-item h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.fact-item p {
  font-weight: 700;
  font-size: 0.95rem;
}

/* SECTION STYLING */
.content-section {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 3rem;
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.highlights-list {
  list-style-type: disc;
  padding-left: 1.2rem;
  line-height: 1.8;
}

/* SIDEBAR PHOTO GALLERY (one image per row) */
.sidebar-gallery h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ITINERARY ACCORDION / TIMELINE */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gray-border);
}

.timeline-step {
  position: relative;
  margin-bottom: 1.8rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -1.95rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-step p {
  color: var(--dark);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

/* INCLUSIONS / EXCLUSIONS */
.inc-exc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.inc-list, .exc-list {
  list-style: none;
}

.inc-list li::before {
  content: "✓ ";
  color: #2e7d32;
  font-weight: bold;
}

.exc-list li::before {
  content: "✕ ";
  color: #c62828;
  font-weight: bold;
}

.inc-list li, .exc-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* PRICING CARD */
.booking-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background: var(--gray-light);
}

.booking-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.booking-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.currency-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.currency-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
}

.booking-notes {
  list-style: none;
  border-top: 1px solid var(--gray-border);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.booking-notes li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.booking-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: bold;
}

/* Space above the trust section on tour pages */
.product-container + .trust-section {
  margin-top: 4rem;
}


/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; }
  .gallery-main { flex-basis: 100%; }
  .gallery-side { display: none; }
  .inc-exc-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
  

/* TOUR PAGE: extras for content from the tours API */
.content-section p + p,
.timeline-step p + p {
    margin-top: 1rem;
}

/* Headings written inside the tour text (### in the Markdown) */
.content-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}

.itinerary-day {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}

.itinerary-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.review {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.review .review-author {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== JOURNAL POST PAGE (moved from blog-post.html) ===== */
/* Slightly looser lines for reading */
.main-article {
  line-height: 1.6;
}

/* ARTICLE HEADER */
.article-header {
  margin-bottom: 2rem;
}

.category-badge {
  display: inline-block;
  background: var(--gray-light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 1.5rem;
}

/* FEATURED HERO IMAGE */
.featured-image {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* ARTICLE CONTENT TYPOGRAPHY */
.article-content p {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--gray-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--dark);
}

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* IN-ARTICLE IMAGES AND VIDEOS */
.article-figure {
  margin: 2rem 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
}

/* IN-ARTICLE FEATURED TOUR CTA CARD */
.embedded-tour-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--gray-light);
  margin: 2.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.tour-card-thumb {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.tour-card-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.tour-card-details p {
  font-size: 0.85rem !important;
  color: var(--dark);
  margin-bottom: 0.8rem !important;
}

.btn-inline-book {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Space above the trust section on post and journal pages */
.blog-container + .trust-section {
  margin-top: 4rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .featured-image { height: 260px; }
  .embedded-tour-card { flex-direction: column; text-align: center; }
  .tour-card-thumb { width: 100%; height: 160px; }
}
  

/* Markdown wraps quote text in <p>; drop its bottom gap inside the box */
.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* ===== ADMIN (/admin/) ===== */
.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5%;
    background: var(--dark);
    color: #fff;
}

.admin-brand {
    font-weight: 700;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.admin-nav a:hover,
.admin-link-button:hover {
    text-decoration: underline;
}

.admin-link-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.admin-main {
    padding: 2rem 5% 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.admin-main h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.admin-narrow {
    max-width: 420px;
    margin: 2rem auto;
}

.admin-message,
.admin-problem {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.admin-message {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.admin-problem {
    background: #fdecea;
    border: 1px solid #f5c2bd;
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-section-header h1 {
    margin-bottom: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--gray-border);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-table td a {
    color: var(--primary);
}

/* ADMIN STATS: tables side by side where there's room */
.stats-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2rem;
}

.stats-columns > .stats-table {
    flex: 1 1 260px;
}

.stats-number {
    text-align: right !important;
    white-space: nowrap;
}

.stats-bar {
    width: 40%;
}

.stats-bar meter {
    width: 100%;
}

.stats-totals {
    font-size: 1.2rem;
}

.admin-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.admin-form {
    flex: 1 1 600px;
    min-width: 0;
}

.admin-body {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.admin-help,
.admin-help-box {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-help {
    margin-top: 0.3rem;
}

.admin-help-box {
    flex: 0 1 300px;
    background: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1.2rem;
}

.admin-help-box h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.admin-help-box h3 {
    font-size: 0.95rem;
    color: var(--dark);
    margin: 1rem 0 0.3rem;
}

.admin-help-box p,
.admin-help-box li {
    margin-bottom: 0.4rem;
}

.admin-help-box ul {
    list-style: none;
}

.admin-help-box a {
    color: var(--primary);
}

.admin-fieldset {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.admin-fieldset legend {
    font-weight: 700;
    padding: 0 0.4rem;
}

.admin-thumb {
    display: block;
    max-width: 240px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
    font-weight: 600;
}

.admin-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.admin-photos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.admin-photos li {
    flex: 0 1 280px;
}

.admin-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.admin-photos .form-control {
    font-size: 0.75rem;
}

.admin-photo-name {
    font-size: 0.8rem;
    margin: 0 0 0.4rem;
    overflow-wrap: anywhere;
}

.admin-upload .form-control {
    flex: 1 1 15rem;
    width: auto;
}

.admin-fieldset input[type="file"] {
    display: block;
    margin: 0.3rem 0 1rem;
}

button.btn-view {
    border: none;
    cursor: pointer;
}

/* ===== FORMS: spam trap and problems ===== */
/* Hidden from people (off screen), but bots that fill in every field still see it */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-problem {
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    background: #fdecea;
    border: 1px solid #f5c2bd;
    margin-bottom: 1rem;
}

.admin-message-card {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.admin-message-card h2 {
    font-size: 1.1rem;
    margin: 0.2rem 0 0.5rem;
}

.admin-message-card a {
    color: var(--primary);
}

.admin-message-text {
    white-space: pre-wrap;
    margin-top: 0.5rem;
}

/* Links inside subtitles (empty-state and thank-you messages) */
.section-subtitle a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===== ABOUT PAGE (moved from the mockup's page.html) ===== */
.main-body {
    line-height: 1.6;
}

.main-body p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.main-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-border);
}

.main-body h2:first-child {
    margin-top: 0;
}

.main-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.8rem;
}

/* Value cards: [[cards]] on a page */
.value-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-card {
    flex: 1 1 220px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: #fff;
}

.value-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.main-body .value-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* About sidebar: contact form card and contact details card */
.sidebar-card {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.5rem;
}

.sidebar-card-intro {
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.sidebar-card .form-group {
    margin-bottom: 1rem;
}

.sidebar-card textarea.form-control {
    min-height: 100px;
}

.contact-info-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.contact-info-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap; /* long email address drops to its own line */
    align-items: center;
    gap: 0.3rem 0.5rem;
}

.btn-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

.main-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===== JOURNAL: galleries and the contact form in posts ===== */
/* Photos on consecutive lines in a post's Markdown */
.post-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-figure {
    flex: 1 1 220px;
    margin: 0;
}

.gallery-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.4rem;
}

.post-contact {
    margin: 2.5rem 0;
}

/* Links in journal posts and events (the site's base style hides links) */
.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* SMALL IMAGE BESIDE THE TEXT: ![alt](/path.jpg){.img-right} (or .img-left) at the start of a paragraph */
.img-right, .img-left {
    width: 180px;
    max-width: 40%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}
.img-right {float: right; margin-left: 1.2rem;}
.img-left {float: left; margin-right: 1.2rem;}
