/* Custom CSS for MCQ Video Generator */
/* Brand Color: #005bab */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    --brand: #005bab;
    --brand-dark: #004a8c;
    --brand-darker: #003a6e;
    --brand-light: #1a7ad4;
    --brand-lighter: #e8f2fc;
    --brand-glow: rgba(0, 91, 171, 0.15);
    --bg-body: #f4f7fb;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555a6e;
    --text-muted: #8a8fa0;
    --border-light: #e5e9f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-brand: 0 4px 16px rgba(0, 91, 171, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== Bootstrap Overrides (Brand Color #005bab) ===== */
.bg-primary {
    background-color: var(--brand) !important;
}

.text-primary {
    color: var(--brand) !important;
}

.border-primary {
    border-color: var(--brand) !important;
}

.btn-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    box-shadow: 0 6px 24px rgba(0, 91, 171, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: var(--brand-darker) !important;
    border-color: var(--brand-darker) !important;
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--brand) !important;
    border-color: var(--brand) !important;
}

.btn-outline-primary:hover {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    box-shadow: var(--shadow-brand);
}

.btn-success {
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.2);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(25, 135, 84, 0.3);
}

.btn-danger {
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

.progress-bar {
    background-color: var(--brand);
}

.spinner-border.text-primary {
    color: var(--brand) !important;
}

.badge.bg-primary {
    background-color: var(--brand) !important;
}

.page-link {
    color: var(--brand);
}

.page-item.active .page-link {
    background-color: var(--brand);
    border-color: var(--brand);
}

.nav-pills .nav-link.active {
    background-color: var(--brand);
}

a {
    color: var(--brand);
    transition: var(--transition);
}

a:hover {
    color: var(--brand-dark);
}

/* ===== Enhanced Page Headers ===== */
.container>h1 {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ===== Enhanced Cards ===== */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-light)) !important;
    border-bottom: none;
}

/* ===== Enhanced Tables ===== */
.table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(0, 91, 171, 0.02);
}

.table-hover>tbody>tr:hover>* {
    background-color: var(--brand-lighter);
}

/* ===== Enhanced Alerts ===== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.alert-success {
    background: #edf7ed;
    color: #1b5e20;
}

.alert-danger {
    background: #ffeaea;
    color: #c62828;
}

.alert-info {
    background: var(--brand-lighter);
    color: var(--brand-dark);
}

.alert-warning {
    background: #fff8e1;
    color: #e65100;
}

/* ===== Enhanced Dropdowns ===== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--brand-lighter);
    color: var(--brand);
}

/* ===== Modal Enhancements ===== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
}

/* ===== Navbar ===== */
.navbar {
    box-shadow: 0 2px 20px rgba(0, 91, 171, 0.15);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background-color: var(--brand-lighter);
    color: var(--brand);
}

/* ===== Card Styles ===== */
.card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: rgba(0, 91, 171, 0.04);
    border-bottom: 1px solid var(--border-light);
}

/* ===== Form Styles ===== */
.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

/* ===== Button Styles ===== */
.btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 6px 24px rgba(0, 91, 171, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    background-color: var(--brand-darker);
    border-color: var(--brand-darker);
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline-primary:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ===== Video Card Styles ===== */
.video-card {
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== Question List Styles ===== */
.list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem 1.25rem;
}

.list-group-item:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* ===== Option Row Styles ===== */
.option-row {
    transition: background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.option-row:hover {
    background-color: var(--brand-lighter);
}

/* ===== Footer ===== */
footer {
    margin-top: 0;
    padding: 0;
}

/* ===== Jumbotron ===== */
.jumbotron {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

/* ===== Responsive Video Container ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Badge ===== */
.badge {
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: 6px;
}

/* ===== Accordion ===== */
.accordion-button:not(.collapsed) {
    background-color: var(--brand-lighter);
    color: var(--brand);
}

/* ===== Alert ===== */
.alert {
    border-radius: var(--radius-md);
}

/* ===== Timer Display ===== */
.timer-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--brand);
    color: white;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1000;
}

/* ===== Tables ===== */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background-color: var(--brand);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #b0b8c8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-light);
}

/* ===== Page-Specific: Index Hero ===== */
.hero-section {
    background: linear-gradient(135deg, #005bab 0%, #0078d4 50%, #00a3e0 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.7;
    font-weight: 400;
    max-width: 520px;
}

.hero-cta .btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.hero-cta .btn-light {
    color: var(--brand);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hero-cta .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hero-cta .btn-outline-light {
    border-width: 2px;
}

.hero-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

.hero-img {
    max-width: 100%;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== Page-Specific: Features ===== */
.features-section {
    padding: 5rem 0;
    background: var(--bg-body);
}

.section-badge {
    display: inline-block;
    background: var(--brand-lighter);
    color: var(--brand);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 3rem;
}

.feature-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    height: 100%;
    background: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--brand-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap {
    background: var(--brand);
}

.feature-icon-wrap i {
    font-size: 1.5rem;
    color: var(--brand);
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrap i {
    color: white;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== Page-Specific: Stats ===== */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #005bab 0%, #0078d4 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.stats-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stats-icon i {
    font-size: 1.4rem;
    color: white;
}

.stats-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== Page-Specific: How It Works ===== */
.how-it-works-section {
    padding: 5rem 0;
    background: white;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-lighter);
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: var(--transition);
}

.step-card:hover .step-number {
    background: var(--brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

.step-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 3.6rem;
        right: -15%;
        width: 30%;
        height: 2px;
        background: linear-gradient(90deg, var(--brand-lighter), transparent);
    }
}

/* ===== Page-Specific: CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-body);
}

.cta-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), #00a3e0);
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ===== Footer Enhanced ===== */
.footer-modern {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 0;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-modern a:hover {
    color: white;
}

/* ===== Utility Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center !important;
    }

    .hero-img {
        max-width: 80%;
        margin: 2rem auto 0;
        display: block;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .stats-section {
        padding: 3rem 0;
    }
}