@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

/* ==========================================================================
   Base CSS & Variables
   ========================================================================== */
:root {
    --primary: hsl(215, 83%, 16%);      /* Elegant Deep Navy (#07244c) */
    --primary-light: hsl(215, 80%, 25%);
    --primary-dark: hsl(215, 90%, 10%);
    --accent: hsl(38, 100%, 53%);       /* Warm Golden-Orange (#ffad0f) */
    --accent-hover: hsl(38, 100%, 46%);
    --accent-light: hsl(38, 100%, 96%);
    --bg-primary: hsl(210, 20%, 98%);   /* Soft Off-White */
    --bg-secondary: hsl(0, 0%, 100%);  /* Clean White */
    --bg-dark: hsl(215, 80%, 8%);       /* Rich Dark Blue background */
    --text-main: hsl(215, 30%, 15%);    /* Charcoal-Navy */
    --text-muted: hsl(215, 12%, 48%);   /* Grayed Subtexts */
    --text-light: hsl(0, 0%, 96%);      /* Light Text */
    
    --border-color: hsl(215, 15%, 90%);
    --border-light: hsl(215, 15%, 95%);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(7, 36, 76, 0.04);
    --shadow-md: 0 10px 25px rgba(7, 36, 76, 0.08);
    --shadow-lg: 0 25px 50px rgba(7, 36, 76, 0.15);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Layout Constraints & Grids
   ========================================================================== */
.layout-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.layout-padding {
    padding-left: 4rem;
    padding-right: 4rem;
}

@media (max-width: 1024px) {
    .layout-padding {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@media (max-width: 768px) {
    .layout-padding {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

section {
    padding: 6rem 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.85rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.serif-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-secondary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-secondary);
    border-color: var(--bg-secondary);
}

.btn-outline-white:hover {
    background-color: var(--bg-secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--bg-secondary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(7, 36, 76, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.top-bar {
    background-color: var(--primary-dark);
    color: var(--bg-secondary);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.top-bar .layout-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: var(--bg-secondary);
    margin-left: 1.5rem;
}

.top-bar-links a:hover {
    color: var(--accent);
}

.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
}

.logo img {
    height: 60px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.75rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--accent-hover);
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
    width: 60%;
}

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(7, 36, 76, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(7, 36, 76, 0.12);
    min-width: 280px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.75rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition-smooth);
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 4px;
    height: 12px;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: rgba(7, 36, 76, 0.03);
    color: var(--primary);
    padding-left: 2.25rem;
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scale(1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu Toggler */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-links, .navbar-actions {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

/* ==========================================================================
   Public Hero Slider / Video Section
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 550px;
    max-height: 850px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 36, 76, 0.9) 0%, rgba(7, 36, 76, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--bg-secondary);
    max-width: 700px;
}

.hero-content h2 {
    color: var(--bg-secondary);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.75rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Cards & Component Designs
   ========================================================================== */
.card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(7, 36, 76, 0.15);
}

.card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: var(--primary-dark);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    z-index: 10;
}

.card-badge.computing { background: #e0f2fe; color: #0369a1; }
.card-badge.business { background: #fef3c7; color: #b45309; }
.card-badge.education { background: #dcfce7; color: #15803d; }
.card-badge.psychology { background: #f3e8ff; color: #7e22ce; }
.card-badge.nursing { background: #fee2e2; color: #b91c1c; }
.card-badge.music { background: #e0e7ff; color: #4338ca; }
.card-badge.english { background: #ffedd5; color: #c2410c; }

.card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.card:hover .card-title {
    color: var(--primary-light);
}

.card-text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
    color: var(--text-main);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 36, 76, 0.08);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================================================
   Custom Admin Layout Styles
   ========================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
}

.admin-sidebar {
    width: 280px;
    background-color: var(--primary-dark);
    color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

.admin-logo {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav {
    flex-grow: 1;
    list-style: none;
    padding: 1.5rem 0;
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.admin-nav-item a:hover, .admin-nav-item.active a {
    color: var(--bg-secondary);
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-nav-item.active a {
    border-left: 4px solid var(--accent);
}

.admin-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.admin-content {
    flex-grow: 1;
    padding: 3rem;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Public Footer
   ========================================================================== */
footer {
    background: linear-gradient(180deg, hsl(215, 75%, 11%) 0%, hsl(215, 90%, 5%) 100%);
    color: var(--bg-secondary);
    padding: 6rem 0 2rem 0;
    position: relative;
    border-top: 1px solid rgba(255, 173, 15, 0.25);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 50%, var(--accent) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-col h3 {
    color: var(--bg-secondary);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-full);
}

.footer-about img {
    height: 55px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.footer-about p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: var(--transition-bounce);
}

.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(255, 173, 15, 0.25);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.footer-links a::before {
    content: '→';
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition-smooth);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--bg-secondary);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    align-items: flex-start;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.footer-contact-item div {
    line-height: 1.6;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-smooth);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0 0 0;
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
}

/* ==========================================================================
   Modern Header Redesign & Interactive Additions
   ========================================================================== */

/* Scrolled Header Styling */
header.scrolled {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(7, 36, 76, 0.12);
}

header.scrolled .logo img {
    height: 48px;
}

header.scrolled .main-navbar {
    padding: 0.5rem 0;
}

/* Rich Dropdowns */
.dropdown-rich {
    min-width: 360px !important;
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Custom Dropdown Sizing & Layout classes */
.dropdown-mega {
    min-width: 640px !important;
    padding: 1.5rem !important;
}

.dropdown-medium {
    min-width: 360px !important;
    padding: 1rem !important;
}

.dropdown-small {
    min-width: 280px !important;
    padding: 0.75rem !important;
}

.dropdown-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem 1.25rem !important;
}

/* Icon colors matching specific departments */
.text-computing { color: #0284c7 !important; }
.text-business { color: #d97706 !important; }
.text-education { color: #16a34a !important; }
.text-psychology { color: #9333ea !important; }
.text-nursing { color: #dc2626 !important; }
.text-english { color: #ea580c !important; }
.text-music { color: #4f46e5 !important; }

/* Themed Icon bubble wrapper */
.dropdown-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: rgba(7, 36, 76, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-right: 0.85rem;
    transition: var(--transition-bounce);
}

.dropdown-rich .dropdown-item {
    padding: 0.75rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
    border: 1px solid transparent;
}

/* Overriding default rich-dropdown slide shift to focus on icon bubble scale */
.dropdown-rich .dropdown-item:hover {
    background-color: var(--accent-light) !important;
    border-color: rgba(255, 173, 15, 0.15) !important;
    padding-left: 0.85rem !important; /* Locks padding to match base */
}

.dropdown-rich .dropdown-item:hover .dropdown-icon-wrapper {
    background-color: var(--accent);
    color: var(--primary) !important;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(255, 173, 15, 0.25);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.dropdown-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.dropdown-rich .dropdown-item:hover .dropdown-title {
    color: var(--primary-light);
}

.dropdown-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.15rem;
}

.nav-chevron {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Glassmorphic Search Overlay */
.search-trigger-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.search-trigger-btn:hover {
    background-color: rgba(7, 36, 76, 0.05);
    color: var(--accent);
    transform: scale(1.1);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 36, 76, 0.85);
    backdrop-filter: blur(15px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.search-overlay-close:hover {
    color: var(--accent);
    transform: scale(1.1) rotate(90deg);
}

.search-overlay-content {
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: white;
    transform: translateY(30px);
    transition: transform 0.3s ease-in-out;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-content h3 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.search-overlay-form {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s ease;
}

.search-overlay-form:focus-within {
    border-color: var(--accent);
}

.search-overlay-form input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 1.85rem;
    padding: 0.5rem 0;
    font-family: inherit;
}

.search-overlay-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-overlay-form:focus-within .search-submit-btn {
    color: var(--accent);
}

.quick-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quick-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.quick-tag:hover {
    background: var(--accent);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Upgraded Admissions Button */
.nav-admissions-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white !important;
    border: 2px solid var(--primary);
    text-align: center;
    line-height: 1.2;
    font-family: inherit;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(7, 36, 76, 0.15);
    position: relative;
    overflow: hidden;
}

.nav-admissions-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
}

.nav-admissions-btn:hover::before {
    left: 100%;
}

.nav-admissions-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(255, 173, 15, 0.3);
}

.admissions-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.admissions-action {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Off-Canvas Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--primary-dark);
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}

.mobile-drawer.open {
    transform: translateX(-320px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 36, 76, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.drawer-logo {
    height: 48px;
}

.drawer-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.25rem;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.drawer-close:hover {
    color: var(--accent);
    transform: scale(1.1) rotate(90deg);
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-link {
    display: block;
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition-smooth);
}

.drawer-link:hover {
    color: var(--accent) !important;
    padding-left: 0.5rem;
}

.accordion-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.accordion-toggle:hover {
    color: var(--accent);
}

.accordion-toggle i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
    color: var(--accent);
}

.accordion-toggle.active {
    color: var(--accent);
    border-bottom-color: transparent;
}

.accordion-panel {
    list-style: none;
    padding-left: 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 2px solid rgba(255, 173, 15, 0.3);
    margin-bottom: 0.5rem;
}

.accordion-panel a {
    display: block;
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: var(--transition-smooth);
}

.accordion-panel a:hover {
    color: white !important;
    padding-left: 0.3rem;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.drawer-cta {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.drawer-contact-info {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-contact-info i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* Promotional Popup Styles */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 36, 76, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.promo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.promo-popup-content {
    position: relative;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background-color: transparent;
    overflow: visible;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promo-popup-overlay.active .promo-popup-content {
    transform: scale(1);
}

.promo-banner-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promo-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    border: 2px solid white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-bounce);
    z-index: 10;
}

.promo-close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: var(--accent-hover);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .promo-popup-content {
        width: 92%;
    }
    .promo-close-btn {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Schools Carousel
   ========================================================================= */
.schools-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
}
.schools-carousel-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 0; /* Add slight padding so card scale hovers don't clip */
}
.schools-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.schools-carousel-slide {
    flex: 0 0 100%;
}
@media (min-width: 576px) {
    .schools-carousel-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
}
@media (min-width: 992px) {
    .schools-carousel-slide {
        flex: 0 0 calc(33.333% - 1rem);
    }
}
@media (min-width: 1200px) {
    .schools-carousel-slide {
        flex: 0 0 calc(25% - 1.125rem);
    }
}

/* Premium School Card Slide */
.school-card-slide {
    display: block;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    cursor: pointer;
}
.school-card-slide:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.school-card-slide:hover .school-card-img {
    transform: scale(1.08);
}
.school-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-bounce);
}
.school-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}
.school-card-title {
    position: absolute;
    bottom: 2.25rem;
    left: 1.25rem;
    right: 1.25rem;
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

/* Carousel Navigation Buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    z-index: 10;
}
.carousel-arrow:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}
.carousel-arrow.prev {
    left: -1.25rem;
}
.carousel-arrow.next {
    right: -1.25rem;
}
@media (max-width: 768px) {
    .carousel-arrow.prev {
        left: -0.5rem;
    }
    .carousel-arrow.next {
        right: -0.5rem;
    }
}

