/* Color Palette & Custom Properties */
:root {
    --primary-color: #1b4d3e;      /* Deep Forest Green */
    --my-color: #fdb813;       /* Vibrant Leaf Green */
    --accent-color: #aa572e;           /* #aa572eVibrant Leaf Green */
    --accent-hover: #005829;       /* Darker active green */
    --light-bg: #e3ebe6;
    --lighter-bg:#fcfbf7;           /* Soft tint background */
    --white: #ffffff;
    --dark-text: #21201f;
    --light-text: #6c757d;
    --border-color: #e0eae3;
    --vi-color: #723625;
    --vii-color: #0b6b80;
    --viii-color: #02532c; 
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--lighter-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Elements */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--my-color);
    color: var(--dark-text);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.section-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

#gallery .section-tag {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.text-green {
    color: var(--my-color);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.logo i {
    color: var(--my-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-text);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(rgba(27, 77, 62, 0.85), rgba(27, 77, 62, 0.85)), 
                url('/images/bg image.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px 20px;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.9rem;
    background-color: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background-color: var(--lighter-bg);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.about-image-wrapper {
    position: relative;
}

.image-placeholder {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* --- Stats Section (Overview) --- */
.stats-section {
    padding: 100px 20px;
    background-color: var(--light-bg); /* Soft green sage tint backdrop */
    display: flex;
    justify-content: center;
}

.stats-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.stats-title {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #b05328; /* Warm orange-brown heading color */
    text-align: left;
    margin-bottom: 15px;
}

.stats-divider {
    border-top: 1px dashed rgba(176, 83, 40, 0.3); /* Dashed accent separator line */
    margin-bottom: 50px;
    width: 100%;
}

.stats-content-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Grid Structure */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 50px;
    column-gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Colored Circular Icons */
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.95rem;
}

.icon-orange { background-color: #c85a2d; }
.icon-blue   { background-color: #1792b5; }
.icon-yellow { background-color: #efa71a; }
.icon-green  { background-color: #589c48; }

/* Large Numbers */
.stat-number {
    font-family: 'Georgia', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #044327; /* Dark Forest Green */
    line-height: 1;
}

/* Description Text */
.stat-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3f4743; /* Warm charcoal slate */
    text-align: left;
    margin-top: 10px;
    max-width: 280px;
}

/*school image styling*/
.school-img {
    width: 100%;
    max-width: 360px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background-color: transparent;
    
    /* Starting state: solid white border frame and standard drop shadow */
    border: 5px solid transparent;  
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); 
    
    /* Configured for smooth transition on hover animation properties */
    transition: transform 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

/* Ensure the image fills the rectangle perfectly */
.school-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* --- Interactive Hover State with Glow Effect --- */
.school-img:hover {
    transform: translateY(-5px);
    
    /* Smoothly transitions the frame border to your primary green */
    border-color: var(--accent-hover); 
    
    /* Combines standard depth shadow with an outer primary-colored glow */
    box-shadow: 0 0 25px var(--accent-hover), 
                0 15px 35px rgba(0, 0, 0, 0.15); 
}

/* Gentle image scale adjustment on hover */
.school-img:hover img {
    transform: scale(1.03);     
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .stats-content-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
     .school-img {
        max-width: 320px;
        height: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }
}

/* Why Choose Us & Grid Layouts */
.why-us-section {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    background-color: var(--lighter-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.card-img-placeholder {
    height: 180px;
    overflow: hidden;
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.why-card:hover .card-img-placeholder img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    text-align: center;
    position: relative;
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.card-content h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
}

/* Quick Links Card Section */
/* --- Quick Links Cards Section --- */
.quick-links {
    padding: 80px 20px;
    background-color: var(--lighter-bg);
}

.four-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Default state for all four cards */
.link-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: background-color 0.4s ease, 
                border-color 0.4s ease, 
                transform 0.4s ease, 
                box-shadow 0.4s ease;
}

.link-card .icon {
    font-size: 2rem;
    color: var(--vii-color);
    align-self: flex-start;
    transition: color 0.4s ease;
}

.link-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
}

.link-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    transition: color 0.4s ease;
}

.link-card .btn-text {
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-top: auto;
    transition: color 0.4s ease;
}

/* --- Green Hover States Applied to All Four Cards --- */
.link-card:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(27, 77, 62, 0.15);
}

.link-card:hover .icon {
    color: var(--white);
}

.link-card:hover h3 {
    color: var(--white);
}

.link-card:hover p {
    color: rgba(255, 255, 255, 0.85);
}

.link-card:hover .btn-text {
    color: var(--white);
}

/* Programs Tab System */
.programs-section {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--my-color);
    color: var(--white);
    border-color: var(--my-color);
}

.tab-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.tab-panel.active {
    display: block;
    opacity: 1;
}

.program-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr;
    gap: 40px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.program-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--lighter-bg);
}

.program-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-info p {
    color: var(--light-text);
    margin-bottom: 25px;
}

.program-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Academic Calendar Section */
/* --- Nepali Calendar & Holidays Section --- */
.calendar-section {
    padding: 100px 20px;
    background-color: var(--lighter-bg); /* Soft green-tinted background */
}

.calendar-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Calendar Card Wrapper */
.calendar-card {
    background-color: var(--lighter-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.iframe-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.calendar-credit {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

.calendar-credit span, 
.calendar-credit a {
    color: var(--light-text);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.calendar-credit a:hover {
    color: var(--accent-color);
}

/* Holiday Widget Card Wrapper */
.holidays-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    min-height: 395px;
    transition: var(--transition);
}

.holidays-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.holidays-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-bg);
}

/* Styling the incoming external holidays widget content */
.holidays-widget-wrapper {
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
}

/* Custom adjustments for external widget list elements (if allowed by third-party wrappers) */
#np_widget_wiz1 {
    width: 100% !important;
    font-family: var(--font-body) !important;
}

#np_widget_wiz1 ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#np_widget_wiz1 li {
    padding: 12px 15px;
    background-color: var(--light-bg);
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 850px) {
    .calendar-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calendar-card, 
    .holidays-card {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}


/* --- Testimonials Manual Carousel --- */
/* --- Testimonials Manual Carousel (Fixed layout) --- */
.testimonials-section {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.testimonial-slider-wrapper {
    max-width: 800px; /* Limits the slider width */
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* 1. Strictly enforces the boundary window mask */
.testimonial-carousel {
    width: 100%;
    overflow: hidden !important; /* Hides adjacent slides completely */
    border-radius: 20px;
    position: relative;
}

/* 2. Flex track translating horizontally */
.testimonial-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 3. Slide container with strict size constraints and vertical stacking */
.testimonial-slide {
    width: 100%;
    min-width: 100%; /* Forces each slide to occupy exactly 100% of the viewport window */
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 50px 40px;
    background-color: var(--lighter-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    
    /* Layout correction: stacks elements vertically and forces normal wrapping */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    white-space: normal !important; /* Fixes the horizontal text spillover */
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

/* 4. Strictly controlled quote wrapping rules */
.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 30px;
    
    /* Enforces paragraph wrapping on all display ratios */
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    width: 100%;
}

.testimonial-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    flex-shrink: 0; /* Prevents avatar shape from distorting */
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    text-align: left; /* Align info text nicely next to avatar */
}

.user-info h4 {
    font-size: 1.05rem;
    color: var(--dark-text);
    margin: 0;
    font-weight: 700;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--light-text);
    display: block;
}

/* Navigation Controls Styling */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Progress indicator Dots */
.slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

/* Active dot morphs into an expanding pill shape */
.slider-dots .dot.active {
    background-color: var(--my-color);
    width: 24px;
    border-radius: 10px;
}

@media (max-width: 600px) {
    .testimonial-slide {
        padding: 35px 20px;
    }
    .testimonial-text {
        font-size: 1rem;
    }
}

/* --- Principal Message & Visit Us Section --- */
.principal-visit-section {
    padding: 100px 20px;
    background-color: var(--lighter-bg);
}

.two-col-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Left column is slightly wider than right column */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Cards will match heights naturally */
}

/* Individual Card Styling */
.principal-card, 
.visit-card {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
}

.principal-card h2, 
.visit-card h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Principal Message Content */
.message-content {
    margin-bottom: 35px;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    color: var(--dark-text);
    line-height: 1.6;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.message-body {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* Principal Profile Footer Detail */
.principal-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* Pushes profile block cleanly to the bottom */
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.principal-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Perfect rounded circle */
    overflow: hidden;
    border: 3px solid var(--accent-color);
    flex-shrink: 0;
}

.principal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-meta h4 {
    font-size: 1.05rem;
    color: var(--dark-text);
    margin: 0 0 3px 0;
    font-weight: 700;
}

.principal-meta span {
    font-size: 0.85rem;
    color: var(--light-text);
    display: block;
}

/* Visit Us map styling */
.map-wrapper {
    width: 100%;
    border-radius: 14px;
    overflow: hidden; /* Rounds the corners of the embed frame */
    border: 1px solid var(--border-color);
    margin: 15px 0 25px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.map-wrapper iframe {
    display: block;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visit-details p {
    font-size: 0.95rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.visit-details i {
    color: var(--accent-color); /* Colorful icon bullets */
    font-size: 1.1rem;
    width: 20px;
}

/* Responsive constraints */
@media (max-width: 900px) {
    .two-col-container {
        grid-template-columns: 1fr; /* Stacks to single column */
        gap: 30px;
    }
    
    .principal-card, 
    .visit-card {
        padding: 35px 25px;
    }
}

/* --- Mobile Responsive Overrides for Principal & Visit Section --- */
@media (max-width: 768px) {
    .principal-visit-section {
        padding: 50px 15px !important; /* Reduced vertical page padding */
    }

    .two-col-container {
        grid-template-columns: 1fr !important; /* Strict single column vertical stacking */
        gap: 25px !important; /* Smaller vertical gap between cards */
    }

    .principal-card, 
    .visit-card {
        padding: 30px 20px !important; /* Drastically reduced internal padding to free up space */
        border-radius: 18px !important; /* Slightly tighter corner radius on mobile */
    }

    .principal-card h2, 
    .visit-card h2 {
        font-size: 1.6rem !important; /* Smaller, balanced headers on mobile viewport */
        margin-bottom: 15px !important;
    }

    .quote-text {
        font-size: 0.95rem !important; /* Scales down quote text slightly */
        padding-left: 10px !important;
    }

    .message-body {
        font-size: 0.85rem !important;
    }

    /* Adjust Principal Profile Block */
    .principal-profile {
        gap: 12px !important;
        padding-top: 15px !important;
    }

    .principal-img-wrapper {
        width: 50px !important; /* Scales down profile image size slightly */
        height: 50px !important;
    }

    .principal-meta h4 {
        font-size: 0.95rem !important;
    }

    .principal-meta span {
        font-size: 0.8rem !important;
    }

    /* Adjust Map embed container fluid properties */
    .map-wrapper {
        height: 220px !important; /* Slightly shorter map window for mobile profiles */
        margin: 10px 0 20px 0 !important;
    }

    .map-wrapper iframe {
        height: 100% !important;
        width: 100% !important;
    }

    /* Aligns icons nicely if text wraps to multiple lines */
    .visit-details p {
        font-size: 0.85rem !important;
        align-items: flex-start !important; 
    }

    .visit-details i {
        margin-top: 3px !important; /* Align icons vertically with multi-line text */
    }
}

/* Inquiry Form Section */
.inquiry-section {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.inquiry-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.inquiry-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.inquiry-info p {
    color: var(--light-text);
    margin-bottom: 30px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-details p {
    margin: 0;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.inquiry-form-wrapper {
    background-color: var(--lighter-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--white);
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 176, 0, 0.1);
}

.btn-block {
    width: 100%;
}

.form-success-alert {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid var(--accent-color);
}

.form-success-alert i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.form-success-alert p {
    font-weight: 600;
    color: var(--primary-color);
}

.hidden {
    display: none;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    padding: 80px 20px;
    color: var(--white);
    text-align: center;
}

.banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer styling */
.main-footer {
    background-color: #0d261e;
    color: rgba(255,255,255,0.8);
    padding: 80px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--my-color);
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-col p i {
    color: var(--my-color);
    margin-right: 10px;
}

.brand-col .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    border-radius: 8px 0 0 8px;
    border: none;
}

.newsletter-form button {
    background-color: var(--my-color);
    color: var(--white);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-hover);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-copyright-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.dev-link {
    display: inline !important;
    color: var(--accent-color) !important;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

/* Animations Trigger Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .section-container, .calendar-container, .inquiry-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-inquire-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

     /* 1. Stack columns inside the main footer */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 35px;
        text-align: center; /* Center-align links on mobile */
    }

    /* Center-align section underline bars */
    .footer-col h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }

    /* Center-align newsletter block elements */
    .newsletter-form {
        justify-content: center;
        max-width: 300px;
        margin: 15px auto 0 auto;
    }

    /* 2. Re-arrange footer bottom from row to column layout */
    .footer-bottom {
        flex-direction: column !important; /* Vertically stack elements */
        gap: 20px;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .footer-copyright-info {
        text-align: center; /* Center text alignments */
        gap: 8px;
    }

    /* Horizontally center social media icon links */
    .social-links {
        justify-content: center;
        width: 100%;
    }
}

/*gallery section*/
/* --- Base Gallery Styles --- */
.gallery-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    overflow: hidden; /* Prevents horizontal scrollbars from the slider */
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: 1.5px;
}

.gallery-hint {
    text-align: center;
    color: #888888;
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Auto-Sliding Marquee --- */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    padding: 10px 0;
}

/* Gradient overlays to soften the left/right edges */
.slider-wrapper::before,
.slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #111111, transparent);
}
.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #111111, transparent);
}

.slider-track {
    display: flex;
    width: max-content;
    gap: 20px;
    /* Adjust '40s' to make the slide faster or slower */
    animation: scroll 40s linear infinite;
}

/* Pause sliding on hover to let users select an image */
.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

.slider-track img {
    height: 220px;
    width: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.slider-track img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Infinite Scroll Animation keyframe */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translates exactly half of the duplicated track width */
        transform: translateX(-50%);
    }
}

/* --- Full Gallery Modal (Lightbox Grid) --- */
.gallery-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    padding: 60px 20px;
}

/* When modal is active */
.gallery-modal.active {
    display: block;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
}

.modal-content h2 {
    text-align: center;
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Modal Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.image-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: translateY(-5px);
}

/* Close button */
.close-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1010;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #e44d26;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .slider-track img {
        height: 160px;
        width: 220px;
    }
    .gallery-modal {
        padding: 80px 15px 40px 15px;
    }
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}
/* --- Pathways Section Styling --- */
.pathways-section {
    padding: 100px 20px;
    background-color: #fcfbf7; /* Elegant soft background tint */
    text-align: center;
}

.pathways-heading {
    font-family: 'Georgia', serif; /* Classic serif style as seen in reference image */
    font-size: 2.3rem;
    font-weight: 500;
    color: #044327; /* Dark Forest Green */
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.3;
}

.pathways-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Base Card Styling */
.pathway-card {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    background-color: #ffffff;
}

/* Image zoom transition on hover */
.card-image-container {
    width: 100%;
    height: 100%;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pathway-card:hover .card-image-container img {
    transform: scale(1.05);
}

/* --- Dynamic Overlay Panels (Colors from reference image) --- */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Initially hide the bottom 80% of the panel, showing only the title banner at the bottom */
    transform: translateY(calc(100% - 80px)); 
}

/* Distinct color assignments matching the reference */
.card-learn .card-overlay {
    background-color: #723625; /* Reddish Brown */
}

.card-experience .card-overlay {
    background-color: #0b6b80; /* Teal Blue-Green */
}

.card-apply .card-overlay {
    background-color: #02532c; /* Deep Green */
}

/* Overlay Typography */
.overlay-title {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 15px;
    text-align: left;
    height: 40px; /* Aligns title properly within the visible bottom band */
    display: flex;
    align-items: center;
}

.overlay-description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* --- Hover Slide-Up Behavior (To the middle of the image) --- */
.pathway-card:hover .card-overlay {
    /* Slides up to overlay exactly from the middle (~45% of card height) */
    transform: translateY(45%); 
}

.pathway-card:hover .overlay-description {
    opacity: 1;
    transition-delay: 0.1s; /* Slight delay to let the slide start first */
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .pathways-heading {
        font-size: 1.8rem;
    }
    .pathway-card {
        height: 380px;
    }
}

/* Chatbot Placeholder */
.chatbot-widget-container {
    position: fixed; /* Fixed position for floating element */
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle-button {
    background-color: var(--accent-hover);
    color: var(--white);
    border: none;
    border-radius: 50%; /* Circular button */
    width: 60px;
    height: 60px;
    font-size: 1.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.chatbot-toggle-button:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

.chatbot-box {
    position: absolute;
    bottom: 80px; /* Positions above the toggle button */
    right: 0;
    width: 350px;
    height: 400px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column; /* Stack header, body, footer */
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: visible; /* Tells the browser the box is active */
    pointer-events: auto;
}

.chatbot-box.hidden {
    opacity: 0;
    transform: translateY(20px); /* Hides it slightly below its final position */
    pointer-events: none;
    visibility: hidden; /* Disables interaction when hidden */
}

.chatbot-header {
    background-color: var(--accent-hover);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.3em;
    text-align: left;
}

.chatbot-header .close-chatbot {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8em;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.3s ease;
}

.chatbot-header .close-chatbot:hover {
    color: var(--dark-text);
}

.chatbot-body {
    flex-grow: 1; /* Allows body to take up remaining space */
    padding: 20px;
    overflow-y: auto; /* Enables scrolling for chat messages */
    background-color: var(--light-bg);
    color: var(--text-light);
    font-size: 0.95em;
}

.chatbot-body p {
    background-color: var(--lighter-bg); /* Message bubble background */
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0; /* Rounded corners for messages */
    display: inline-block;
    max-width: 80%;
    margin-bottom: 10px;
}

.chatbot-footer {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--lighter-bg);
}

.chatbot-footer input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 0.95em;
    margin-right: 10px;
}

.chatbot-footer input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.chatbot-footer button {
    background-color: var(--accent-hover);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chatbot-footer button:hover {
    background-color: var(--primary-color);
}

.chatbot-body .message {
    margin-bottom: 10px;
    clear: both; /* Clear floats for proper message stacking */
    max-width: 80%;
    word-wrap: break-word; /* Ensure long words break */
    font-size: 0.95em;
    padding: 0;
    min-height: 20px;
}

.chatbot-body .message p {
    margin: 0;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    display: inline-block;
    max-width: 100%;
}

.chatbot-body .user-message {
    float: right;
    color: var(--accent-hover);
    border-radius: 15px 15px 0 15px; 
    clear: both;
    width: fit-content;
    margin-right: 0;
    margin-left: auto;
}

.chatbot-body .bot-message {
    float: left;
    color: var(--text-light);
    border-radius: 15px 15px 15px 0;
    display: block;
    clear: both;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
}

/* Media Query for chat bot 768px and below */
@media (max-width: 768px) {
    .chatbot-box {
        width: 80vw;
        max-width: 350px; /* Occupy most of the viewport width */
        right: 10px;
        left: auto; 
        height: 350px;
    }
}

/* Media Query for chat bot 480px and below */
@media (max-width: 480px) {
    .chatbot-toggle-button {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }

    .chatbot-widget-container {
        bottom: 15px;
        right: 15px;
    }

    .chatbot-box {
        position: fixed;
        width: 90vw;
        height: 80vh;
        bottom: 80px;
        right: 5vw;
        left: 5vw;
        margin: auto;
        transform: none;
    }

    .chatbot-body {
        padding: 15px;
    }

    .chatbot-body .message {
        max-width: 90%;
    }
}