@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Montserrat:wght@100;200;300;400&display=swap');

/* =========================================
   1. BASE & RESET
   ========================================= */
:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-weight: 200;
    background-color: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    letter-spacing: 0.5px;
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }

/* =========================================
   GLOBAL TYPOGRAPHY CONSISTENCY
   ========================================= */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 100;
    color: #111;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* =========================================
   2. FLOATING HEADER & FOOTER
   ========================================= */
.site-header, .site-footer {
    transition: padding 0.4s ease, font-size 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 3rem;
    background-color: transparent;
    mix-blend-mode: difference;
    color: #ffffff;
}

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

.logo {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: font-size 0.4s ease, letter-spacing 0.4s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: font-size 0.4s ease;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    z-index: 1000;
    background-color: transparent;
    mix-blend-mode: difference;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 200;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a { margin-left: 1.5rem; }
.divider { margin: 0 0.5rem; opacity: 0.5; }

.site-header.scrolled, 
.site-footer.scrolled {
    background-color: transparent !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.site-header.shrink {
    padding: 1rem 3rem;
}
.site-header.shrink .logo {
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.site-header.shrink .main-nav a {
    font-size: 0.65rem;
}

.site-footer.shrink {
    padding: 0.75rem 3rem;
    font-size: 0.55rem;
}

/* =========================================
   3. HOMEPAGE SLIDER STYLES (CAPTION BELOW)
   ========================================= */

body:has(.homepage-container) {
    background-color: #ffffff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.site-header, .site-footer {
    flex-shrink: 0; 
    z-index: 100;
}

.homepage-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

/* MAGIC: Define the fade-in animation */
@keyframes fadeInSlide {
    from { 
        opacity: 0; 
        visibility: hidden; 
    }
    to { 
        opacity: 1; 
        visibility: visible; 
    }
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    /* MAGIC: 2s transition handles BOTH the fade-in and fade-out smoothly */
    transition: opacity 3s ease-in-out; 
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    position: relative; /* This is what keeps your arrows and layout in the correct place */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-height: calc(100vh - 260px);
    max-width: 85vw;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.slide-caption {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 0.9rem;
    text-align: left;
    max-width: 800px;
    color: #1a1a1a;
    text-shadow: none;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.8s ease-out 0.2s;
    align-self: flex-start; /* Add this line */
    width: 100%; /* Add this line */
}

.slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 200;
    font-style: normal; 
    letter-spacing: 2px;
    margin-bottom: 0.1rem;
    color: #1a1a1a;
    line-height: 1.1;
    display: block;
}

.slide-caption p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: normal;
    letter-spacing: 2.5px;
    color: #888;
    display: block;
}

.slider-arrow {
    position: static; 
    background: transparent;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 1rem;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover { opacity: 1; transform: scale(1.1); }

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #1a1a1a;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.dot.active { opacity: 1; transform: scale(1.2); }





/* =========================================
   HOMEPAGE INTRO OVERLAY (INTERACTIVE)
   ========================================= */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 1.5s ease-in-out; 
    pointer-events: none; 
}

.intro-overlay.fade-out {
    opacity: 0;
}

.intro-content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.intro-motto {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.intro-vision {
    font-family: var(--font-body, sans-serif);
    font-size: 1.1rem;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
}

/* --- New "Enter" Button Styles --- */
.enter-btn {
    margin-top: 3rem;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid #111;
    color: #111;
    font-family: var(--font-body, sans-serif);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    
    /* Hidden initially */
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none; /* Prevents clicking while hidden */
    transition: opacity 1.5s ease, transform 1.5s ease, background-color 0.3s, color 0.3s;
}

/* Class added by JS to fade the button in */
.enter-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Enables clicking */
}

.enter-btn:hover {
    background-color: #111;
    color: #ffffff;
}




/* =========================================
   4. INNER PAGES (About, Contact, etc.)
   ========================================= */
.content-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10rem 2rem 8rem 2rem;
}

.bio-section .lead {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 200;
    color: #666;
    margin-bottom: none;
    border-bottom: none;
    padding-bottom: none;
}

.bio-text p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 200;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #333;
    letter-spacing: 0.3px;
}

.commissions-note {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* =========================================
   WORKSHOP PAGE STYLES
   ========================================= */
.workshop-section {
    text-align: left;
}

.workshop-intro p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 200;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: #333;
}

.section-divider {
    height: 1px;
    background-color: #eee;
    margin: 4rem 0;
    width: 100%;
}

.workshop-section h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

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

.itinerary-item {
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid #ddd;
}

.itinerary-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    color: #e0e0e0;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.itinerary-item p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 200;
    line-height: 1.7;
    color: #555;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2.5rem;
}

.faq-item p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    color: #444;
}

/* =========================================
   WORKSHOP BOOKING FORM STYLES
   ========================================= */
.booking-form-wrapper {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background-color: #fafafa;
    text-align: center;
    border-radius: 2px;
}

.booking-form-wrapper h2 {
    text-align: center;
}

.booking-form-wrapper > p {
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 200;
    color: #555;
}

.booking-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: #111;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 2px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #111;
}

.form-group input::placeholder {
    color: #aaa;
    font-weight: 200;
}

/* =========================================
   FLATPICKR CALENDAR CUSTOM STYLING
   ========================================= */
.calendar-input {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: #111;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 2px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    cursor: pointer;
}

.calendar-input:focus {
    outline: none;
    border-color: #111;
}

.flatpickr-calendar {
    width: 100% !important;
    max-width: 400px !important; 
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: var(--font-body) !important;
    padding: 1.25rem !important;
    box-sizing: border-box;
}

.flatpickr-months {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    margin-bottom: 10px !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
}

.flatpickr-months .flatpickr-prev-month {
    left: 0 !important;
    right: auto !important;
}

.flatpickr-months .flatpickr-next-month {
    right: 0 !important;
    left: auto !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px !important;
    height: 14px !important;
    fill: #888 !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #1a1a1a !important;
}

.flatpickr-current-month {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-family: var(--font-body) !important;
    font-weight: 300 !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    max-width: 110px !important;
    padding: 0 4px !important;
    cursor: pointer;
}

.flatpickr-current-month input.cur-year {
    font-family: var(--font-body) !important;
    font-weight: 300 !important;
    font-size: 0.95rem !important;
    width: 50px !important;
    text-align: center !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}

.flatpickr-current-month input.cur-year::-webkit-outer-spin-button,
.flatpickr-current-month input.cur-year::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.flatpickr-weekdays {
    background: transparent;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}
.flatpickr-weekday {
    color: #888;
    font-family: var(--font-body) !important;
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}

.flatpickr-day {
    color: #1a1a1a;
    font-family: var(--font-body) !important;
    font-weight: 300;
    font-size: 0.9rem;
    border-radius: 2px;
    line-height: 39px;
    margin: 1px 0;
    max-width: none;
    flex-basis: auto;
    width: calc(100% / 7);
}

.flatpickr-day:hover {
    background: #f4f4f4;
    color: #1a1a1a;
    border-color: transparent;
}

.flatpickr-day.selected {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ddd;
    cursor: not-allowed;
    background: transparent;
}

.flatpickr-day.today {
    border-color: #888;
}
.flatpickr-day.today:hover {
    border-color: #1a1a1a;
}

@media (max-width: 768px) {
    .flatpickr-calendar {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    .flatpickr-day {
        font-size: 0.85rem;
        line-height: 36px;
    }
}

/* =========================================
   BUTTON STYLING
   ========================================= */
.btn-primary,
.btn-paypal {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    background-color: #1a1a1a;
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

.btn-paypal {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem;
}

.btn-primary:hover,
.btn-paypal:hover {
    background-color: transparent;
    color: #1a1a1a;
    opacity: 1;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #888;
    font-weight: 200;
}

.book-now-trigger {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

/* =========================================
   INDEPENDENT PHOTO & TESTIMONIAL SLIDESHOW
   ========================================= */
.student-experiences-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 4rem;
    align-items: center;
    margin: 4rem 0;
}

.photo-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.photo-slide {
    width: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.photo-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    min-height: 250px;
    text-align: center;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active { opacity: 1; }

.testimonial-slide blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: #222;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.testimonial-slide cite {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    font-style: normal;
}





/* =========================================
   WORK PAGE STYLES
   ========================================= */
.work-page-section {
    text-align: left;
}

.work-header {
    text-align: center;
    margin-bottom: 2rem;
}

.work-header h1 {
    text-align: center;
}

.work-header .lead {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 200;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.work-category {
    margin-bottom: 2rem;
}

.category-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 2.5rem;
    text-align: center;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem 2rem;
}

.work-item {
    display: block;
    text-decoration: none;
    color: inherit;
    group: hover;
}

.work-image-wrapper {
    width: 100%;
    overflow: hidden; 
    background-color: #f4f4f4;
    margin-bottom: 1rem;
}

.work-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease, opacity 0.4s ease;
    display: block;
}

.work-item:hover .work-image-wrapper img {
    transform: scale(1.03);
    opacity: 0.9;
}

.work-info {
    text-align: left;
}

.work-item:hover .work-info h3 {
    color: #555;
}

.work-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
}

/* =========================================
   LIGHTBOX STYLES
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); 
    border-radius: 2px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #1a1a1a; 
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.flatpickr-calendar .numInputWrapper span.arrowUp,
.flatpickr-calendar .numInputWrapper span.arrowDown,
.flatpickr-calendar .numInputWrapper span {
    display: none !important;
}

.flatpickr-calendar .numInputWrapper:hover {
    background: transparent !important;
}

.flatpickr-calendar .numInputWrapper input.cur-year {
    padding-right: 0 !important;
    -moz-appearance: textfield !important;
}

.flatpickr-calendar .numInputWrapper input.cur-year::-webkit-inner-spin-button,
.flatpickr-calendar .numInputWrapper input.cur-year::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* =========================================
   INFO PAGE - CONTACT SECTION STYLES
   ========================================= */
.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    padding: 0;
    border-bottom: none;
}

.contact-item h3 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 200;
    color: #111;
    margin: 0;
}

.contact-item a {
    color: #111;
    transition: opacity 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.contact-item a:hover {
    opacity: 0.5;
    transform: translateY(-2px);
}

.contact-item a svg {
    display: block;
}

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
        gap: 2rem;
    }
}

.contact-form-trigger {
    text-align: center;
    padding: 3rem 0;
}

.contact-form-wrapper {
    margin-top: 2rem;
    padding: 3rem 2rem;
    background-color: #fafafa;
    text-align: center;
    border-radius: 2px;
    padding-top: 80px;
}

.contact-form-wrapper h2 {
    text-align: center;
}

.contact-form-wrapper > p {
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 200;
    color: #555;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.contact-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 300 !important;
    color: #111 !important;
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
    transition: border-color 0.3s !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    min-height: 180px !important;
    line-height: 1.6 !important;
}

.contact-form textarea:focus {
    outline: none !important;
    border-color: #111 !important;
}

.contact-form textarea::placeholder {
    color: #aaa !important;
    font-weight: 200 !important;
}


/* =========================================
   SCROLL FADE-IN ANIMATION
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(40px); /* Starts slightly lower for an upward glide */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0); /* Glides to its natural position */
}



/* =========================================
   NEWSLETTER SUBSCRIPTION SECTION
   ========================================= */
.newsletter-section {
    padding: 4rem 2rem;
    background-color: #fafafa;
    text-align: center;
    margin-top: 4rem;
}

.newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.newsletter-intro {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 200;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex-grow: 1;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: #111;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 2px;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    outline: none;
    border-color: #111;
}

.newsletter-input::placeholder {
    color: #aaa;
    font-weight: 200;
}

.newsletter-btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.newsletter-note {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 200;
    color: #888;
    letter-spacing: 0.5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}




/* Prevent fixed header from covering form titles when scrolling */
#contact-form-wrapper, 
#newsletter-wrapper {
    scroll-margin-top: 150px; 
}



/* =========================================
   SINGLE PROJECT PAGE
   ========================================= */

/* 1. Constrain all images inside the project page */
.single-project img, 
.project-page img,
.project-content img,
.project-gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto; /* Centers the image if it's smaller than the container */
}

/* 2. Ensure the container itself catches any accidental overflow */
.single-project, 
.project-page,
.project-content,
.project-gallery {
    max-width: 100%;
    overflow: hidden; 
}
 

/* =========================================
   SINGLE PROJECT PAGE
   ========================================= */

/* 1. Ensure images are responsive and add space below the image (before the caption) */
.project-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem; /* Space between the photo and its caption */
}

/* 2. Style the caption elegantly and add space below it (before the next photo) */
.project-caption {
    font-family: var(--font-body, sans-serif);
    font-size: 0.8rem;
    font-weight: 300;
    color: #888;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-bottom: 4rem; /* Space between this caption and the next image */
}


/* 3. Ensure images are responsive and add space below the image (before the caption) */
.project-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.2rem; /* Space between the photo and its caption */
}

/* 4. Style the caption elegantly and add space below it (before the next photo) */
.project-caption {
    font-family: var(--font-body, sans-serif);
    font-size: 0.8rem;
    font-weight: 300;
    color: #888;
    text-align: left;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin-left: 0.1rem;
    margin-bottom: 3rem; /* Space between this caption and the next image */
}

/* 5. Remove the bottom margin from the very last caption 
      so it doesn't push the footer down unnecessarily */
.project-gallery .project-image:last-child .project-caption {
    margin-bottom: 0;
}



/* =========================================
   TERMS & CONDITIONS MODAL
   ========================================= */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    backdrop-filter: blur(4px); /* Elegant blur effect behind the modal */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto; /* Allows scrolling if text is too long on mobile */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: 200;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #111;
}

/* Show modal when active class is added via JS */
.modal-overlay.active {
    display: flex;
}



/* =========================================
   5. GLOBAL MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    body:has(.homepage-container) {
        height: auto; /* Allow scrolling on mobile */
        overflow: hidden !important; /* Enable vertical scroll */
        display: block; /* Remove flex on mobile */
    }

    .site-header {
        position: relative; /* Not fixed on mobile to prevent overlap */
        padding: 1rem;
    }

    .homepage-container { 
        display: block; /* Stack everything vertically */
        padding: 1rem;
        padding-top: 2rem; /* Space below header */
        min-height: 100vh !important; 
    }
    

    .slide.active {
        width: 100%;
        display: block; /* Remove flex */
    }

    .slide img {
        max-height: none; /* Remove height restriction */
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    /* Position arrows absolutely but OUTSIDE the image */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        padding: 1rem;
        z-index: 10;
    }
    
    .slider-arrow.prev { 
        left: -3rem; 
    }
    
    .slider-arrow.next { 
        right: -3rem; 
    }

    .slider-arrow svg { 
        width: 24px; 
        height: 24px; 
    }
    
    .slide-caption { 
        position: relative;
        margin-top: 1rem;
        margin-bottom: 2rem; /* Space before footer */
        width: 100%;
        text-align: left;
    }
    
    .slide-caption h3 { 
        font-size: 0.8rem; 
    }
    
    .slide-caption p { 
        font-size: 0.65rem; 
    }

    .slider-dots {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .site-footer {
        position: relative; /* Not fixed on mobile */
        margin-top: 2rem;
    }
    
    body { font-weight: 300; } 
    .main-nav a { font-weight: 400; }
    
    /* MAGIC: Use sticky instead of fixed to prevent mobile browser UI from covering it */
    .site-header { 
        position: sticky; 
        top: 0;
        padding: 1.5rem; 
        z-index: 1000;
    }
    .header-inner { flex-direction: column; gap: 1rem; }
    .main-nav ul { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    
    /* MAGIC: Use sticky and a solid background on the footer to prevent vanishing */
    .site-footer { 
        position: sticky; 
        bottom: 0;
        flex-direction: column; 
        gap: 0.5rem; 
        text-align: center; 
        padding: 1.5rem 1rem;
        z-index: 1000;
        background-color: #ffffff; /* Solid background prevents transparency overlap */
        color: #1a1a1a; /* Dark text for readability on white */
        mix-blend-mode: normal; /* Disables difference mode on mobile for stability */
    }
    .footer-links a { margin-left: 0; margin-right: 1rem; }

    .content-wrapper { padding: 8rem 1.5rem 6rem 1.5rem; }
    
    .itinerary-grid { grid-template-columns: 1fr; gap: 2rem; }
    .booking-form-wrapper { padding: 2rem 1rem; }
    
    .student-experiences-wrapper { gap: 2rem; }
    .photo-slider { min-height: 300px; width: 100%; }
    .testimonial-slider { min-height: 300px; }
    .testimonial-slide blockquote { font-size: 1.1rem; }
    

    
}



/* =========================================
   MOBILE FIX: STOP CENTERING, ALLOW SCROLL
   ========================================= */
@media (max-width: 768px) {
    .intro-overlay {
        /* Force it to be the exact height of the phone screen */
        height: 100vh !important;
        height: -webkit-fill-available !important; /* iOS Safari fix */
        
        /* Allow scrolling */
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        
        /* KILL FLEXBOX: Let content flow naturally from the top */
        display: block !important; 
        align-items: flex-start !important;
        justify-content: flex-start !important;
        
        /* Add padding so text doesn't hide under header/footer */
        padding: 100px 20px 60px 20px !important; 
        box-sizing: border-box !important;

        padding-bottom: 180px !important; /* Pushes the button up above the mobile browser bar */
        z-index: 9999 !important; 
    }

    /* Force footer to bottom and behind overlay */
    .site-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10 !important; /* Keeps it below the overlay */
    }


    .intro-content {
        /* KILL FLEXBOX HERE TOO */
        display: block !important;
        min-height: auto !important; /* Stop forcing a minimum height */
        max-width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .intro-motto {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .intro-vision {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2rem !important;
    }
    
    .enter-btn {
        padding: 0.8rem 2.5rem; 
        font-size: 0.8rem; 
        margin-top: 0.5rem !important;
        margin-bottom: 5rem !important;
    }


    /* 1. Give the slider container a fixed height so it doesn't collapse */
    .hero-slider-container {
        min-height: 70vh !important; 
        position: relative !important;
        touch-action: pan-x !important; /* Allows horizontal swipe, kills vertical scroll */
        overflow: hidden !important; /* Locks the container in place */
    }

    /* 2. Force ALL slides to be absolute to prevent layout shifts and overlap */
    .slide, .slide.active {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }



/* =========================================
   MOBILE FIX: FLATPICKR CALENDAR LAYOUT
   ========================================= */

    .flatpickr-calendar {
        width: 100% !important;
        max-width: 320px !important; /* Constrain width on mobile */
        left: 50% !important;
        transform: translateX(-50%) !important; /* Center it properly */
    }
    
    .flatpickr-days {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    
    .flatpickr-day {
        width: 14.285714% !important; /* Exactly 1/7th of container */
        max-width: 14.285714% !important;
        flex-basis: 14.285714% !important;
    }

}


/* =========================================
   SMALL MOBILE FIX (iPhone SE, 12 Mini)
   ========================================= */
@media (max-width: 380px) {

    /* 1. Lock horizontal scroll, keep vertical smooth */
    html, body {
        overflow-x: hidden !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        background-color: #ffffff !important;
        margin: 0 !important;
    }

    /* Allow horizontal touch ONLY on the calendar */
    .flatpickr-calendar {
        touch-action: pan-x !important;
    }

    /* 2. Allow the page to flow naturally (NO margin-top to prevent flash) */
    body:has(.homepage-container) {
        display: block !important;
        height: auto !important;
        overflow-y: auto !important;
    }

    /* 3. The SOLID WHITE WALL - prevents slider overlap */
    .intro-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100dvh !important; /* Dynamic viewport height for iOS */
        height: 100vh !important;  /* Fallback */
        min-height: 100% !important; /* Ensures it covers everything */
        background-color: #ffffff !important; /* Solid white - no transparency */
        z-index: 99999 !important; /* Way above the slider */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        
        /* Padding with safe-area for iOS notch/home bar */
        padding-top: calc(60px + env(safe-area-inset-top)) !important;
        padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 4. Force the Enter button to be visible */
    .enter-btn {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }


    .slide img {
        max-width: 95% !important; /* Leaves 5% space on left and right */
        width: 95% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .slide-caption {
        width: 94% !important; /* Matches the 90% width of the image */
        max-width: 94% !important;
        align-self: center !important; /* Centers the caption block perfectly under the image */
        text-align: left !important; /* Keeps the actual text left-aligned */
        box-sizing: border-box !important;
    }

    /* 5. Hide slider arrows on tiny screens */
    .slider-arrow { display: none !important; }

    /* 6. Text adjustments */
    .intro-motto { font-size: 1.3rem !important; margin-bottom: 1rem !important; }
    .intro-vision { font-size: 0.85rem !important; line-height: 1.5 !important; margin-bottom: 1rem !important; }
    
    /* 7. Calendar fix */
    .flatpickr-calendar { max-width: 300px !important; }
    .flatpickr-day { font-size: 0.8rem !important; line-height: 32px !important; }

    /* 8. HEADER: Semi-transparent white (no black bars) */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 1.5rem 1rem !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        mix-blend-mode: normal !important;
        color: #1a1a1a !important;
        z-index: 1000 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .site-header.scrolled {
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
    }

    .site-header.shrink {
        padding: 0.8rem 1rem !important;
    }
    .site-header.shrink .logo {
        font-size: 0.7rem !important;
        letter-spacing: 2px !important;
    }
    .site-header.shrink .main-nav a {
        font-size: 0.6rem !important;
        letter-spacing: 1px !important;
    }

    /* 9. Footer: Match header */
    .site-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 1rem !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        mix-blend-mode: normal !important;
        color: #1a1a1a !important;
        z-index: 1000 !important;
    }

    .site-footer.shrink {
        padding: 0.75rem 1rem !important;
        font-size: 0.55rem !important;
    }
    
    /* 10. Ensure slider sits BEHIND the intro and doesn't overlap */
    .hero-slider-container {
        position: absolute !important; /* Changed from relative */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important; /* Way below the intro (99999) */
        opacity: 0.99 !important; /* Ensures it stays behind */
    }
    
    .homepage-container {
        position: relative !important;
        min-height: 100vh !important;
    }
}

/* =========================================
   TABLET FIX (iPad, iPad Mini, etc.)
   Targets screens between 769px and 1366px ONLY
   ========================================= */
@media (min-width: 769px) and (max-width: 1366px) {
    
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 1.5rem 2rem !important; /* Slightly tighter than desktop */
        background-color: rgba(255, 255, 255, 0.85) !important; /* Semi-transparent white */
        mix-blend-mode: normal !important; /* KILLS the black bar inversion bug */
        color: #1a1a1a !important; /* Dark text for readability */
        z-index: 1000 !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
    }

    .site-header.scrolled {
        background-color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    .site-header.shrink {
        padding: 1rem 2rem !important;
    }
    .site-header.shrink .logo {
        font-size: 0.8rem !important;
        letter-spacing: 3px !important;
    }
    .site-header.shrink .main-nav a {
        font-size: 0.7rem !important;
        letter-spacing: 1.5px !important;
    }

    .site-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 1.2rem 2rem !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
        mix-blend-mode: normal !important; /* KILLS the black bar inversion bug */
        color: #1a1a1a !important;
        z-index: 1000 !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
    }

    .site-footer.scrolled {
        background-color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
    }

    .site-footer.shrink {
        padding: 0.8rem 2rem !important;
        font-size: 0.6rem !important;
    }

    /* 1. Shrink the image to leave room for the title and caption */
    .slide img {
        max-height: 55vh !important; 
        max-width: 90% !important;   
    }

    /* 2. Force the caption to perfectly match the new image size */
    .slide-caption {
        width: 90% !important;       /* Matches the 90% width of the image */
        max-width: 90% !important;
        align-self: center !important; /* Centers the text block under the image */
        text-align: left !important;   /* Keeps the actual text left-aligned for easy reading */
        margin-top: 1rem !important;
        box-sizing: border-box !important;
    }
}