/* ============================================
   Lakshya Rank - Homepage Styles
   Colors: Navy #1a3b6d | Orange #f39200
   ============================================ */

:root {
    --color-primary: #1a3b6d;
    --color-primary-dark: #0f2547;
    --color-accent: #f39200;
    --color-accent-hover: #e08500;
    --color-white: #ffffff;
    --color-gray-100: #f8f9fa;
    --color-gray-200: #e9ecef;
    --color-gray-500: #6c757d;
    --color-gray-700: #495057;
    --color-black: #111111;
    --font-family: 'Open Sans', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --transition: 0.3s ease;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background: var(--color-white);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

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

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

.btn-outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

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

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

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    display: none;
}

.logo img[style*="display: none"] + .logo-text,
.logo-text:only-child {
    display: inline;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-accent);
}

.btn-register {
    padding: 10px 24px;
    font-size: 14px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--color-gray-100);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-user-pill i {
    color: var(--color-accent);
    flex-shrink: 0;
}

.btn-header-auth {
    padding: 10px 18px;
    font-size: 14px;
}

.btn-header-auth.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    margin-top: var(--header-height);
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(26, 59, 109, 0.72);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 60px 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dots .dot.active {
    background: var(--color-accent);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
}

.section-title.left {
    text-align: left;
    margin-bottom: 0;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.view-all-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 15px;
}

.view-all-link:hover {
    color: var(--color-accent-hover);
}

/* About */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 36px;
    color: var(--color-accent);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

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

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    flex: 1;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Category Cards */
.category-card {
    flex: 0 0 200px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 30px 20px;
    text-align: center;
    transition: box-shadow var(--transition);
}

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

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.category-icon i {
    font-size: 32px;
    color: var(--color-accent);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.empty-message {
    text-align: center;
    color: var(--color-gray-500);
    font-size: 15px;
    padding: 30px 0;
}

/* Mission */
.mission-section {
    background: var(--color-gray-100);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-content p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.8;
}

/* Exam Cards */
.exam-card {
    flex: 0 0 260px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    transition: box-shadow var(--transition);
}

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

.exam-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.exam-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.exam-icon i {
    font-size: 28px;
    color: var(--color-primary);
}

.exam-tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.tag-free {
    background: #d4edda;
    color: #155724;
}

.tag-paid {
    background: #cce5ff;
    color: #004085;
}

.tag-category {
    background: #e8eef5;
    color: var(--color-primary);
}

.exam-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.exam-details {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-bottom: 16px;
}

/* Exams listing page */
.exams-page-section {
    background: var(--color-gray-100);
}

.exams-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.exams-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}

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

.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exam-card-grid {
    flex: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.exam-card-grid.is-highlighted {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.exam-card-desc {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exam-card-date {
    font-size: 12px;
    color: var(--color-gray-500);
    margin-bottom: 14px;
    margin-top: auto;
}

.exam-card-date i {
    color: var(--color-accent);
    margin-right: 4px;
}

.exam-selected-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 24px 28px;
    margin-bottom: 28px;
    border-left: 4px solid var(--color-accent);
}

.exam-selected-banner h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0 6px;
}

.exam-selected-banner p {
    font-size: 14px;
    color: var(--color-gray-500);
    margin: 0;
}

.exam-selected-desc {
    margin-top: 8px !important;
}

.exams-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.exams-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.exams-page-info {
    font-size: 14px;
    color: var(--color-gray-500);
    font-weight: 600;
}

/* App Download */
.app-download-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #1a3b6d 100%);
    color: var(--color-white);
    padding: 80px 0;
}

.app-download-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.app-download-content {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.app-download-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.app-download-content p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.7;
}

.app-download-image {
    flex: 0 0 300px;
}

.app-download-image img {
    max-height: 400px;
    margin: 0 auto;
}

/* App Phone Slider */
.app-phone-slider {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    text-align: center;
}

.app-slider-screen {
    position: relative;
    width: 100%;
    height: 380px;
    margin: 0 auto;
}

.app-slider-screen .app-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.app-slider-screen .app-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.app-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.app-slider-dots .app-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.app-slider-dots .app-dot.active {
    background: var(--color-accent);
}

/* Disclaimer */
.disclaimer-section {
    background: var(--color-gray-100);
}

.disclaimer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-content p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray-500);
}

/* Statistics */
.stats-section {
    background: var(--color-primary);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* How It Works */
.steps-list {
    max-width: 700px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* CTA */
.cta-section {
    background: var(--color-primary-dark);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* Footer */
.site-footer {
    background: var(--color-black);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 20px;
}

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

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

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-download-inner {
        flex-direction: column;
        text-align: center;
    }

    .app-download-content,
    .app-phone-slider {
        flex: none;
        max-width: 100%;
    }

    .app-slider-screen {
        height: 340px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid var(--color-gray-200);
    }

    .header-actions {
        gap: 6px;
    }

    .header-user-pill {
        display: none;
    }

    .btn-header-auth,
    .btn-register {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }

    .category-card {
        flex: 0 0 170px;
    }

    .exam-card {
        flex: 0 0 240px;
    }

    .app-download-content h2 {
        font-size: 24px;
    }

    .stat-number {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero {
        min-height: 400px;
    }
}

/* Static Pages */
.page-hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 50px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 16px;
    opacity: 0.9;
}

.page-content-section {
    padding: 50px 0 70px;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 28px 0 12px;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    margin-bottom: 14px;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.page-content ul {
    margin: 0 0 16px 20px;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content a {
    color: var(--color-accent);
    font-weight: 600;
}

.page-content a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: left;
    font-family: inherit;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-accent);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 20px 16px;
    margin: 0;
    color: var(--color-gray-500);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-contact {
    text-align: center;
    margin-top: 30px;
    color: var(--color-gray-500);
}

/* Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.sitemap-group h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

.sitemap-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-group li {
    margin-bottom: 8px;
}

.sitemap-group a {
    color: var(--color-gray-700);
    font-size: 15px;
    transition: color 0.3s;
}

.sitemap-group a:hover {
    color: var(--color-accent);
}

.about-note {
    margin-top: 32px;
    padding: 24px;
    background: var(--color-gray-100);
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
}

.about-note p {
    margin-bottom: 12px;
}

.about-note p:last-child {
    margin-bottom: 0;
}

/* Tutorials */
.tutorials-section {
    margin-top: var(--header-height);
    background: var(--color-gray-100);
    padding: 40px 0 70px;
    min-height: 60vh;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tutorial-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: box-shadow var(--transition);
}

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

.tutorial-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tutorial-card-icon i {
    color: var(--color-white);
    font-size: 18px;
}

.tutorial-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tutorial-card p {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.tutorial-card-link {
    align-self: flex-end;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.tutorial-card-link:hover {
    gap: 10px;
}

/* Blog */
.blog-section {
    background: var(--color-gray-100);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-gray-200);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-date i {
    color: var(--color-accent);
}

.blog-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h2 a {
    color: inherit;
    transition: color var(--transition);
}

.blog-card h2 a:hover {
    color: var(--color-accent);
}

.blog-card-body > p {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 10px;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.blog-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.blog-page-info {
    font-size: 14px;
    color: var(--color-gray-500);
    font-weight: 600;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.blog-breadcrumb a {
    color: var(--color-accent);
    font-weight: 600;
}

.blog-breadcrumb i {
    font-size: 10px;
}

.blog-post-section {
    background: var(--color-gray-100);
}

.blog-single-hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5298 100%);
    color: var(--color-white);
    padding: 48px 0 56px;
}

.blog-single-hero .blog-breadcrumb {
    margin-bottom: 20px;
}

.blog-single-hero .blog-breadcrumb a,
.blog-single-hero .blog-breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
}

.blog-single-hero .blog-breadcrumb a {
    color: var(--color-accent);
}

.blog-single-hero time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.blog-single-hero time i {
    color: var(--color-accent);
}

.blog-single-hero h1 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    max-width: 900px;
}

.blog-single-hero p {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.92;
    max-width: 760px;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.blog-post {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.blog-post-image {
    width: 100%;
    max-height: 460px;
    overflow: hidden;
    background: var(--color-gray-200);
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 36px 40px;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: var(--color-primary);
    margin: 28px 0 14px;
    line-height: 1.4;
}

.blog-post-content h2 { font-size: 24px; }
.blog-post-content h3 { font-size: 20px; }
.blog-post-content h4 { font-size: 18px; }

.blog-post-content p {
    margin-bottom: 16px;
    line-height: 1.85;
    color: var(--color-gray-700);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 18px 24px;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

.blog-post-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--color-accent);
    background: var(--color-gray-100);
    border-radius: 0 6px 6px 0;
    color: var(--color-gray-700);
}

.blog-post-footer {
    padding: 0 40px 36px;
}

.blog-sidebar {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.blog-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-200);
}

.blog-recent-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: opacity var(--transition);
}

.blog-recent-item:hover {
    opacity: 0.85;
}

.blog-recent-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--color-gray-200);
}

.blog-recent-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.blog-recent-item time {
    font-size: 12px;
    color: var(--color-gray-500);
}

.tutorial-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.tutorial-breadcrumb a {
    color: var(--color-accent);
    font-weight: 600;
}

.tutorial-breadcrumb i {
    font-size: 10px;
}

.tutorial-topic-header {
    margin-bottom: 30px;
}

.tutorial-topic-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.tutorial-topic-header p {
    font-size: 16px;
    color: var(--color-gray-500);
    line-height: 1.7;
    max-width: 100%;
}

/* Split layout: chapters left, content right */
.tutorial-split-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tutorial-sidebar {
    flex: 0 0 320px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
}

.tutorial-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tutorial-sidebar-title i {
    color: var(--color-accent);
}

.tutorial-chapter-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chapter-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s ease;
}

.chapter-nav-item:hover {
    background: var(--color-gray-100);
}

.chapter-nav-item.active {
    background: rgba(243, 146, 0, 0.12);
    border-left: 3px solid var(--color-accent);
    padding-left: 11px;
}

.chapter-nav-item .chapter-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-gray-200);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.chapter-nav-item.active .chapter-num {
    background: var(--color-accent);
    color: var(--color-white);
}

.chapter-nav-item .chapter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    line-height: 1.4;
}

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

.tutorial-detail {
    flex: 1;
    min-width: 0;
}

.chapter-panel {
    display: none;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.chapter-panel.active {
    display: block;
}

.chapter-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-gray-200);
}

.chapter-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.chapter-body h1,
.chapter-body h2,
.chapter-body h3 {
    color: var(--color-primary);
    margin: 24px 0 12px;
}

.chapter-body h1 { font-size: 22px; }
.chapter-body h2 { font-size: 18px; }
.chapter-body h3 { font-size: 16px; }

.chapter-body p {
    margin-bottom: 12px;
}

.chapter-body ul {
    margin: 0 0 16px 20px;
}

/* Legacy single-page chapter styles */
.tutorial-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.tutorial-chapter-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.tutorial-chapter-item:hover {
    box-shadow: var(--shadow-md);
}

.chapter-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-white);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapter-title {
    flex: 1;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 15px;
}

.tutorial-chapter-item > i {
    color: var(--color-accent);
    font-size: 14px;
}

.tutorial-chapter-content {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-bottom: 24px;
}

.tutorial-chapter-content h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-gray-200);
}

.chapter-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.chapter-body h1,
.chapter-body h2,
.chapter-body h3 {
    color: var(--color-primary);
    margin: 24px 0 12px;
}

.chapter-body p {
    margin-bottom: 12px;
}

.chapter-body ul {
    margin: 0 0 16px 20px;
}

.tutorial-chapter-nav {
    max-width: 800px;
}

@media (max-width: 992px) {
    .tutorials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .tutorial-split-layout {
        flex-direction: column;
    }

    .tutorial-sidebar {
        flex: none;
        width: 100%;
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .exams-grid {
        grid-template-columns: 1fr;
    }

    .exam-selected-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-single-hero h1 {
        font-size: 26px;
    }

    .blog-post-content,
    .blog-post-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .tutorial-chapter-content,
    .chapter-panel {
        padding: 20px;
    }

    .page-hero h1 {
        font-size: 28px;
    }
}

/* Contact Page */
.contact-page {
    margin-top: var(--header-height);
    background: #f5f7fa;
    padding-bottom: 70px;
}

.contact-hero {
    background: var(--color-white);
    padding: 48px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-200);
}

.contact-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 16px;
    color: var(--color-gray-500);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

.contact-body {
    padding-top: 40px;
}

.contact-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 28px;
}

.contact-alert.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    margin-bottom: 32px;
    align-items: start;
}

.contact-panel {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 59, 109, 0.08);
    padding: 36px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-gray-100);
}

.contact-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(243, 146, 0, 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-panel-icon-blue {
    background: rgba(26, 59, 109, 0.1);
    color: var(--color-primary);
}

.contact-panel-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dde2e8;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #adb5bd;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-submit-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.contact-reach-intro {
    font-size: 15px;
    color: var(--color-gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-email-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef2f7 100%);
    border-radius: 10px;
    border: 1px solid #e3e8ef;
    margin-bottom: 20px;
}

.contact-email-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(26, 59, 109, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-email-icon i {
    font-size: 22px;
    color: var(--color-primary);
}

.contact-email-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-500);
    margin-bottom: 4px;
}

.contact-email-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent);
    word-break: break-all;
}

.contact-email-value:hover {
    text-decoration: underline;
}

.contact-note-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fff8ee;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
}

.contact-note-box i {
    color: var(--color-accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-note-box p {
    font-size: 13px;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-info-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(26, 59, 109, 0.06);
    padding: 28px 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(243, 146, 0, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.75;
    margin-bottom: 10px;
}

.contact-info-card ul {
    margin: 0 0 12px 0;
    padding: 0;
    list-style: none;
}

.contact-info-card li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 8px;
}

.contact-info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.contact-info-foot {
    font-size: 13px !important;
    color: var(--color-gray-500) !important;
    font-style: italic;
}

.contact-warning {
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 28px;
    }

    .contact-hero {
        padding: 32px 0 28px;
    }

    .contact-panel {
        padding: 24px 20px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 22px 20px;
    }
}

/* Auth pages (Register / Login) */
.auth-page {
    margin-top: var(--header-height);
    background: #f5f7fa;
    padding-bottom: 70px;
    min-height: calc(100vh - var(--header-height));
}

.auth-hero {
    background: var(--color-white);
    padding: 44px 0 36px;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-200);
}

.auth-hero h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.auth-hero p {
    font-size: 16px;
    color: var(--color-gray-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.auth-body {
    padding-top: 36px;
}

.auth-card-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.auth-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26, 59, 109, 0.08);
    padding: 36px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-gray-100);
}

.auth-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(243, 146, 0, 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.auth-card-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

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

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-otp-input {
    text-align: center;
    font-size: 24px !important;
    letter-spacing: 8px;
    font-weight: 700;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-gray-500);
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.auth-alert.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-gray-500);
}

.auth-footer-text a {
    color: var(--color-accent);
    font-weight: 600;
}

.auth-resend-form {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--color-gray-500);
}

.auth-link-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    padding: 0;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

.auth-success-card {
    text-align: center;
}

.auth-success-icon {
    font-size: 56px;
    color: #28a745;
    margin-bottom: 16px;
}

.auth-success-card h2 {
    font-size: 24px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.auth-success-card p {
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.auth-secondary-btn {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .auth-hero h1 {
        font-size: 28px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

/* User Dashboard */
.dashboard-hero {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a5298 100%);
    color: var(--color-white);
    padding: 44px 0;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
}

.dashboard-welcome h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-welcome p {
    opacity: 0.9;
    font-size: 16px;
}

.dashboard-section {
    background: #f5f7fa;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-stat-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
}

.dashboard-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.dashboard-stat-icon.blue {
    background: rgba(26, 59, 109, 0.1);
    color: var(--color-primary);
}

.dashboard-stat-icon.orange {
    background: rgba(243, 146, 0, 0.12);
    color: var(--color-accent);
}

.dashboard-stat-icon.green {
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
}

.dashboard-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.dashboard-stat-label {
    font-size: 14px;
    color: var(--color-gray-500);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.dashboard-panel {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dashboard-panel-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-gray-200);
}

.dashboard-panel-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-panel-head h2 i {
    color: var(--color-accent);
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 14px 24px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-gray-100);
}

.dashboard-table th {
    background: var(--color-gray-100);
    color: var(--color-primary);
    font-weight: 700;
}

.dashboard-table td {
    color: var(--color-gray-700);
}

.score-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(243, 146, 0, 0.12);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 13px;
}

.dashboard-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-gray-500);
}

.dashboard-empty i {
    font-size: 40px;
    color: var(--color-gray-200);
    margin-bottom: 12px;
}

.dashboard-empty p {
    margin-bottom: 16px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-profile-list {
    list-style: none;
    padding: 0 24px 24px;
}

.dashboard-profile-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 14px;
}

.dashboard-profile-list li:last-child {
    border-bottom: none;
}

.dashboard-profile-list span {
    color: var(--color-gray-500);
}

.dashboard-profile-list strong {
    color: var(--color-primary);
    text-align: right;
}

.text-success {
    color: #28a745 !important;
}

.dashboard-quick-links {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 16px;
}

.dashboard-quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    transition: background var(--transition);
}

.dashboard-quick-links a:hover {
    background: var(--color-gray-100);
    color: var(--color-accent);
}

.dashboard-quick-links a i {
    width: 20px;
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-welcome h1 {
        font-size: 24px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}
