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

/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary: #0969ff;
    --primary-dark: #0756d9;
    --primary-light: #e6f0ff;
    --primary-glow: rgba(9, 105, 255, 0.15);
    --secondary-glow: rgba(147, 51, 234, 0.1); /* purple accent glow */
    --accent-purple: #9333ea;
    
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --white: #ffffff;
    --background: #f8fbff;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --border: #e6edf7;
    
    /* Spacing & Layout */
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;
    --radius-round: 50%;
    
    --shadow-small: 0 4px 14px rgba(15, 23, 42, 0.04);
    --shadow-medium: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-large: 0 20px 40px rgba(15, 23, 42, 0.08);
    
    --container: 1200px;
    --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Safe Area defaults */
    --safe-bottom: 0px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .hero-highlight, .section-title, .course-title,
.navbar, .nav-links, .nav-link, .desktop-nav-link, .nav-item, .btn,
.portal-card-title, .admin-card-title, .badge, .logo span {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1, .hero-title {
    letter-spacing: -0.035em;
    font-weight: 800;
}

h2, .section-title {
    letter-spacing: -0.025em;
    font-weight: 800;
}

h3, h4, .course-title {
    letter-spacing: -0.02em;
    font-weight: 700;
}

p, span, a, label, input, select, textarea, button, td, th, li {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button, input, select, textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: inherit;
    border: none;
    outline: none;
}

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

/* Page Containers */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Section Header Utility */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--radius-medium);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

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

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

/* Scroll Lock Helper */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   Floating Dark Pill Header & Mobile Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.header-pill-wrapper {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.header-container {
    background-color: #171b26;
    background: linear-gradient(180deg, #1e2330 0%, #141722 100%);
    border-radius: 9999px;
    padding: 8px 24px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-badge {
    width: 40px;
    height: 40px;
    background: #0969ff;
    background: linear-gradient(135deg, #1a75ff 0%, #0052cc 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 900;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(9, 105, 255, 0.4);
}

.logo-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.15;
}

.logo-subtitle {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 8.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

.desktop-nav {
    display: none; /* Show on desktop */
}

.desktop-nav-link {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 14.5px;
    font-weight: 700;
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.desktop-nav-link:hover {
    color: #ffffff;
}

.desktop-nav-link.active {
    color: #ffffff;
}

.desktop-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0969ff;
    border-radius: 2px;
}

.header-actions {
    display: none; /* Show on desktop */
}

.btn-nav-login {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
    height: 40px;
    padding: 0 22px;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    border: none;
}

.btn-nav-login:hover {
    background-color: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
    color: #000000;
}

.btn-nav-register {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    height: 40px;
    padding: 0 22px;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-nav-register:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ==========================================================================
   Upgraded Hamburger Menu Button & Floating Mobile Navigation
   ========================================================================== */
.menu-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.menu-toggle:hover, .menu-toggle:active {
    background: rgba(9, 105, 255, 0.25);
    border-color: rgba(9, 105, 255, 0.6);
    transform: scale(1.05);
}

.menu-toggle span {
    position: absolute;
    display: block;
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger lines positions */
.menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}
.menu-toggle span:nth-child(2) {
    opacity: 1;
}
.menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

/* Active cross transformation */
.menu-toggle.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
    background-color: #ffffff !important;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
    background-color: #ffffff !important;
}

/* Floating Glass Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 16px 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

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

.mobile-nav-menu {
    background: #171b26;
    background: linear-gradient(180deg, #1f2536 0%, #131722 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 20px 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateY(-15px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.mobile-nav-link {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15.5px;
    font-weight: 700;
    color: #94a3b8;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    letter-spacing: -0.01em;
}

/* Touch & Hover Selection Highlight (NO Underline) */
.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link:focus,
.mobile-nav-link.active {
    background-color: rgba(9, 105, 255, 0.15) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    transform: translateX(4px);
    box-shadow: inset 3px 0 0 #0969ff;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sub-header enroll block from reference image */
.header-enroll-bar {
    background-color: var(--white);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.header-enroll-bar .btn {
    flex: 1;
    font-size: 14px;
    height: 44px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 40px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--white);
}

.badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.hero-badge {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
}

.hero-title span {
    display: block;
}

.hero-title .highlight {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto 40px;
}

.hero-ctas .btn {
    width: 100%;
}

.hero-illustration {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-illustration img {
    max-width: 90%;
    z-index: 2;
}

/* Subtle background glowing circles for premium depth */
.glow-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: var(--radius-round);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}

.glow-primary {
    background-color: var(--primary-glow);
    top: 10%;
    left: 10%;
}

.glow-purple {
    background-color: var(--secondary-glow);
    bottom: 10%;
    right: 10%;
}

/* ==========================================================================
   Statistics 2x2 Grid Section
   ========================================================================== */
.stats-section {
    background-color: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.stat-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-small);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Dynamic soft colors for different icons */
.stat-icon.blue {
    background-color: var(--primary-light);
    color: var(--primary);
}

.stat-icon.green {
    background-color: #ecfdf5;
    color: #059669;
}

.stat-icon.purple {
    background-color: #f5f3ff;
    color: var(--accent-purple);
}

.stat-icon.orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

.stat-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* ==========================================================================
   Featured Courses (Horizontal Scroll)
   ========================================================================== */
.swipeable-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 10px 0 30px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -webkit-overflow-scrolling: touch;
}

.swipeable-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.course-card {
    flex: 0 0 280px; /* Width of card in swipeable layout */
    scroll-snap-align: start;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.course-thumbnail {
    position: relative;
    width: 100%;
}

.course-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.course-badge.popular {
    background-color: #ef4444; /* red */
}

.course-badge.bestseller {
    background-color: #059669; /* green */
}

.course-badge.trending {
    background-color: var(--primary);
}

.course-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.course-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px; /* Fixed height for consistency */
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-price-enroll {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.course-pricing {
    display: flex;
    flex-direction: column;
}

.price-now {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.course-price-enroll .btn {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: var(--radius-small);
}

/* ==========================================================================
   Course Catalog Search & Quick Categories
   ========================================================================== */
.catalog-section {
    background-color: var(--background);
}

.catalog-search-wrapper {
    margin-bottom: 24px;
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 4px 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-small);
}

.catalog-search-icon {
    color: var(--text-muted);
    margin-right: 12px;
}

.catalog-search-input {
    width: 100%;
    height: 44px;
    font-size: 15px;
    color: var(--text-main);
}

.catalog-search-input::placeholder {
    color: var(--text-muted);
}

.filter-selectors {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-select {
    width: 100%;
    height: 48px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.category-shortcuts {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.category-shortcuts::-webkit-scrollbar {
    display: none;
}

.category-badge-btn {
    flex: 0 0 auto;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    cursor: pointer;
    box-shadow: var(--shadow-small);
}

.category-badge-btn.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.category-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Category badge item backgrounds */
.category-badge-btn:nth-child(1) .category-badge-icon { background-color: var(--primary-light); color: var(--primary); }
.category-badge-btn:nth-child(2) .category-badge-icon { background-color: #f5f3ff; color: var(--accent-purple); }
.category-badge-btn:nth-child(3) .category-badge-icon { background-color: #fff7ed; color: #ea580c; }
.category-badge-btn:nth-child(4) .category-badge-icon { background-color: #fdf2f8; color: #db2777; }
.category-badge-btn:nth-child(5) .category-badge-icon { background-color: #ecfdf5; color: #059669; }

.category-badge-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

/* ==========================================================================
   Faculty Highlights
   ========================================================================== */
.faculty-section {
    background-color: var(--white);
}

.faculty-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-small);
}

.faculty-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
}

.faculty-photo {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-round);
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.faculty-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--white);
}

.faculty-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.faculty-designation {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.faculty-experience {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* ==========================================================================
   Notices List (Row-by-Row)
   ========================================================================== */
.notices-section {
    background-color: var(--background);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-row {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-small);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notice-row:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-medium);
}

.notice-date-box {
    width: 60px;
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 12px;
}

.notice-day {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.notice-month {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.notice-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.notice-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-badge {
    font-size: 10px;
    font-weight: 800;
    background-color: #ffedd5;
    color: #ea580c;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.notice-arrow {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==========================================================================
   Testimonial Section (Slider)
   ========================================================================== */
.testimonial-section {
    background-color: var(--white);
}

.testimonial-container {
    max-width: 500px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    padding: 30px 24px 24px;
    position: relative;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 24px;
    font-size: 80px;
    line-height: 1;
    font-family: serif;
    color: rgba(9, 105, 255, 0.1);
    pointer-events: none;
}

.testimonial-card::after {
    content: "”";
    position: absolute;
    bottom: -30px;
    right: 24px;
    font-size: 80px;
    line-height: 1;
    font-family: serif;
    color: rgba(9, 105, 255, 0.1);
    pointer-events: none;
}

.testimonial-photo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-round);
    object-fit: cover;
    margin: 0 auto 12px;
    border: 2px solid var(--primary-light);
}

.testimonial-student-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.testimonial-student-course {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-round);
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.testimonial-dot.active {
    background-color: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: var(--background);
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    border-radius: var(--radius-medium);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-small);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Plus overlay thumbnail matching UI screenshot (+28 More Photos) */
.gallery-item.overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
}

.gallery-item-overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 2;
    text-align: center;
}

.gallery-overlay-count {
    font-size: 20px;
    font-weight: 800;
}

.gallery-overlay-label {
    font-size: 11px;
    font-weight: 600;
}

/* ==========================================================================
   Sticky Mobile Bottom Navigation
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    z-index: 98;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

/* Active indicator style matching UI design */
.bottom-nav-item.active .nav-icon-container {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 4px 12px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0 120px; /* Big bottom padding to prevent bottom nav overlap */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-small);
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
}

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

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   Public Inner Pages (About, Catalog, Contact) Styling
   ========================================================================== */
.page-hero {
    background-color: var(--background);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* FAQ Accordion */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    overflow: hidden;
}

.faq-question-btn {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    text-align: left;
    font-weight: 700;
    color: var(--text-main);
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question-btn svg {
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-question-btn svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Course details template styling */
.course-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.course-detail-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-detail-sidebar {
    position: sticky;
    top: 90px;
}

.syllabus-module-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    margin-bottom: 12px;
}

.syllabus-module-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

.syllabus-topic-list {
    padding: 12px 20px;
    list-style: none;
}

.syllabus-topic-item {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.syllabus-topic-item::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

/* Forms UI */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 48px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

textarea.form-control {
    height: 120px;
    padding: 12px 16px;
    resize: none;
}

.validation-error {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 6px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-medium);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-small);
    border: 1px solid var(--border);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

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

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Desktop-only Site-Wide Premium Background Overrides
   ========================================================================== */
@media (min-width: 992px) {
    body:not(.admin-body) {
        background-image: url('../images/website_background.jpg') !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-attachment: fixed !important;
        background-size: cover !important;
    }
    
    /* Make section backgrounds transparent to let the soft background waves show through */
    body:not(.admin-body) section,
    body:not(.admin-body) .hero,
    body:not(.admin-body) .statistics-section,
    body:not(.admin-body) .courses-section,
    body:not(.admin-body) .faculty-section,
    body:not(.admin-body) .notices-section,
    body:not(.admin-body) .testimonials-section,
    body:not(.admin-body) .gallery-section,
    body:not(.admin-body) main {
        background-color: transparent !important;
    }
}

/* ==========================================================================
   Mobile-only Site-Wide Premium Background & Bottom Nav Overrides
   ========================================================================== */
@media (max-width: 991px) {
    body:not(.admin-body) {
        background-image: url('../images/website_background_mobile.png') !important;
        background-repeat: no-repeat !important;
        background-position: top center !important;
        background-attachment: fixed !important;
        background-size: cover !important;
    }
    
    /* Make section backgrounds transparent to let the soft background waves show through on mobile too */
    section,
    .hero,
    .statistics-section,
    .courses-section,
    .faculty-section,
    .notices-section,
    .testimonials-section,
    .gallery-section,
    main {
        background-color: transparent !important;
    }

    /* Mobile Bottom Sticky Nav items gap and padding alignments */
    .mobile-bottom-nav {
        display: flex !important;
        justify-content: space-between !important;
        gap: 4px !important;
        padding: 8px 6px max(10px, env(safe-area-inset-bottom)) !important;
        background-color: #ffffff !important;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
    }

    .bottom-nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        padding: 4px 0 !important;
        text-decoration: none !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    /* Container around icons to keep padding symmetrical and touch-friendly */
    .bottom-nav-item .nav-icon-container {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 10px !important;
        border-radius: 12px !important;
        background-color: transparent !important;
        transition: all 0.2s ease !important;
    }

    /* Active bottom nav pill styling */
    .bottom-nav-item.active .nav-icon-container {
        background-color: var(--primary-light) !important;
        color: var(--primary) !important;
    }
}
