/*
Theme Name: Jijamata College
Theme URI: http://example.com/
Author: Your Name
Author URI: http://example.com/
Description: A custom theme for Jijamata College of Nursing.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jijamata
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #005A9C;
    /* Deep Trust Blue */
    --secondary-color: #2ECC71;
    /* Vibrant Healing Green */
    --bg-color: #FDFBFB;
    /* Warm off-white */
    --bg-color-alt: #FFFFFF;
    --text-main: #2A1E1E;
    --text-light: #555555;
    --text-white: #FFFFFF;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Accessibility Focus States */
:focus,
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Glassmorphism Utility */
.glassmorphism {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.glassmorphism-dark {
    backdrop-filter: blur(12px);
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.transparent {
    background: transparent;
    color: var(--text-white);
}

/* When not overlaying a dark hero (for non-home pages), default state might need tweaking. 
   We will keep it 'transparent' but maybe change text color if background is light. 
   Assuming all pages have a hero banner or dark top. */

.navbar.scrolled {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    color: var(--primary-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--secondary-color);
}

.navbar .logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-title {
    font-size: 1.3rem;
}

.logo-tagline {
    font-size: 0.70rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    color: inherit;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Global Image Sizing for CLS Prevention */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .navbar .logo {
        flex-direction: row;
        align-items: center;
    }

    .navbar .logo::after {
        content: attr(data-mobile-title);
        font-family: 'Merriweather', serif;
        font-weight: 700;
        font-size: 1.2rem;
        color: inherit;
    }

    .navbar .logo-title,
    .navbar .logo-tagline {
        display: none !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 5%;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-white) !important;
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .navbar.scrolled .nav-links {
        background-color: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar.scrolled .nav-links a {
        color: var(--primary-color) !important;
    }
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #B38F24;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
    /* Glowing gold shadow */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 10002;
    /* Must be higher than the overlay */
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .navbar .btn-primary {
        display: none;
        /* Hide apply button on small mobile header, could move it inside menu */
    }
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.transparent .menu-toggle .bar {
    background-color: var(--text-white);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--text-white);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--text-white);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 4rem 5% 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Layout Utilities */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: -2rem auto 4rem auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/images/hero-campus-cropped.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: flex-end;
    padding: 0 5% 6rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.5) 50%, rgba(10, 25, 47, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 700px;
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Accreditations Bar */
.accreditations-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 5%;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.acc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.acc-item img {
    height: 80px;
    width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    margin-bottom: 0.5rem;
}

.acc-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.acc-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Button Outline */
.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(122, 0, 22, 0.3);
}

/* Introduction Section */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

.intro-images {
    position: relative;
    height: 500px;
}

.intro-images img {
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.img-main {
    width: 80%;
    height: 80%;
    position: absolute;
    top: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.img-sub {
    width: 60%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    border: 5px solid var(--bg-color);
    animation: float 8s ease-in-out infinite reverse;
}

/* 5 Column Highlights */
.bg-light {
    background-color: var(--bg-color-alt);
}

.five-column-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .five-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .five-column-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.glass-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    cursor: default;
}

.glass-card:hover {
    transform: scale(1.02);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-bg {
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 2;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 100%;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.glass-card:hover .card-content {
    transform: translateY(0);
    opacity: 1;
    background: rgba(16, 185, 129, 0.9);
}

.card-content h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Editorial Split */
.editorial-split {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.editorial-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .editorial-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .editorial-block.reverse {
        direction: ltr;
        /* Reset direction on mobile */
    }

    .editorial-img {
        height: 300px;
        /* Shorter img on mobile */
    }
}

.editorial-block.reverse {
    direction: rtl;
}

.editorial-block.reverse>* {
    direction: ltr;
}

.editorial-img {
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
    background-color: #E8F0FE;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.editorial-img img {
    height: 95%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    animation: float 7s ease-in-out infinite alternate;
}

.editorial-block:hover .editorial-img img {
    transform: scale(1.03);
}

.editorial-content h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.editorial-content .role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.editorial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mission-list li {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mission-list li::before {
    content: '→';
    color: var(--secondary-color);
    font-weight: bold;
}

/* Accordion Premium Styling */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
}

.accordion-item.active .accordion-btn {
    background: rgba(0, 54, 101, 0.05);
    color: var(--primary-color);
    border-bottom: 2px solid rgba(0, 54, 101, 0.1);
}

.accordion-btn:hover {
    background: rgba(0, 54, 101, 0.03);
}

.accordion-content {
    display: none;
    padding: 2rem;
    font-size: 1.05rem;
    color: #4a5568;
    background: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

.icon {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Programs Grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: var(--bg-color-alt);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-img {
    height: 250px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-img img {
    transform: scale(1.05);
}

.program-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.program-content .duration {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.program-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.program-content .btn-outline {
    margin-top: auto;
    align-self: flex-start;
}

/* Text Center Utility */
.text-center {
    text-align: center;
    width: 100%;
}

/* Banner Callout */
.banner-callout {
    position: relative;
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.7);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 4rem;
    color: var(--text-white);
}

.banner-content h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.banner-content p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Bento Grid Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .bento-tall,
    .bento-large {
        grid-row: span 1;
    }
}

.bento-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: default;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--text-white);
    transition: all 0.4s ease;
}

.bento-item h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-item p {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    line-height: 1.5;
}

.bento-item:hover .bento-overlay {
    background: rgba(10, 25, 47, 0.85);
    /* Darker on hover */
    backdrop-filter: blur(4px);
}

.bento-item:hover h3,
.bento-item:hover p {
    transform: translateY(0);
    opacity: 1;
}

.bento-item:hover h3 {
    color: var(--secondary-color);
}

/* Specific Grid Spans for the Bento Look */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}


/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track.active {
    cursor: grabbing;
}

.carousel-slide {
    min-width: 350px;
    height: 450px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.5rem;
    color: var(--text-white);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.carousel-slide:hover .slide-content {
    background: rgba(16, 185, 129, 0.9);
    /* Emerald on hover */
    transform: translateY(0);
}

.slide-content h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-white);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

/* Staffing Hierarchy */
.hierarchy-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hierarchy-card {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    border-radius: var(--radius);
    background: var(--bg-color-alt);
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.hierarchy-card:hover {
    transform: translateY(-10px);
}

.hierarchy-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.hierarchy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hierarchy-list li {
    font-size: 1.1rem;
    position: relative;
    padding-left: 2.5rem;
    display: flex;
    align-items: center;
    opacity: 0.9;
    background: #f8fafc;
    color: var(--text-main);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.hierarchy-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--secondary-color, #ffb703);
    font-weight: 900;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.hierarchy-list li:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    opacity: 1;
    border-left: 4px solid var(--secondary-color);
}

.hierarchy-list li:hover::before {
    transform: scale(1.3) rotate(5deg);
}

/* Custom Gallery Grid for Student Life */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: var(--bg-color-alt);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item iframe {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: center;
    font-weight: 500;
}

/* Interactive Timeline */
.dmlt-curriculum {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(10, 25, 47, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    background-color: inherit;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--bg-color-alt);
    border-radius: 50%;
    z-index: 10;
    left: 50%;
    margin-left: -10px;
}

.timeline-content,
.timeline-image {
    width: 45%;
    border-radius: var(--radius);
    overflow: hidden;
}

.timeline-content {
    background: var(--bg-color-alt);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-image {
    height: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-image.visible {
    opacity: 1;
    transform: scale(1);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.premium-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1b2a 100%);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 50, 100, 0.2);
    color: white;
    height: 100%;
}

.contact-info {
    line-height: 1.8;
}

.contact-info .info-block {
    margin-top: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info .info-block h3 {
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.contact-info .info-block p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-word;
    /* Ensure wrapping */
    white-space: normal;
    /* Prevent single line clipping */
}

.premium-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info .info-block .premium-icon i {
    color: #FFFFFF !important;
}

.info-block:hover .premium-icon {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.contact-form-wrapper {
    background: var(--bg-color-alt);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Pages Global Styles (About Us & Inner Pages) */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-card {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 3.5rem;
    color: var(--text-white);
    text-align: center;
    margin: 0 5%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.philosophy-card h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.philosophy-card p {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.8;
}

.vision-mission {
    background: linear-gradient(135deg, var(--primary-color) 0%, #112240 100%);
    padding: 6rem 5%;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vm-box {
    padding: 3.5rem;
    color: var(--text-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.vm-box:hover {
    transform: translateY(-10px);
}

.vm-box h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.vision-box p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.mission-box .mission-list li {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    align-items: flex-start;
}

.mission-box .mission-list li::before {
    margin-top: 5px;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .five-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .intro-container {
        grid-template-columns: 1fr;
    }

    .intro-images {
        height: 400px;
        order: -1;
    }

    .editorial-block,
    .editorial-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .vm-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        /* Adjust to not be too tall */
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
        padding-right: 20px;
        gap: 1.5rem;
    }

    .timeline-dot {
        left: 31px;
        margin-left: -10px;
        top: 2rem;
    }

    .timeline-content,
    .timeline-image {
        width: 100%;
    }

    .timeline-image {
        order: 2;
        /* Ensure image is below text on mobile */
    }

    .timeline-content {
        order: 1;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Prevent vertical centering from cutting off top items on small screens */
        padding-top: 6rem;
        /* Make room for the logo and close button */
        overflow-y: auto;
        /* Allow scrolling if there are many links */
        transition: right 0.4s ease;
        z-index: 10000;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.2rem 0;
    }

    .nav-links a {
        color: var(--text-white);
        font-size: 1.5rem;
    }

    .navbar .logo {
        position: relative;
        z-index: 10001;
    }

    .navbar .btn-primary {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 5%;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content .btn-primary {
        margin: 1.5rem auto 0 auto !important;
        display: inline-block;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-top: 3rem;
        /* push down past the logo/hamburger */
    }

    .five-column-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-card {
        padding: 2rem;
        margin-top: 4rem;
        /* Ensure card is pushed down below the header */
    }

    .page-hero {
        padding-top: 5rem;
        /* Stop text overlapping the fixed navbar */
        height: auto;
        min-height: 50vh;
        padding-bottom: 2rem;
    }

    .philosophy-card h1 {
        font-size: 2rem;
    }

    .vm-box {
        padding: 2.5rem;
    }

    .banner-content {
        padding: 2.5rem 1.5rem;
    }

    .banner-content h2 {
        font-size: 2rem;
    }

    .carousel-slide {
        min-width: 280px;
        height: 400px;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 500px) {
    .five-column-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .bento-large,
    .bento-tall,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-item h3 {
        transform: translateY(0);
    }

    .bento-item p {
        transform: translateY(0);
        opacity: 0.9;
    }
}

/* WhatsApp Float */
.wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* --- NEW SIDEBAR STYLES --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 250px;
    height: 100vh;
    background-color: #08142D;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: none;
    /* Hidden completely on desktop */
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 30px;
    height: 30px;
    background-color: #667eea;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.logo-name {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-nav {
    padding: 20px 10px;
    flex: 1;
}

.sidebar-nav li {
    list-style: none;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 10px;
    padding-left: 10px;
    white-space: nowrap;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 10px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sidebar-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav li.active a {
    background-color: #667eea;
}

.sidebar-nav li a i {
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

/* --- RESPONSIVE UPDATES --- */
@media (max-width: 992px) {

    /* Hide the old nav-links dropdown completely on mobile to avoid duplicates */
    .nav-links {
        display: none !important;
    }

    /* Enable sidebar rendering on mobile width */
    .sidebar {
        display: flex;
    }

    .sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 768px) {

    /* Home Page Centering & Spacing */
    .intro-text,
    .intro-container,
    .editorial-content,
    .mission-list,
    .vm-box {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mission-list li {
        justify-content: center;
    }

    /* Contact Page Fit-to-Screen */
    .page-hero {
        min-height: 40vh !important;
        height: auto !important;
        padding-top: 6rem;
    }

    .contact-container {
        overflow-x: hidden;
        padding: 0 15px;
    }

    .premium-info-card,
    .contact-form-wrapper {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        padding: 1.5rem;
        /* Reduced padding on mobile */
    }

    .contact-info .info-block p {
        word-break: break-word;
        /* Ensure long emails/addresses break to fit the screen */
    }
}