/* ======== GLOBAL STYLES ======== */
:root {
    --dark-blue: #0f0a40;
    --main-blue: #005bff;
    --light-bg: #f9faff;
    --text-dark: #333;
    --text-light: #ffffff;
    --text-secondary: #555;
    --border-color: #e0e0e0;
    --header-bg: #ffffff;
    --top-bar-bg: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}



body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-size: 16px !important;
    padding-top: 130px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* We use a larger container for the services section */
.container-large {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* We use a smaller container for FAQ/How-it-works */
.container-small {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ======== TOP BAR ======== */
.top-bar {
    background-color: var(--top-bar-bg);
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar .container {
    height: 50px;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-blue);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.website-name-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.website-name-link:hover {
    opacity: 0.8;
}

.flag {
    height: 14px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.top-right a, .top-right div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.breadcrumb-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-nav a:hover {
    color: #fec107;
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: var(--text-light);
    margin: 0 0.5rem;
}

.breadcrumb-nav .current {
    color: #fec107;
    font-weight: 600;
}

.skip-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1rem;
}

.text-size button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

.text-size button.active {
    font-weight: bold;
    color: var(--text-dark);
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Font size classes */
body.font-small {
    font-size: 14px;
}

body.font-normal {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

/* ======== MAIN HEADER ======== */
.main-header {
    background: var(--dark-blue); /* From footer image */
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav {
    z-index: 1001;
    position: relative;
}

.main-nav ul {
    z-index: 1002;
    position: relative;
}

.main-header .container {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
}

.emblem {
    height: 45px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    pointer-events: auto;
}

.main-nav li {
    pointer-events: auto;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer !important;
    z-index: 10;
    pointer-events: auto !important;
    display: block;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--text-light) !important;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
}

body {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    background-color: var(--main-blue);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #004ad9;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 0;
    padding: 0.5rem 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    overflow: hidden;
}

.search-input.active {
    width: 200px;
    padding: 0.5rem 1rem;
    opacity: 1;
    margin-right: 0.5rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-btn .material-icons-outlined {
    font-size: 28px;
}

/* ======== HERO SECTION ======== */
.hero {
    position: relative;
    height: 70vh;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('./home_page_image_without_bg2.png') no-repeat center center/contain;
    z-index: 2;
    opacity: 0.9;
    animation: fadeInRight 1.5s ease-out;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 0.9;
        transform: translateX(0);
    }
}

.hero-background::after {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 91, 255, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.website-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--main-blue), #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
    line-height: 1.1;
    position: relative;
    z-index: 10;
    padding : 10px;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(0, 91, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 91, 255, 0.6)); }
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 3rem 0 0 0;
    line-height: 1.4;
    position: relative;
    padding-left: 2rem;
    z-index: 5;
}

.tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, var(--main-blue), #4fc3f7);
    border-radius: 2px;
    z-index: -1;
}

.hero-text h1, .hero-text h2 {
    font-weight: 700;
    line-height: 1.1;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 400;
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
}

/* Info Box */
.info-box {
    background: rgba(26, 35, 126, 0.7); /* Dark blue, semi-transparent */
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.info-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
}

.tab-link {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: #f0f0f0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tab-link.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-blue);
}

.tab-content {
    padding: 1.5rem;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.tab-content li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.tab-content li:last-child {
    border-bottom: none;
}

.item-text p {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.item-text span {
    font-size: 0.8rem;
    color: #ccc;
}

.doc-type {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.view-all {
    display: block;
    text-align: right;
    margin-top: 1rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Explore Button */
.explore-btn-container {
    position: relative;
    text-align: center;
    margin: 1rem 0;
    z-index: 10;
}

.explore-btn {
    background-color: #fec107; /* Yellow */
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(254, 193, 7, 0.4);
    transition: all 0.3s ease;
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 193, 7, 0.5);
}

/* ======== GLOBAL BUTTON STYLES ======== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    white-space: nowrap;
    margin: 0.25rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-light {
    background-color: #ffffff;
    color: var(--dark-blue);
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
}

.btn-outline:hover {
    background-color: var(--dark-blue);
    color: #ffffff;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    font-weight: 500;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: #ffffff;
}


/* ======== SERVICE FINDER CTA ======== */
.service-finder-cta {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 2rem 0;
    /* This adds the subtle map from the image */
    background-image: url('https://user-images.githubusercontent.com/11280033/135792250-a72051e0-0322-4796-905e-f00c8b3d681d.png');
    background-repeat: no-repeat;
    background-position: 85% center;
    background-size: contain;
}

.service-finder-cta .container {
    justify-content: flex-start;
}

.service-finder-text {
    max-width: 50%;
}

.service-finder-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-finder-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

/* ======== ABOUT SECTION ======== */
.about-section {
    padding: 4rem 0; /* Reduced from 8rem 0 6rem 0 */
    background-color: #ffffff;
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-main-image {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.about-main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ======== EXPLORE SERVICES SECTION ======== */
.services-section {
    padding: 4rem 0;
    /* This gradient matches the background of the image */
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FF 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-header .tag-explore {
    display: inline-block;
    background-color: #fec107; /* Yellow from hero button */
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.category-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card .card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-card .icon {
    color: var(--main-blue);
    font-size: 24px;
}

/* Popular Cases Carousel */
.carousel-container {
    position: relative;
    padding-top: 4rem;
    margin: 0 -2rem;
}

.carousel-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 60px;
    padding-top: 30px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    animation: continuousSlide 50s linear infinite;
}

@keyframes continuousSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-300%); }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--main-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.case-card {
    position: relative;
    background-color: var(--case-bg, #F5F5F5);
    border-radius: 16px;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    min-width: 280px;
    flex-shrink: 0;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.case-icon-wrapper {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-bg, #E0E0E0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.case-icon-wrapper .material-icons-outlined {
    font-size: 28px;
}

.case-content {
    text-align: center;
}

.case-year {
    font-size: 0.8rem;
    color: var(--main-blue);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.case-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.case-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.case-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Case Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-category {
    background: var(--main-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--main-blue);
}

.modal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* ======== HOW IT WORKS SECTION ======== */
.how-it-works-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.how-it-works-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 2rem auto 4rem auto;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    border-style: dashed;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-dot {
    width: 70px; /* From 70x70 image */
    height: 70px;
    background-color: #e0e0e0;
    border-radius: 8px;
    z-index: 2;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.step-icon .material-icons-outlined {
    font-size: 28px;
    color: var(--text-dark);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ======== FAQ SECTION ======== */
.faq-section {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.tag-faq {
    display: inline-block;
    background-color: #fec107; /* Yellow */
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question .material-icons-outlined {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Active State */
.faq-item.active .faq-question .material-icons-outlined {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}


/* ======== FOOTER ======== */
.site-footer {
    background-color: var(--dark-blue);
    color: #e0e0e0;
}

.support-band {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-band .container {
    align-items: center;
}

.support-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.emergency-numbers {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.emergency-item .material-icons-outlined {
    color: #fec107;
    font-size: 24px;
}

.emergency-item strong {
    color: var(--text-light);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.emergency-item p {
    color: #e0e0e0;
    font-size: 0.85rem;
    margin: 0;
}

.btn-light-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-light-outline:hover {
    background-color: var(--text-light);
    color: var(--dark-blue);
}

.main-footer {
    padding: 4rem 0;
}

.main-footer .container {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.footer-col {
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-emblem {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: #fff; /* Placeholder */
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-icons a img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background-color: #fff; /* Placeholder */
}

.last-updated {
    font-size: 0.8rem;
    color: #aaa;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--text-light);
}

.footer-col address {
    font-style: normal;
    line-height: 1.6;
}

.copyright-bar {
    padding: 1.5rem 0;
    background-color: #080424; /* Even darker blue */
    font-size: 0.85rem;
}

.copyright-bar .container {
    justify-content: space-between;
}

.policy-links {
    display: flex;
    gap: 1.5rem;
}

.policy-links a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.policy-links a:hover {
    color: var(--text-light);
}

/* Floating Action Buttons */
.chat-bot, .accessibility-toggle, .color-toggle {
    position: fixed;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.chat-bot {
    bottom: 90px;
    background-color: #fec107;
    color: #000;
}

.chat-bot:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.chat-bot .tooltip {
    position: absolute;
    bottom: 10px;
    right: 70px; /* To the left of the button */
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.accessibility-toggle {
    bottom: 20px;
    background-color: var(--main-blue);
    color: var(--text-light);
}

.color-toggle {
    bottom: 160px;
    background-color: #FF4081;
    color: var(--text-light);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.color-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(255, 64, 129, 0.2); }
    50% { box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4); }
    100% { box-shadow: 0 4px 12px rgba(255, 64, 129, 0.2); }
}

/* Dark Theme Styles */
body.dark-theme {
    --dark-blue: #1a1a1a;
    --main-blue: #4fc3f7;
    --light-bg: #121212;
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --header-bg: #1a1a1a;
    --top-bar-bg: #2a2a2a;
    background-color: #121212 !important;
    color: #ffffff !important;
}

/* Text Colors */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #ffffff !important;
}

body.dark-theme p {
    color: #b0b0b0 !important;
}

body.dark-theme .article-content h2,
body.dark-theme .article-content h3 {
    color: #ffffff !important;
}

body.dark-theme .article-content p {
    color: #b0b0b0 !important;
}

body.dark-theme .article-content li {
    color: #b0b0b0 !important;
}

body.dark-theme .article-content blockquote {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border-left-color: #4fc3f7 !important;
}

/* Main Sections */
body.dark-theme .content-section {
    background-color: #1a1a1a !important;
}

body.dark-theme .page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #4fc3f7 100%) !important;
}

body.dark-theme .constitution-sections {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%) !important;
}

/* Cards and Components */
body.dark-theme .section-card {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #333;
}

body.dark-theme .article-card,
body.dark-theme .provision-card {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #333;
}

body.dark-theme .info-card {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

body.dark-theme .writ-card {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #333;
}

body.dark-theme .pil-card {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

body.dark-theme .step-card {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Footer */
body.dark-theme .footer {
    background-color: #1a1a1a !important;
}

/* Buttons */
body.dark-theme .btn {
    border-color: #4fc3f7 !important;
    color: #4fc3f7 !important;
}

body.dark-theme .btn:hover {
    background-color: #4fc3f7 !important;
    color: #1a1a1a !important;
}

/* Floating Translate Buttons */
body.dark-theme .floating-translate-buttons .translate-btn-group {
    background: rgba(26, 26, 26, 0.95) !important;
}

body.dark-theme .floating-translate-buttons .translate-label {
    background: rgba(26, 26, 26, 0.9) !important;
    color: #ffffff !important;
}

body.dark-theme .main-header {
    background: #1a1a1a;
}

body.dark-theme .top-bar {
    background-color: #2a2a2a;
}

body.dark-theme .hero-background::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.3) 100%);
}

body.dark-theme .info-box {
    background: rgba(26, 26, 26, 0.9);
}

body.dark-theme .service-finder-cta {
    background-color: #1a1a1a;
}

body.dark-theme .about-section {
    background-color: #1a1a1a;
}

body.dark-theme .services-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.dark-theme .category-card {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .case-card {
    background-color: #2a2a2a !important;
}

body.dark-theme .how-it-works-section {
    background-color: #1a1a1a;
}

body.dark-theme .faq-section {
    background-color: #2a2a2a;
}

body.dark-theme .faq-item {
    background-color: #1a1a1a;
    border-color: #333;
}

body.dark-theme .faq-question {
    background: #1a1a1a;
    color: #ffffff;
}

body.dark-theme .support-band {
    background-color: #1a1a1a;
}

body.dark-theme .main-footer {
    background-color: #1a1a1a;
}

body.dark-theme .copyright-bar {
    background-color: #0a0a0a;
}

body.dark-theme .emergency-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .language-dropdown {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-theme .language-dropdown a {
    color: #ffffff;
}

body.dark-theme .language-dropdown a:hover {
    background-color: #333;
}

body.dark-theme .back-btn {
    background: var(--main-blue);
    color: white;
}

body.dark-theme .back-btn:hover {
    background: #4fc3f7;
}

/* ======== BREADCRUMB NAVIGATION ======== */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--main-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #004ad9;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #666;
    margin: 0 0.25rem;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* ======== CONSTITUTION & WOMEN PAGES ======== */
.page-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--main-blue) 100%);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.constitution-sections {
    padding: 6rem 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FF 100%);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.section-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--main-blue), #007bff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-card .card-icon .material-icons-outlined {
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-card .card-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-card .card-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.section-card .material-icons-outlined:last-child {
    color: var(--main-blue);
    font-size: 24px;
    margin-left: auto;
}

.content-section {
    padding: 4rem 0;
    background: #ffffff;
}

.articles-grid, .provisions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card, .provision-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.article-card:hover, .provision-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-card h3, .provision-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.article-card p, .provision-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sub-topics {
    margin: 1rem 0;
}

.sub-link {
    display: block;
    color: var(--main-blue);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.sub-link:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-blue);
}

.sub-link:hover {
    text-decoration: underline;
}

.governance-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    margin: 1rem 0;
}

.info-card li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--main-blue);
    font-weight: bold;
}

.remedies-section {
    margin-bottom: 3rem;
}

.remedies-section h2, .pil-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.writs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.writ-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.writ-card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.writ-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.writ-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.pil-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pil-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pil-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pil-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pil-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer {
    background: var(--dark-blue);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--main-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #004ad9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3);
}

.back-btn .material-icons-outlined {
    font-size: 20px;
}

/* ======== LANGUAGE DROPDOWN ======== */
.language {
    position: relative;
    cursor: pointer;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 20000 !important;
    min-width: 120px;
    margin-top: 5px;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
}

.language-dropdown a:first-child {
    border-radius: 6px 6px 0 0;
}

.language-dropdown a:last-child {
    border-radius: 0 0 6px 6px;
}

/* Floating Translate Buttons */
.floating-translate-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.translate-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.translate-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.translate-btn-en {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
}

.translate-btn-hi {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
}

.translate-btn-ur {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
}

.translate-btn:hover {
    transform: scale(1.1) !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.translate-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .floating-translate-buttons {
        right: 10px;
        top: auto;
        bottom: 100px;
        transform: none;
    }
    
    .translate-btn {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
}

.dropdown-content a:first-child {
    border-radius: 6px 6px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 6px 6px;
}

/* ======== MOBILE MENU ======== */
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
    
    .container-large {
        padding: 0 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-images {
        height: 350px;
    }
    
    .service-finder-text {
        max-width: 100%;
        text-align: center;
    }
    
    .main-footer .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile Adjustments */
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar .container {
        height: auto;
        min-height: 50px;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .top-left {
        flex: 1;
        min-width: 150px;
    }
    
    .website-name {
        font-size: 1.1rem;
    }
    
    .flag {
        height: 12px;
    }
    
    .top-right {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: flex-end;
        width: 100%;
    }
    
    .nav-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
    
    /* Emergency Numbers */
    .emergency-numbers {
        flex-direction: column;
        gap: 1rem;
    }
    
    .emergency-item {
        min-width: auto;
        width: 100%;
    }
    
    /* Main Header Mobile */
    .main-header {
        padding: 0.75rem 0;
    }
    
    .main-header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 1rem;
    }
    
    .mobile-menu-btn {
        display: block !important;
        order: 3;
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        margin-top: 1rem;
        display: none;
    }
    
    .main-nav.mobile-active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 1rem;
    }
    
    .main-nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .header-right {
        order: 2;
    }
    
    /* Hero Section Mobile */
    body {
        padding-top: 100px !important;
    }
    
    .hero {
        height: auto;
        min-height: 60vh;
        padding: 3rem 0 2rem 0;
    }
    
    .hero-background {
        width: 100%;
        opacity: 0.3;
        background-size: cover;
    }
    
    .website-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
        padding: 5px !important;
    }
    
    .tagline {
        font-size: 1.1rem !important;
        padding-left: 1rem;
        margin: 1.5rem 0 0 0 !important;
    }
    
    .tagline::before {
        height: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .info-box {
        max-width: 100%;
    }
    
    /* Service Finder CTA Mobile */
    .service-finder-cta {
        padding: 2rem 0;
        background-position: center;
        background-size: cover;
    }
    
    .service-finder-text h2 {
        font-size: 1.6rem;
    }
    
    .service-finder-text p {
        font-size: 0.9rem;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 3rem 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .about-images {
        height: auto;
        margin-top: 2rem;
    }
    
    .about-main-image {
        max-height: 300px;
    }
    
    /* Services Section Mobile */
    .services-section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .category-card .icon {
        font-size: 20px;
    }
    
    /* Carousel Mobile */
    .carousel-container {
        padding-top: 2rem;
        margin: 0 -1rem;
    }
    
    .carousel-wrapper {
        margin: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .case-card {
        min-width: 250px;
        padding: 2rem 1.25rem 1.25rem 1.25rem;
    }
    
    .case-content h3 {
        font-size: 1.1rem;
    }
    
    /* Modal Mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    /* How It Works Mobile */
    .how-it-works-section {
        padding: 3rem 0;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-it-works-timeline {
        display: none;
    }
    
    /* FAQ Mobile */
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .faq-header h2 {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .support-band {
        padding: 2rem 0;
    }
    
    .support-text h2 {
        font-size: 1.6rem;
    }
    
    .main-footer {
        padding: 3rem 0;
    }
    
    .main-footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-col h4 {
        margin-bottom: 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .copyright-bar {
        padding: 1rem 0;
    }
    
    .copyright-bar .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .policy-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Constitution Pages Mobile */
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .constitution-sections {
        padding: 3rem 0;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .section-card .card-content h3 {
        font-size: 1.2rem;
    }
    
    .articles-grid, .provisions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-card, .provision-card {
        padding: 1.5rem;
    }
    
    .writs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pil-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Floating Buttons Mobile */
    .chat-bot, .accessibility-toggle, .color-toggle {
        width: 48px;
        height: 48px;
        right: 15px;
    }
    
    .chat-bot {
        bottom: 80px;
    }
    
    .accessibility-toggle {
        bottom: 15px;
    }
    
    .color-toggle {
        bottom: 145px;
    }
    
    .chat-bot .material-icons-outlined {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .container-large, .container-small {
        padding: 0 1rem;
    }
    
    /* Top Bar Extra Small */
    .website-name {
        font-size: 1rem;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Hero Extra Small */
    .website-title {
        font-size: 2rem !important;
    }
    
    .tagline {
        font-size: 1rem !important;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    /* Sections Extra Small */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .service-finder-text h2 {
        font-size: 1.4rem;
    }
    
    .category-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .category-card .card-content {
        gap: 0.5rem;
    }
    
    .tab-link {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .info-box {
        margin: 0 0.5rem;
    }
    
    .explore-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Case Cards Extra Small */
    .case-card {
        min-width: 220px;
        padding: 2rem 1rem 1rem 1rem;
    }
    
    .case-icon-wrapper {
        width: 48px;
        height: 48px;
        top: -24px;
    }
    
    .case-icon-wrapper .material-icons-outlined {
        font-size: 24px;
    }
    
    /* Footer Extra Small */
    .support-text h2 {
        font-size: 1.4rem;
    }
    
    .emergency-item {
        padding: 0.75rem;
        min-width: auto;
    }
    
    .footer-col {
        font-size: 0.85rem;
    }
    
    /* Modal Extra Small */
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-section {
        padding: 1rem;
    }
    
    .modal-section h3 {
        font-size: 1.1rem;
    }
    
    /* Page Headers Extra Small */
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* Article Content Extra Small */
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-content blockquote {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* ======== FONT SIZE RESPONSIVE ADJUSTMENTS ======== */
@media (max-width: 768px) {
    body[style*="font-size"] .hero-text h1 {
        font-size: calc(2.5rem + (var(--font-scale, 0) * 0.3rem));
    }
    
    body[style*="font-size"] .hero-text h2 {
        font-size: calc(1.5rem + (var(--font-scale, 0) * 0.2rem));
    }
    
    body[style*="font-size"] .section-header h2 {
        font-size: calc(2rem + (var(--font-scale, 0) * 0.2rem));
    }
}

/* ======== ACCESSIBILITY IMPROVEMENTS ======== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .category-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Focus styles for better accessibility */
.text-size button:focus,
.language:focus,
.mobile-menu-btn:focus,
.search-btn:focus {
    outline: 2px solid #fec107;
    outline-offset: 2px;
}

/* Disabled button styles */
.text-size button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ======== CHATBOT STYLES ======== */
.chat-message {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.user {
    background: #0f0a40;
    color: white;
    margin-left: 2rem;
    text-align: right;
}

.chat-message.bot {
    background: #f0f0f0;
    color: #333;
    margin-right: 2rem;
}

.chat-message.bot strong {
    color: #0f0a40;
    font-weight: 600;
}

.chat-message.bot ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.chat-message.bot li {
    margin-bottom: 0.3rem;
}

/* Typing indicator styles */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.8rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ======== RTL SUPPORT FOR URDU ======== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .container {
    flex-direction: row-reverse;
}

body.rtl .top-right {
    flex-direction: row-reverse;
}

body.rtl .main-nav ul {
    flex-direction: row-reverse;
}

body.rtl .hero-content {
    text-align: right;
}

body.rtl .info-box {
    text-align: right;
}

body.rtl .category-card {
    flex-direction: row-reverse;
}

body.rtl .language-dropdown {
    right: auto;
    left: 0;
}

body.rtl .search-container {
    flex-direction: row-reverse;
}

/* Fix specific RTL layout issues */
body.rtl .about-section .container {
    direction: rtl;
}

body.rtl .service-finder-text {
    text-align: right;
}

body.rtl .footer .container {
    flex-direction: row-reverse;
}

/* ======== ARTICLE CONTENT PAGES ======== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem 0;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--main-blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.article-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.article-content li strong {
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}