/* ============================================================
   CONSTRUCTION AID - MAIN STYLESHEET
   Version: 2.0 - Full Device Compatibility
   Color palette: steel blue / amber gold / neutral greys.
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================================ */
:root {
    /* Primary Colors */
    --navy: #0f1744;
    --navy-light: #1a237e;
    --blue: #1e4663;
    --blue-2: #2c5a7a;
    --gold: #d4af37;
    --gold-dark: #b8942a;
    --gold-light: #ffd966;

    /* Text Colors */
    --text: #2d3e50;
    --text-dark: #1e2a3e;
    --text-light: #4b5563;
    --muted: #6b7280;
    --muted-light: #9ca3af;

    /* UI Colors */
    --border: #e2e8f0;
    --border-light: #eef2f6;
    --surface: #f8fafc;
    --surface-alt: #f4f7fa;
    --white: #ffffff;

    /* Status Colors */
    --success: #10b981;
    --success-light: #d4edda;
    --success-dark: #155724;
    --error: #dc2626;
    --error-light: #fef2f2;
    --error-dark: #991b1b;
    --warning: #f59e0b;
    --info: #2196f3;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 45px -12px rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-hindi: 'Hind', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Container */
    --container-max: 1400px;
    --container-padding: 8px;
}

/* ============================================================
   GLOBAL RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    padding: var(--container-padding);
    padding-bottom: calc(var(--container-padding) + env(safe-area-inset-bottom, 0px));
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.68;
    color: var(--text-dark);
    background-color: var(--surface-alt);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent horizontal scroll on all elements */
body > * {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================================
   MEDIA ELEMENTS - RESPONSIVE
   ============================================================ */
img,
picture,
video,
canvas,
svg,
iframe,
embed,
object {
    max-width: 100% !important;
    height: auto;
    display: block;
}

img {
    border-style: none;
    object-fit: cover;
}

img[width][height] {
    height: auto;
}

/* Preserve aspect ratio for images with dimensions */
img[width][height]:not([style*="height"]) {
    aspect-ratio: attr(width) / attr(height);
}

/* ============================================================
   TYPOGRAPHY - RESPONSIVE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.25rem); }
h5 { font-size: clamp(0.95rem, 2vw, 1.1rem); }
h6 { font-size: clamp(0.9rem, 1.8vw, 1rem); }

p {
    margin: 0 0 1em;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    color: var(--navy-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--gold-dark);
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5em;
    overflow-wrap: break-word;
}

strong, b {
    font-weight: 700;
    color: var(--navy);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    overflow-x: hidden;
    border-top: 5px solid var(--navy-light);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   LANGUAGE CONTENT VISIBILITY - CRITICAL
   ============================================================ */
.language-content {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.language-content.active {
    display: block;
}

/* Force hide all non-active language blocks */
html body .language-content:not(.active),
html body [data-lang].language-content:not(.active) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Force show active language block */
html body .language-content.active,
html body [data-lang].language-content.active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ============================================================
   LANGUAGE SWITCHER - RESPONSIVE
   ============================================================ */
.language-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.lang-btn {
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 160px;
    padding: 10px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    background: #e8eaf6;
    color: var(--text-light);
    font-family: inherit;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn.active {
    background: var(--navy-light);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(26, 35, 126, 0.3);
}

.lang-btn:hover:not(.active) {
    background: #dde1f0;
}

.lang-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.Header {
    width: 100%;
    padding: clamp(16px, 4vw, 30px) clamp(12px, 3vw, 24px);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 3vw, 24px);
}

.header-content {
    flex: 1 1 300px;
    min-width: 0;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.logo-img {
    width: clamp(70px, 15vw, 100px);
    height: clamp(70px, 15vw, 100px);
    border-radius: var(--radius-lg);
    object-fit: contain;
    border: 3px solid var(--gold);
    background: var(--white);
    transition: transform var(--transition-slow);
}

.logo-img:hover {
    transform: scale(1.05);
}

.headline {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.25em;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.subheading {
    font-size: clamp(0.9rem, 3vw, 1.15rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
}

.tagline {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-style: italic;
    color: var(--gold);
    margin-top: var(--space-sm);
    font-weight: 500;
    line-height: 1.4;
}

.emblem-container,
.engineer-photo-container {
    flex: 0 0 auto;
    max-width: 100%;
}

.emblem-photo,
.engineer-photo {
    width: clamp(100px, 20vw, 150px);
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-slow), border-color var(--transition-slow);
    margin: 0 auto;
}

.emblem-photo:hover,
.engineer-photo:hover {
    transform: scale(1.02);
    border-color: var(--gold);
}

/* ============================================================
   BODY CONTENT
   ============================================================ */
.body {
    padding: clamp(16px, 4vw, 30px) clamp(12px, 3vw, 24px);
    background: #fafafc;
    width: 100%;
}

.intro-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1em;
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: break-word;
}

.highlight-text {
    color: var(--navy-light);
    font-weight: 600;
}

.section-title {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    color: var(--navy-light);
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid #c5cae9;
    line-height: 1.3;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 4vw, 30px);
    margin-bottom: var(--space-xl);
    width: 100%;
}

.focus-areas,
.why-choose {
    flex: 1 1 300px;
    min-width: 0;
    max-width: 100%;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.875em;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.area-list li::before {
    content: "⚙";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
    color: var(--gold);
}

/* RTL support for area list */
[dir="rtl"] .area-list li {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .area-list li::before {
    left: auto;
    right: 0;
}

/* ============================================================
   BENEFIT ITEMS
   ============================================================ */
.benefit-item {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    align-items: flex-start;
    min-width: 0;
}

.benefit-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    background: #eef2ff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-light);
    font-size: 1.3rem;
    transition: all var(--transition-slow);
}

.benefit-item:hover .benefit-icon {
    background: var(--navy-light);
    color: var(--white);
    transform: rotate(-5deg) scale(1.05);
}

.benefit-text {
    flex: 1 1 200px;
    min-width: 0;
}

.benefit-text h3 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--navy-light);
    margin-bottom: 0.25em;
}

.benefit-text p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
}

/* RTL support for benefit items */
[dir="rtl"] .benefit-item {
    flex-direction: row-reverse;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
}

@media (min-width: 600px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
    min-width: 0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.blog-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    overflow-wrap: break-word;
}

.blog-content h3 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--navy-light);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    font-size: clamp(0.7rem, 1.8vw, 0.75rem);
    color: var(--muted);
    margin: var(--space-sm) 0;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-meta i {
    color: var(--gold);
}

.blog-excerpt {
    flex: 1;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    align-self: flex-start;
    padding: 8px 18px;
    background: var(--navy-light);
    color: var(--white);
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-slow);
    min-height: 40px;
}

.read-more:hover {
    background: var(--gold);
    color: var(--navy);
    gap: 12px;
}

/* RTL support for read more arrow */
[dir="rtl"] .read-more i {
    transform: rotate(180deg);
}

[dir="rtl"] .read-more:hover {
    transform: translateX(-3px);
}

/* ============================================================
   CASE STUDIES SECTION
   ============================================================ */
.case-studies-section {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-light);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
}

@media (min-width: 600px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-study-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--navy-light);
    transition: all var(--transition-slow);
    min-width: 0;
    overflow-wrap: break-word;
}

.case-study-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.case-study-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
}

.case-icon {
    font-size: 1.4rem;
    color: var(--navy-light);
    flex-shrink: 0;
}

.case-study-header h3 {
    flex: 1;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    color: var(--navy-light);
    margin: 0;
}

.case-study-content p {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5em;
}

.outcome-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--success);
    color: var(--white);
    font-size: clamp(0.7rem, 1.8vw, 0.75rem);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: var(--space-sm);
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    background: var(--surface);
    padding: var(--space-lg) clamp(12px, 3vw, 24px);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    border: 1px solid var(--border-light);
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
}

@media (min-width: 600px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    border-left: 5px solid var(--gold);
    transition: all var(--transition-slow);
    min-width: 0;
    overflow-wrap: break-word;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.testimonial-avatar {
    flex: 0 0 auto;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--navy-light), #283593);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.testimonial-client-info {
    flex: 1;
    min-width: 0;
}

.testimonial-client-info h4 {
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    color: var(--navy-light);
    margin-bottom: 2px;
}

.testimonial-client-info p {
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    color: var(--muted);
    margin: 0;
}

.testimonial-practice-area {
    display: inline-block;
    padding: 3px 10px;
    background: #e8eaf6;
    color: var(--navy-light);
    font-size: clamp(0.65rem, 1.6vw, 0.7rem);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.testimonial-content {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.testimonial-content i {
    color: var(--navy-light);
    opacity: 0.2;
    font-size: 1.1rem;
    margin-right: 4px;
}

.testimonial-rating {
    color: #fbbf24;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    margin-top: var(--space-sm);
}

.testimonial-date {
    font-size: clamp(0.65rem, 1.6vw, 0.7rem);
    color: var(--muted-light);
    margin-top: var(--space-sm);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    padding: var(--space-xl) clamp(12px, 3vw, 24px);
    background: var(--surface);
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.faq-section .section-title {
    text-align: center;
}

.faq-intro {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-light);
    line-height: 1.7;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-slow);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    font-family: inherit;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    font-weight: 600;
    color: var(--navy-light);
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-base);
    min-height: 48px;
}

.faq-question:hover {
    background: #e8eaf6;
}

.faq-question:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.faq-question span {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.faq-question i {
    flex-shrink: 0;
    color: var(--gold);
    font-size: 1rem;
    transition: transform var(--transition-slow);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--text-light);
    line-height: 1.6;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 2000px;
    padding: 0 18px 18px;
}

.faq-answer p {
    margin-bottom: 0.5em;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 0.5em 0;
    padding-left: 1.25rem;
}

.faq-answer li {
    margin-bottom: 0.25em;
    list-style-type: disc;
}

/* RTL support for FAQ */
[dir="rtl"] .faq-question {
    text-align: right;
}

[dir="rtl"] .faq-answer ul {
    padding-left: 0;
    padding-right: 1.25rem;
}

/* ============================================================
   FEE STRUCTURE SECTION
   ============================================================ */
.fee-structure-section {
    background: linear-gradient(135deg, var(--surface) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) clamp(12px, 3vw, 24px);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.fee-intro {
    margin-bottom: var(--space-xl);
}

.fee-highlight {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    color: var(--navy-light);
    text-align: center;
    padding: var(--space-md);
    background: #e8eaf6;
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.fee-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    width: 100%;
}

@media (min-width: 600px) {
    .fee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .fee-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fee-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: all var(--transition-slow);
    min-width: 0;
}

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

.fee-card-primary {
    border-top: 5px solid var(--navy-light);
}

.fee-card-gold {
    border-top: 5px solid var(--gold);
}

.fee-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: #e8eaf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy-light);
}

.fee-card-gold .fee-icon {
    background: #fff9ef;
    color: var(--gold-dark);
}

.fee-card h3 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--navy-light);
    margin-bottom: var(--space-sm);
}

.fee-amount {
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.fee-note {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.fee-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md);
    text-align: left;
}

.fee-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.fee-list i {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 3px;
}

.pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 12px 20px;
    background: var(--navy-light);
    color: var(--white);
    font-family: inherit;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-slow);
    min-height: 48px;
}

.pay-btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: scale(0.98);
}

.fee-disclaimer {
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: #fff9ef;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    color: var(--text-light);
    line-height: 1.6;
}

.fee-disclaimer i {
    color: var(--gold);
    margin-right: var(--space-sm);
}

.fee-disclaimer a {
    color: var(--navy-light);
    font-weight: 600;
    text-decoration: underline;
}

/* RTL support for fee structure */
[dir="rtl"] .fee-list {
    text-align: right;
}

[dir="rtl"] .fee-disclaimer {
    border-left: none;
    border-right: 4px solid var(--gold);
}

[dir="rtl"] .fee-disclaimer i {
    margin-right: 0;
    margin-left: var(--space-sm);
}

/* ============================================================
   CONTACT SECTION & CONSULTATION FORM
   ============================================================ */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    padding: var(--space-xl) clamp(12px, 3vw, 24px);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    text-align: center;
    border: 1px solid var(--border-light);
}

.contact-title {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    color: var(--navy-light);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.contact-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--muted);
    margin-bottom: var(--space-lg);
}

.consultation-form-section {
    background: linear-gradient(135deg, var(--surface) 0%, var(--white) 100%);
    padding: var(--space-xl) clamp(12px, 3vw, 24px);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    border-top: 5px solid var(--navy-light);
}

.form-title {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    color: var(--navy-light);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.form-subtitle {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--muted);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: var(--space-md);
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--gold);
    margin-right: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 16px; /* Prevents iOS zoom */
    color: var(--text-dark);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
    background: var(--white);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: var(--space-xs);
    font-size: clamp(0.7rem, 1.8vw, 0.75rem);
    color: var(--muted);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.form-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--navy-light);
    cursor: pointer;
}

.form-checkbox label {
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox a {
    color: var(--navy-light);
    text-decoration: underline;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 14px 20px;
    background: var(--navy-light);
    color: var(--white);
    font-family: inherit;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-slow);
    min-height: 52px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #283593 0%, var(--navy-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   SUCCESS/ERROR MESSAGES
   ============================================================ */
.success-message,
.error-message {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    animation: slideDown 0.3s ease;
}

.success-message {
    background: var(--success);
    color: var(--white);
}

.error-message {
    background: var(--error-light);
    color: var(--error-dark);
    border: 1px solid #fecaca;
}

.success-message i,
.error-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
    width: 100%;
    margin: var(--space-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

@media (max-width: 600px) {
    .map-iframe {
        height: 220px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0b1a30;
    color: #d1d5db;
    padding: var(--space-xl) clamp(12px, 3vw, 24px) var(--space-md);
    margin-top: var(--space-xl);
    width: 100%;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 600px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col {
    min-width: 0;
}

.footer-title {
    display: inline-block;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--gold);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
}

.footer-tagline {
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    color: var(--gold-light);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.footer-description {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: #b0b8c4;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-contact-info p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: #b0b8c4;
    margin-bottom: var(--space-sm);
    word-break: break-word;
}

.footer-contact-info i {
    color: var(--gold);
    width: 18px;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: #b0b8c4;
    transition: color var(--transition-base), padding var(--transition-base);
}

.footer-links a i {
    color: var(--gold);
    font-size: 0.75rem;
    flex-shrink: 0;
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.social-share-btn,
.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    transition: transform var(--transition-base), filter var(--transition-base);
    border: none;
    cursor: pointer;
}

.social-share-btn:hover,
.social-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.facebook { background: #3b599b; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.whatsapp { background: #25d366; }
.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.youtube { background: #ff0000; }
.threads { background: #000000; }
.phone { background: #4caf50; }

.footer-newsletter h4 {
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.footer-newsletter p {
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    color: #b0b8c4;
    margin-bottom: var(--space-md);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

.newsletter-form input {
    flex: 1 1 150px;
    min-width: 0;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 16px; /* Prevents iOS zoom */
    border: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    background: var(--white);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-family: inherit;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    color: var(--navy);
    background: var(--gold);
    border: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    cursor: pointer;
    transition: background var(--transition-base);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

/* Mobile newsletter form */
@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: var(--radius-full);
    }
}

/* RTL newsletter form */
[dir="rtl"] .newsletter-form input {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

[dir="rtl"] .newsletter-form button {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.footer-bottom {
    border-top: 1px solid #1e2d42;
    padding-top: var(--space-md);
    margin-top: var(--space-xl);
    text-align: center;
}

.footer-copyright p {
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    color: #9ca3af;
    line-height: 1.6;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .footer-col {
        text-align: center;
    }

    .footer-contact-info p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--navy-light));
    z-index: 9999;
    transition: width var(--transition-slow);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: var(--space-md);
    background: #1a2c3e;
    color: #e2e8f0;
    border-top: 3px solid var(--gold);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    display: none;
}

.cookie-consent.show {
    transform: translateY(0);
    display: block !important;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto;
}

.cookie-text {
    flex: 1 1 300px;
    min-width: 0;
}

.cookie-text p {
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}

.cookie-text strong {
    color: var(--gold);
}

.cookie-text a {
    color: var(--gold);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.cookie-btn {
    padding: 10px 20px;
    font-family: inherit;
    font-size: clamp(0.8rem, 2vw, 0.85rem);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;
}

.cookie-btn.accept {
    background: var(--gold);
    color: var(--navy);
}

.cookie-btn.accept:hover {
    background: var(--gold-light);
}

.cookie-btn.decline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.cookie-btn.decline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Mobile cookie consent */
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* ============================================================
   PAYMENT MODAL
   ============================================================ */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.payment-modal.show {
    display: flex;
}

.payment-modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.payment-modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--muted);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition-base);
}

.payment-modal-close:hover {
    background: var(--surface);
}

.payment-details-box {
    text-align: left;
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.payment-details-box p {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    margin-bottom: var(--space-sm);
    overflow-wrap: break-word;
}

.payment-details-box p:last-child {
    margin-bottom: 0;
}

.payment-details-box strong {
    color: var(--navy-light);
    flex-shrink: 0;
}

.payment-note {
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    color: var(--muted);
    line-height: 1.5;
    margin: var(--space-md) 0;
}

.payment-modal-close-btn {
    width: 100%;
    padding: 12px 20px;
    font-family: inherit;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    font-weight: 600;
    color: var(--white);
    background: var(--navy-light);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);
    min-height: 48px;
}

.payment-modal-close-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

/* ============================================================
   URDU / RTL SUPPORT
   ============================================================ */
.urdu-content,
[data-lang="ur"],
[dir="rtl"] {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    line-height: 2;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    line-height: 2.2;
}

[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .intro-text {
    text-align: right;
}

[dir="rtl"] .section-title {
    text-align: right;
}

[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .language-switcher,
    .cookie-consent,
    .social-links,
    .newsletter-form,
    .reading-progress,
    .payment-modal,
    .top-bar {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
        padding: 0;
        margin: 0;
    }

    .container {
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .Header,
    .header-container {
        background: var(--navy) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }

    .legal-page {
        box-shadow: none;
        border-radius: 0;
    }
}

/* ============================================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ============================================================
   DEVICE-SPECIFIC FIXES
   ============================================================ */

/* iPhone/iPad specific fixes */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .cookie-consent {
        padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    }
}

/* Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select {
        background-image: none;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .Header,
    .header-container {
        padding-top: 12px;
        padding-bottom: 16px;
    }

    .emblem-photo,
    .engineer-photo {
        width: 80px;
        height: 107px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .body,
    .legal-content {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* Very small screens (< 320px) */
@media (max-width: 320px) {
    :root {
        --container-padding: 4px;
    }

    body {
        padding: var(--container-padding);
    }

    .lang-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
        min-width: 60px;
    }

    .headline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .body,
    .legal-content {
        padding: 12px 8px;
    }

    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .benefit-icon {
        margin-bottom: var(--space-sm);
    }
}

/* Large screens */
@media (min-width: 1600px) {
    :root {
        --container-max: 1500px;
    }
}

/* ============================================================
   BLOG/ARTICLE PAGE STYLES
   ============================================================ */
.legal-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto var(--space-xl);
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.legal-content {
    width: 100%;
    padding: clamp(20px, 5vw, 55px);
}

.legal-section {
    width: 100%;
    margin-bottom: clamp(28px, 5vw, 50px);
    padding-bottom: clamp(20px, 3vw, 30px);
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: clamp(1.25rem, 3.5vw, 1.85rem);
    color: var(--blue);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid var(--gold);
    line-height: 1.3;
}

.legal-section h3 {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    color: var(--blue-2);
    margin: var(--space-lg) 0 var(--space-md);
    padding-left: var(--space-md);
    border-left: 4px solid var(--gold);
    line-height: 1.4;
}

[dir="rtl"] .legal-section h3 {
    padding-left: 0;
    padding-right: var(--space-md);
    border-left: none;
    border-right: 4px solid var(--gold);
}

.legal-section p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1em;
}

/* Table of Contents */
.toc-container {
    background: var(--surface);
    padding: clamp(18px, 4vw, 28px);
    border-radius: var(--radius-xl);
    margin: var(--space-lg) 0 var(--space-xl);
    border-left: 5px solid var(--blue);
}

[dir="rtl"] .toc-container {
    border-left: none;
    border-right: 5px solid var(--blue);
}

.toc-title {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--blue);
    margin-bottom: var(--space-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: var(--space-sm);
}

.toc-list a {
    display: inline-block;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: var(--blue);
    font-weight: 500;
    transition: color var(--transition-base), padding var(--transition-base);
}

.toc-list a:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

[dir="ltr"] .toc-list a:hover {
    padding-left: 6px;
}

[dir="rtl"] .toc-list a:hover {
    padding-right: 6px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e6f1 100%);
    padding: clamp(16px, 4vw, 24px);
    border-radius: var(--radius-xl);
    border-left: 5px solid var(--info);
    margin: var(--space-lg) 0;
}

[dir="rtl"] .info-box {
    border-left: none;
    border-right: 5px solid var(--info);
}

.info-box p {
    margin-bottom: 0;
}

.info-box i {
    color: var(--info);
    margin-right: var(--space-sm);
}

[dir="rtl"] .info-box i {
    margin-right: 0;
    margin-left: var(--space-sm);
}

/* Data Table */
.data-table-wrapper {
    width: 100%;
    margin: var(--space-lg) 0;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: var(--white);
}

.data-table th {
    padding: 14px 18px;
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    text-align: left;
}

[dir="rtl"] .data-table th {
    text-align: right;
}

.data-table td {
    padding: 14px 18px;
    border: 1px solid var(--border);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    vertical-align: top;
}

.data-table tr:nth-child(even) td {
    background: var(--surface);
}

.data-table tr:hover td {
    background: #eef2f6;
}

/* Blog Hero Image */
.blog-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    background: var(--surface);
}

.blog-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: clamp(20px, 5vw, 35px);
    border-radius: var(--radius-xl);
    margin-top: var(--space-xl);
    text-align: center;
}

.cta-box h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.cta-box p {
    color: #e2e8f0;
    margin-bottom: var(--space-md);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    background: var(--gold);
    color: var(--navy);
    font-family: inherit;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all var(--transition-slow);
    min-height: 48px;
}

.cta-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .blog-card:hover,
    .case-study-card:hover,
    .testimonial-card:hover,
    .fee-card:hover,
    .read-more:hover,
    .submit-btn:hover,
    .pay-btn:hover {
        transform: none;
    }

    /* Larger touch targets */
    .lang-btn,
    .faq-question,
    .read-more,
    .submit-btn,
    .pay-btn,
    .cookie-btn {
        min-height: 48px;
    }
}

/* ============================================================
   FONT LOADING
   ============================================================ */
@font-face {
    font-family: 'Noto Nastaliq Urdu';
    font-display: swap;
    src: local('Noto Nastaliq Urdu');
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.hidden { display: none !important; }
.visible { display: block !important; }

.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}