/* ===========================================
   PREMIUM EDUCATION PLATFORM DESIGN SYSTEM
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Color System */
    --primary: #0B2C52;
    --primary-light: #1a4a7a;
    --primary-dark: #061d35;
    --accent: #FFC107;
    --accent-light: #FFD54F;
    --accent-dark: #FFA000;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --success: #22C55E;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-hero: linear-gradient(135deg, #0B2C52 0%, #1a4a7a 50%, #2d6a9f 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(11, 44, 82, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ===========================================
   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: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0;
}

h1 { font-size: 56px; }
h2 { font-size: 42px; }
h3 { font-size: 32px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

p {
    margin: 0;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }

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

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: var(--primary-dark);
}

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

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

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    transition: var(--transition-base);
    padding: var(--space-md) 0;
}

.header.transparent {
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm) 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

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

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header.scrolled .brand-name {
    color: var(--primary);
}

.nav-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-xl);
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(11, 44, 82, 0.05);
}

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-toggle:hover {
    background: rgba(11, 44, 82, 0.05);
    color: var(--primary);
}

.btn-login {
    display: none;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

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

.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    color: var(--primary-dark);
}

@media (min-width: 768px) {
    .btn-login {
        display: inline-flex;
    }
}

/* Mobile Nav */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: var(--z-fixed);
    padding: var(--space-4xl) var(--space-lg) var(--space-lg);
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: none;
    border-radius: var(--radius-full);
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    background: var(--background);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

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

.mobile-nav-link i {
    font-size: 20px;
    width: 24px;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.mobile-nav-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 106, 159, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 193, 7, 0.08);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    bottom: 10%;
    left: -50px;
    animation-delay: -2s;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(255, 193, 7, 0.05);
    top: 30%;
    right: 20%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    animation: slideInUp 0.6s ease;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-lg);
    animation: slideInUp 0.6s ease 0.1s both;
}

.hero-title span {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    animation: slideInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    animation: slideInUp 0.6s ease 0.3s both;
}

.hero-buttons .btn {
    padding: 16px 32px;
}

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

.hero-buttons .btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-ghost:hover {
    border-color: white;
    background: white;
    color: var(--primary);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    animation: slideInUp 0.6s ease 0.4s both;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 20px;
}

.hero-stat-content {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.hero-visual {
    position: relative;
    display: none;
}

@media (min-width: 992px) {
    .hero-visual {
        display: block;
    }
}

.hero-image-container {
    position: relative;
    animation: slideInUp 0.8s ease 0.3s both;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.hero-card-1 {
    top: 20%;
    left: -40px;
}

.hero-card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: -3s;
}

.hero-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius-md);
    color: var(--primary-dark);
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.hero-card-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.hero-card-subtext {
    font-size: 12px;
    color: var(--text-secondary);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   STATS SECTION
   =========================================== */

.stats-section {
    padding: var(--space-3xl) 0;
    background: white;
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 44, 82, 0.05);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 28px;
    margin: 0 auto var(--space-md);
    transition: var(--transition-base);
}

.stat-card:hover .stat-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================================
   FEATURES / WHY CHOOSE US
   =========================================== */

.features-section {
    padding: var(--space-4xl) 0;
    background: var(--background);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: rgba(11, 44, 82, 0.08);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: 26px;
    margin-bottom: var(--space-lg);
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: white;
    color: var(--accent);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    transition: var(--transition-base);
}

.feature-link:hover {
    gap: var(--space-md);
    color: var(--accent);
}

.feature-link i {
    transition: var(--transition-base);
}

.feature-card:hover .feature-link i {
    transform: translateX(4px);
}

/* ===========================================
   COURSES SECTION
   =========================================== */

.courses-section {
    padding: var(--space-4xl) 0;
    background: white;
}

.courses-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .courses-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.courses-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.filter-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--background);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: var(--background);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--primary);
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 60px;
    opacity: 0.3;
}

.course-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 6px 12px;
    background: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.course-content {
    padding: var(--space-xl);
}

.course-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-muted);
}

.course-meta-item i {
    color: var(--primary);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.course-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
}

.course-price span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}

.course-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.course-btn:hover {
    background: var(--primary-light);
    color: white;
    transform: translateX(4px);
}

/* ===========================================
   BOOKS / RESOURCES SECTION
   =========================================== */

.books-section {
    padding: var(--space-4xl) 0;
    background: var(--background);
}

.books-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.tab-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.book-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.book-cover {
    position: relative;
    height: 220px;
    background: var(--primary);
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    opacity: 0.5;
}

.book-cover-placeholder i {
    font-size: 50px;
    margin-bottom: var(--space-sm);
}

.book-cover-placeholder span {
    font-size: 12px;
}

.book-category-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

.book-info {
    padding: var(--space-lg);
}

.book-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.book-action {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--background);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.book-action:hover {
    background: var(--primary);
    color: white;
}

/* ===========================================
   TESTIMONIALS SECTION
   =========================================== */

.testimonials-section {
    padding: var(--space-4xl) 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--background);
}

.testimonials-container {
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
}

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

.testimonial-quote {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 40px;
    color: var(--accent);
    opacity: 0.2;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

.testimonial-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    border: 3px solid var(--accent);
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===========================================
   CTA SECTION
   =========================================== */

.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    color: white;
    margin-bottom: var(--space-lg);
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-buttons .btn-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-ghost {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-buttons .btn-ghost:hover {
    border-color: white;
    background: white;
    color: var(--primary);
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
    background: var(--primary-dark);
    color: white;
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.footer-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

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

.social-link:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: var(--space-sm);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 2px;
}

.footer-contact-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

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

/* ===========================================
   ANIMATIONS
   =========================================== */

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

.scale-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 991px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 26px; }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    .header,
    .mobile-nav,
    .btn,
    .hero-buttons {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .section {
        padding: 20px 0;
    }
}

/* ===========================================
   HOME PAGE v2 — SMART DIGITAL CAMPUS
   =========================================== */

/* --- Nav Search Bar --- */
.nav-search-form {
    display: none;
}
@media (min-width: 992px) {
    .nav-search-form {
        display: flex;
        align-items: center;
    }
}
.nav-search-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0 14px;
    width: 220px;
    transition: var(--transition-base);
}
.nav-search-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 44, 82, 0.08);
}
.nav-search-icon {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.nav-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
    padding: 9px 0;
    font-family: var(--font-body);
}
.nav-search-input::placeholder {
    color: var(--text-muted);
}
/* Dark header variant */
.header-dark .nav-search-inner {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}
.header-dark .nav-search-inner:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
.header-dark .nav-search-icon {
    color: rgba(255, 255, 255, 0.5);
}
.header-dark .nav-search-input {
    color: white;
}
.header-dark .nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.header-dark.scrolled .nav-search-inner {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

/* --- Dark Header (Homepage) --- */
.header-dark {
    background: rgba(11,44,82,0.95) !important;
    backdrop-filter: blur(10px);
}
.header-dark .brand-name,
.header-dark .brand-tagline { color: rgba(255,255,255,0.9) !important; }
.header-dark .nav-link { color: rgba(255,255,255,0.8) !important; }
.header-dark .nav-link:hover,
.header-dark .nav-link.active { color: white !important; background: rgba(255,255,255,0.08) !important; }
.header-dark .nav-link::after { background: #FDB913; }
.header-dark .search-toggle { color: rgba(255,255,255,0.7); }
.header-dark .search-toggle:hover { background: rgba(255,255,255,0.1); color: white; }
.header-dark .btn-login { color: white; border-color: rgba(255,255,255,0.35); }
.header-dark .btn-login:hover { background: rgba(255,255,255,0.12); color: white; }
.header-dark .mobile-toggle span { background: white; }
.header-dark.scrolled { background: rgba(11,44,82,0.98) !important; }

/* --- Nav Dropdowns --- */
.nav-item-drop { position: relative; }
.nav-item-drop > .nav-link { display: flex; align-items: center; gap: 4px; }
.nav-item-drop > .nav-link i { font-size: 10px; transition: transform 0.2s; }
.nav-item-drop:hover > .nav-link i { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 200px;
    z-index: var(--z-dropdown);
    border: 1px solid rgba(0,0,0,0.06);
}
.nav-item-drop:hover .nav-dropdown-menu { display: block; animation: ddFadeIn 0.18s ease; }
@keyframes ddFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dd-item {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 6px;
    transition: all 0.15s;
    text-decoration: none;
}
.nav-dd-item:hover { background: #f0f4ff; color: #0B2C52; }

/* --- Hero Home --- */
.home-hero {
    position: relative;
    background: linear-gradient(135deg, #061d35 0%, #0B2C52 50%, #0d3866 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* pull up to sit behind fixed navbar (content-wrapper adds padding-top: 80px/100px) */
    margin-top: -80px;
    padding: 160px 0 90px;
    overflow: hidden;
}
@media (min-width: 992px) {
    .home-hero {
        margin-top: -100px;
        padding-top: 180px;
    }
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 78%, rgba(253,185,19,.13) 0%, transparent 50%),
        radial-gradient(circle at 88% 18%, rgba(45,106,159,.2) 0%, transparent 50%);
    pointer-events: none;
}
.home-hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-content-home { position: relative; z-index: 2; }

.hero-smart-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(253,185,19,.13);
    border: 1px solid rgba(253,185,19,.3);
    color: #FDB913;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero-smart-badge .badge-pulse {
    width: 6px; height: 6px;
    background: #FDB913;
    border-radius: 50%;
    animation: bpulse 1.6s infinite;
}
@keyframes bpulse {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:.4; transform:scale(1.5); }
}

.hero-title-home {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 18px;
}
.hero-title-home .highlight { color: #FDB913; }

.hero-subtitle-home {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-actions-home { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    background: #FDB913; color: #0B2C52;
    font-weight: 700; font-size: 14px; border-radius: 8px;
    border: 2px solid #FDB913; transition: all .22s ease; text-decoration: none;
}
.btn-hero-primary:hover {
    background: #e6aa0f; border-color: #e6aa0f;
    transform: translateY(-2px); box-shadow: 0 8px 22px rgba(253,185,19,.35);
    color: #0B2C52;
}

.btn-hero-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    background: transparent; color: white;
    font-weight: 600; font-size: 14px; border-radius: 8px;
    border: 2px solid rgba(255,255,255,.3); transition: all .22s ease; text-decoration: none;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: white;
}

.hero-stats-home {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hstat { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; }
.hstat + .hstat { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.1); }
.hstat strong { font-size: 22px; font-weight: 800; color: white; font-family: var(--font-heading); }
.hstat span { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.3; }

/* --- Dashboard Mockup --- */
.dashboard-mockup-wrap {
    position: relative; z-index: 2;
    padding-left: 24px;
}

.dashboard-mockup-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 32px 80px rgba(0,0,0,.38), 0 8px 28px rgba(0,0,0,.22);
    overflow: hidden;
    font-size: 11px;
    max-width: 480px;
    margin: 0 auto;
    animation: floatCard 5s ease-in-out infinite;
    transition: transform .3s ease, box-shadow .3s ease;
}
.dashboard-mockup-card:hover {
    animation: none;
    transform: perspective(800px) rotateY(0deg) translateY(-4px) !important;
    box-shadow: 0 40px 90px rgba(0,0,0,.4);
}
@keyframes floatCard {
    0%,100% { transform: perspective(800px) rotateY(-4deg) translateY(0); }
    50%      { transform: perspective(800px) rotateY(-4deg) translateY(-10px); }
}

.dmock-topbar {
    background: #0B2C52;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
}
.dmock-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: #FDB913; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; color: #0B2C52; flex-shrink: 0;
}
.dmock-user-info > strong { display: block; color: rgba(255,255,255,.55); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }
.dmock-user-info > span  { color: white; font-weight: 700; font-size: 12px; display: block; }
.dmock-user-info > small { color: rgba(255,255,255,.45); font-size: 9px; display: block; }

.dmock-body {
    display: grid;
    grid-template-columns: 90px 1fr 105px;
    min-height: 260px;
}

.dmock-sidebar { background: #f9fafb; border-right: 1px solid #e9ecef; padding: 8px 0; }
.dmock-nav-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; font-size: 9.5px; color: #64748b; cursor: default; transition: .15s;
}
.dmock-nav-item i { width: 11px; font-size: 9px; }
.dmock-nav-item.active {
    background: #FDB913; color: #0B2C52; font-weight: 700;
    margin: 2px 6px; border-radius: 6px;
}
.dmock-nav-item.danger { color: #ef4444; }

.dmock-main { padding: 12px; overflow: hidden; }
.dmock-page-title {
    font-weight: 800; font-size: 13px; color: #1e293b;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.dmock-page-title .dmock-bell { color: #94a3b8; font-size: 12px; }
.dmock-issued-heading {
    font-size: 10px; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: .5px;
    display: flex; justify-content: space-between; margin-bottom: 8px;
}
.dmock-view-all { font-size: 9px; color: #0B2C52; font-weight: 600; }
.dmock-stats-row { display: flex; gap: 8px; margin-bottom: 10px; }
.dmock-stat-box {
    background: #f0f5ff; padding: 8px 10px; border-radius: 8px; flex: 1; text-align: center;
}
.dmock-stat-box strong { display: block; font-size: 20px; font-weight: 900; color: #0B2C52; line-height: 1.1; }
.dmock-stat-box span   { font-size: 8.5px; color: #64748b; }

.dmock-book-row {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; border-bottom: 1px solid #f1f5f9;
}
.dmock-book-cover-mini {
    width: 26px; height: 34px; border-radius: 3px; flex-shrink: 0;
    background: linear-gradient(135deg,#4e54c8,#8f94fb);
}
.dmock-book-cover-mini.v2 { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.dmock-book-info > strong { display: block; font-size: 10px; color: #1e293b; font-weight: 600; }
.dmock-book-info > small  { font-size: 8.5px; color: #94a3b8; }
.dmock-book-due { margin-left: auto; font-size: 8.5px; color: #ef4444; white-space: nowrap; }

.dmock-right-panel { background: #f9fafb; border-left: 1px solid #e9ecef; padding: 10px; }
.dmock-panel-title { font-size: 9.5px; font-weight: 800; color: #1e293b; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.dmock-status-chart { display: flex; justify-content: center; margin-bottom: 8px; }
.dmock-donut {
    width: 58px; height: 58px; border-radius: 50%;
    background: conic-gradient(#22c55e 0% 40%, #FDB913 40% 68%, #ef4444 68% 100%);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.dmock-donut::after {
    content: '3';
    position: absolute; width: 34px; height: 34px;
    background: #f9fafb; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #0B2C52;
}
.dmock-legend { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.dmock-legend-item { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: #64748b; }
.dmock-legend-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.dmock-notif-item { padding: 5px 0; border-bottom: 1px solid #e9ecef; }
.dmock-notif-text { font-size: 8.5px; color: #475569; line-height: 1.4; }
.dmock-notif-time { font-size: 8px; color: #94a3b8; margin-top: 2px; }

/* Bottom nav search button inherits link styles */
.mobile-bottom-nav button.nav-item {
    color: inherit;
    cursor: pointer;
}

/* --- Popular Searches Strip --- */
.popular-strip {
    background: white;
    padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}
.popular-strip .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* --- Search Section --- */
.home-search-section {
    background: white; padding: 44px 0 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); position: relative; z-index: 1;
}
.home-search-bar {
    display: flex; gap: 12px;
    max-width: 680px; margin: 0 auto 18px;
}
.home-search-input {
    flex: 1; padding: 15px 22px; border: 2px solid #e2e8f0;
    border-radius: 10px; font-size: 14px; outline: none; color: #1e293b;
    transition: border-color .2s;
}
.home-search-input::placeholder { color: #94a3b8; }
.home-search-input:focus { border-color: #0B2C52; }
.home-search-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 15px 26px; background: #0B2C52; color: white;
    font-weight: 700; font-size: 14px; border-radius: 10px;
    border: none; cursor: pointer; transition: all .2s;
    text-decoration: none; white-space: nowrap;
}
.home-search-btn:hover { background: #0d3866; color: white; transform: translateY(-1px); }
.popular-searches { text-align: center; }
.popular-label { font-size: 12px; color: #94a3b8; margin-right: 6px; }
.popular-tag {
    display: inline-block; padding: 4px 14px;
    background: #f0f5ff; color: #0B2C52;
    font-size: 12px; font-weight: 500; border-radius: 999px;
    margin: 3px 2px; cursor: pointer; transition: all .2s; text-decoration: none;
}
.popular-tag:hover { background: #0B2C52; color: white; }

/* --- Home Features --- */
.home-features-section { padding: 72px 0; background: #f8fafc; }
.home-features-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
@media (max-width:768px) { .home-features-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .home-features-grid { grid-template-columns: 1fr; } }
.home-feature-card {
    background: white; border-radius: 12px; padding: 26px 22px;
    border: 1px solid #e9ecef; transition: all .25s ease;
}
.home-feature-card:hover {
    transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.09); border-color: transparent;
}
.home-feature-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
}
.icon-blue   { background:#dbeafe; color:#1d4ed8; }
.icon-green  { background:#dcfce7; color:#16a34a; }
.icon-orange { background:#ffedd5; color:#ea580c; }
.icon-purple { background:#ede9fe; color:#7c3aed; }
.icon-red    { background:#fee2e2; color:#dc2626; }
.icon-teal   { background:#ccfbf1; color:#0d9488; }
.home-feature-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 7px; font-family: var(--font-heading); }
.home-feature-desc  { font-size: 12.5px; color: #64748b; line-height: 1.65; }

/* --- Recently Added Books --- */
.home-books-section { padding: 72px 0; background: white; }
.section-header-flex {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px;
}
.section-title-sm {
    font-size: 22px; font-weight: 800; color: #1e293b;
    font-family: var(--font-heading);
}
.section-view-all {
    font-size: 13px; color: #0B2C52; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
    text-decoration: none; transition: all .2s;
}
.section-view-all:hover { color: #FDB913; gap: 10px; }

.books-row-home {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
}
@media (max-width:1100px) { .books-row-home { grid-template-columns: repeat(4,1fr); } }
@media (max-width:768px)  { .books-row-home { grid-template-columns: repeat(3,1fr); } }
@media (max-width:480px)  { .books-row-home { grid-template-columns: repeat(2,1fr); } }

.book-card-home {
    background: white; border-radius: 10px; overflow: hidden;
    border: 1px solid #e9ecef; transition: all .25s ease;
}
.book-card-home:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.book-cover-home {
    position: relative; padding-top: 133%;
    overflow: hidden;
}
.book-cover-home-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,#0B2C52,#1a4a7a);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); gap: 6px;
}
.book-cover-home-bg i   { font-size: 28px; }
.book-cover-home-bg span{ font-size: 9px; text-align: center; padding: 0 8px; }
.book-cover-home img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.book-status-badge {
    position: absolute; top: 8px; left: 8px;
    padding: 2px 9px; font-size: 9px; font-weight: 700; border-radius: 999px;
}
.badge-available { background:#dcfce7; color:#16a34a; }
.badge-reserved  { background:#fef3c7; color:#b45309; }
.badge-limited   { background:#fee2e2; color:#dc2626; }

.book-info-home { padding: 10px 12px; }
.book-title-home {
    font-size: 12px; font-weight: 700; color: #1e293b; margin-bottom: 2px;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-author-home { font-size: 10.5px; color: #94a3b8; margin-bottom: 8px; }
.book-reserve-btn {
    display: block; text-align: center; padding: 6px;
    background: #0B2C52; color: white;
    font-size: 11px; font-weight: 600; border-radius: 6px;
    text-decoration: none; transition: background .2s;
}
.book-reserve-btn:hover { background: #FDB913; color: #0B2C52; }

/* --- Home Programs --- */
.home-programs-section { padding: 72px 0; background: #f8fafc; }
.programs-grid-home {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
@media (max-width:900px) { .programs-grid-home { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px) { .programs-grid-home { grid-template-columns: 1fr; } }
.program-card-home {
    background: white; border-radius: 12px; padding: 22px;
    border: 1px solid #e9ecef; transition: all .25s ease;
    display: flex; flex-direction: column;
}
.program-card-home:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.09); }
.program-icon-home {
    width: 48px; height: 48px; border-radius: 12px;
    background: #0B2C52; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px; margin-bottom: 14px;
}
.program-title-home { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 7px; font-family: var(--font-heading); }
.program-desc-home  { font-size: 12.5px; color: #64748b; line-height: 1.65; flex: 1; margin-bottom: 12px; }
.program-meta-home  { display: flex; gap: 14px; margin-bottom: 14px; font-size: 11px; color: #94a3b8; }
.program-meta-home span { display: flex; align-items: center; gap: 4px; }
.program-footer-home {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.program-price-home { font-size: 15px; font-weight: 800; color: #0B2C52; }
.program-btn-home {
    padding: 7px 16px; background: #0B2C52; color: white;
    font-size: 12px; font-weight: 600; border-radius: 6px;
    text-decoration: none; transition: all .2s;
}
.program-btn-home:hover { background: #FDB913; color: #0B2C52; }

/* --- Latest Resources --- */
.home-resources-section { padding: 72px 0; background: white; }
.resources-tabs-home { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.res-tab {
    padding: 7px 18px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; color: #64748b;
    background: #f1f5f9; border: none; cursor: pointer; transition: all .2s;
}
.res-tab.active, .res-tab:hover { background: #0B2C52; color: white; }
.resources-grid-home {
    display: grid; grid-template-columns: repeat(6,1fr); gap: 14px;
}
@media (max-width:1100px) { .resources-grid-home { grid-template-columns: repeat(4,1fr); } }
@media (max-width:768px)  { .resources-grid-home { grid-template-columns: repeat(3,1fr); } }
@media (max-width:480px)  { .resources-grid-home { grid-template-columns: repeat(2,1fr); } }
.resource-card-home {
    background: #f8fafc; border-radius: 10px; padding: 16px 12px;
    border: 1px solid #e9ecef; transition: all .22s; text-align: center; cursor: pointer;
}
.resource-card-home:hover { background: #0B2C52; border-color: #0B2C52; transform: translateY(-3px); }
.resource-card-home:hover .resource-icon-home { background: rgba(255,255,255,.15); color: white; }
.resource-card-home:hover .resource-title-home,
.resource-card-home:hover .resource-sub-home,
.resource-card-home:hover .resource-meta-home { color: rgba(255,255,255,.85); }
.resource-icon-home {
    width: 44px; height: 44px; border-radius: 10px;
    background: #e8f0fe; color: #0B2C52;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin: 0 auto 10px; transition: all .22s;
}
.resource-title-home { font-size: 12px; font-weight: 700; color: #1e293b; margin-bottom: 2px; transition: color .22s; }
.resource-sub-home   { font-size: 10px; color: #64748b; margin-bottom: 7px; transition: color .22s; }
.resource-meta-home  { font-size: 9.5px; color: #94a3b8; transition: color .22s; }

/* --- Notices + Testimonials --- */
.home-notices-section { padding: 72px 0; background: #f8fafc; }
.notices-two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start;
}
@media (max-width:900px) { .notices-two-col { grid-template-columns: 1fr; } }
.notices-col-title {
    font-size: 20px; font-weight: 800; color: #1e293b;
    margin-bottom: 16px; font-family: var(--font-heading);
    display: flex; justify-content: space-between; align-items: center;
}
.notices-col-title a { font-size: 12px; font-weight: 600; color: #0B2C52; text-decoration: none; }
.notices-col-title a:hover { color: #FDB913; }

.notice-item-home {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid #e9ecef;
}
.notice-date-badge {
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; min-width: 38px; text-align: center; padding-top: 2px;
}
.notice-day   { font-size: 18px; font-weight: 900; color: #0B2C52; line-height: 1; }
.notice-month { font-size: 9.5px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; }
.notice-content-home { flex: 1; }
.notice-priority {
    display: inline-block; padding: 2px 7px;
    font-size: 9px; font-weight: 700; border-radius: 4px; margin-bottom: 4px;
}
.priority-important { background: #fee2e2; color: #dc2626; }
.priority-notice    { background: #fef3c7; color: #b45309; }
.priority-update    { background: #dcfce7; color: #16a34a; }
.notice-title-home { font-size: 13.5px; font-weight: 600; color: #1e293b; margin-bottom: 3px; line-height: 1.3; }
.notice-text-home  { font-size: 11.5px; color: #64748b; line-height: 1.55; }

.testimonial-card-new {
    background: white; border-radius: 12px; padding: 18px;
    margin-bottom: 14px; border: 1px solid #e9ecef;
}
.testimonial-stars   { color: #FDB913; font-size: 12px; margin-bottom: 9px; }
.testimonial-text-new{ font-size: 12.5px; color: #475569; line-height: 1.65; margin-bottom: 12px; }
.testimonial-author-new { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar-new {
    width: 34px; height: 34px; border-radius: 50%; background: #0B2C52;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.testimonial-info-new strong { display: block; font-size: 13px; color: #1e293b; font-weight: 600; }
.testimonial-info-new small  { font-size: 11px; color: #94a3b8; }

/* --- Home CTA --- */
.home-cta-section {
    padding: 70px 0;
    background: linear-gradient(135deg,#0B2C52,#0d3866);
    position: relative; overflow: hidden;
}
.home-cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(253,185,19,.1) 0%, transparent 55%),
        radial-gradient(circle at 75% 50%, rgba(255,255,255,.04) 0%, transparent 55%);
    pointer-events: none;
}
.home-cta-inner {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.home-cta-graphic { font-size: 72px; line-height: 1; flex-shrink: 0; }
.home-cta-body h2 {
    font-size: 28px; font-weight: 800; color: white; margin-bottom: 8px;
    font-family: var(--font-heading);
}
.home-cta-body p { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 22px; line-height: 1.6; max-width: 480px; }
.home-cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- New Footer --- */
.footer-home {
    background: #0B2C52; color: white; padding: 60px 0 0;
}
.footer-home-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
    padding-bottom: 48px;
}
@media (max-width:900px) { .footer-home-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:500px) { .footer-home-grid { grid-template-columns: 1fr; } }
.footer-home-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-home-brand-logo img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.footer-home-brand-logo span { font-size: 18px; font-weight: 800; color: white; font-family: var(--font-heading); }
.footer-home-brand-desc { font-size: 12.5px; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 18px; }
.footer-home-social { display: flex; gap: 8px; }
.footer-home-social a {
    width: 32px; height: 32px; background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.65); border-radius: 7px;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
    transition: all .2s; text-decoration: none;
}
.footer-home-social a:hover { background: #FDB913; color: #0B2C52; }
.footer-home-col-title {
    font-size: 13px; font-weight: 700; color: white; margin-bottom: 14px;
    text-transform: uppercase; letter-spacing: .6px;
}
.footer-home-links { display: flex; flex-direction: column; gap: 9px; }
.footer-home-links a {
    font-size: 12.5px; color: rgba(255,255,255,.55);
    text-decoration: none; transition: color .2s;
}
.footer-home-links a:hover { color: #FDB913; }
.footer-home-contact-item {
    display: flex; align-items: flex-start; gap: 9px;
    margin-bottom: 10px; font-size: 12.5px; color: rgba(255,255,255,.55);
}
.footer-home-contact-item i { color: #FDB913; margin-top: 2px; width: 14px; flex-shrink: 0; }
.footer-home-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
}
.footer-home-bottom p { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-home-legal { display: flex; gap: 18px; }
.footer-home-legal a { font-size: 12px; color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.footer-home-legal a:hover { color: #FDB913; }

/* Responsive: hide dashboard on small screens */
@media (max-width:991px) { .dashboard-mockup-wrap { display: none; } }
@media (max-width:480px) {
    .hero-stats-home { grid-template-columns: repeat(2,1fr); row-gap: 16px; }
    .hero-actions-home { flex-direction: column; }
    .hstat + .hstat { border-left: none; padding-left: 0; }
}