/* 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: 'Inter', Arial, sans-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-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: 20px;
    flex: 1; /* Makes it stretch to available width */
    max-width: 100%;
    width: 100%;
}

.hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-family: 'Georgia', serif;
    font-weight: 400;
    line-height: 1.25;
    color: #00063d;
    margin-bottom: 16px;
    word-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.hero-description {
    font-size: clamp(16px, 2vw, 16px);
    line-height: 1.5;
    color: #00063d;
    max-width: none;
    margin: 0 auto 24px;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover if you prefer full fill with cropping */
    object-position: center center;
    display: block;
}
@media (max-width: 768px) {
  .hero-image {
    object-fit: cover;
    object-position: top center;
  }
}

.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: 20px 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: 900px;
    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: 1fr;
    gap: 24px;
}

.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.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: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    flex-grow: 1;
}
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: auto;
}
.card-year {
    font-size: 14px;
    font-weight: 700;
    color: #00063d;
}
.card-description {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 4px;
}
.card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* 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;
}
.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: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: stretch;
    margin: 0;
    padding-left: 28px;
    padding-right: 28px;
    padding-top: 0;
    padding-bottom: 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #fff;
}

.book-card {
    border: 1px solid #ccc;
    
    flex: 1 1 0;
    min-width: 280px;
    max-width: 100%;
    border-radius: 6px;
    text-align: left;
    background: #fff;
}
.book-card img { width: 100%; height: auto; }
.book-card h3 { font-size: 13px; font-weight: 700; margin: 12px 0 0px; padding: 6px 6px 6px; }
.book-card a, .book-card p { color: #f44336; font-weight: 600; font-size: 14px; text-decoration: none; padding: 6px 6px 6px; }



.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;
}
.quotes-slider {
    display: flex;
    transition: transform 0.8s ease-in-out;
}
.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;
}

/* 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;
    }
}
