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

/* CSS VARIABLES - DESIGN SYSTEM */
:root {
    --primary: #1E3A8A;
    --primary-rgb: 30, 58, 138;
    --primary-light: #3B82F6;
    --secondary: #F59E0B;
    --secondary-rgb: 245, 158, 11;
    --secondary-light: #FBBF24;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --info: #06B6D4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(30, 58, 138, 0.08), 0 10px 10px -5px rgba(30, 58, 138, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(12px);
}

/* DARK MODE OVERRIDES */
[data-theme="dark"] {
    --background: #090D1A;
    --card-bg: #111827;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    --glass-bg: rgba(17, 24, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
}

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

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

/* LOADING ANIMATION */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-light);
    border-bottom-color: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* UTILITY CLASSES */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-light) !important; }
.text-secondary { color: var(--secondary) !important; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* STICKY NAVBAR */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

[data-theme="dark"] .logo {
    color: #FFFFFF;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.3);
}

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

[data-theme="dark"] .btn-outline {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

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

[data-theme="dark"] .btn-outline:hover {
    background-color: var(--primary-light);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* THEME SWITCHER */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--primary-light);
    color: #FFFFFF;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* HERO SECTION */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(245, 158, 11, 0.03) 100%), var(--background);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-content h1 span {
    background: linear-gradient(90deg, #60A5FA, var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    z-index: 2;
    position: relative;
}

.hero-image-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    border: 3px solid var(--secondary);
    border-radius: var(--border-radius-lg);
    z-index: 1;
}

/* COURSES CARDS */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(30, 58, 138, 0.2);
}

.course-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background-color: #E2E8F0;
    position: relative;
}

.course-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.course-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-fees {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* WHY CHOOSE US */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

[data-theme="dark"] .feature-icon {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.feature-card:hover .feature-icon {
    background-color: var(--secondary);
    color: #FFFFFF;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* SUCCESS STATISTICS */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #172554 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    padding: 20px;
}

.stat-card h2 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat-card p {
    font-size: 1.05rem;
    font-weight: 500;
    opacity: 0.9;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 3rem;
    color: rgba(30, 58, 138, 0.05);
    line-height: 1;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    border: 2px solid var(--secondary);
}

.user-info h4 {
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* FOOTER */
footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 70px 0 20px 0;
    font-size: 0.92rem;
    border-top: 1px solid #1E293B;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1E293B;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-links-col h3 {
    color: #FFFFFF;
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-links-col h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

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

.footer-link:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: var(--secondary);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1E293B;
    color: #64748B;
    font-size: 0.85rem;
}

/* ABOUT US PAGES & TIMELINE */
.about-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding: 20px 0;
}

.about-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--card-bg);
    border: 3px solid var(--secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left-item {
    left: 0;
}

.right-item {
    left: 50%;
}

.right-item::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* FILTERS & SEARCH MODULES */
.filter-bar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-control {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.92rem;
    background-color: var(--background);
    color: var(--text-main);
    transition: var(--transition);
}

.search-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 30px;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* AUTH PAGES */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 480px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background-color: var(--background);
    color: var(--text-main);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.form-footer a {
    color: var(--primary-light);
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-light);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* PORTAL DASHBOARDS */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 75px);
}

.dashboard-sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-profile-summary h4 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.user-profile-summary p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(30, 58, 138, 0.08);
    color: var(--primary-light);
}

[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-link.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: #FFFFFF;
}

.sidebar-logout {
    margin-top: auto;
    color: var(--danger) !important;
}

.sidebar-logout:hover {
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.dashboard-content {
    padding: 40px;
    background-color: var(--background);
    overflow-y: auto;
}

.dashboard-welcome {
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.dash-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.dash-icon.blue { background-color: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.dash-icon.amber { background-color: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.dash-icon.emerald { background-color: rgba(16, 185, 129, 0.12); color: #10B981; }
.dash-icon.purple { background-color: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

.dash-info h3 {
    font-size: 1.8rem;
    line-height: 1.2;
}

.dash-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* PORTAL ACTIONS & WIDGETS */
.portal-section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.portal-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.portal-box-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-actions-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn-card {
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-btn-card:hover {
    border-color: var(--primary-light);
    background-color: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn-card i {
    font-size: 1.6rem;
    color: var(--primary-light);
}

.action-btn-card span {
    font-weight: 600;
    font-size: 0.88rem;
}

/* VIDEOS & PLAY MODALS */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-thumbnail {
    position: relative;
    height: 160px;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
    opacity: 0.7;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    background-color: var(--primary-light);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    padding: 20px;
}

.video-sub-chapter {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.video-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-subject-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background-color: var(--border-color);
    color: var(--text-muted);
}

/* MATERIALS & LISTS */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.material-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

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

.pdf-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.material-info {
    flex-grow: 1;
    overflow: hidden;
}

.material-title {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* TEST ENVIRONMENT MODALS */
.test-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.test-selector-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.test-selector-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.test-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.test-badge.daily { background-color: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.test-badge.weekly { background-color: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.test-badge.monthly { background-color: rgba(16, 185, 129, 0.15); color: #10B981; }

.test-selector-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.test-selector-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.test-details-list {
    text-align: left;
    margin-bottom: 25px;
    list-style: none;
    font-size: 0.88rem;
}

.test-details-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.test-details-list li i {
    color: var(--success);
}

/* ACTIVE TEST CONTAINER */
.test-interface {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.test-question-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.test-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.test-timer {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.08);
    padding: 6px 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.question-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--background);
    cursor: pointer;
    transition: var(--transition);
    gap: 15px;
}

.option-item:hover {
    border-color: var(--primary-light);
    background-color: var(--card-bg);
}

.option-item.selected {
    border-color: var(--primary);
    background-color: rgba(30, 58, 138, 0.05);
}

[data-theme="dark"] .option-item.selected {
    border-color: var(--primary-light);
    background-color: rgba(59, 130, 246, 0.1);
}

.option-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
}

.option-item.selected .option-marker {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #FFFFFF;
}

[data-theme="dark"] .option-item.selected .option-marker {
    border-color: var(--primary-light);
    background-color: var(--primary-light);
}

.option-text {
    font-size: 0.95rem;
}

.test-nav-btns {
    display: flex;
    justify-content: space-between;
}

.test-panel {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: flex-start;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.palette-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--background);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.palette-btn.answered {
    background-color: var(--success);
    color: #FFFFFF;
    border-color: var(--success);
}

.palette-btn.visited {
    background-color: var(--danger);
    color: #FFFFFF;
    border-color: var(--danger);
}

.palette-btn.active {
    border: 2px solid var(--secondary);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.legend-list {
    list-style: none;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-dot.answered { background-color: var(--success); }
.legend-dot.unanswered { background-color: var(--danger); }
.legend-dot.not-visited { background-color: var(--background); border: 1px solid var(--border-color); }

/* RESULTS PAGE DETAILS */
.result-header {
    text-align: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.score-circle-wrapper {
    width: 160px;
    height: 160px;
    position: relative;
    margin: 20px auto;
}

.score-circle-svg {
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 10;
}

.score-circle-progress {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.score-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-circle-text h2 {
    font-size: 2rem;
    line-height: 1;
}

.score-circle-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.result-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.analytic-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.analytic-card h3 {
    font-size: 1.8rem;
    margin-top: 10px;
}

.subject-analysis {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.subject-bar-row {
    margin-bottom: 20px;
}

.subject-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subject-bar-bg {
    height: 10px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.subject-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--success));
    border-radius: 10px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CONTACT PAGE STYLING */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

[data-theme="dark"] .contact-icon-box {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.contact-details-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-details-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.contact-form-box {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.contact-form-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

/* ADMIN WORKSPACE DETAILS */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--background);
}

.admin-table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.02);
}

[data-theme="dark"] .admin-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* POPUP MODAL COMPONENT */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    width: 90%;
    max-width: 600px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.video-modal-container {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #FFFFFF;
    font-size: 2rem;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.video-modal-close:hover {
    color: var(--secondary);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .test-interface {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 40px 0;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .about-timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-item::after {
        left: 12px;
    }
    
    .right-item {
        left: 0;
    }
    
    .portal-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
}
