/* CSS Reset & Variables */
:root {
    --dark-navy: #2B144C; /* Deep Purple from new screenshot */
    --brand-red: #E87A26; /* Orange from button */
    --brand-red-hover: #D6691A;
    --brand-gold: #F59E0B; /* Yellow/Gold */
    --text-white: #FFFFFF;
    --text-dark: #1A1A24;
    --text-light: #6B7280;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius: 8px;
    --transition: 0.3s ease-in-out;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-navy);
}

a {
    text-decoration: none;
    color: var(--brand-red);
    transition: var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.text-red { color: var(--brand-red) !important; }
.text-gold { color: var(--brand-gold) !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px; /* Made buttons rounder to match screenshot */
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--brand-red-hover);
    color: var(--text-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #E5E7EB;
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--dark-navy);
    color: var(--dark-navy);
}

.btn-block { width: 100%; }

/* Header */
.site-header {
    background-color: var(--dark-navy);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .container {
    max-width: 1400px; /* Give the header more horizontal space */
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--brand-red);
}

.has-dropdown {
    position: relative;
    padding-bottom: 20px; /* Expand hover area */
    margin-bottom: -20px;
}

.has-dropdown svg {
    margin-top: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border-radius: 8px 8px 8px 8px; /* To match screenshot, bottom rounded, top can be flush or rounded */
    box-shadow: var(--shadow-lg);
    width: 380px;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 50;
    border-top: 4px solid var(--brand-red); /* small accent */
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 12px 24px;
    white-space: normal;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #F9FAFB;
}

.dropdown-title {
    color: var(--dark-navy) !important;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.dropdown-desc {
    color: var(--text-light) !important;
    font-size: 0.85rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background-color: var(--dark-navy);
    padding: 80px 0 100px 0;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--brand-gold);
    margin-bottom: 24px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-gold);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 40px;
    max-width: 500px;
    font-family: var(--font-body);
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
}

.hero-main-img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow: var(--shadow-lg);
}

.quick-apply-form {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 340px;
    z-index: 10;
}

.quick-apply-form h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.input-group {
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Scrolling Features Banner */
.features-banner {
    background-color: var(--bg-light);
    border-bottom: 1px solid #E5E7EB;
    overflow: hidden;
    padding: 15px 0;
    white-space: nowrap;
    position: relative;
}

.scrolling-wrapper {
    display: inline-flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.scrolling-wrapper:hover {
    animation-play-state: paused;
}

.scrolling-content {
    display: inline-flex;
    align-items: center;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.separator {
    margin: 0 30px;
    color: #D1D5DB;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Common Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Page Hero for Inner Pages */
.page-hero {
    background-color: var(--dark-navy);
    padding: 80px 0 60px 0;
    text-align: center;
    border-bottom: 4px solid var(--brand-red);
}
.page-hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 16px;
}
.page-hero p {
    color: #D1D5DB;
    font-size: 1.25rem;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid #E5E7EB;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #FEF2F2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box.dark {
    background-color: var(--dark-navy);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Pathways */
.pathway-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.pathway-desc {
    margin-bottom: 20px;
}

.age-tag {
    display: inline-block;
    color: var(--brand-red);
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background-color: #F3F4F6;
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Admissions Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.step .icon-box.large {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
}

.step-number {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* -------------------------------------
   NEW TESTIMONIALS SECTION
--------------------------------------*/
.testimonials-wrapper {
    background-color: var(--dark-navy);
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.testimonials-title h2 {
    font-size: 4rem;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-weight: 800;
}

.testimonials-title .text-gold {
    color: var(--brand-gold) !important;
}

.testimonials-title p {
    color: #D1D5DB;
    font-size: 1.25rem;
    margin-bottom: 32px;
}

/* Photo Scroller */
.photo-scroller-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.photo-scroller {
    display: inline-flex;
    gap: 20px;
    animation: scroll-left 30s linear infinite;
}

.photo-scroller:hover {
    animation-play-state: paused;
}

.photo-scroller img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

/* Vertical Scrolling Cards */
.scrolling-columns-wrapper {
    display: flex;
    gap: 24px;
    height: 600px;
    overflow: hidden;
    position: relative;
    /* Fade out top and bottom for smooth effect */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.scroll-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: scroll-up 20s linear infinite;
}

/* Make columns scroll at different speeds or start points */
.scroll-column:nth-child(2) {
    animation-duration: 25s;
    animation-direction: reverse; /* One goes down, others up */
}
.scroll-column:nth-child(3) {
    animation-duration: 22s;
}

.scroll-column:hover {
    animation-play-state: paused;
}

.testimony-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /* Add gradient overlay at top */
    background: linear-gradient(180deg, #EAE5F2 0%, #FFFFFF 30%);
}

.testimony-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.testimony-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimony-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimony-info h4 {
    color: var(--dark-navy);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin: 0;
}

.testimony-info span {
    color: var(--text-light);
    font-size: 0.85rem;
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Footer Section */
.site-footer {
    background-color: #1A0D2E; /* Darker purple for footer */
    padding: 80px 0 40px 0;
    color: #9CA3AF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo h4 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.25rem;
    margin: 0;
}

.footer-logo span {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-heading {
    color: var(--brand-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col a {
    color: #9CA3AF;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--brand-gold);
}

.contact-col li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.95rem;
}

.contact-col svg {
    margin-top: 4px;
    min-width: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { gap: 30px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-header-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-header { position: relative; }
    .main-nav { 
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-navy);
        padding: 20px;
        z-index: 100;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
    .main-nav.active { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    .has-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        border-top: none;
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 10px;
    }
    .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu {
        display: block;
    }
    .dropdown-title, .dropdown-desc {
        color: var(--text-white) !important;
    }
    .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
    }
    .login-btn { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero p { margin: 0 auto 32px auto; }
    .hero-form-wrapper { width: 100%; max-width: 500px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .steps-container { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .scrolling-columns-wrapper { flex-direction: column; height: auto; mask-image: none; -webkit-mask-image: none; }
    .scroll-column { animation: none; gap: 20px; }
    
    .hero-image-wrapper { width: 100%; margin-top: 20px; }
    .quick-apply-form {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 20px;
    }
}

/* =========================================
   SCHOOL LIFE PAGE STYLES
========================================= */

.school-life-hero {
    background: linear-gradient(135deg, #E6E0F8 0%, #FFFFFF 100%);
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid #E5E7EB;
}
.school-life-hero .badge {
    background-color: #FEF3C7;
    color: var(--brand-gold);
    border: none;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}
.school-life-hero h1 {
    font-size: 4rem;
    color: var(--dark-navy);
    margin-bottom: 16px;
}
.school-life-hero p {
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Schedule Table */
.schedule-tabs {
    display: flex;
    background-color: #F3F4F6;
    border-radius: 8px;
    margin: 40px auto 20px;
    max-width: 800px;
    padding: 4px;
}
.schedule-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-light);
    transition: all 0.3s ease;
}
.schedule-tab.active {
    background-color: #FFFFFF;
    color: var(--dark-navy);
    box-shadow: var(--shadow);
}
.schedule-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}
.schedule-content.active {
    display: block;
}
.schedule-row {
    display: flex;
    padding: 16px 24px;
    border: 1px solid #E5E7EB;
    border-top: none;
    background: #FFFFFF;
}
.schedule-row:first-child {
    border-top: 1px solid #E5E7EB;
    border-radius: 8px 8px 0 0;
}
.schedule-row:last-child {
    border-radius: 0 0 8px 8px;
}
.schedule-time {
    width: 150px;
    font-weight: 600;
    color: var(--dark-navy);
}
.schedule-activity {
    flex: 1;
    color: var(--text-light);
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.activity-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}
.activity-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-red);
}
.activity-icon {
    width: 40px;
    height: 40px;
    background-color: #FEF2F2;
    color: var(--brand-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.activity-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-navy);
    margin-bottom: 12px;
}
.activity-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.activity-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.activity-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Club Grid */
.club-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.club-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
}
.club-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-gold);
}
.club-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.club-icon {
    width: 48px;
    height: 48px;
    background-color: #FEF9C3;
    color: var(--brand-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.club-title h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark-navy);
    margin-bottom: 8px;
}
.club-day {
    display: inline-block;
    background-color: #F3F4F6;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-navy);
}
.club-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .club-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .activity-grid, .club-grid { grid-template-columns: 1fr; }
    .schedule-row { flex-direction: column; gap: 8px; }
    .school-life-hero h1 { font-size: 2.5rem; }
}
