/*
 * GCT Bhakkar - Theme System
 * Complete Light and Dark theme with all component overrides
 */

/* ===== DARK THEME (Default) ===== */
:root {
    /* Color Mode */
    --mode: dark;

    /* Primary Colors */
    --color-primary-dark: #0f172a;
    --color-secondary-dark: #1e293b;
    --color-tertiary-dark: #334155;

    /* Accent Colors */
    --color-accent-primary: #3b82f6;
    --color-accent-secondary: #60a5fa;
    --color-accent-gold: #f59e0b;
    --color-accent-teal: #14b8a6;

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-dark: #1e293b;

    /* Background Colors */
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    --color-bg-card: rgba(30, 41, 59, 0.95);
    --color-bg-glass: rgba(15, 23, 42, 0.98);
    --color-bg-overlay: rgba(0, 0, 0, 0.6);

    /* Border Colors */
    --color-border-default: rgba(59, 130, 246, 0.3);
    --color-border-hover: #3b82f6;
    --color-border-muted: rgba(148, 163, 184, 0.2);

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

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* ===== LIGHT THEME VARIABLES ===== */
[data-theme="light"] {
    --color-primary-dark: #f8fafc;
    --color-secondary-dark: #f1f5f9;
    --color-tertiary-dark: #e2e8f0;

    --color-text-primary: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #64748b;
    --color-text-dark: #0f172a;

    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-card: rgba(255, 255, 255, 0.98);
    --color-bg-glass: rgba(255, 255, 255, 0.98);
    --color-bg-overlay: rgba(0, 0, 0, 0.3);

    --color-border-default: rgba(59, 130, 246, 0.2);
    --color-border-muted: rgba(100, 116, 139, 0.2);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
}

/* ===== SMOOTH GLOBAL TRANSITIONS ===== */

html {
    scroll-behavior: smooth;
}

body,
.navbar,
.main-navbar,
.top-bar,
.card,
.btn,
.footer,
.section,
.hero {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== OPTIMIZED TRANSITIONS ===== */

.smooth-hover {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    will-change: transform, opacity;
}

.smooth-hover:hover {
    transform: translateY(-5px);
}

.card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.btn {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

a {
    transition: color 0.2s ease;
}

img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* ===== THEME TOGGLE BUTTON ===== */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: rotate(15deg);
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

/* ============================================= */
/* ===== COMPREHENSIVE LIGHT THEME STYLES ===== */
/* ============================================= */

/* ----- Body & Main ----- */
[data-theme="light"] body {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* ----- Top Bar ----- */
[data-theme="light"] .top-bar {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9) !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .top-bar-item {
    color: #475569 !important;
}

[data-theme="light"] .top-bar-item a {
    color: #475569 !important;
}

[data-theme="light"] .top-bar-item a:hover {
    color: #3b82f6 !important;
}

[data-theme="light"] .top-bar-social a {
    color: #64748b !important;
}

[data-theme="light"] .top-bar-social a:hover {
    color: #3b82f6 !important;
}

/* ----- Navbar ----- */
[data-theme="light"] .main-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .navbar-brand-name {
    color: #3b82f6 !important;
}

[data-theme="light"] .navbar-brand-tagline {
    color: #64748b !important;
}

[data-theme="light"] .nav-link {
    color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .dropdown-item {
    color: #334155 !important;
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

[data-theme="light"] .navbar-toggle-bar {
    background: #3b82f6 !important;
}

/* ----- Hero Section & Backgrounds ----- */
[data-theme="light"] .hero-section,
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff) !important;
}

[data-theme="light"] .hero-bg-gradient {
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #c7d2fe 100%) !important;
}

[data-theme="light"] .hero-page {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

[data-theme="light"] .hero-title {
    color: #0f172a !important;
}

[data-theme="light"] .hero-page .hero-title {
    color: #ffffff !important;
}

[data-theme="light"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .hero-page .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .hero-section .carousel-caption h1,
[data-theme="light"] .hero-section .carousel-caption p {
    color: #ffffff !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .transparent-slide {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Hero page text enhancements for light theme */
[data-theme="light"] .hero-page .hero-title,
[data-theme="light"] .hero-page h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .hero-page .hero-subtitle,
[data-theme="light"] .hero-page p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .hero-page .breadcrumb-link,
[data-theme="light"] .hero-page .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .hero-page .breadcrumb-current {
    color: #ffffff !important;
}

[data-theme="light"] .transparent-slide {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* ----- Sections ----- */
[data-theme="light"] .section {
    background: #ffffff !important;
}

[data-theme="light"] .section-darker {
    background: #f1f5f9 !important;
}

[data-theme="light"] .section-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #dbeafe 100%) !important;
}

[data-theme="light"] .section-dark {
    background: #f8fafc !important;
}

[data-theme="light"] .section-title {
    color: #0f172a !important;
}

[data-theme="light"] .section-subtitle {
    color: #64748b !important;
}

[data-theme="light"] .section-cta {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}
[data-theme="light"] .section-cta .section-title,
[data-theme="light"] .section-cta .section-subtitle,
[data-theme="light"] .section-cta p {
    color: #ffffff !important;
}

/* ----- Cards ----- */
[data-theme="light"] .card {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .card:hover {
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15) !important;
    border-color: #3b82f6 !important;
}

[data-theme="light"] .card-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .card-title,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5 {
    color: #0f172a !important;
}

[data-theme="light"] .card-text,
[data-theme="light"] .card p {
    color: #475569 !important;
}

[data-theme="light"] .card li {
    color: #475569 !important;
}

[data-theme="light"] .card-stat {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9) !important;
}

[data-theme="light"] .card-stat-label {
    color: #64748b !important;
}

[data-theme="light"] .card-stat-number {
    color: #3b82f6 !important;
}

/* ----- All Text Elements ----- */
[data-theme="light"] h1:not(.hero-title):not(.carousel-caption h1),
[data-theme="light"] h2:not(.section-cta h2),
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #404041 !important;
}



[data-theme="light"] p:not(.hero-subtitle):not(.section-cta p):not(.card-text):not(.card-beside p):not(footer p) {
    color: #555454 !important;
}

/* data theme for card beside */
[data-theme="light"] .card-beside p {
    color: #afafaf !important;
}



[data-theme="light"] .lead {
    color: #334155 !important;
}

[data-theme="light"] .text-muted {
    color: #64748b !important;
}

[data-theme="light"] .text-accent {
    color: #3b82f6 !important;
}

[data-theme="light"] .text-primary {
    color: #3b82f6 !important;
}

[data-theme="light"] .accent,
[data-theme="light"] .highlight {
    color: #3b82f6 !important;
}

/* ----- Buttons ----- */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
}

[data-theme="light"] .btn-secondary {
    background: #64748b !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-outline-primary {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: transparent !important;
}

[data-theme="light"] .btn-outline-primary:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-outline-light {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ----- Forms ----- */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .newsletter-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] ::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .form-label {
    color: #334155 !important;
}

/* ----- Two Column Layout ----- */
[data-theme="light"] .two-col h2,
[data-theme="light"] .two-col h3,
[data-theme="light"] .two-col h4 {
    color: #0f172a !important;
}

[data-theme="light"] .two-col p,
[data-theme="light"] .two-col li {
    color: #475569 !important;
}

/* ----- Grid ----- */
[data-theme="light"] .grid p {
    color: #475569 !important;
}

/* ----- Footer ----- */
[data-theme="light"] .footer,
[data-theme="light"] [data-footer]>footer {
    background: linear-gradient(180deg, #1e293b, #0f172a) !important;
    color: #e2e8f0 !important;
}

/* ----- Breadcrumb ----- */
[data-theme="light"] .breadcrumb-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .breadcrumb-current {
    color: #ffffff !important;
}

/* ----- Stats ----- */
[data-theme="light"] .stat-number {
    color: #3b82f6 !important;
}

[data-theme="light"] .stat-label {
    color: #64748b !important;
}

/* ----- Lists ----- */
[data-theme="light"] ul:not(.navbar-nav):not(.dropdown-menu) li,
[data-theme="light"] ol li {
    color: #475569 !important;
}

/* ----- Links ----- */
[data-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand):not(.breadcrumb-link):not(.card a) {
    color: #3b82f6 !important;
}

[data-theme="light"] a:not(.btn):hover {
    color: #2563eb !important;
}

/* ----- Feature Icon Cards ----- */
[data-theme="light"] .card-feature-icon {
    color: #ffffff !important;
}

/* ----- Back to Top ----- */
[data-theme="light"] .back-to-top {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

[data-theme="light"] .back-to-top:hover {
    background: #2563eb !important;
}

/* ----- Table ----- */
[data-theme="light"] table {
    color: #0f172a !important;
}

[data-theme="light"] th {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] td {
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* ============================================= */
/* ===== STYLES.CSS COMPONENT OVERRIDES ===== */
/* ============================================= */

/* ----- Campus Life Section ----- */
[data-theme="light"] .campus-life {
    background: #f8fafc !important;
}

[data-theme="light"] .campus-life .section-title {
    color: #0f172a !important;
}

[data-theme="light"] .campus-cards {
    background: rgba(241, 245, 249, 0.8) !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .campus-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: rgba(100, 116, 139, 0.15) !important;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .campus-card:hover {
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.15),
        0 0 35px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}

[data-theme="light"] .campus-card p {
    color: #475569 !important;
}

[data-theme="light"] .red-title {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

[data-theme="light"] .read-link {
    color: #3b82f6 !important;
}

[data-theme="light"] .read-link:hover {
    color: #f59e0b !important;
}

/* ----- Card Why (Why Choose Us) ----- */
[data-theme="light"] .card-why {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .card-why:hover {
    box-shadow: 0 30px 50px rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
}

[data-theme="light"] .card-beside {
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
}

[data-theme="light"] .card-beside h5,
[data-theme="light"] .card-beside p {
    color: #ffffff !important;
}

[data-theme="light"] .card-bottom h6 {
    color: #0f172a !important;
}

/* ----- Principal Section (Premium Design) Light Theme ----- */
[data-theme="light"] .principal-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
}

[data-theme="light"] .principal-bg-shapes .shape {
    opacity: 0.08;
}

[data-theme="light"] .principal-card-premium {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(100, 116, 139, 0.15) !important;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"] .principal-card-premium:hover {
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(59, 130, 246, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .principal-profile {
    background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%) !important;
}

[data-theme="light"] .principal-name-text {
    color: #ffffff !important;
}

[data-theme="light"] .principal-role {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .principal-message-content {
    background: transparent;
}

[data-theme="light"] .section-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1)) !important;
    color: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

[data-theme="light"] .message-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="light"] .quote-mark {
    color: rgba(59, 130, 246, 0.2) !important;
}

[data-theme="light"] .quote-content {
    color: #334155 !important;
}

[data-theme="light"] .sig-name {
    color: #0f172a !important;
}

[data-theme="light"] .sig-title {
    color: #64748b !important;
}

/* ----- Hero Carousel (Home Page) ----- */
/* Hero section - make light theme match dark theme appearance */
/* Hero section - make light theme match dark theme appearance */
[data-theme="light"] .hero-bg-overlay {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.85) 90%) !important;
}

/* Ensure Hero Cards remain dark with white text even in light theme */
[data-theme="light"] .hero-card-title,
[data-theme="light"] .hero-card h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-card-text,
[data-theme="light"] .hero-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .hero-card {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(15, 23, 42, 0.6) !important;
}

[data-theme="light"] .hero-card:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: var(--card-accent-color) !important;
}

/* Light theme - Page Heroes (sub-pages) */
[data-theme="light"] .hero.hero-page .hero-bg-gradient {
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.35) 0%,
            rgba(15, 23, 42, 0.5) 50%,
            rgba(15, 23, 42, 0.7) 100%) !important;
}

[data-theme="light"] .hero.hero-page .hero-bg-image {
    filter: brightness(0.8) !important;
}

/* Keep carousel with dark appearance in light theme */
[data-theme="light"] .hero-section {
    background-color: #0f172a !important;
}

[data-theme="light"] .hero-section .carousel-item::before {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(30, 41, 59, 0.3) 100%) !important;
}

/* CRITICAL: Carousel caption alignment - MUST match dark theme exactly */
[data-theme="light"] .carousel-caption {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 42% !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 1000px;
    text-align: center !important;
    background: transparent !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
    z-index: 10 !important;
}

[data-theme="light"] .carousel-caption h1,
[data-theme="light"] .carousel-caption .hero-title {
    color: #ffffff !important;
}

[data-theme="light"] .carousel-caption h1 .accent,
[data-theme="light"] .carousel-caption h1 .text-primary,
[data-theme="light"] .carousel-caption .text-primary {
    color: #14b8a6 !important;
}

/* CRITICAL FIX: Hero text white class - maximum specificity */
.hero-text-white,
p.hero-text-white,
.fs-5.hero-text-white,
p.fs-5.hero-text-white,
.carousel-caption .hero-text-white,
.carousel-caption p.hero-text-white,
.hero-section .carousel-caption .hero-text-white,
[data-theme="light"] .hero-text-white,
[data-theme="light"] p.hero-text-white,
[data-theme="light"] .carousel-caption .hero-text-white,
[data-theme="light"] .hero-section .carousel-caption p.hero-text-white,
[data-theme="light"] .carousel-item .carousel-caption p.hero-text-white {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* ----- Light Theme Hero Cards ----- */
[data-theme="light"] .hero-cards-section {
    background: linear-gradient(to top, rgba(248, 250, 252, 0.98) 0%, rgba(248, 250, 252, 0.9) 40%, transparent 100%) !important;
}

[data-theme="light"] .hero-custom-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.95)) !important;
    border: 1px solid rgba(100, 116, 139, 0.15) !important;
    border-bottom: 3px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

[data-theme="light"] .hero-custom-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    border-bottom-color: #3b82f6 !important;
}

[data-theme="light"] .hero-card-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

[data-theme="light"] .hero-custom-card:hover .hero-card-title {
    color: #3b82f6 !important;
}

[data-theme="light"] .hero-card-bottom-half {
    color: #475569 !important;
}

[data-theme="light"] .hero-custom-card::after {
    color: #3b82f6 !important;
}

[data-theme="light"] .hero-card-bg-image {
    filter: grayscale(50%) contrast(1.1) !important;
    opacity: 0.08 !important;
}

[data-theme="light"] .hero-custom-card:hover .hero-card-bg-image {
    filter: grayscale(0%) contrast(1) !important;
    opacity: 0.25 !important;
}

/* ----- Footer Headings ----- */
[data-theme="light"] .footer h4,
[data-theme="light"] .footer h5,
[data-theme="light"] .footer h6,
[data-theme="light"] [data-footer] h4,
[data-theme="light"] [data-footer] h5,
[data-theme="light"] [data-footer] h6 {
    color: #e2e8f0 !important;
}

[data-theme="light"] .footer p,
[data-theme="light"] [data-footer] p {
    color: #94a3b8 !important;
}

/* ----- Technology Program Cards ----- */
[data-theme="light"] .card-department,
[data-theme="light"] .program-card {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .card-department h4,
[data-theme="light"] .card-department h5,
[data-theme="light"] .program-card h4,
[data-theme="light"] .program-card h5 {
    color: #0f172a !important;
}

[data-theme="light"] .card-department p,
[data-theme="light"] .program-card p {
    color: #475569 !important;
}


/* ----- All Cards Text ----- */
[data-theme="light"] .card h2,
[data-theme="light"] .card h3,
[data-theme="light"] .card h4,
[data-theme="light"] .card h5,
[data-theme="light"] .card h6 {
    color: #0f172a !important;
}


[data-theme="light"] .card li,
[data-theme="light"] .card .card-text {
    color: #475569 !important;
}

/* ===== CURRICULUM SECTION LIGHT THEME ===== */

/* Curriculum Tabs */
[data-theme="light"] .curriculum-tab {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
    color: #475569 !important;
}

[data-theme="light"] .curriculum-tab:hover {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.05) !important;
}

[data-theme="light"] .curriculum-tab.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

[data-theme="light"] .curriculum-tab i {
    color: inherit !important;
}

/* Curriculum Year Header */
[data-theme="light"] .curriculum-year-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(241, 245, 249, 0.9)) !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .curriculum-year-header h3 {
    color: #0f172a !important;
}

[data-theme="light"] .curriculum-year-header p {
    color: #64748b !important;
}

/* Year Badge */
[data-theme="light"] .year-badge {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

/* Curriculum Category */
[data-theme="light"] .curriculum-category {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .curriculum-category:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12) !important;
}

/* Category Header */
[data-theme="light"] .category-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(241, 245, 249, 0.95)) !important;
    border-bottom-color: rgba(100, 116, 139, 0.15) !important;
}

[data-theme="light"] .category-header h4 {
    color: #0f172a !important;
}

[data-theme="light"] .category-header i {
    color: #3b82f6 !important;
}

/* Subject List */
[data-theme="light"] .subject-list {
    background: #ffffff !important;
}

[data-theme="light"] .subject-list li {
    border-bottom-color: rgba(100, 116, 139, 0.1) !important;
}

[data-theme="light"] .subject-name {
    color: #334155 !important;
}

[data-theme="light"] .subject-code {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
}

/* Program Highlights */
[data-theme="light"] .program-highlights {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(241, 245, 249, 0.9)) !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
}

[data-theme="light"] .highlight-item {
    background: #ffffff !important;
    border-color: rgba(100, 116, 139, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .highlight-item:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12) !important;
}

[data-theme="light"] .highlight-item h5 {
    color: #0f172a !important;
}

[data-theme="light"] .highlight-item p {
    color: #64748b !important;
}

[data-theme="light"] .highlight-item i {
    color: #3b82f6 !important;
}

/* ----- Fix Hero Gradient Overlays ----- */
[data-theme="light"] .hero .hero-bg-gradient {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.95) 0%, rgba(224, 231, 255, 0.95) 50%, rgba(199, 210, 254, 0.95) 100%) !important;
}

[data-theme="light"] .hero-page .hero-bg-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95)) !important;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.card,
.section,
.hero {
    contain: layout style;
}

.navbar-nav-wrapper,
.dropdown-menu {
    will-change: opacity, visibility;
}

.card-img-wrapper img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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