/* --- GLOBAL SETUP & VARIABLES --- */
:root {
    --dark-bg: #08090A;
    --mid-grey: #A7A2A9;
    --light-text: #F4F7F5;
    --accent-color: #8a818e; /* A slightly darker shade for accents */


    --container-width: 1140px;
    --transition-speed: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--mid-grey);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- MODIFIED: Prevent body scroll when nav is open --- */
body.nav-open {
    overflow: hidden;
}

/* --- TYPOGRAPHY & REUSABLE COMPONENTS --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--light-text);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 4rem; text-transform: uppercase; letter-spacing: 2px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { color: var(--light-text); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--accent-color); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

section {
    padding: 6rem 0;
}

.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    cursor: pointer;
}
.btn-primary { background-color: var(--light-text); color: var(--dark-bg); }
.btn-primary:hover { background-color: transparent; border-color: var(--light-text); color: var(--light-text); }
.btn-secondary { background-color: transparent; border-color: var(--light-text); color: var(--light-text); }
.btn-secondary:hover { background-color: var(--light-text); color: var(--dark-bg); }


/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color var(--transition-speed);
    background: rgba(8, 9, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    z-index: 1001; /* --- ADDED: ensure logo is above mobile nav bg */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* --- ADDED: Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hamburger-icon {
    position: relative;
    width: 30px;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.2s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-text);
    transition: all 0.2s ease-in-out;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

/* Mobile Nav Open State (X icon) */
body.nav-open .hamburger-icon {
    background-color: transparent;
}

body.nav-open .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}


/* --- SECTION 1: HERO --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--light-text);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/photo-bg.webp') no-repeat center center/cover;  
    filter: brightness(0.4);
    z-index: -1;
}

.hero-section .container {
    max-width: 800px;
}
.hero-section h1 {
    margin-bottom: 1.5rem;
}
.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* --- SECTION 2: INTRODUCTION --- */
.intro-section {
    background-color: #101112;
}
.intro-image img {
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- SECTION 3: FEATURED TOURS --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.tour-card {
    background-color: #101112;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.tour-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
}
.card-content {
    padding: 1.5rem;
}
.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- SECTION 4: PHILOSOPHY --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.philosophy-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    filter: saturate(0) brightness(0.8);
    transition: filter var(--transition-speed);
}
.philosophy-item:hover img {
    filter: saturate(1) brightness(1);
}
.philosophy-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* --- SECTION 5: TESTIMONIAL --- */
.testimonial-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    color: var(--light-text);
}
.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    filter: brightness(0.3);
    z-index: -1;
}
blockquote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.5;
}
cite {
    display: block;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
}

/* --- SECTION 6: PREPARATION --- */
.prep-section {
    background-color: #101112;
}
.prep-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.prep-content .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* --- SECTION 7: CTA --- */
.cta-section {
    text-align: center;
}
.cta-section .container {
    max-width: 700px;
}
.newsletter-form {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--mid-grey);
    background: transparent;
    color: var(--light-text);
    border-radius: 50px;
    font-family: var(--font-primary);
}
.newsletter-form input::placeholder {
    color: var(--mid-grey);
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--light-text);
}

/* --- COMPANY PAGE STYLES --- */

/* Section 1: Company Hero */
.company-hero-bg {
    background-image: url('images/company-bg.webp');  
    filter: brightness(0.35);
}

/* Section 2: Mission */
.mission-section {
    background-color: #101112;
}

/* Section 3: Founders */
/* --- FOUNDERS SECTION (REDESIGNED) --- */

.founders-section {
    background-color: #101112; /* Slightly lighter than pure black */
    padding: 6rem 0;
    overflow: hidden; /* Important for containing skewed pseudo-elements */
}

.founder-profile {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Asymmetrical grid */
    align-items: center;
    gap: 2rem;
    position: relative;
    padding: 3rem 0;
    margin-bottom: 4rem;
}

/* Angled background shape for visual interest */
.founder-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background-color: var(--dark-bg);
    transform: skewY(-3deg); /* The core of the unique geometry */
    z-index: 0;
    border-radius: 12px;
}

/* Reverse layout for the second founder */
.founder-profile--reverse {
    grid-template-columns: 1.5fr 1fr; /* Flip the grid proportions */
}

.founder-profile--reverse::before {
    transform: skewY(3deg); /* Reverse the angle */
}

/* All content must be on a higher z-index to appear above the background shape */
.founder-image-wrapper, .founder-bio {
    position: relative;
    z-index: 1;
}

.founder-image-wrapper {
    justify-self: center; /* Center the image wrapper in its grid cell */
}

.founder-profile--reverse .founder-image-wrapper {
    grid-column: 2 / 3; /* Ensure image is in the second column */
    grid-row: 1 / 2;
}
.founder-profile--reverse .founder-bio {
    grid-column: 1 / 2; /* Ensure bio is in the first column */
    grid-row: 1 / 2;
    text-align: right;
}

.founder-image-wrapper img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed);
}

.founder-image-wrapper img:hover {
    transform: scale(1.05);
}

.founder-bio {
    padding: 2rem;
}

.founder-bio h3 {
    color: var(--light-text);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.founder-bio h4 {
    color: var(--mid-grey);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.founder-bio p {
    color: var(--mid-grey);
    line-height: 1.8;
}

/* Responsive adjustments for the new design */
@media (max-width: 992px) {
    .founder-profile,
    .founder-profile--reverse {
        grid-template-columns: 1fr; /* Stack into a single column */
        text-align: center;
        gap: 0;
    }
    
    .founder-profile::before {
        transform: skewY(0); /* Straighten the background on mobile */
    }

    .founder-profile--reverse .founder-bio,
    .founder-profile--reverse .founder-image-wrapper {
        grid-column: auto; /* Reset grid placement */
        grid-row: auto;
        text-align: center;
    }
    
    .founder-image-wrapper {
        margin-bottom: -40px; /* Pull the text up to overlap the image slightly */
    }
    
    .founder-bio {
        background: var(--dark-bg); /* Add bg to bio to ensure text is readable over the image */
        padding-top: 60px; /* Add padding to account for the overlapping image */
        border-radius: 8px;
    }
}
/* Section 4: Core Values */
.values-section {
    background-color: #101112;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.value-card {
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}
.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.value-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.value-card h4 {
    margin-bottom: 0.5rem;
}

/* Section 5: Timeline */
/* --- TIMELINE SECTION (REDESIGNED HORIZONTAL) --- */

.timeline-section {
    background-color: var(--dark-bg);
}

.timeline-horizontal-wrapper {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 2rem auto;
}

/* The central horizontal line */
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: translateY(-50%);
    z-index: 0;
}

/* Flex container for the milestones */
.timeline-milestones {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Individual anchor point on the timeline */
.timeline-milestone {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

/* The dot on the timeline */
.timeline-h-dot {
    width: 20px;
    height: 20px;
    background-color: var(--dark-bg);
    border: 4px solid var(--accent-color);
    border-radius: 50%;
}

/* The content box for each milestone */
.timeline-h-content {
    position: absolute;
    width: 220px; /* Fixed width for content cards */
    background-color: #101112;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.timeline-h-content:hover {
    transform: scale(1.05);
}

/* Connector line from dot to content box */
.timeline-h-content::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
}

/* Position odd items ABOVE the line */
.timeline-milestone:nth-child(odd) .timeline-h-content {
    bottom: 40px; /* 20px gap + 20px dot height */
}
.timeline-milestone:nth-child(odd) .timeline-h-content::before {
    top: 100%;
}

/* Position even items BELOW the line */
.timeline-milestone:nth-child(even) .timeline-h-content {
    top: 40px;
}
.timeline-milestone:nth-child(even) .timeline-h-content::before {
    bottom: 100%;
}

.timeline-h-content h3 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}
.timeline-h-content h4 {
    font-size: 1rem;
    color: var(--mid-grey);
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.timeline-h-content p {
    font-size: 0.9rem;
    color: var(--mid-grey);
    margin: 0;
}


/* --- RESPONSIVE DESIGN for Horizontal Timeline --- */
@media (max-width: 992px) {
    /* Switch to a more traditional vertical layout on smaller screens */
    .timeline-horizontal-wrapper {
        padding: 0;
    }
    .timeline-line {
        left: 10px; /* Move line to the left */
        top: 350px;
        width: 3px;
        height: 100%;
    }
    .timeline-milestones {
        flex-direction: column; /* Stack the milestones vertically */
        padding-left: 50px; /* Create space for content */
    }
    .timeline-milestone {
        justify-content: flex-start; /* Align dots to the line */
        margin-bottom: 3rem;
        flex: none; /* Reset flex property */
    }
    .timeline-h-dot {
        position: absolute;
        left: -40px; /* Position dot on the line */
        top: 5px; /* Align vertically with heading */
    }
    .timeline-h-content {
        position: static; /* Remove absolute positioning */
        width: 100%;
        text-align: left;
    }
    .timeline-h-content::before {
        display: none; /* Hide the connector line */
    }
    /* Reset alternating positions */
    .timeline-milestone:nth-child(odd) .timeline-h-content,
    .timeline-milestone:nth-child(even) .timeline-h-content {
        top: auto;
        bottom: auto;
    }
}
/* Section 6: Sustainability */
.sustainability-section {
    background-color: #101112;
}

/* Section 7: Careers CTA */
.careers-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: #101112;
    padding: 4rem;
    border-radius: 12px;
}
.careers-content {
    flex: 1;
}
.careers-image-wrapper {
    flex: 1;
    max-width: 400px;
}

/* --- RESPONSIVE ADJUSTMENTS FOR COMPANY PAGE --- */
@media (max-width: 992px) {
    .founders-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .careers-section .container {
        flex-direction: column;
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .founders-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Timeline Mobile Styles */
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 50px;
        padding-right: 1rem;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }
    .timeline-item::after {
        left: 10px;
    }
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 10px; /* Aligns all dots to the left */
    }
}

/* --- TOURS PAGE STYLES --- */

/* Section 1: Tours Hero */
.tours-hero-bg {
    filter: brightness(0.4);
}

/* Section 2: Tour Filters */
.tours-intro-section {
    background-color: #101112;
    padding-bottom: 0;
}
.tour-intro-text {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}
.tour-filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-filter {
    background: transparent;
    color: var(--mid-grey);
    border: 1px solid #333;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed);
}
.btn-filter:hover, .btn-filter.active {
    background-color: var(--light-text);
    color: var(--dark-bg);
    border-color: var(--light-text);
}

/* Section 3: Tour Grid */
.tour-grid-section {
    padding-top: 4rem;
}
.tour-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.tour-listing-card {
    background-color: #101112;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tour-listing-card img {
    height: 280px;
    object-fit: cover;
    border-radius: 0;
}
.tour-listing-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tour-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--mid-grey);
    margin-bottom: 0.75rem;
}
.tour-meta span {
    background: #222;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.card-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Section 4: Difficulty Guide */
/* --- DIFFICULTY GUIDE SECTION (REDESIGNED) --- */

.difficulty-guide-section {
    background-color: #101112;
}

.level-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: flex-start; /* Key for the staggered effect */
}

.level-card {
    position: relative;
    background-color: var(--dark-bg);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #222;
    overflow: hidden; /* To contain the absolute-positioned number */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.level-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

/* The staggered "ascent" effect */
.level-card--challenging {
    margin-top: 2rem;
}
.level-card--strenuous {
    margin-top: 4rem;
}

/* Giant background number for style */
.level-number {
    position: absolute;
    top: -10px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 900;
    color: #1a1b1c; /* Slightly visible dark grey */
    z-index: 0;
    line-height: 1;
}

/* Header containing icon and title */
.level-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative; /* To appear above the number */
    z-index: 1;
}

.level-icon {
    flex-shrink: 0;
    color: var(--accent-color);
}
.level-icon svg {
    width: 32px;
    height: 32px;
}

.level-header h4 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin: 0;
}

.level-description {
    position: relative; /* To appear above the number */
    z-index: 1;
    color: var(--mid-grey);
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .level-guide-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 2rem;
    }
    
    /* Remove the stagger on mobile to prevent weird spacing */
    .level-card--challenging,
    .level-card--strenuous {
        margin-top: 0;
    }

    .level-number {
        font-size: 5rem;
    }
}

/* Section 5: Custom Tours */
/* --- CUSTOM TOUR SECTION (REDESIGNED IMMERSIVE) --- */

.custom-tour-immersive {
    position: relative;
    padding: 8rem 0;
    background-image: url('images/custom.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a nice parallax effect on scroll */
    z-index: 0;
}

/* Dark overlay for text readability */
.custom-tour-immersive::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(8, 9, 10, 0.6);
    z-index: -1;
}

/* The "Glass" Content Card */
.custom-tour-box {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    
    /* Glass Morphism Effect */
    background: rgba(8, 9, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border: 1px solid rgba(167, 162, 169, 0.2);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Decorative Icon */
.custom-tour-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.2;
    color: var(--mid-grey);
}
.custom-tour-icon svg {
    width: 40px;
    height: 40px;
}

/* Styled Heading with an underline */
.custom-tour-box h2 {
    position: relative;
    font-size: 2.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.custom-tour-box h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.custom-tour-box p {
    color: var(--mid-grey);
    font-size: 1.1rem;
    line-height: 1.8;
}

.custom-tour-box .btn {
    margin-top: 1.5rem;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-tour-immersive {
        padding: 6rem 0;
        background-attachment: scroll; /* Parallax can be jittery on mobile */
    }
    .custom-tour-box {
        padding: 2.5rem 1.5rem;
    }
    .custom-tour-box h2 {
        font-size: 2rem;
    }
}

/* Section 6: Included Items */
/* --- MODAL SLIDER STYLES --- */

/* Enhancements for the trigger grid */

.included-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.included-item {
    cursor: pointer;
}
.included-item::after {
    content: 'View Details';
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 10, 0.7);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.included-item:hover::after {
    opacity: 1;
}

/* Modal container and overlay */
.included-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.included-modal.is-active {
    opacity: 1;
    visibility: visible;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 10, 0.9);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Modal content box */
.modal-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    background: var(--dark-bg);
    border: 1px solid #222;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.included-modal.is-active .modal-content {
    transform: scale(1);
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: transparent;
    border: none;
    color: var(--mid-grey);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close-btn:hover {
    color: var(--light-text);
}

/* Slider inside the modal */
.modal-slider-window {
    overflow: hidden;
}
.modal-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.modal-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 3rem;
    box-sizing: border-box;
}
.modal-slide-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.modal-slide-title {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}
.modal-slide-description {
    color: var(--mid-grey);
    line-height: 1.8;
}

/* Prev/Next Navigation Buttons */
.modal-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-slider-btn:hover {
    background: rgba(255,255,255,0.2);
}
.modal-slider-btn--prev { left: -60px; }
.modal-slider-btn--next { right: -60px; }
.modal-slider-btn.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Counter */
.modal-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--mid-grey);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .modal-slider-btn--prev { left: 10px; }
    .modal-slider-btn--next { right: 10px; }
    .modal-slide { padding: 4rem 2rem 2rem 2rem; }
    .modal-slide-img { height: 200px; }
}

/* Section 7: FAQ */
.faq-section {
    padding-bottom: 8rem; /* Extra padding at the bottom */
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #222;
}
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--light-text);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-align: left;
    padding: 1.5rem 0;
    cursor: pointer;
    position: relative;
    padding-right: 2rem; /* Space for icon */
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--mid-grey);
    transition: transform var(--transition-speed);
}
.faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    /* JS would toggle max-height for a smooth animation */
    max-height: 0;
    overflow: hidden;
    padding-right: 2rem;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding-bottom: 1.5rem;
}

/* --- RESPONSIVE ADJUSTMENTS FOR TOURS PAGE --- */
@media (max-width: 992px) {
    .tour-listing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .difficulty-grid {
        grid-template-columns: 1fr;
    }
    .included-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* --- SCHEDULE PAGE STYLES --- */

/* Section 1: Schedule Hero */
.schedule-hero-bg {
    filter: brightness(0.4);
}

/* Section 2: Schedule Table */
.schedule-table-section {
    background-color: #101112;
}
.table-wrapper {
    overflow-x: auto; /* Makes table responsive on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Prevents table from crushing on small screens */
}
th, td {
    padding: 1.25rem 1rem;
    text-align: left;
    border-bottom: 1px solid #222;
}
thead th {
    font-family: var(--font-heading);
    color: var(--light-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
td {
    vertical-align: middle;
}
.status {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}
.status.available { background-color: rgba(56, 161, 105, 0.2); color: #38a169; }
.status.limited { background-color: rgba(221, 107, 32, 0.2); color: #dd6b20; }
.status.full { background-color: rgba(167, 162, 169, 0.2); color: var(--mid-grey); }
.btn-small { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.btn.disabled {
    background-color: #333;
    color: var(--mid-grey);
    cursor: not-allowed;
    border-color: #333;
}

/* Section 3: Booking Process */
.booking-process-section {
    background-color: var(--dark-bg);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}
.process-step img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}
.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: #222;
    line-height: 1;
}

/* Section 4: Expedition Spotlight */
.spotlight-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: 4rem 0;
}
.spotlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.5);
    z-index: -1;
}
.spotlight-content {
    background: rgba(8, 9, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(167, 162, 169, 0.2);
    padding: 3rem;
    border-radius: 12px;
    max-width: 650px;
}
.spotlight-content h3 {
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.spotlight-content h2 {
    font-size: 2.5rem;
}
.spotlight-content .btn {
    margin-top: 1rem;
}

/* Section 5: Seasonal Guide */
.seasonal-guide-section {
    background-color: #101112;
}
.seasonal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.season-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}
.season-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}
.season-card:hover img {
    transform: scale(1.1);
}
.season-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 9, 10, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.season-overlay h4 {
    margin: 0;
    font-size: 1.5rem;
}

/* Section 6: Private Tours */
.private-tour-section {
    background-color: #101112; /* Darker bg to make the card stand out */
    padding: 8rem 0;
}

.private-tour-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns the image to the right */
}

/* The background image container */
.showcase-image {
    width: 65%; /* Image takes up more space */
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The floating content card */
.showcase-content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    background-color: var(--dark-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Large decorative quotation mark */
.showcase-quote {
    position: absolute;
    top: -10px;
    left: 1.5rem;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.1;
    line-height: 1;
    z-index: -1;
    user-select: none;
}

.showcase-content h2 {
    font-size: 2.25rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.showcase-content p {
    color: var(--mid-grey);
    line-height: 1.8;
}

.showcase-content .btn {
    margin-top: 1.5rem;
}


/* --- Responsive adjustments for the overlap design --- */
@media (max-width: 992px) {
    .private-tour-showcase {
        flex-direction: column;
        justify-content: center;
    }

    .showcase-image {
        width: 100%;
        height: 350px;
    }
    
    .showcase-content {
        position: static; /* Remove absolute positioning */
        transform: none;
        width: 90%;
        margin-top: -80px; /* Pull the card up to overlap the image */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .private-tour-section {
        padding: 6rem 0;
    }
    
    .showcase-content {
        width: 100%;
        padding: 2.5rem 2rem;
    }
    .showcase-content h2 {
        font-size: 2rem;
    }
}

/* --- RESPONSIVE ADJUSTMENTS FOR SCHEDULE PAGE --- */
@media (max-width: 992px) {
    .process-grid, .seasonal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spotlight-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .process-grid, .seasonal-grid {
        grid-template-columns: 1fr;
    }
}

/* --- GUIDES PAGE STYLES --- */

/* Section 1: Guides Hero */
.guides-hero-bg {
    background-image: url('images/guides.webp'); 
    filter: brightness(0.4);
}

/* Section 2: Guiding Philosophy */
.guiding-philosophy-section {
    background-color: #101112;
}

/* Section 3: Meet the Team Grid */
/* --- 3D GUIDE CAROUSEL SLIDER --- */

.team-grid-section {
    background-color: var(--dark-bg);
}

.guide-slider {
    position: relative;
    max-width: 400px; /* Width of a single card */
    height: 550px; /* Height of a single card */
    margin: 0 auto;
}

/* The 'scene' creates the 3D space and perspective */
.guide-slider-scene {
    width: 100%;
    height: 100%;
    perspective: 1200px; /* The 'depth' of the 3D effect */
}

/* The 'carousel' is the rotating 3D object */
.guide-slider-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Individual slides are the 'faces' of the 3D object */
.guide-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back of the non-visible slides */
    
    /* Re-using styles from the original guide-card */
    background-color: #101112;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #222;
}

.guide-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
}

.guide-info {
    padding: 0.7rem;
}
.guide-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
    color: var(--light-text);
}
.guide-info h4 {
    color: var(--mid-grey);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.guide-info p {
    color: var(--mid-grey);
}

/* Navigation Buttons */
.guide-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.guide-slider-btn:hover {
    background: rgba(255,255,255,0.2);
}
.guide-slider-btn--prev { left: -70px; }
.guide-slider-btn--next { right: -70px; }

@media (max-width: 768px) {
    .guide-slider-btn--prev { left: -20px; }
    .guide-slider-btn--next { right: -20px; }
    .guide-slider {
        max-width: 320px;
        height: 480px;
    }
}
/* Section 4: Qualifications */
/* --- COVERFLOW TABS COMPONENT --- */

.qualifications-section {
    background-color: #101112;
}

/* Navigation container - sets up the 3D space */
.coverflow-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    perspective: 600px;
    height: 120px;
}

/* Individual tab button */
.coverflow-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 200px;
    height: 100px;
    background: var(--dark-bg);
    border: 1px solid #222;
    border-radius: 8px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn-icon {
    color: var(--mid-grey);
    transition: color 0.3s ease;
}
.btn-icon svg {
    width: 32px;
    height: 32px;
}
.coverflow-tab-btn h4 {
    color: var(--mid-grey);
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s ease;
}

/* States controlled by JavaScript */
.coverflow-tab-btn[data-state="active"] {
    transform: translateZ(0) rotateY(0) scale(1.1);
    opacity: 1;
    z-index: 10;
    border-color: var(--accent-color);
}
.coverflow-tab-btn[data-state="active"] .btn-icon,
.coverflow-tab-btn[data-state="active"] h4 {
    color: var(--light-text);
}

.coverflow-tab-btn[data-state="inactive-left"] {
    transform: translateX(-80%) rotateY(45deg) scale(0.9);
    opacity: 0.4;
    z-index: 1;
}
.coverflow-tab-btn[data-state="inactive-right"] {
    transform: translateX(80%) rotateY(-45deg) scale(0.9);
    opacity: 0.4;
    z-index: 1;
}

/* Content Panel Styling */
.coverflow-content {
    position: relative;
    min-height: 300px; /* To prevent layout shift */
}
.coverflow-panel {
    display: none; /* JS will control visibility */
    text-align: center;
}
.coverflow-panel.is-active {
    display: block;
    animation: fadeIn 0.6s ease;
}
.coverflow-panel img {
    max-width: 100%;
    width: 600px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 1.5rem auto;
}
.coverflow-panel p {
    color: var(--mid-grey);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive: stack on smaller screens */
@media (max-width: 768px) {
    .coverflow-nav {
        perspective: none; /* Disable 3D on mobile */
        flex-wrap: nowrap; /* Ensure it stays in a line */
        overflow-x: auto; /* Allow horizontal scrolling */
        justify-content: flex-start;
        padding: 0.5rem;
        height: auto;
    }
    .coverflow-tab-btn {
        flex-shrink: 0; /* Prevent buttons from shrinking */
        width: 150px;
        height: 80px;
        margin: 0 0.5rem;
        /* Reset 3D transforms */
        transform: none !important; 
        opacity: 0.7 !important;
    }
    .coverflow-tab-btn[data-state="active"] {
        opacity: 1 !important;
        transform: scale(1.05) !important;
    }
}

/* Section 5: Guide's Quote */
.guide-quote-bg {
    background-attachment: fixed;
    filter: brightness(0.35);
}

/* Section 6: Training Program */
/* --- TRAINING PROGRAM SECTION (REDESIGNED CLIP-PATH) --- */

.training-program-section { 
    background-color: var(--dark-bg);
    padding: 6rem 0;
}

.training-showcase {
    position: relative;
    width: 100%;
    min-height: 500px; /* Set a fixed height for the component */
    background-color: #101112;
    border-radius: 12px;
    overflow: hidden;
}

/* The image container that will be clipped */
.showcase-clipped-image {
    position: absolute;
    inset: 0;
    
    /* The core of the unusual design: a mountain-like shape */
    clip-path: polygon(0 100%, 0 25%, 20% 45%, 45% 15%, 70% 40%, 100% 10%, 100% 100%);
    
    transition: clip-path 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* On hover, the clipped shape expands to reveal the full image */
.training-showcase:hover .showcase-clipped-image {
    clip-path: polygon(0 100%, 0 0, 100% 0, 100% 100%);
}

.showcase-clipped-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transform: scale(1.05); /* Start slightly zoomed in */
    transition: transform 0.5s ease;
}
.training-showcase:hover .showcase-clipped-image img {
    transform: scale(1); /* Zoom out to normal on hover */
}

/* The text content, positioned absolutely in the "empty" space */
.showcase-text-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 45%;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Fade out the text slightly on hover to focus on the revealed image */
.training-showcase:hover .showcase-text-content {
    opacity: 0.8;
    transform: translateY(-10px);
}

.showcase-text-content h2 {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}
.showcase-text-content p {
    color: #fff;
    line-height: 1.8;
}


/* SECTION 2 & 4: FEATURED REVIEWS & RATINGS */
.featured-reviews-section { background-color: #101112; }
.featured-reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.testimonial-slider-window { position: relative; overflow: hidden; min-height: 250px; }
.testimonial-slider-track { display: flex; transition: opacity 0.5s ease, transform 0.5s ease; }
.testimonial-slide { width: 100%; flex-shrink: 0; opacity: 0; position: absolute; transition: opacity 0.5s ease; }
.testimonial-slide.is-active { opacity: 1; position: relative; }
.testimonial-slide p { font-size: 1.2rem; font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; color: var(--light-text); }
.testimonial-slide cite { font-style: normal; color: var(--mid-grey); }
.testimonial-slider-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; border-top: 1px solid #222; padding-top: 1.5rem; }
.ts-btn { background: transparent; border: 1px solid #333; color: var(--mid-grey); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.ts-btn:hover { background: var(--dark-bg); color: var(--light-text); border-color: var(--accent-color); }
.ts-counter { font-weight: 700; color: var(--light-text); }

.featured-rating-stats h2 { margin-bottom: 1rem; }
.featured-rating-stats p { margin-bottom: 2rem; max-width: 400px; }
.rating-bar { margin-bottom: 1.5rem; }
.rating-bar label { display: block; margin-bottom: 0.5rem; color: var(--light-text); }
.bar-container { width: 100%; background-color: #222; border-radius: 50px; height: 1.5rem; }
.bar { background: var(--accent-color); height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 1rem; color: var(--dark-bg); font-weight: 700; border-radius: 50px; width: 0 !important; transition: width 1s cubic-bezier(0.23, 1, 0.32, 1); transition-delay: var(--animation-delay, 0s); }
.animate-bar.is-visible .bar { width: var(--bar-width) !important; /* JS will set this */}


/* SECTION 3: VIDEO SHOWCASE */
.video-showcase-section { text-align: center; padding: 8rem 0; background: linear-gradient(rgba(8,9,10,0.6), rgba(8,9,10,0.6)), no-repeat center center/cover; background-attachment: fixed; }
.video-showcase-section h2 { font-size: 3rem; }

/* SECTION 5: COMMUNITY GALLERY MARQUEE */
.community-gallery-section { padding: 6rem 0; overflow: hidden; }
.hashtag-title { color: var(--accent-color); font-size: 1.5rem; margin-left: 0.5rem; }
.marquee { display: flex; width: max-content; margin-top: 3rem; }
.marquee-track { display: flex; gap: 1rem; animation: marquee-scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.photo-item { width: 300px; height: 400px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-item:hover img { transform: scale(1.05); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* SECTION 6 & 7: FINAL CTA */
.share-story-section { padding: 8rem 0; text-align: center; background-color: #101112; }
.share-story-section h2 { font-size: 3rem; margin-bottom: 1rem; }
.share-story-section p { max-width: 600px; margin: 0 auto 2rem auto; font-size: 1.2rem; }
.trusted-by { margin-top: 4rem; color: var(--mid-grey); }
.trusted-by span { display: block; margin-bottom: 1.5rem; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.trusted-by .partner-logo { display: inline-block; font-family: var(--font-heading); font-size: 1.2rem; opacity: 0.6; margin: 0 1.5rem; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .featured-reviews-grid { grid-template-columns: 1fr; }
    .featured-rating-stats { margin-top: 4rem; }
}

/* --- PHOTOS PAGE REDESIGN (MOSAIC) --- */

.photo-mosaic-section {
    background-color: var(--dark-bg);
    padding: 6rem 0;
}

.photo-mosaic-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4-column flexible grid */
    grid-auto-rows: 280px; /* Consistent row height for rhythm */
    gap: 1.5rem;
}

/* Base styles for all grid items */
.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #101112;
}

/* Spanning classes */
.m-col-span-2 { grid-column: span 2; }
.m-row-span-2 { grid-row: span 2; }

/* Image item styles */
.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.mosaic-item:hover > img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Integrated Focus Cards */
.focus-card-integrated .focus-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(8, 9, 10, 0.8), transparent 60%);
}
.focus-card-integrated .focus-overlay h3 {
    font-size: 1.5rem;
    color: var(--light-text);
}

/* Photographer Spotlight Block */
.mosaic-content-block {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.spotlight-portrait {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50%;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}
.mosaic-content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}
.mosaic-content-block p {
    color: var(--mid-grey);
    line-height: 1.7;
}

/* Video Promo Block */
.mosaic-video-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.video-promo-bg {
    position: absolute;
    inset: 0;
    filter: brightness(0.4);
    transition: filter 0.5s ease;
}
.mosaic-video-promo:hover .video-promo-bg {
    filter: brightness(0.6);
}
.video-promo-content {
    position: relative;
    z-index: 1;
}
.video-promo-content h2 {
    font-size: 2rem;
    color: var(--light-text);
}
.video-promo-content .play-button-feature {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-top: 1rem;
}

/* Final CTA Block */
.mosaic-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border: 2px dashed #222;
    transition: border-color 0.3s ease;
}
.mosaic-cta:hover {
    border-color: var(--accent-color);
}
.mosaic-cta h3 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}
.mosaic-cta .hashtag {
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
}


/* Responsive Design for the Mosaic */
@media (max-width: 992px) {
    .photo-mosaic-layout {
        grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns on tablets */
        grid-auto-rows: 250px;
    }
}

@media (max-width: 768px) {
    .photo-mosaic-layout {
        grid-template-columns: 1fr; /* Stack everything on mobile */
        grid-auto-rows: auto; /* Let content define row height */
    }
    /* Reset all spans for mobile stacking */
    .m-col-span-2, .m-row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .mosaic-item, .mosaic-item .m-row-span-2 {
        height: 300px; /* Give a consistent height to items */
    }
    .mosaic-content-block, .mosaic-cta {
        height: auto; /* Let text content define its height */
    }
}


/* The decorative badge */
.academy-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    color: var(--light-text);
    z-index: 10;
    background: rgba(8, 9, 10, 0.5);
    backdrop-filter: blur(5px);
}
.academy-badge svg {
    width: 40px;
    height: 40px;
}
.academy-badge span {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
}


/* --- Responsive adjustments for the clip-path design --- */
@media (max-width: 992px) {
    .training-showcase {
        min-height: auto; /* Allow height to be determined by content */
        display: flex;
        flex-direction: column;
    }
    .showcase-clipped-image {
        position: relative; /* Remove absolute positioning */
        clip-path: none; /* Remove the clip-path */
        height: 300px; /* Give it a fixed height */
    }
    .showcase-text-content {
        position: relative; /* Remove absolute positioning */
        max-width: 100%;
        padding: 2.5rem;
        bottom: auto;
        left: auto;
    }
    .academy-badge {
        /* Position badge inside the text content on mobile */
        position: static;
        margin: 0 auto 2rem auto;
        width: fit-content;
    }
    .showcase-text-content h2 {
        text-align: center;
    }
}

/* Section 7: Join the Team CTA */
.join-team-section {
    text-align: center;
    background: linear-gradient(rgba(8, 9, 10, 0.8), rgba(8, 9, 10, 0.8)), no-repeat center center/cover;
}
.join-team-section .container {
    max-width: 700px;
}
.join-team-section .btn {
    margin-top: 1rem;
}

/* --- RESPONSIVE ADJUSTMENTS FOR GUIDES PAGE --- */
@media (max-width: 992px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .guide-grid, .qualifications-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: #101112;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #222;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-about .logo {
    display: block;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links a, .footer-social a {
    color: var(--mid-grey);
    display: block;
    margin-bottom: 0.5rem;
}
.footer-links a:hover, .footer-social a:hover {
    color: var(--light-text);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- SCROLL ANIMATIONS --- */
.scroll-animate, .animate-on-scroll { /* <-- ADDED HERE */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--animation-delay, 0s);
}
.scroll-animate.is-visible, .animate-on-scroll.is-visible { /* <-- AND HERE */
    opacity: 1;
    transform: translateY(0);
}
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .grid-two-col, .tours-grid, .philosophy-grid {
        grid-template-columns: 1fr;
    }

    /* --- MODIFIED: Mobile Navigation Styles --- */
    .desktop-only {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 0 0 0 30%; /* top, right, bottom, left */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        padding: 2rem;
        height: 100vh;
        background: rgba(8, 9, 10, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        
        transform: translateX(100%);
        transition: transform 0.35s ease-out;
    }

    body.nav-open .nav-links {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-links a::after {
        display: none;
    }
    /* --- End Mobile Navigation --- */

    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    h1 { font-size: 2.5rem; }
    
    .intro-section .grid-two-col {
        grid-template-columns: 1fr;
    }
    
    .intro-section .grid-two-col .intro-image {
        grid-row: 1; /* Image appears first on mobile */
    }

    .newsletter-form { flex-direction: column; }
}


/* --- LEGAL & SUB-PAGE STYLES (e.g., Privacy Policy) --- */

/* Section 1: Page Hero */
.page-hero {
    background-color: #101112;
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid #222;
    margin-top: 85px; /* Adjust based on header height to prevent overlap */
}
.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.page-hero p {
    font-size: 1.2rem;
    color: var(--mid-grey);
    margin: 0;
}

/* Main Legal Content Section */
.legal-section {
    padding: 4rem 0;
    background-color: var(--dark-bg);
}
.legal-content {
    max-width: 800px; /* Optimal width for readability */
    margin: 0 auto;
}
.legal-content h2 {
    font-size: 1.75rem;
    color: var(--light-text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222;
}
.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--mid-grey);
}
.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.legal-content li {
    margin-bottom: 0.75rem;
}
.legal-content .last-updated {
    font-style: italic;
    color: var(--mid-grey);
    margin-bottom: 2rem;
}
.legal-content a.btn {
    margin-top: 1rem;
}

/* Footer Privacy Link */
.footer-privacy-link {
    color: var(--mid-grey);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}
.footer-privacy-link:hover {
    color: var(--light-text);
    opacity: 1;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 0;
        margin-top: 70px; /* Adjust for smaller header */
    }
    .page-hero h1 {
        font-size: 2.5rem;
    }
}


/* --- THANK YOU PAGE STYLES --- */

body.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(rgba(8, 9, 10, 0.85), rgba(8, 9, 10, 0.85)), no-repeat center center/cover;
    padding: 2rem;
}

.thank-you-box {
    text-align: center;
    background: rgba(16, 17, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #222;
    max-width: 600px;
    width: 100%;
}

.thank-you-box h1 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.thank-you-box p {
    color: var(--mid-grey);
    margin: 0 auto 2rem auto;
    max-width: 450px;
    line-height: 1.8;
}

/* Animated Checkmark SVG */
.checkmark-container {
    margin-bottom: 2rem;
}
.checkmark-svg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--light-text);
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px var(--light-text);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: var(--accent-color);
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}
@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}
@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px var(--accent-color);
    }
}

/* Responsive adjustment for the box */
@media (max-width: 768px) {
    .thank-you-box {
        padding: 2rem;
    }
    .thank-you-box h1 {
        font-size: 2rem;
    }
}

/* --- PHILOSOPHY SLIDER COMPONENT --- */

.philosophy-slider {
    position: relative;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto;
}

.philosophy-slider-window {
    overflow: hidden; /* This is the key to the slider effect */
    border-radius: 8px;
}

.philosophy-slider-track {
    display: flex;
    /* JS will calculate the width, but this is a fallback for 3 slides */
    width: 300%; 
    transition: transform 0.5s ease-in-out;
}

.philosophy-slide {
    /* Each slide takes up 1/3 of the track's width */
    width: 33.3333%;
    flex-shrink: 0;
    padding: 0 1rem; /* Creates space between slides */
    box-sizing: border-box;
    text-align: center;
}

.philosophy-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 8px; /* Add radius back as it was on the item */
    filter: saturate(0) brightness(0.8);
    transition: filter 0.3s ease;
}

.philosophy-slide:hover img {
    filter: saturate(1) brightness(1);
}

.philosophy-slide h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--light-text);
}

.philosophy-slide p {
    color: var(--mid-grey);
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 35%; /* Adjust vertically */
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(244, 247, 245, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(167, 162, 169, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background-color: rgba(244, 247, 245, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-btn--prev {
    left: -60px;
}

.slider-btn--next {
    right: -60px;
}

/* Disabled state for buttons at start/end */
.slider-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0.4;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slider-dot:hover {
    opacity: 0.7;
}

.slider-dot.current-slide {
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive adjustments for the slider navigation */
@media (max-width: 992px) {
    .slider-btn {
        top: 110px; /* Position relative to the image height */
    }
    .slider-btn--prev {
        left: 0;
    }
    .slider-btn--next {
        right: 0;
    }
}

/* --- TABS COMPONENT STYLES --- */

.tabs-component {
    display: flex;
    flex-direction: column;
}

/* The row of tab buttons */
.tab-list {
    display: flex;
    gap: 2rem; /* Space between tab buttons */
    border-bottom: 1px solid #222; /* Underline for the entire tab bar */
    margin-bottom: 1.5rem;
}

/* Individual tab button styling */
.tab-button {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mid-grey);
    background: transparent;
    border: none;
    padding: 0 0 1rem 0; /* Padding at the bottom for the active border */
    cursor: pointer;
    position: relative;
    border-bottom: 3px solid transparent; /* Placeholder for active state */
    transition: color 0.3s ease, border-color 0.3s ease;
    transform: translateY(1px); /* Aligns with the bottom border */
}

.tab-button:hover {
    color: var(--light-text);
}

/* Active state for the selected tab button */
.tab-button.active {
    color: var(--light-text);
    border-bottom-color: var(--accent-color);
}

/* Container for all content panels */
.tab-panels {
    position: relative;
}

/* Individual content panel */
.tab-panel {
    display: none; /* Hide all panels by default */
}

/* Active state for the visible panel */
.tab-panel.active {
    display: block;
    /* Add a subtle fade-in animation */
    animation: fadeIn 0.5s ease-in-out;
}

.tab-panel h2 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.tab-panel p {
    color: var(--mid-grey);
    line-height: 1.8;
}

/* Fade-in animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-list {
        gap: 1rem; /* Reduce gap on smaller screens */
    }
    .tab-button {
        font-size: 1rem;
    }
}

/* --- VERTICAL TABS COMPONENT --- */

.values-section {
    background-color: #101112;
}

.vertical-tabs-component {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Asymmetrical: 1 part for tabs, 2 parts for content */
    gap: 3rem;
    min-height: 400px; /* Ensure consistent height */
}

/* Left Column: List of tab buttons */
.v-tab-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual tab button */
.v-tab-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-left: 4px solid #222; /* Default border */
    text-align: left;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.v-tab-button:hover {
    background-color: var(--dark-bg);
}

.v-tab-number {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--mid-grey);
    transition: color 0.3s ease;
}

.v-tab-button h4 {
    color: var(--mid-grey);
    font-size: 1.1rem;
    margin: 0;
    transition: color 0.3s ease;
}

/* Active state for the selected tab button */
.v-tab-button.active {
    background-color: var(--dark-bg);
    border-left-color: var(--accent-color);
}

.v-tab-button.active .v-tab-number,
.v-tab-button.active h4 {
    color: var(--light-text);
}


/* Right Column: Content panels */
.v-tab-panels {
    position: relative;
    background-color: var(--dark-bg);
    padding: 2rem;
    border-radius: 8px;
}

/* Individual content panel */
.v-tab-panel {
    display: none; /* Hide all panels by default */
}

.v-tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.v-tab-panel img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.v-tab-panel p {
    color: var(--mid-grey);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Shared fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .vertical-tabs-component {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 2rem;
    }

    .v-tab-list {
        flex-direction: row; /* Change to horizontal row for tabs */
        overflow-x: auto; /* Allow scrolling if tabs don't fit */
        padding-bottom: 1rem;
    }

    .v-tab-button {
        flex-direction: column; /* Stack number and text vertically */
        border-left: none;
        border-bottom: 4px solid #222;
        border-radius: 4px 4px 0 0;
        white-space: nowrap; /* Prevent text wrapping */
    }

    .v-tab-button.active {
        border-bottom-color: var(--accent-color);
    }
}

/* --- VERTICAL SLIDER COMPONENT --- */
.booking-process-section {
    background-color: var(--dark-bg);
}

.v-slider-component {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background-color: #101112;
    padding: 2rem;
    border-radius: 12px;
}

/* Left Column Styling */
.v-slider-content {
    display: flex;
    gap: 2rem;
    min-height: 250px; /* Set a consistent height */
}

/* Vertical Navigation Dots (Pips) */
.v-slider-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* The line connecting the dots */
.v-slider-nav::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #222;
}
.v-slider-pip {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--dark-bg);
    border: 3px solid var(--mid-grey);
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.3s ease;
}
.v-slider-pip:hover {
    border-color: var(--light-text);
}
.v-slider-pip.is-active {
    border-color: #ffd900;
    transform: scale(1.2);
}

/* Text Slider Styling */
.v-slider-window {
    flex-grow: 1;
    position: relative;
    overflow: hidden; /* This crops the sliding track */
}
.v-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy transition */
}
.v-slide {
    height: 250px; /* Must match .v-slider-content min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}
.v-slide-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}
.v-slide h4 {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.v-slide p {
    color: var(--mid-grey);
    line-height: 1.7;
}

/* Right Column Image Styling */
.v-slider-images {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}
.v-slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.v-slider-image.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .v-slider-component {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .v-slider-images {
        height: 300px;
        grid-row: 1; /* Move image to the top */
    }
}
