/**
 * Sunrise Edu Group - Main Stylesheet
 * Premium Education Website Design System
 */

/* ==================
   CSS VARIABLES
================== */
:root {
    /* Brand Colors */
    --primary: #FF6B00;
    --primary-dark: #e55d00;
    --primary-light: #ff8533;
    --secondary: #1a237e;
    --secondary-dark: #0d1342;
    --secondary-light: #3949ab;

    /* Branch Colors */
    --school-primary: #FF6B00;
    --school-secondary: #1a237e;
    --academy-primary: #2196F3;
    --academy-secondary: #0d47a1;
    --college-primary: #4CAF50;
    --college-secondary: #1b5e20;
    --pharmacy-primary: #00897B;
    --pharmacy-secondary: #004d40;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-hindi: 'Noto Sans Devanagari', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.15);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(12px);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    --grad-secondary: linear-gradient(135deg, #1A237E 0%, #3949AB 100%);
    --grad-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.68, -0.6, 0.32, 1.6);

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1080;
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-padding {
    padding: var(--spacing-3xl) 0;
}

/* ==================
   BASE STYLES
================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Section Components */
.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-full);
}

/* ==================
   PRELOADER
================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    object-fit: contain;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================
   TOP BAR
================== */
.top-bar {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 0.5rem 0;
    color: var(--white);
    font-size: 0.875rem;
}

.top-bar-left .top-info-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.top-info-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-info-list li i {
    color: var(--primary);
}

.top-info-list li a {
    color: var(--white);
    transition: color var(--transition-fast);
}

.top-info-list li a:hover {
    color: var(--primary);
}

.top-info-list .cbse-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-admission {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-admission:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

/* ==================
   MAIN HEADER
================== */
.main-header {
    background: var(--white);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--gray-100);
}

.main-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.25rem 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    padding: 0.75rem 0;
}

/* News Cards Refinements */
.news-card {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 48px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
    line-height: 1.2;
}

.brand-tagline {
    font-family: var(--font-hindi);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

/* Navigation */
.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    padding: 0.5rem 0.65rem;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 20px;
}

.nav-icon {
    display: none;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.4rem;
    margin-top: 0.5rem;
    min-width: 180px;
}

.dropdown-item {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dropdown-item i {
    width: 16px;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.dropdown-item:hover i {
    color: var(--primary);
}

/* Mega Menu */
.mega-dropdown {
    position: static;
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
}

.mega-item:hover {
    background: var(--gray-50);
    border-color: var(--branch-color, var(--primary));
    transform: translateY(-3px);
}

.mega-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--branch-color, var(--primary)), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mega-content h6 {
    margin: 0 0 0.25rem;
    color: var(--gray-900);
    font-size: 1rem;
}

.mega-content p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.btn-search {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-search:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.btn-cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
}

.btn-cta i {
    transition: transform var(--transition-base);
}

.btn-cta:hover i {
    transform: translateX(5px);
}

/* Mobile Search & Toggle */
.navbar-actions-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-search-mobile {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    border: none;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================
   MARQUEE BAR
================== */
.marquee-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.marquee-label {
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1;
}

.marquee-label i {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.marquee-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-item {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

a.marquee-item:hover {
    color: var(--gray-200);
    text-decoration: underline;
}

.marquee-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================
   SEARCH MODAL
================== */
.search-modal .modal-content {
    background: var(--white);
    border: none;
    border-radius: var(--radius-2xl);
    padding: 2rem;
}

.search-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.search-modal h4 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.search-form .input-group {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    padding: 1rem 1.5rem;
    border-radius: 0;
}

.quick-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.quick-links span {
    color: var(--gray-500);
    margin-right: 0.5rem;
}

.quick-links a {
    display: inline-block;
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin: 0.25rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.quick-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================
   BUTTONS
================== */
.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.35);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================
   HERO SECTION
================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    height: 600px;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Welcome Section Refinements */
.welcome-image {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    min-width: 140px;
}

.experience-badge .years {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.2;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-item i {
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    opacity: 1;
    transition: all var(--transition-base);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary);
}

.carousel-indicators {
    bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all var(--transition-base);
}

.carousel-indicators button.active {
    background: var(--primary);
    width: 30px;
}

/* ==================
   SECTION STYLES
================== */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-title {
    color: var(--white);
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ==================
   BRANCH CARDS
================== */
/* New Branch Cards */
.branch-card-new {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-base);
    position: relative;
}

.branch-card-new:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.branch-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.branch-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.branch-card-new:hover .branch-card-image img {
    transform: scale(1.05);
}

.branch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.branch-icon-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--branch-color, var(--primary));
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all var(--transition-base);
}

.branch-card-new:hover .branch-icon-badge {
    transform: scale(1.1) rotate(10deg);
}

.branch-card-new .btn-outline-primary {
    border-width: 2px;
    font-weight: 700;
}

.branch-card-new .btn-outline-primary:hover {
    background: var(--branch-color, var(--primary));
    border-color: var(--branch-color, var(--primary));
}

/* ==================
   STATS SECTION
================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.5;
}

.stat-item {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Facility Card New */
.facility-card-new {
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    height: 100%;
    border: 1px solid var(--gray-100);
}

.facility-card-new:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.facility-icon-new {
    width: 60px;
    height: 60px;
    background: var(--grad-primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.facility-card-new:hover .facility-icon-new {
    transform: rotate(10deg) scale(1.1);
}

/* CTA New */
.cta-section-new {
    padding-top: 0;
}

.cta-box-new {
    background: var(--grad-secondary) !important;
    border: none !important;
}

.cta-bg-shape {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* ==================
   TESTIMONIALS
================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-content {
    font-size: 1rem;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info h6 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-info span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.testimonial-rating {
    color: #fbbf24;
    margin-top: 0.5rem;
}

/* ==================
   FOOTER
================== */
.site-footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-300);
}

.footer-top {
    padding: 4rem 0 2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

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

.footer-links a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

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

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 0.25rem;
}

.footer-contact a {
    color: var(--gray-400);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
}

/* ==================
   WHATSAPP FLOAT
================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--white);
    transform: scale(1.1);
    animation: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ==================
   BACK TO TOP
================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* ==================
   FORM STYLES
================== */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

/* ==================
   UTILITIES
================== */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

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

/* Page Header - Premium */
.page-header {
    background: var(--grad-dark);
    padding: 8rem 0 5rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 35, 126, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.page-header .lead {
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    width: fit-content;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb-item {
    font-weight: 600;
    font-size: 0.9rem;
}

.page-header .breadcrumb-item.active {
    color: var(--primary);
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Sections */
.section-dark {
    background: var(--grad-dark);
    color: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

/* Academic Components */
.icon-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
}

.academic-card {
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
}

.academic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

.academic-icon-box {
    width: 60px;
    height: 60px;
    background: var(--academic-bg, var(--primary));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.methodology-panels .method-panel {
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1rem;
}

.methodology-panels .method-panel:last-child {
    border-bottom: none;
}