/* 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;
}

/* City and District Content Styles */
.city-content,
.district-content {
    text-align: left;
    margin: 0 auto;
    max-width: 800px;
}

.city-content h1,
.district-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.city-content h2,
.district-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.city-content h3,
.district-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.city-content p,
.district-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.city-content ul,
.district-content ul,
.city-content ol,
.district-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.city-content li,
.district-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .city-content h1,
    .district-content h1 {
        font-size: 2rem;
    }
    
    .city-content h2,
    .district-content h2 {
        font-size: 1.5rem;
    }
    
    .city-content h3,
    .district-content h3 {
        font-size: 1.25rem;
    }
    
    .city-content p,
    .district-content p {
        font-size: 1rem;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size-adjust: 0.52;
    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;
    min-height: 520px;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    line-height: 1.15;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    line-height: 1.5;
    animation: fadeInUp 1s ease-out;
}

.hero-section .btn {
    line-height: 1.2;
    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);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 360px;
    }
}

/* 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(90deg, #0f172a 0%, #1e293b 55%, #0b1220 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
    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: #0f4c81 !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(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 55%, rgba(11, 18, 32, 0.98) 100%) !important;
}

@media (max-width: 991px) {
    .premium-header .nav-link {
        padding: 0.75rem 0.9rem !important;
        justify-content: flex-start;
        font-size: 0.95rem;
        line-height: 1.3;
        width: 100%;
        margin: 0.1rem 0;
    }

    .premium-header .nav-link span {
        display: inline;
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .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;
    }

    .premium-header .navbar-collapse {
        background: rgba(10, 18, 32, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.25);
        border-radius: 14px;
        padding: 0.75rem;
        margin-top: 0.75rem;
    }

    .premium-header .nav-link i {
        width: 1.2rem;
        text-align: center;
        margin-right: 0.35rem;
        font-size: 1rem;
    }

    .premium-header .nav-link span {
        font-size: 0.92rem;
    }
}

/* 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);
}

.premium-header {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #0b1220 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.premium-header::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(125, 211, 252, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(148, 163, 184, 0.1) 0%, transparent 50%);
}

.premium-header .nav-link {
    color: rgba(248, 250, 252, 0.95) !important;
}

.premium-header .nav-link::before {
    background: #7dd3fc;
}

.premium-header .nav-link:hover {
    background: rgba(148, 163, 184, 0.18);
}

.premium-header .nav-link.btn-premium {
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.premium-header .nav-link.btn-premium:hover {
    background: white;
    color: #0f4c81 !important;
    border-color: white;
}

.premium-header.scrolled {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 55%, rgba(11, 18, 32, 0.98) 100%) !important;
}

/* 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, #334155 0%, #0f4c81 100%);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0f4c81 0%, #334155 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #0f4c81 #f1f1f1;
}

/* Print Styles */
@media print {
    .premium-header,
    .btn,
    .premium-footer,
    .back-to-top,
    .question-nav-btn {
        display: none;
    }
}
/* Blog Post Show Page Styles - Mobile SEO Optimized */

/* Base Typography - Google Mobile-Friendly Requirement */
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Blog Content Styles - Mobile Optimized */
.blog-content {
    font-size: 16px;
    line-height: 1.7;
    color: #2c3e50;
}

.blog-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1.5em;
    text-align: justify;
}

/* Heading Styles - Proper Hierarchy */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.blog-content h1 { 
    font-size: 2.25em; 
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5em;
}

.blog-content h2 { 
    font-size: 1.875em; 
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.4em;
}

.blog-content h3 { 
    font-size: 1.5em; 
}

.blog-content h4 { 
    font-size: 1.25em; 
}

.blog-content h5 { 
    font-size: 1.1em; 
}

.blog-content h6 { 
    font-size: 1em; 
}

/* Fix H2-H6 Hierarchy - Prevent gaps */
.blog-content h2 + h4 {
    margin-top: 1em;
}

.blog-content h3 + h5 {
    margin-top: 1em;
}

/* Links and Buttons - Google Tap Target Requirement (44x44px minimum) */
.blog-content a,
.blog-content button,
.blog-share a,
.blog-cta a,
.blog-cta button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
}

.blog-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    /* Reduced transition for better INP */
    transition: color 0.2s ease;
}

.blog-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Lists */
.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5em;
    padding-left: 2.5em;
}

.blog-content li {
    margin-bottom: 0.75em;
    line-height: 1.8;
}

/* Images */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Blockquote */
.blog-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1.5em 2em;
    margin: 2em 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.blog-content table th,
.blog-content table td {
    padding: 1em;
    border: 1px solid #e9ecef;
}

.blog-content table th {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%) !important;
    color: #f8fafc !important;
    font-weight: 600;
}

.blog-content table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Code */
.blog-content code {
    background-color: #f1f3f5;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.blog-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Breadcrumb */
.blog-breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
    vertical-align: baseline;
    line-height: 1.5;
}

.breadcrumb-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0; /* Flexbox ellipsis için gerekli */
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    padding: 0 0.5rem;
}

/* Blog Header */
.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.blog-featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
}

.blog-featured-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.blog-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.blog-toc li + li {
    margin-top: 0.5rem;
}

.blog-toc .toc-level-3 {
    padding-left: 0.85rem;
}

.blog-toc a {
    color: #1e3a5f;
    line-height: 1.45;
}

.blog-toc a:hover {
    color: #0f172a;
}

/* Sidebar Styles - Reduced transitions for better INP */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    /* Reduced transition */
    transition: background-color 0.2s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    /* Removed transform for better INP */
}

.list-group-item h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.list-group-item:hover h6 {
    color: #667eea;
}

/* Share Buttons - Tap target optimization */
.blog-share a {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem;
}

/* CTA Button - Tap target optimization */
.blog-cta .btn {
    min-height: 48px;
    min-width: 120px;
    padding: 0.75rem 2rem;
}

.blog-cta {
    border-top: 2px solid #e2e8f0;
}

.blog-cta-card {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 1rem;
}

.blog-cta-btn {
    width: auto;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    padding: 0.85rem 1.5rem;
}

.blog-inline-ad .card {
    background: #f8fafc;
}

.blog-inline-ad .ad-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.author-box {
    border-top: 1px solid #e2e8f0;
}

.author-box-card {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
}

.author-avatar-wrap {
    flex: 0 0 auto;
}

.author-avatar-img,
.author-avatar-fallback {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.author-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #e2e8f0;
}

.author-box-content h3 {
    font-size: 1.1rem;
}

.author-bio-text {
    line-height: 1.65;
}

/* Responsive - Mobile First Approach */
@media (max-width: 768px) {
    /* Typography adjustments */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .blog-header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .blog-featured-image {
        border-radius: 12px;
        padding: 0.5rem;
    }

    .blog-featured-image img {
        max-height: 320px;
    }
    
    .blog-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .blog-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-content h1 { 
        font-size: 1.75em; 
    }
    
    .blog-content h2 { 
        font-size: 1.3rem; 
    }
    
    .blog-content h3 { 
        font-size: 1.15rem; 
    }
    
    .blog-content h4 { 
        font-size: 1.05rem; 
    }
    
    /* Disable transitions on mobile for better INP */
    .blog-content a,
    .list-group-item,
    .breadcrumb-item a {
        transition: none;
    }
    
    /* Ensure breadcrumb items align properly on mobile */
    .breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        display: inline-flex;
        align-items: center;
        line-height: 1.5;
    }
    
    .breadcrumb-item.active {
        max-width: calc(100% - 120px); /* Ana Sayfa ve Blog linkleri için alan bırak */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Spacing adjustments */
    .blog-content p {
        margin-bottom: 1.25em;
    }
    
    .blog-content h1,
    .blog-content h2,
    .blog-content h3,
    .blog-content h4,
    .blog-content h5,
    .blog-content h6 {
        margin-top: 1.5em;
        margin-bottom: 0.75em;
    }
    
    /* Card padding */
    .card-body {
        padding: 1.5rem !important;
    }

    .blog-cta .card-body {
        padding: 1.25rem !important;
    }

    .blog-cta h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .blog-cta p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem !important;
    }

    .blog-cta-btn {
        width: 100%;
        min-width: 0;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    /* Table responsiveness */
    .blog-content table {
        display: block;
        width: max-content;
        min-width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .blog-content table th,
    .blog-content table td {
        min-width: 150px;
        padding: 0.75rem;
        vertical-align: top;
    }

    .author-box-inner {
        align-items: center !important;
    }

    .author-avatar-img,
    .author-avatar-fallback {
        width: 88px;
        height: 88px;
    }
    
    /* Share buttons spacing */
    .blog-share a {
        margin: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    .blog-content {
        font-size: 16px;
    }
    
    .blog-content h1 { 
        font-size: 1.875em; 
    }
    
    .blog-content h2 { 
        font-size: 1.5em; 
    }
    
    .blog-content h3 { 
        font-size: 1.25em; 
    }
    
    .blog-sidebar .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .blog-header h1 {
        font-size: 1.5rem !important;
    }
    
    .blog-content {
        font-size: 16px;
    }
    
    .blog-content p {
        text-align: left;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }

    .author-box .card-body {
        padding: 1rem !important;
    }

    .author-box-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem !important;
    }

    .author-avatar-img,
    .author-avatar-fallback {
        width: 96px;
        height: 96px;
    }

    .author-box-content h3 {
        font-size: 1.05rem;
    }

    .author-bio-text {
        font-size: 0.95rem;
        line-height: 1.55;
    }
    
    /* Ensure all interactive elements meet 44px minimum */
    .blog-share a,
    .blog-cta .btn,
    .list-group-item {
        min-height: 44px;
    }
}

