/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Navigation */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    gap: 15px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    margin-top: 3px;
}

.logo h1 {
    font-size: 1.1em;
    color: #0d141a;
    font-weight: 600;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    line-height: 1;
}

.main-nav {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s, background-color 0.3s;
    padding: 8px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #56585e;
    background: #e0e0e0;
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a {
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    padding: 8px 10px;
    margin-left: 40px;
}

/* Dropdown indicator arrow */
.has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s;
    vertical-align: middle;
    opacity: 0.7;
}

.has-dropdown.active > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    min-width: 650px;
    width: max-content;
    max-width: 700px;
    padding: 4px 0;
    margin-top: 5px;
    z-index: 1001;
    list-style: none;
    flex-direction: column;
    overflow: visible;
    opacity: 0;
    pointer-events: none;
    transition: none;
}

/* ONLY show dropdown when active (click/touch) - NO hover */
.has-dropdown.active .dropdown {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

.dropdown li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
    min-height: auto;
    white-space: nowrap;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    width: 100%;
    text-align: left;
    transition: background-color 0.2s;
}

.dropdown a:hover {
    background: #f5f5f5;
}

/* Hero Section */
.hero {
    background: #f8f9fa;
    color: #333;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.hero h2 {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
    color: #0d141a;
}

.hero-subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #444;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: rgb(98, 202, 236);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(98, 202, 236, 0.3);
}

.btn-primary:hover {
    background: rgb(75, 185, 220);
    box-shadow: 0 4px 10px rgba(98, 202, 236, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgb(98, 202, 236);
    color: #fff;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(98, 202, 236, 0.3);
}

.btn-secondary:hover {
    background: rgb(75, 185, 220);
    box-shadow: 0 4px 10px rgba(98, 202, 236, 0.4);
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 50px 20px;
}

/* Reduce padding for Course Programme section */
.section:first-of-type {
    padding-top: 30px;
    padding-bottom: 30px;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    font-size: 1.8em;
    color: #0d141a;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 600;
}

.section-image {
    margin: 0 auto 30px;
    text-align: center;
    max-width: 100%;
}

.section-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Programme Grid */
.programme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

/* Programme Cards */
.programme-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-align: center !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.programme-image {
    margin: -30px -30px 20px -30px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.programme-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.programme-card h3 {
    color: #0d141a;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center !important;
}

.programme-card p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
    text-align: center !important;
    color: #1a1a1a;
}

.programme-card em {
    color: #333;
    display: block;
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    font-style: normal;
    text-align: center !important;
    font-weight: 500;
}

.programme-card .btn {
    text-align: center;
    display: block;
    margin: 20px auto 0;
    width: auto;
}

/* Facilitators Grid */
.facilitators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

.facilitator-item {
    display: contents;
}

.facilitator-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.facilitator-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facilitator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.facilitator-card h3 {
    color: #0d141a;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
}

.facilitator-card p {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}

.facilitator-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.facilitator-card:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.facilitator-card:last-child .facilitator-photo {
    width: 100%;
    height: 200px;
    margin-bottom: 0;
}

.facilitator-card:last-child h3,
.facilitator-card:last-child p {
    grid-column: span 2;
}

/* Responsive for facilitators */
@media (max-width: 1024px) {
    .facilitators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        column-count: 2;
    }
}

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

/* Testimonials */
.testimonials-grid {
    margin: 30px auto 0;
    column-count: 3;
    column-gap: 30px;
}

.testimonial {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    transition: none;
    break-inside: avoid;
    margin-bottom: 30px;
}

.testimonial:hover {
    transform: none;
    box-shadow: none;
}

.testimonial::before {
    display: none;
}

.testimonial p {
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
    position: relative;
    z-index: 1;
}

.testimonial p:last-of-type:not(.testimonial-author) {
    margin-bottom: 0;
}

.testimonial-author {
    font-weight: 600;
    color: #0d141a;
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    font-size: 16px;
    text-align: left;
}

.testimonial-author strong {
    color: #0d141a;
    font-weight: 600;
}

/* Content Block */
.content-block {
    margin: 0 auto;
}

/* Why Choose Us Layout - CSS Grid */
#why-choose-us .content-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    gap: 40px;
    align-items: start;
    max-width: 1200px; /* Prevent content from being too wide */
    margin: 0 auto;
}

.why-choose-us-image {
    grid-column: 2;
    grid-row: 1 / -1;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    align-self: start;
    position: sticky;
    top: 100px; /* Sticky positioning for better UX */
}

.content-text {
    grid-column: 1;
    min-width: 0; /* Prevent grid blowout */
}

.content-text:first-of-type {
    margin-bottom: 0;
}

.content-text:last-of-type {
    margin-top: 0;
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.content-block h3 {
    color: #0d141a;
    margin: 30px 0 18px;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
}

.features-list {
    list-style: disc;
    margin-top: 20px;
    padding-left: 20px;
}

.features-list li {
    margin-bottom: 14px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}


/* FAQ - CSS Grid Layout */
.faq-list {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1200px; /* Prevent content from being too wide */
    margin: 0 auto;
}

.faq-image {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 100px; /* Sticky positioning so image stays visible while scrolling */
    align-self: start;
}

.faq-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0; /* Prevent grid blowout */
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    color: #0d141a;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item:first-child {
    margin-top: 0;
}

.faq-item p {
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 16px;
    color: #1a1a1a;
}

.faq-item ul {
    margin-left: 25px;
    margin-top: 10px;
}

.faq-item li {
    margin-bottom: 8px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}

.pricing-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
}

.pricing-box p {
    margin-bottom: 10px;
    font-size: 15px;
}

/* Contact Form */
.contact-form {
    margin: 30px auto;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d141a;
    font-size: 16px;
}

.radio-group .radio-label,
.form-group .radio-group .radio-label {
    font-weight: normal !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgb(184, 192, 204);
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #ffffff;
    color: #0d141a;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgb(75, 79, 88);
}

.contact-form button[type="submit"] {
    display: block;
    margin: 0 auto;
}

.form-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    min-height: 28px;
}

.radio-label:hover {
    background-color: #f5f5f5;
}

.radio-label input[type="radio"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0d141a;
    border: 2px solid rgb(184, 192, 204);
    border-radius: 50%;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    vertical-align: middle;
}

.radio-label input[type="radio"]:checked {
    border-color: #0d141a;
    background-color: #fff;
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0d141a;
}

.radio-label input[type="radio"]:focus {
    outline: 2px solid rgb(75, 79, 88);
    outline-offset: 2px;
    border-color: rgb(75, 79, 88);
}

.text-center {
    text-align: center;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Location */
.location-header {
    margin-bottom: 30px;
    text-align: center;
}

.location-header h3 {
    color: #0d141a;
    margin-bottom: 12px;
    font-size: 1.5em;
    font-weight: 600;
}

.location-header p {
    font-size: 16px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 0;
}

.location-visuals {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Map 2/3, Image 1/3 */
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.location-map {
    width: 100%;
    height: 450px; /* Fixed height to match image size */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.location-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f5f5f5;
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
}

.location-details {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-top: 30px;
}

.location-details h4 {
    color: #0d141a;
    margin: 20px 0 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.location-details p {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}

.location-note {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 4px;
    margin: 18px 0;
}

.location-details ul {
    margin-left: 25px;
}

.location-details li {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}

/* Footer */
.site-footer {
    background: rgb(245, 245, 245);
    color: #0d141a;
    padding: 25px 20px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
        display: none;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .has-dropdown.active .dropdown {
        display: block !important;
    }
    
    /* Disable hover completely on mobile */
    .has-dropdown:hover .dropdown {
        display: none !important;
    }
    
    /* Allow text wrapping on mobile for long course names */
    .dropdown a {
        white-space: normal;
        word-wrap: break-word;
        padding: 12px 15px;
        min-height: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }
    
    .dropdown li {
        white-space: normal;
    }
    
    .hero h2 {
        font-size: 1.8em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .section-title {
        font-size: 1.6em;
    }
    
    .facilitators-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        column-count: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .programme-grid {
        grid-template-columns: 1fr;
    }

    /* Why Choose Us - Mobile Grid */
    #why-choose-us .content-block {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-choose-us-image {
        grid-column: 1;
        grid-row: auto;
        max-width: 100%;
        position: static;
        justify-self: center;
    }

    .content-text {
        grid-column: 1;
    }

    /* FAQ - Mobile Grid */
    .faq-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .faq-image {
        grid-column: 1;
        grid-row: auto;
        max-width: 100%;
        position: static;
        justify-self: center;
    }

    .faq-content {
        grid-column: 1;
        grid-row: auto;
    }

    /* Location - Mobile */
    .location-visuals {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .location-map,
    .location-image {
        height: 300px;
    }

}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }
    
    .hero h2 {
        font-size: 1.5em;
    }
    
    .section {
        padding: 35px 15px;
    }
    
    .programme-card,
    .facilitator-card,
    .testimonial {
        padding: 20px;
    }
    
    /* Location - Small Mobile */
    .location-map,
    .location-image {
        height: 250px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgb(98, 202, 236);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgb(75, 185, 220);
    box-shadow: 0 6px 16px rgba(98, 202, 236, 0.4);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Daily Format Section */
.daily-format {
    max-width: 800px;
    margin: 30px auto;
    display: grid;
    gap: 15px;
}

.format-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-left: 4px solid rgb(98, 202, 236);
}

.format-item strong {
    display: block;
    color: #0d141a;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.format-item p {
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
}

/* Session Cards */
.session-card {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}


.session-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.session-header h3 {
    color: #0d141a;
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 15px;
    color: #555;
}

.session-date,
.session-time {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
}

.zoom-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgb(98, 202, 236);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.zoom-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
    flex-shrink: 0;
}


.session-content {
    line-height: 1.8;
}

.session-topics {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    margin-right: 0;
    overflow: visible;
    padding-right: 0;
}

.session-topics li {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
    text-align: left;
}

.session-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
    color: #1a1a1a;
    text-align: left;
}

/* Reduce spacing for Morning/Afternoon headings - override default paragraph margins */
.session-text-content > div > p[style*="margin: 0 0 4px"] {
    margin-bottom: 4px !important;
}

.session-text-content > p[style*="margin-top: 8px"] {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
}

/* Reduce spacing for paragraph immediately following Morning heading */
.session-text-content > div > p[style*="margin: 0 0 4px"] + p {
    margin-top: 0 !important;
}

/* Reduce spacing for paragraph immediately following Afternoon heading */
.session-text-content > p[style*="margin-top: 8px"] + p {
    margin-top: 0 !important;
}

.session-presenter {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 16px;
    color: #0d141a;
    overflow: hidden;
}

.session-presenter strong {
    color: #0d141a;
    font-weight: 600;
}

/* Session Images */
.session-image {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 250px;
    width: auto;
    shape-outside: margin-box;
    clear: right;
}

/* Center Session 1 image vertically - same width as others */
.session-content > div:first-of-type .session-image-centered {
    float: none !important;
    margin: 0 !important;
    max-width: 250px !important;
}

.session-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

/* Constrain maths image height to match Pasifika image - keep same width as other images */
.session-image img[src*="maths-scaled"] {
    width: 250px !important;
    max-width: 250px !important;
    height: 300px !important;
    object-fit: cover;
    object-position: center;
}

.session-image img[src*="pasifika-guy"] {
    width: 250px !important;
    max-width: 250px !important;
}

/* Ensure both Session 1 image containers have same width */
.session-image img[src*="pasifika-guy"],
.session-image img[src*="maths-scaled"] {
    width: 250px !important;
    max-width: 250px !important;
}

/* Vertically centered session image */
.session-image-centered {
    margin-top: 0.5em;
    margin-bottom: 1.5em;
    clear: both;
}

/* Session content with vertically centered image */
.session-content-with-image {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}

.session-text-content {
    flex: 1;
    min-width: 0;
}

.session-image-vertically-centered {
    flex-shrink: 0;
    align-self: center;
}

.session-image-vertically-centered img {
    width: 250px;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}


/* Header image at top of sessions section - should NOT float */
.section-alt > .container > .session-image:first-child {
    float: none;
    margin: 0 auto 30px auto;
    max-width: 100%;
    text-align: center;
}

.section-alt > .container > .session-image:first-child img {
    max-width: 600px;
    margin: 0 auto;
}

.session-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments for session cards */
@media (max-width: 768px) {
    .session-card {
        padding: 20px;
    }
    
    .session-image {
        float: none !important;
        margin: 15px 0 !important;
        max-width: 100% !important;
    }
    
    .session-image img {
        width: 100%;
        max-width: 100%;
    }
    
    .session-content-with-image {
        flex-direction: column;
        align-items: stretch;
    }
    
    .session-image-vertically-centered {
        align-self: center;
        margin: 20px 0;
    }
    
    .session-image-vertically-centered img {
        width: 100%;
        max-width: 300px;
    }
    
    .section-alt > .container > .session-image:first-child {
        margin: 0 auto 30px auto !important;
    }
    
    .session-header h3 {
        font-size: 1.2em;
    }
    
    .session-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .daily-format {
        gap: 12px;
    }
    
    .format-item {
        padding: 15px;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #56585e;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none;
}

.cookie-notice.show {
    display: block;
}

.cookie-notice .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice-content {
    flex: 1;
    min-width: 250px;
}

.cookie-notice p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-notice-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-notice button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.cookie-notice .accept-btn {
    background: #56585e;
    color: #fff;
}

.cookie-notice .accept-btn:hover {
    background: #0d141a;
}

.cookie-notice .decline-btn {
    background: #f5f5f5;
    color: #333;
}

.cookie-notice .decline-btn:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .cookie-notice .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-notice-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-notice button {
        flex: 1;
    }
}
