/* General Reset & Base Styles */

/* Responsive visibility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    background-color: #f7f8fa;
    color: #00063d;
    line-height: 1.2;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button {
    transition: all 0.3s ease-in-out;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0; /* Base padding is 0 */
}

/* Header */
.main-header {
    width: 100%;
    background: #fff;
    padding: 0;
    z-index: 1000;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.site-logo {
    color: #fa4028;
    font-family: 'Georgia', serif;
    font-size: 30px;
    font-weight: 500;
    text-decoration: none;
}

/* Mobile-first: Hide desktop nav, show mobile controls */
.header-main-nav {
    display: none;
}

.header-nav {
    display: none;
}

.header-right {
    display: none;
}

.mobile-header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-header-controls .social-icon {
    display: flex;
    align-items: center;
}

.mobile-header-controls .social-icon img {
    width: 24px;
    height: 24px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 3px 0;
    background: #fa4028;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: flex;
    position: fixed;
    top: 64px; /* Position below header */
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.mobile-nav .nav-link {
    font-size: 22px;
    font-weight: 500;
    color: #222a44;
    text-decoration: none;
}

.mobile-nav .cta-btn {
    background: #fa4028;
    color: #fff;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
}



/* === HERO SLIDER (REVISED) === */
.hero-slider-section {
    background-color: #f2f2f3;
    overflow: hidden;
    position: relative;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* Hero Navigation Buttons */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-nav-btn svg {
    color: #00063d;
}

/* Hero Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    justify-content: center;
    width: 100%;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.active {
    background: #fa4028;
    border-color: #fa4028;
}

@media (max-width: 768px) {
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
    
    .hero-slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-dot {
        width: 12px;
        height: 12px;
    }
}


.hero-slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

.hero-slide {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-top: 20px; /* Push down from header */
}

.hero-text {
    text-align: center;
    color: #00063d;
    padding: 0 24px 20px 24px;
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    display: block;
    width: 100%;
    font-size: clamp(24px, 6vw, 36px) !important;
    font-family: 'Georgia', serif;
    font-weight: 400;
    line-height: 1.25;
    color: #00063d;
    margin-bottom: 16px;
    word-wrap: break-word;
    white-space: normal !important;
    max-width: 1600px !important;
    overflow: visible !important;
    text-overflow: unset !important;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin: 0 auto 16px auto;
}

.hero-description {
    font-size: clamp(16px, 4vw, 18px) !important;
    line-height: 1.5;
    color: #00063d;
    max-width: 100% !important;
    margin: 0 auto 24px;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-wrap: break-word;
}


.hero-image-wrapper {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    min-height: 400px;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1200px) {
    .hero-image {
        object-position: center center;
        min-height: 350px;
    }
}

@media (max-width: 992px) {
    .hero-image {
        object-position: center center;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-image {
        object-fit: cover;
        object-position: center center;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        object-fit: cover;
        object-position: center center;
        min-height: 200px;
    }
}

.hero-slider {
    transform: translateX(0);
}





.highlight1 { background: #82CBFF; border-radius: 0.2em; padding: 0 4px; }
.highlight2 { background: #FFD6FF; border-radius: 0.2em; padding: 0 4px; }
.highlight3 { background: #DCF2C9; border-radius: 0.2em; padding: 0 4px; }
.highlight4 { background: #f9f1cd; border-radius: 0.2em; padding: 0 4px; }

/* Sections */
.section {
    padding: 8px 0;
}

.section-content-wrapper {
     padding: 0 24px;
     width: 100%;
     margin: 0 auto;
} 

.section-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 24px; /* Add padding to headers */
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-family: 'Georgia', serif;
    font-weight: 800;
    color: #00063d;
    margin-bottom: 12px;
    overflow-wrap: normal;
}

.section-subtitle {
    font-size: clamp(16px, 2.5vw, 18px);
    font-family: 'Georgia', serif;
    color: #00063d;
    max-width: 1100px;
    margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 32px auto;
}

.filter-btn {
    background: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn.active {
    background-color: #fa4028;
    color: #fff;
    border-color: #fa4028;
}

@media (min-width: 768px) {
    .filter-buttons {
        display: flex;
        max-width: none;
        justify-content: center;
        margin-bottom: 40px;
    }
}




/* Desktop Styles */
@media (min-width: 1024px) {
    .mobile-header-controls {
        display: none;
    }

    .header-main-nav {
        display: contents;
    }

    .header-nav {
        display: flex;
        gap: 24px;
        justify-content: center;
        flex-grow: 1;
    }

    .header-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
}

@media (min-width: 600px) {
  .predictions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .predictions-grid {
    grid-template-columns: repeat(8, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    min-height: 280px;
  }
  
  .prediction-card {
    min-height: 120px;
    max-height: 120px;
  }
  
  .card-content {
    padding: 0px;
  }
  
  .card-title {
    font-size: 23.2px;
    margin-bottom: 6px;
    line-height: 1.3;
  }
}

.prediction-card {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prediction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.prediction-card.placeholder {
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
    border: none;
    opacity: 0;
}
.prediction-card.green { background-color: #e6ffd9; }
.prediction-card.orange { background-color: #ffe8e2; }
.prediction-card.blue { background-color: #ceebff; }
.prediction-card.yellow { background-color: #fffbb7; }

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}
.card-title {
    font-family: 'Georgia', serif !important;
    font-size: 23.2px;
    font-weight: 600;
    margin-bottom: 8px;
    flex-grow: 1;
}

.card-action {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.prediction-card:hover .card-action {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.open-icon {
    color: #00063d;
    transition: color 0.3s ease;
    width: 16px;
    height: 16px;
}

.prediction-card:hover .open-icon {
    color: #fa4028;
}

/* Concepts Grid */
.concepts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.concepts-grid img {
    width: 100%;
    border-radius: 8px;
}

/* Learning Grid */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.learning-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Prediction Pages */
.prediction-page {
    padding: 40px 0;
    background-color: #f7f8fa;
    min-height: calc(100vh - 64px);
}

.prediction-content {
    max-width: 1212px;
    margin: 0 auto;
    padding: 0 0px;
}

.prediction-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #fa4028;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #d63520;
}

.prediction-title {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 800;
    color: #00063d;
    margin-bottom: 24px;
    line-height: 1.1;
    text-align: center;
    background: linear-gradient(135deg, #00063d 0%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prediction-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.prediction-subtitle {
    text-align: center;
    margin-bottom: 20px;
}

.prediction-subtitle p {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.prediction-category {
    background: #fa4028;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prediction-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    position: relative;
    overflow: hidden;
}

.prediction-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.prediction-body p {
    margin-bottom: 20px;
}

.prediction-body h2 {
    font-family: 'Georgia', serif;
    font-size: 28px;
    color: #00063d;
    margin: 32px 0 16px 0;
}

.prediction-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #00063d;
    margin: 0;
    line-height: 1.4;
}

.prediction-image-container {
    margin-bottom: 32px;
    text-align: center;
}

.prediction-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.prediction-text ul {
    margin: 16px 0;
    padding-left: 24px;
}

.prediction-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Two Column Layout for Predictions */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 32px;
    padding: 0 20px;
}

/* Single Prediction Layout */
.single-prediction-layout {
    max-width: 600px;
    margin: 32px auto 0;
    text-align: center;
}

.single-prediction-layout .prediction-text-enhanced {
    margin-bottom: 32px;
}

.single-prediction-layout .prediction-item {
    display: inline-block;
    position: relative;
}

.column-left,
.column-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.column-left .prediction-image,
.column-right .prediction-image {
    margin-bottom: 0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column-left .prediction-image:hover,
.column-right .prediction-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.column-left .prediction-text,
.column-right .prediction-text {
    margin-bottom: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 12px;
    border-left: 4px solid #00063d;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Timeline Header */
.prediction-timeline {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header {
    position: relative;
    display: inline-block;
}

.timeline-badge {
    background: linear-gradient(135deg, #00063d 0%);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(0,6,61,0.3);
    position: relative;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00063d 50%, transparent 100%);
    z-index: 1;
}

/* Enhanced Prediction Items */
.prediction-item {
    position: relative;

}

.prediction-step {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fa4028 0%, #d63520 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(250,64,40,0.4);
    z-index: 3;
    border: 3px solid white;
}

.prediction-text-enhanced {
    margin-bottom: 0;
    padding: 24px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 16px;
    border: 2px solid #e8f0ff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.prediction-text-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fa4028 0%, #00063d 100%);
}

.text-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.timestamp {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(0,6,61,0.1);
    border-radius: 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    .prediction-image-container {
        margin-bottom: 24px;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    
    .column-left .prediction-text,
    .column-right .prediction-text {
        padding: 16px;
    }
    
    .prediction-text-enhanced {
        padding: 20px;
    }
    
    .prediction-body h3 {
        font-size: 16px;
    }
    
    .prediction-step {
        width: 32px;
        height: 32px;
        font-size: 14px;
        top: -8px;
        left: -8px;
    }
    
    .timeline-line {
        width: 150px;
    }
    
    .timeline-badge {
        padding: 10px 24px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .prediction-page {
        padding: 20px 0;
    }
    
    .prediction-content {
        padding: 0 16px;
    }
    
    .prediction-body {
        padding: 0px;
        font-size: 16px;
    }
    
    .prediction-title {
        font-size: clamp(24px, 8vw, 36px);
    }
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.learning-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.learning-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.learning-card-title { font-size: 20px; font-family: 'Georgia', serif; font-weight: 500; margin-bottom: 8px; }
.learning-card-description { font-size: 16px; margin-bottom: 16px; flex-grow: 1; }
.learning-link { display: inline-flex; align-items: center; gap: 8px; color: #fa4028; text-decoration: none; font-weight: 500; margin-top: auto; }
.link-icon { width: 16px; height: 16px; }
.learning-card:nth-child(1) { background-color: #e3f2fd; }
.learning-card:nth-child(2) { background-color: #fce4ec; }
.learning-card:nth-child(3) { background-color: #e8f5e9; }
.learning-card:nth-child(4) { background-color: #fff9c4; }
.learning-card:nth-child(5) { background-color: #ffe0b2; }
.learning-card:nth-child(6) { background-color: #ede7f6; }

/* Author/Publications Section */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    border: 1px solid #ccc;
    border-radius: 0;
    text-align: center;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .publications-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 0 0px;
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .publications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile: 2x2 grid */
@media (max-width: 767px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 0px;
    }
}
.book-card img { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 3/4;
    object-fit: cover;
}

.book-card h3 { 
    font-size: clamp(12px, 2vw, 16px); 
    font-weight: 700; 
    margin: 12px 0 8px; 
    padding: 0 12px; 
    line-height: 1.3;
    flex-grow: 1;
}

.book-card a, .book-card p { 
    color: #f44336; 
    font-weight: 600; 
    font-size: clamp(12px, 1.8vw, 14px); 
    text-decoration: none; 
    padding: 8px 12px 16px; 
    margin-top: auto;
    transition: color 0.3s ease;
}

.book-card a:hover {
    color: #d32f2f;
}



.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
    padding: 0 24px;
  }
  
  .collage-grid .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }
  
  /* === Custom Layout Matching Reference === */
  .item1 { grid-column: 1 / 2; grid-row: 1 / span 2; } /* tall white bldg */
  .item2 { grid-column: 2 / 3; grid-row: 1 / 2; }       /* ferris wheel */
  .item3 { grid-column: 3 / 4; grid-row: 1 / span 2; } /* pink sea sky */
  .item4 { grid-column: 4 / 5; grid-row: 1 / 2; }       /* girl on boat */
  .item5 { grid-column: 2 / 3; grid-row: 2 / 3; }       /* beach walking */
  .item6 { grid-column: 1 / 2; grid-row: 3 / 4; }       /* pink slide */
  .item7 { grid-column: 2 / 3; grid-row: 3 / 4; }       /* table set */
  .item8 { grid-column: 3 / 4; grid-row: 3 / 4; }       /* palm tree */
  .item9 { grid-column: 4 / 5; grid-row: 2 / span 2; }  /* confetti guy */
  
  @media (max-width: 768px) {
    .collage-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      padding: 0 16px;
      grid-auto-flow: row dense;
    }
  
    .collage-grid img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 6px;
    }
  
    .collage-grid .img[class*="item"] {
      grid-column: auto !important;
      grid-row: auto !important;
    }
  }
  

  .img.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }
  
  .img.visible {
    opacity: 1;
    transform: translateY(0);
  }

/* Quotes Slider */
.quotes-slider-section {
    overflow: hidden;
    width: 100%;
    background: #fff;
    padding: 24px 0; /* spacing handled via CSS instead of <br> */
    position: relative;
}
.quotes-slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot:hover {
    background: #999;
}
.dot.active {
    background: #ff5a3c;
}
.quotes-slide {
    width: 100%;
    flex-shrink: 0;
}
.quotes-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Journey Section */
.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.image-grid img {
    width: 100%;
    border-radius: 8px;
}

/* Contact Section */
.contact-section {
    background: #fff4f1;
    padding: 60px 0;
}
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-title {
    font-size: clamp(28px, 5vw, 42px);
    font-family: 'Georgia', serif;
    font-weight: 500;
    color: #00063d;
    line-height: 1.2;
    overflow-wrap: break-word;
}
.contact-form-wrapper {
    background: #ffe7e2;
    padding: 30px;
    border-radius: 12px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #fa4028;
    box-shadow: 0 0 0 3px rgba(250, 64, 40, 0.15);
}
.contact-form button {
    width: 100%;
    padding: 14px;
    background: #fa4028;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background: #d63520;
}

/* Footer */
.footer {
    background: #1c1c1c;
    padding: 24px 0; /* Removed horizontal padding */
    text-align: center;
    color: #fff;
    font-size: 14px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-slider,
    .quotes-slider {
        transition: none !important;
    }
    .img.fade-in {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .header-container {
         padding: 0; /* Ensure no padding on larger screens */
    }
    .site-logo {
        padding-left: 22px; /* Adjust padding for larger screens */
    }
    .header-right {
         padding-right: 22px; /* Adjust padding for larger screens */
    }
    .header-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }
    .nav-link {
        color: #222a44;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: color 0.2s;
    }
    .nav-link:hover {
        color: #fa4028;
    }
    .header-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .header-link img {
        transition: transform 0.2s;
    }
    .header-link:hover img {
        transform: scale(1.1);
    }
    .cta-btn {
        background: #fa4028;
        color: #fff;
        font-size: 14px;
        font-weight: 500;
        border: none;
        border-radius: 4px;
        padding: 8px 16px;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.2s;
    }
    .cta-btn:hover {
        background: #d63520;
    }

    .predictions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .concepts-grid, .learning-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }
    .contact-content, .contact-form-wrapper {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .header-main-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
    }
    .header-right {
        display: flex;
        align-items: center;
        gap: 16px;
        justify-content: center;
    }
    .hamburger {
        display: none;
    }
    .predictions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .concepts-grid, .learning-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .section-content-wrapper, .header-container {
        max-width: none;
        width:100%
    }

    .hero-text {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1400px) {
    .section-content-wrapper, .header-container {
        max-width: none;
        width:100%    }

    .hero-text {
        max-width: 900px;
    }
}


.slider-wrapper {
    position: relative;
    overflow: hidden;
  }
  
.slide-group {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    row-gap: 24px;
  }
  
  .slide-group.active {
    display: flex;
  }
  
  .slide-group .prediction-card {
    flex: 1 1 calc(25% - 24px); /* 4 cards per row */
    max-width: calc(25% - 24px);
  }
  
  @media (max-width: 1024px) {
    .slide-group .prediction-card {
      flex: 1 1 calc(50% - 24px);
      max-width: calc(50% - 24px);
    }
  }
  
  @media (max-width: 600px) {
    .slide-group .prediction-card {
      flex: 1 1 100%;
      max-width: 100%;
    }
  }

/* Enhanced Contact Section Styles */
.contact-section-enhanced {
    padding: 40px 30px;
    background: #fff4f1;
    font-family: 'Inter', sans-serif;
}

.contact-wrapper-enhanced {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    margin: auto;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
}

.contact-content-enhanced {
    flex: 1;
    min-width: 280px;
    max-width: 550px;
}

.contact-title-enhanced {
    font-size: 36px;
    color: #00063d;
    font-family: Georgia, serif;
    font-weight: 800;
    margin-bottom: 24px;
}

.contact-description {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-list {
    list-style-type: disc;
    margin-left: 20px;
    color: #000;
    font-size: 15px;
    line-height: 1.7;
}

.contact-form-container {
    flex: 1;
    min-width: 100px;
    background-color: #ffe4de;
    padding: 10px 16px;
    border-radius: 8px;
}

.contact-form-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00063d;
}

.contact-form-enhanced .form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-form-enhanced .form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form-enhanced .form-textarea {
    width: 100%;
    padding: 10px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form-enhanced .form-hidden {
    display: none;
}

.contact-disclaimer {
    font-size: 12px;
    color: #555;
    margin-top: 16px;
}

.contact-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #00063d;
    color: white;
    border: none;
    margin-top: 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-submit-btn:hover {
    background-color: #000428;
}