/* Custom Styles - Modern Professional Design */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 50px 50px;
    margin-bottom: 4rem;
    padding: 5rem 0 !important;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    animation: fadeInUp 1s ease-out;
}

.hero-section .btn {
    animation: fadeInUp 1.2s ease-out;
    transition: transform 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

/* City Cards */
.city-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.city-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Premium Header */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.premium-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.6;
}

.premium-header .navbar {
    padding: 1rem 0;
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.premium-brand {
    padding: 0.5rem 0;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.premium-brand:hover {
    transform: translateY(-2px);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
}

.premium-brand:hover .brand-icon {
    background: rgba(255,255,255,0.35);
    transform: rotate(5deg) scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.premium-brand:hover .brand-title {
    text-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.premium-brand:hover .brand-subtitle {
    color: rgba(255,255,255,0.95);
}

.premium-header .nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
    padding: 0.6rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.premium-header .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.premium-header .nav-link:hover::before {
    width: 60%;
}

.premium-header .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.premium-header .nav-link:hover {
    background: rgba(255,255,255,0.18);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.premium-header .nav-link:hover i {
    transform: scale(1.1);
}

.premium-header .nav-link.btn-premium {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-left: 1rem;
    padding: 0.7rem 1.75rem !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.premium-header .nav-link.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.premium-header .nav-link.btn-premium:hover::before {
    left: 100%;
}

.premium-header .nav-link.btn-premium:hover {
    background: white;
    color: #667eea !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
    border-color: white;
}

/* Header Scrolled State */
.premium-header.scrolled {
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.1) !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%) !important;
}

@media (max-width: 991px) {
    .premium-header .nav-link span {
        display: none;
    }
    
    .premium-header .nav-link {
        padding: 0.75rem !important;
        justify-content: center;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .premium-header .nav-link.btn-premium {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        justify-content: center;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Question Items */
.question-item {
    min-height: 400px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.list-group-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.list-group-item input[type="radio"]:checked + strong {
    color: var(--primary-color);
    font-weight: 700;
}

.list-group-item:has(input[type="radio"]:checked) {
    background-color: #e7f3ff;
    border-color: var(--primary-color);
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    transition: width 1s ease;
    font-weight: 600;
}

/* Question Navigation */
.question-nav-btn {
    transition: all 0.2s ease;
    border-radius: 8px;
}

.question-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Premium Footer */
.premium-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6), transparent);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.premium-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.5;
}

.footer-top {
    padding: 5rem 0 3rem;
    position: relative;
    z-index: 1;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo .brand-wrapper {
    margin-bottom: 1.5rem;
}

.footer-logo .brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.footer-logo:hover .brand-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.footer-logo .brand-title {
    font-size: 1.5rem;
}

.footer-logo .brand-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.footer-description {
    color: rgba(255,255,255,0.75);
    line-height: 1.9;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}

.footer-widget:hover .footer-description {
    color: rgba(255,255,255,0.85);
}

.widget-title {
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transition: width 0.3s ease;
}

.widget-title:hover::after {
    width: 80px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.75rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-contact i {
    width: 42px;
    height: 42px;
    background: rgba(102, 126, 234, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.footer-contact li:hover i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.btn-premium-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-premium-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.footer-bottom {
    background: rgba(0,0,0,0.4);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.copyright-text {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.9rem;
}

.copyright-text strong {
    color: white;
    font-weight: 600;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legal-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    position: relative;
}

.legal-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.legal-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.legal-link:hover::after {
    width: 80%;
}

.separator {
    color: rgba(255,255,255,0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
    .premium-header .navbar {
        padding: 0.75rem 0;
    }
    
    .premium-header {
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .footer-top {
        padding: 3rem 0 1.5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-legal {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .premium-header .nav-link.btn-premium {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-button {
    font-weight: 600;
    background-color: #f8f9fa;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

/* Stats Section */
.stats-section .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Sections */
section {
    padding: 3rem 0;
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100%;
}

.container, .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
    max-width: 100%;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Form Styles */
.form-select, .form-select-lg {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.form-select:focus, .form-select-lg:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

/* Premium Location Card */
.location-card {
    border-radius: 20px;
    overflow: hidden;
}

.location-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.location-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    backdrop-filter: blur(10px);
}

.form-group-wrapper {
    position: relative;
}

.form-group-wrapper .form-label {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #495057;
}

.btn-start-test {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-start-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Premium Test Card */
.test-card {
    border-radius: 20px;
    overflow: hidden;
}

.test-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.location-badge {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
}

.timer-wrapper .badge {
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.question-content {
    padding: 1rem 0;
}

.question-text {
    color: #212529;
    line-height: 1.7;
    font-size: 1.25rem;
}

.question-image-wrapper {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
}

.question-image {
    transition: transform 0.3s ease;
}

.question-image:hover {
    transform: scale(1.02);
}

.answer-options {
    margin-top: 1.5rem;
}

.answer-option {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem !important;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.answer-option:hover {
    border-color: #667eea !important;
    background: #f8f9ff;
    transform: translateX(5px);
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option input[type="radio"]:checked {
    accent-color: #667eea;
}

.answer-option:has(input[type="radio"]:checked) {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #f8f9ff 0%, #e7f3ff 100%);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.15);
}

.answer-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.answer-letter {
    color: #667eea;
    font-size: 1.1rem;
    min-width: 25px;
}

.answer-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
}

.question-navigation {
    border-top: 2px solid #f0f0f0;
}

/* Premium Sidebar */
.test-sidebar {
    border-radius: 20px;
    overflow: hidden;
}

.test-sidebar .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.question-nav-btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 45px;
}

.question-nav-btn:hover {
    transform: scale(1.1);
}

.question-nav-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#completeBtn {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
    transition: all 0.3s ease;
}

#completeBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Gradient Primary */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Premium Result Card */
.result-card {
    border-radius: 20px;
    overflow: hidden;
}

.result-card .card-header {
    border: none;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%) !important;
}

.result-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.stat-box {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    line-height: 1.2;
}

.score-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #e9ecef;
}

.score-badge .badge {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

@media (max-width: 991px) {
    .test-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .location-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .result-icon {
        font-size: 3rem;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .question-item {
        min-height: auto;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .feature-card,
    .category-card {
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Sticky Top */
.sticky-top {
    z-index: 1020;
}

/* Image in Questions */
.question-item img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.question-item img:hover {
    transform: scale(1.02);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - Premium Design */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* Print Styles */
@media print {
    .premium-header,
    .btn,
    .premium-footer,
    .back-to-top,
    .question-nav-btn {
        display: none;
    }
}
