:root {
    --primary-color: #EF4444; /* Vibrant Crimson Red */
    --primary-dark: #DC2626;
    --primary-light: rgba(239, 68, 68, 0.15);
    --secondary-color: #E11D48; /* Crimson Accent */
    --secondary-dark: #BE123C;
    --accent-color: #FFFFFF; /* White Touch Accents */
    --text-main: #111827; /* Near Black */
    --text-light: #4B5563; /* Dark Gray */
    --text-muted: #6B7280; /* Muted Gray */
    --bg-main: #FFFFFF; /* Pure White */
    --bg-light: #F9FAFB; /* Off-White / Light Gray */
    --bg-dark: #F3F4F6; /* Light Gray for Navbar/Footer */
    --border-color: #E5E7EB; /* Subtle Light Border */
    
    --gradient-primary: linear-gradient(135deg, #EF4444 0%, #BE123C 100%);
    --gradient-accent: linear-gradient(135deg, #EF4444 0%, #FFFFFF 100%);
    --gradient-hero: linear-gradient(180deg, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.45) 100%);
    
    --font-en: 'Inter', sans-serif;
    --font-ta: 'Noto Sans Tamil', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-en);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tamil Text Support */
.hero-title, .hero-tagline, .sub-heading, .review-text-ta {
    font-family: var(--font-ta);
}

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

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }

.bg-light {
    background-color: var(--bg-light);
}



/* Language Bar */
.language-bar {
    background-color: var(--bg-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.language-bar span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
}

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

/* Typography Headings */
.section-heading {
    margin-bottom: 3rem;
}

.sub-heading {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #e60000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    padding: 0.75rem 0;
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(239, 68, 68, 0.2);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.logo-text p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    position: relative;
    color: var(--text-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: #FFFFFF;
}

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


.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background-image: url('uae_hero_desert_suv.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-floating-popup {
    position: absolute;
    right: 5%;
    top: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-left: 5px solid #e60000;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.hero-floating-popup .popup-icon {
    font-size: 2.2rem;
    color: #e60000;
}

.hero-floating-popup h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 800;
}

.hero-floating-popup p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-kolam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: white;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-badge i {
    color: var(--primary-color);
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #E5E7EB;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #9CA3AF;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.trust-signals {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #E5E7EB;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.about-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 20px;
    transition: transform 0.5s;
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
}

.test-sticker {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    border: 2px solid #E5E7EB;
    z-index: 5;
}

.test-sticker .l-sign {
    background-color: #EF4444;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 4px;
}

.test-sticker .text {
    font-weight: 800;
    font-size: 0.75rem;
    color: #1F2937;
    letter-spacing: 0.5px;
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--gradient-primary);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border: 6px solid white;
    z-index: 10;
}

.experience-badge .number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

.about-features i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Vehicle Registration Section */
.vehicle-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.vehicle-category {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.vehicle-category:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.category-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.vehicle-category:hover .category-icon {
    color: white;
}

.heavy-vehicles-list h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.truck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.truck-item {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
}

.truck-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Registration Form */
.registration-form-wrapper {
    background-color: var(--bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.form-container {
    padding: 3rem;
}

.form-container h3 {
    margin-bottom: 0.5rem;
}

.form-container p {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input, .form-group select {
    padding: 0.85rem;
    background-color: var(--bg-dark);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.feature-text p {
    margin: 0;
    font-size: 0.95rem;
}

.why-us-image {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.image-grid img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.img-1 {
    grid-column: 1 / 3;
    height: 250px;
    object-fit: cover;
}

.img-2 {
    grid-column: 2 / 3;
    margin-top: -50px;
    margin-right: -20px;
    height: 200px;
    object-fit: cover;
    border: 8px solid white;
}

.circle-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: var(--primary-light);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}

/* Trivia Section Styles */
.trivia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.trivia-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-color);
}

.trivia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.trivia-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.trivia-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.review-text-ta {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.review-text-en {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.reviewer-info h4 {
    margin-bottom: 0.25rem;
}

.stars {
    color: #F59E0B;
    font-size: 0.875rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.whatsapp-icon {
    background-color: #DCF8C6;
    color: #25D366;
}

.contact-item h5 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-link:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.tiktok { background-color: #000000; }
.facebook { background-color: #1877F2; }

.map-container {
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #E5E7EB;
    padding-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text h2 {
    color: white;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #9CA3AF;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul, .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a, .footer-services li {
    color: #9CA3AF;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: #9CA3AF;
    font-size: 1.25rem;
}

.footer-social a:hover {
    color: white;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-right {
    transform: translateX(-50px);
}

.slide-left {
    transform: translateX(50px);
}

.slide-right.active, .slide-left.active {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .why-us-grid, .contact-grid, .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .why-us-image {
        grid-row: 1;
    }
    
    .experience-badge {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .navbar {
        top: 35px;
    }

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-contact {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .trust-signals {
        flex-direction: column;
        gap: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* ==========================================
   Handbook Page Styles
   ========================================== */
.navbar-subpage {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-md);
}

.handbook-intro {
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.handbook-intro h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.handbook-controls-card {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.view-toggles {
    display: flex;
    background: var(--bg-light);
    padding: 0.35rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.toggle-btn:not(.active):hover {
    color: var(--secondary-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

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

.btn-secondary-outline:hover {
    border-color: var(--text-main);
    background: var(--bg-light);
}

.btn-primary-action {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-primary-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* PDF Viewer View */
.handbook-viewer-container {
    width: 100%;
}

.embed-responsive {
    position: relative;
    width: 100%;
    height: 800px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.mobile-pdf-alert {
    display: none;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.mobile-pdf-alert i {
    font-size: 1.25rem;
    margin-top: 2px;
}

.mobile-pdf-alert p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Web Reader View */
.handbook-text-container {
    width: 100%;
}

.reader-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.reader-sidebar {
    background: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.reader-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
    color: var(--text-main);
}

.chapter-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-item {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-item span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: var(--bg-light);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
}

.tab-item:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.tab-item.active {
    background: var(--secondary-dark);
    color: white;
}

.tab-item.active span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Reader Pane */
.reader-pane {
    background: var(--bg-light);
    padding: 3.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

.chapter-content {
    display: none;
}

.chapter-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chapter-content h2 {
    font-size: 2.25rem;
    color: var(--secondary-dark);
    margin-bottom: 0.5rem;
}

.chapter-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.info-block {
    margin-bottom: 3rem;
}

.info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.info-block h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-main);
}

.info-block p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.bullet-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.step-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-list li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.highlight-rule {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-size: 1rem;
    color: var(--primary-dark);
}

.highlight-rule strong {
    color: var(--bg-dark);
}

.caution-box {
    background-color: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-size: 1rem;
    color: #92400E;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.caution-box i {
    font-size: 1.25rem;
    margin-top: 3px;
}

/* Alert Icon Grid */
.alert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.alert-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.alert-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.alert-icon {
    font-size: 1.5rem;
    color: #EF4444;
    background: #FEE2E2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.alert-item p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Accordion Lists */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}

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

.accordion-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.accordion-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Tables styling */
.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--bg-light);
}

.danger-row td {
    background-color: #FEE2E2;
    color: #991B1B;
}

.danger-row:hover td {
    background-color: #FCA5A5;
}

.hidden {
    display: none !important;
}

/* Subpage responsiveness */
@media (max-width: 992px) {
    .reader-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .reader-sidebar {
        position: static;
        width: 100%;
    }
    
    .chapter-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .tab-item {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .handbook-controls-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggles {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .embed-responsive {
        height: 500px;
    }
    
    .mobile-pdf-alert {
        display: flex;
    }
    
    .reader-pane {
        padding: 2rem;
    }
    
    .chapter-content h2 {
        font-size: 1.75rem;
    }
    
    .alert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .chapter-tabs {
        flex-direction: column;
    }
    
    .tab-item {
        width: 100%;
    }
}

/* ==========================================
   RTA SIGNAL TEST APP STYLES
   ========================================== */
body.signal-test-page {
    --app-bg: #F3F4F6;
    --app-card-bg: #FFFFFF;
    --app-text: #111827;
    --app-text-muted: #6B7280;
    --app-border: #E5E7EB;
    --app-primary: #C8102E; /* RTA Red */
    --app-secondary: #1A1A2E; /* Navy */
    --app-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --app-accent-bg: rgba(200, 16, 46, 0.05);
    
    background-color: var(--app-bg);
    color: var(--app-text);
    transition: background-color 0.3s, color 0.3s;
}

body.signal-test-page.dark-mode {
    --app-bg: #121212; /* Matte Black */
    --app-card-bg: #1E1E1E; /* Charcoal */
    --app-text: #F9FAFB;
    --app-text-muted: #9CA3AF;
    --app-border: #2D2D30;
    --app-primary: #EF4444; /* Brighter Red */
    --app-secondary: #0A0A0A;
    --app-card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --app-accent-bg: rgba(239, 68, 68, 0.1);
}

.app-shell {
    margin-top: 6rem;
}

.app-inner-card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--app-card-shadow);
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
    padding-bottom: 5.5rem; /* Space for bottom nav */
}

/* Bottom Navigation */
.app-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--app-card-bg);
    border-top: 1px solid var(--app-border);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4.5rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 100;
    padding: 0 1rem;
    transition: background-color 0.3s, border-color 0.3s;
}

.app-bottom-nav .nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    color: var(--app-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    gap: 4px;
}

.app-bottom-nav .nav-tab i {
    font-size: 1.25rem;
}

.app-bottom-nav .nav-tab:hover {
    color: var(--app-primary);
}

.app-bottom-nav .nav-tab.active {
    color: var(--app-primary);
}

/* Home Dashboard */
.welcome-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--app-accent-bg);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.welcome-box .app-icon {
    font-size: 3rem;
    color: var(--app-primary);
    margin-bottom: 1rem;
}

.welcome-box h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--app-text);
}

.welcome-box .lead-text {
    font-size: 1.05rem;
    color: var(--app-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.menu-item-card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.menu-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--app-primary);
    box-shadow: var(--shadow-md);
}

.menu-item-card .menu-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.menu-item-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text);
}

/* Menu icon backgrounds */
.bg-red { background-color: #EF4444; }
.bg-navy { background-color: #1A1A2E; }
.bg-dark { background-color: #0A0A0A; }
.bg-grey { background-color: #71717A; }

.rta-quote {
    background-color: var(--app-accent-bg);
    border-left: 4px solid var(--app-primary);
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rta-quote i {
    font-size: 1.25rem;
    color: var(--app-primary);
    margin-top: 3px;
}

.rta-quote p {
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
    color: var(--app-text);
    line-height: 1.5;
}

/* Signs Library */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--app-border);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-header h2 {
    font-size: 1.5rem;
    color: var(--app-text);
}

#sign-category-filter {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background-color: var(--app-card-bg);
    color: var(--app-text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

#sign-category-filter:focus {
    border-color: var(--app-primary);
}

.view-instruction {
    font-size: 0.85rem;
    color: var(--app-text-muted);
    margin-bottom: 1.5rem;
}

.signs-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sign-card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sign-card:hover {
    border-color: var(--app-primary);
    box-shadow: var(--shadow-md);
}

.sign-card-image {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.sign-card:hover .sign-card-image {
    transform: scale(1.08);
}

.sign-card-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--app-text);
}

.sign-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    background-color: var(--app-accent-bg);
    color: var(--app-primary);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.sign-card-desc {
    font-size: 0.875rem;
    color: var(--app-text-muted);
    line-height: 1.4;
    display: none;
    margin-top: 0.5rem;
}

.tap-hint {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--app-text-muted);
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Expanded state shows details */
.sign-card.expanded .sign-card-desc {
    display: block;
}

.sign-card.expanded .tap-hint {
    display: none;
}

/* Practice Quiz */
.quiz-score-badge {
    font-size: 0.95rem;
    background-color: var(--app-accent-bg);
    color: var(--app-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--app-border);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--app-primary);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.quiz-question-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.question-number-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--app-primary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.quiz-question-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    color: var(--app-text);
}

.quiz-image-frame {
    width: 130px;
    height: 130px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-options-list {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.quiz-option-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--app-border);
    background-color: var(--app-card-bg);
    color: var(--app-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.quiz-option-btn:hover:not(:disabled) {
    border-color: var(--app-primary);
    background-color: var(--app-accent-bg);
}

.quiz-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Correct/Incorrect button states */
.quiz-option-btn.correct {
    background-color: #DEF7EC !important;
    border-color: #31C48D !important;
    color: #03543F !important;
    font-weight: 600;
}

.quiz-option-btn.incorrect {
    background-color: #FDE8E8 !important;
    border-color: #F89898 !important;
    color: #9B1C1C !important;
    font-weight: 600;
}

/* Dark mode overrides for option states */
body.signal-test-page.dark-mode .quiz-option-btn.correct {
    background-color: #03543F !important;
    border-color: #31C48D !important;
    color: #DEF7EC !important;
}

body.signal-test-page.dark-mode .quiz-option-btn.incorrect {
    background-color: #9B1C1C !important;
    border-color: #F89898 !important;
    color: #FDE8E8 !important;
}

.quiz-feedback-box {
    width: 100%;
    max-width: 500px;
    background-color: var(--app-accent-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    margin-top: 1rem;
}

.feedback-status {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feedback-correct {
    color: #0E9F6E;
}

.feedback-incorrect {
    color: #F05252;
}

.feedback-explanation h4 {
    font-size: 0.95rem;
    color: var(--app-text);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feedback-explanation p {
    font-size: 0.875rem;
    color: var(--app-text-muted);
    margin: 0;
}

.quiz-complete-card {
    text-align: center;
    padding: 3rem 1rem;
}

.quiz-complete-card .trophy-icon {
    font-size: 4rem;
    color: #FBBF24;
    margin-bottom: 1.5rem;
}

.quiz-complete-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--app-text);
}

.quiz-complete-card p {
    font-size: 1.15rem;
    color: var(--app-text-muted);
}

.final-score-text {
    font-size: 2rem;
    color: var(--app-primary);
    display: block;
    margin-top: 0.5rem;
}

/* Fines Search */
.search-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-text-muted);
}

#fines-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 30px;
    border: 1px solid var(--app-border);
    background-color: var(--app-card-bg);
    color: var(--app-text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

#fines-search-input:focus {
    border-color: var(--app-primary);
}

.fines-list-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fine-card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.fine-card:hover {
    border-color: var(--app-primary);
}

.fine-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.fine-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
    color: var(--app-text);
}

.fine-amount-badge {
    background-color: var(--app-accent-bg);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.fine-amount-badge span {
    font-size: 0.7rem;
    color: var(--app-text-muted);
    text-transform: uppercase;
}

.fine-amount-badge strong {
    font-size: 1.05rem;
    color: var(--app-primary);
    font-weight: 700;
}

.fine-card-desc {
    font-size: 0.9rem;
    color: var(--app-text-muted);
    margin: 0;
}

/* Settings */
.settings-group {
    border-bottom: 1px solid var(--app-border);
    padding: 1.5rem 0;
}

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

.settings-group h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--app-text);
}

.settings-language-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.75rem;
}

.lang-picker-btn {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background-color: var(--app-card-bg);
    color: var(--app-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

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

.lang-picker-btn.active {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
    color: white;
}

/* Switch Toggle Styling */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch-toggle input:checked + .slider-round {
    background-color: var(--app-primary);
}

.switch-toggle input:checked + .slider-round:before {
    transform: translateX(24px);
}

.disclaimer-group p {
    font-size: 0.85rem;
    color: var(--app-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* RTL Support */
body.rtl-dir {
    text-align: right;
}

body.rtl-dir .logo-text,
body.rtl-dir .welcome-box,
body.rtl-dir .quiz-question-card,
body.rtl-dir .quiz-complete-card {
    text-align: center;
}

body.rtl-dir .navbar-subpage .nav-contact {
    margin-right: auto;
    margin-left: 0;
}

body.rtl-dir .rta-quote {
    border-left: none;
    border-right: 4px solid var(--app-primary);
}

body.rtl-dir .quiz-option-btn {
    text-align: right;
}

body.rtl-dir .quiz-feedback-box,
body.rtl-dir .fine-card {
    text-align: right;
}

body.rtl-dir .search-box-wrapper .search-icon {
    left: auto;
    right: 1.25rem;
}

body.rtl-dir #fines-search-input {
    padding: 1rem 3rem 1rem 1rem;
}

body.rtl-dir .fine-amount-badge {
    text-align: left;
}

/* Responsiveness overrides for app shell */
@media (max-width: 768px) {
    .app-inner-card {
        padding: 1.25rem;
        padding-bottom: 6rem;
        border-radius: 12px;
    }
    
    .app-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--app-border);
        background-color: var(--app-card-bg);
        height: 5rem;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ==========================================
   NEW MULTI-PAGE STYLES
   ========================================== */

/* Page Header */
.page-header {
    padding: 6rem 0 3rem;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    color: var(--primary-dark);
}

/* Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mv-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}
.mv-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.mv-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}
.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}
.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.pricing-header .price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}
.pricing-features i {
    color: var(--secondary-color);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--primary-color);
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 300px;
}

/* Registration Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    border-top: 4px solid var(--primary-color);
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   GRADIENT MENU STYLES
   ========================================== */
.gradient-nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.gradient-nav-wrapper.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.floating-logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
}

.floating-logo h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1;
}

@media (max-width: 1024px) {
    .floating-logo {
        display: flex; /* Keep visible now that pill menu is gone */
        left: 1rem;
    }
    .floating-logo h2 {
        font-size: 1rem;
    }
}

.gradient-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.gradient-menu .menu-item {
    position: relative;
    width: 60px;
    height: 60px;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    cursor: pointer;
    overflow: hidden;
}

.gradient-menu .menu-item:hover,
.gradient-menu .menu-item.active {
    width: 160px;
    box-shadow: none;
}

/* Base Link */
.gradient-menu .menu-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    z-index: 20;
}

/* Gradient background on hover */
.gradient-menu .menu-item .hover-bg {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.gradient-menu .menu-item:hover .hover-bg,
.gradient-menu .menu-item.active .hover-bg {
    opacity: 1;
}

/* Blur glow */
.gradient-menu .menu-item .glow-bg {
    position: absolute;
    top: 10px;
    inset-inline: 0;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--gradient-from), var(--gradient-to));
    filter: blur(15px);
    opacity: 0;
    z-index: 0;
    transition: all 0.5s ease;
}

.gradient-menu .menu-item:hover .glow-bg,
.gradient-menu .menu-item.active .glow-bg {
    opacity: 0.5;
}

/* Icon */
.gradient-menu .menu-item .icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.5s ease;
    position: absolute;
    z-index: 10;
}

.gradient-menu .menu-item:hover .icon,
.gradient-menu .menu-item.active .icon {
    transform: scale(0);
}

/* Title */
.gradient-menu .menu-item .title {
    position: absolute;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.5s ease;
    transform: scale(0);
    z-index: 10;
}

.gradient-menu .menu-item:hover .title,
.gradient-menu .menu-item.active .title {
    transform: scale(1);
    transition-delay: 0.15s;
}

@media (max-width: 992px) {
    .gradient-menu {
        gap: 0.75rem;
    }
    .gradient-menu .menu-item {
        width: 50px;
        height: 50px;
    }
    .gradient-menu .menu-item .icon {
        font-size: 1.25rem;
    }
    .gradient-menu .menu-item:hover,
    .gradient-menu .menu-item.active {
        width: 130px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        text-align: center !important;
        margin-top: 20px !important;
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-content p.lead {
        font-size: 1rem !important;
    }

    .languages-pill {
        display: block !important;
        font-size: 0.9rem !important;
        padding: 12px 15px !important;
        margin: 0 auto 25px auto !important;
        max-width: 90%;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 !important;
        display: block;
    }

    .hero-floating-popup {
        display: none !important;
    }

    #hamburger-menu-btn {
        right: calc(6rem + 0.1in) !important;
    }

    .floating-whatsapp {
        right: calc(110px + 0.1in) !important;
        bottom: 40px !important;
    }
}

/* Animated Hamburger Button */
#hamburger-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 1.5rem;
    z-index: 1002;
    display: block; 
}

#hamburger-menu-btn path {
    transform-origin: center;
    transition: all 300ms;
}

#hamburger-menu-btn .hamburger-top {
    transform: translateY(-7px);
    transition-timing-function: cubic-bezier(.5,.85,.25,1.1);
}

#hamburger-menu-btn .hamburger-middle {
    transition-timing-function: cubic-bezier(.5,.85,.25,1.8);
}

#hamburger-menu-btn .hamburger-bottom {
    transform: translateY(7px);
    transition-timing-function: cubic-bezier(.5,.85,.25,1.1);
}

#hamburger-menu-btn[aria-expanded="true"] .hamburger-top {
    transform: translate(0, 0) rotate(315deg);
}

#hamburger-menu-btn[aria-expanded="true"] .hamburger-middle {
    transform: rotate(45deg);
}

#hamburger-menu-btn[aria-expanded="true"] .hamburger-bottom {
    transform: translate(0, 0) rotate(135deg);
}

/* Overlay Menu */
.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.overlay-link {
    font-size: 2rem;
    font-weight: 800;
    color: #e60000;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.overlay-link:hover {
    transform: scale(1.1);
    color: #000;
}

/* --- New Test Results UI Styles --- */
.test-results-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-summary-card, .results-details-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-emerald { color: #047857; }
.text-rose { color: #be123c; }
.bg-emerald { background-color: #10b981; }
.bg-rose { background-color: #f43f5e; }
.bg-emerald-light { background-color: #ecfdf5; border-color: #a7f3d0; }
.bg-rose-light { background-color: #fff1f2; border-color: #fecdd3; }
.border-emerald { border: 1px solid #10b981; }
.border-rose { border: 1px solid #f43f5e; }
.text-white { color: #fff; }

.results-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-correct {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
}

.stat-incorrect {
    background-color: #fff1f2;
    border-color: #fecdd3;
}

.stat-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}
@media(min-width: 640px) {
    .results-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

.result-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.result-correct {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}

.result-incorrect {
    background-color: #fff1f2;
    border-color: #f43f5e;
    color: #be123c;
}

.result-icon-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.opacity-20 { opacity: 0.2; }

.pagination-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover:not([disabled]) {
    background: var(--bg-light);
}
.btn-outline[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-legend {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border-width: 2px;
    border-style: solid;
}

.z-10 { z-index: 10; }
.relative { position: relative; }

/* Dark mode overwrites for Results */
body.dark-mode .results-summary-card,
body.dark-mode .results-details-card {
    background-color: var(--bg-main);
}

body.dark-mode .stat-correct {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}
body.dark-mode .stat-incorrect {
    background-color: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
}

body.dark-mode .result-correct {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
}
body.dark-mode .result-incorrect {
    background-color: rgba(244, 63, 94, 0.1);
    color: #fb7185;
}

body.dark-mode .bg-emerald-light { background-color: rgba(16, 185, 129, 0.1); }
body.dark-mode .bg-rose-light { background-color: rgba(244, 63, 94, 0.1); }
