/* ============================================================
   CONSTRUCTION AID - MAIN STYLESHEET
   Adapted from the Afifa Legal Aid design system.
   Colour palette: steel blue / amber gold / neutral greys.
   All class names match the HTML in this project, so no
   markup changes are required.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI','Noto Nastaliq Urdu', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: white;
    color: #1e2a3e;
    line-height: 1.68;
    min-height: 100vh;
    padding: 8px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Hind, Geneva, Nirmala UI, Courier New, Verdana, sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border-top: 5px solid #1a237e;       /* steel blue */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ============ LANGUAGE CONTENT ============ */
.language-content {
    display: none;
    width: 100%;
}

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

/* ============================================================
   CRITICAL: prevent multiple language blocks from overlapping
   ============================================================ */
html body .language-content,
html body .language-content.en-content,
html body .language-content.hi-content,
html body .language-content.ur-content,
html body .language-content.urdu-content,
html body [data-lang="en"].language-content,
html body [data-lang="hi"].language-content,
html body [data-lang="ur"].language-content {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    position: static !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 100% !important;
}

html body .language-content.active,
html body .language-content.active.en-content,
html body .language-content.active.hi-content,
html body .language-content.active.ur-content,
html body .language-content.active.urdu-content,
html body [data-lang="en"].language-content.active,
html body [data-lang="hi"].language-content.active,
html body [data-lang="ur"].language-content.active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ============ LANGUAGE SWITCHER ============ */
.language-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: white;
    padding: 12px 16px;
    border-radius: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.lang-btn {
    background: #e8eaf6;
    border: none;
    padding: 10px 12px;
    border-radius: 32px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* ============ HEADER ============ */
.Header {
    background: linear-gradient(135deg, #0f1744 0%, #1a237e 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #d4af37;      /* amber accent */
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.headline {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subheading {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: #d4af37;
    margin-top: 8px;
    font-weight: 500;
}

.engineer-photo-container {
    flex-shrink: 0;
    max-width: 100%;
    min-width: 0;
}

.engineer-photo {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    display: block;
    max-width: 100%;
    margin-inline: auto;
}

.engineer-photo:hover {
    transform: scale(1.02);
    border-color: #d4af37;
}
.emblem-photo-container {
    flex-shrink: 0;
    max-width: 100%;
    min-width: 0;
}

.emblem-photo {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    display: block;
    max-width: 100%;
    margin-inline: auto;
}

.emblem-photo:hover {
    transform: scale(1.02);
    border-color: #d4af37;
}
/* ============ BODY CONTENT ============ */
.body {
    padding: 25px 20px;
    background: #fafafc;
    width: 100%;
}

.intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    text-align: justify;
    word-wrap: break-word;
}

.highlight-text {
    color: #1a237e;
    font-weight: 600;
}

.section-title {
    font-size: 1.6rem;
    color: #1a237e;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c5cae9;
    font-weight: 700;
    position: relative;
}

/* ============ CONTENT / PRACTICE AREAS ============ */
.content-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

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

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

.area-list li {
    margin-bottom: 14px;
    padding-left: 30px;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    word-wrap: break-word;
}

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

/* ============ BENEFIT ITEMS ============ */
.benefit-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    background: #eef2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a237e;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: #1a237e;
    color: white;
    transform: rotate(-5deg) scale(1.05);
}

.benefit-text {
    min-width: 0;
    max-width: 100%;
}

.benefit-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #1a237e;
}

.benefit-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ BLOG SECTION ============ */
.blog-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@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 {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

.blog-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.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 {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
}

.blog-content h3 {
    color: #1a237e;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.75rem;
    color: #6b7280;
    margin: 8px 0 10px;
    min-width: 0;
    max-width: 100%;
}

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

.blog-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
    font-size: 0.9rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a237e;
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    background: #d4af37;
    gap: 12px;
    transform: translateX(3px);
}

/* ============ CASE STUDIES ============ */
.case-studies-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@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: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #1a237e;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    border-left-width: 5px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.case-study-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.case-study-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 10px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.case-icon {
    font-size: 22px;
    color: #1a237e;
    margin-right: 15px;
    flex-shrink: 0;
}

.case-study-header h3 {
    color: #1a237e;
    margin: 0;
    font-size: 1rem;
}

.case-study-content p {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.9rem;
    color: #4b5563;
}

.outcome-badge {
    background: #10b981;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    display: inline-block;
    margin: 8px 0 0;
    font-weight: 600;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
    background: #f8fafc;
    padding: 25px 15px;
    border-radius: 16px;
    margin: 25px 0;
    border: 1px solid #eef2f6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@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: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #d4af37;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    border-left-width: 5px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

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

.testimonial-client-info h4 {
    color: #1a237e;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.testimonial-client-info p {
    color: #6b7280;
    font-size: 0.8rem;
}

.testimonial-practice-area {
    display: inline-block;
    background: #e8eaf6;
    color: #1a237e;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.testimonial-content i {
    color: #1a237e;
    opacity: 0.2;
    font-size: 18px;
    margin-right: 6px;
}

.testimonial-content p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-top: 10px;
    color: #fbbf24;
    font-size: 0.85rem;
}

.testimonial-date {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* ============ FAQ SECTION ============ */
.faq-section {
    padding: 30px 15px;
    background: #f8fafc;
    margin: 25px 0;
    border-radius: 16px;
    border: 1px solid #eef2f6;
}

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

.faq-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 25px;
    color: #4b5563;
    font-size: 1rem;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    padding: 14px 18px;
    background: #f8fafc;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a237e;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.3s ease;
    gap: 10px;
    min-height: 48px;
}

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

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

.faq-question i {
    transition: transform 0.3s ease;
    color: #d4af37;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.faq-answer p {
    margin-bottom: 6px;
}

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

.faq-answer strong {
    color: #1a237e;
}

.faq-answer ul {
    margin: 6px 0 6px 18px;
    padding-left: 0;
}

.faq-answer ul li {
    margin-bottom: 3px;
    list-style-type: disc;
}

/* ============ FEE STRUCTURE ============ */
.fee-structure-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 25px 18px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
}

.pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a237e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pay-btn i {
    font-size: 0.9rem;
}

.pay-btn:hover {
    background: #d4af37;
    transform: scale(0.98);
}

/* ============ CONSULTATION FORM ============ */
.consultation-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px 18px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #1a237e;
    border: 1px solid #eef2f6;
}

.form-title {
    color: #1a237e;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

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

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

.form-group {
    margin-bottom: 14px;
    min-width: 0;
    max-width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-group label i {
    color: #d4af37;
    margin-right: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9f9f9;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

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

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

.form-group small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 0.7rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

.form-checkbox label {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-checkbox a {
    color: #1a237e;
    text-decoration: underline;
}

.submit-btn {
    background: #1a237e;
    color: white;
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 60px;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #283593 0%, #1a237e 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 {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: #10b981;
    color: white;
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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

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

/* ============ CONTACT SECTION ============ */
.contact-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
    padding: 30px 18px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #eef2f6;
}

.contact-title {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 16px;
}

/* ============ FOOTER ============ */
.site-footer {
    background: #0b1a30;
    color: #d1d5db;
    padding: 30px 18px 15px;
    margin-top: 30px;
    width: 100%;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@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 {
    text-align: left;
    min-width: 0;
    max-width: 100%;
}

.footer-title {
    color: #d4af37;
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
    display: inline-block;
}

.footer-tagline {
    color: #ffd966;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-description {
    color: #b0b8c4;
    line-height: 1.6;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact-info p {
    color: #b0b8c4;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    word-break: break-word;
}

.footer-contact-info i {
    color: #d4af37;
    width: 18px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b0b8c4;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a i {
    color: #d4af37;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer-links a:hover {
    color: #d4af37;
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.social-share-btn,
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.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; }

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

.footer-newsletter h4 {
    color: #d4af37;
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-newsletter p {
    color: #b0b8c4;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 0.9rem;
    min-width: 0;
    max-width: 100%;
}

.newsletter-form input::placeholder {
    color: #999;
}

.newsletter-form button {
    background: #d4af37;
    border: none;
    padding: 0 16px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    color: #0f172a;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 100%;
}

.newsletter-form button:hover {
    background: #ffd966;
}

.footer-bottom {
    border-top: 1px solid #1e2d42;
    padding-top: 16px;
    margin-top: 25px;
    text-align: center;
}

.footer-copyright p {
    color: #9ca3af;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ============ READING PROGRESS BAR ============ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #1a237e);
    z-index: 9999;
    transition: width 0.3s ease;
}

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

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

.cookie-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.cookie-text {
    flex: 2;
    min-width: 250px;
}

.cookie-text p {
    margin-bottom: 4px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.cookie-text strong {
    color: #d4af37;
}

.cookie-text a {
    color: #d4af37;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-text a:hover {
    color: #ffd966;
}

.cookie-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-btn.accept {
    background: #d4af37;
    color: #1a2c3e;
}

.cookie-btn.accept:hover {
    background: #ffd966;
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

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

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

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

[dir="rtl"] .benefit-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .benefit-icon {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .footer-contact-info p {
    flex-direction: row-reverse;
}

[dir="rtl"] .newsletter-form input {
    border-radius: 0 30px 30px 0;
}

[dir="rtl"] .newsletter-form button {
    border-radius: 30px 0 0 30px;
}

[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .read-more i {
    transform: rotate(180deg);
}

/* ============ URDU CONTENT ============ */
.urdu-content,
[data-lang="ur"] {
    font-family: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    direction: rtl;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
	 line-height: 2.1; /* Increase line-height for better legibility */
    font-size: 1.05rem; /* Slightly larger base font size */

}

/* Improve heading readability in Urdu */
[data-lang="ur"] h1, [data-lang="ur"] h2, [data-lang="ur"] h3 {
    line-height: 2.2;
}

/* Adjust list padding for RTL layout */
[data-lang="ur"] ul, [data-lang="ur"] ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

.urdu-content .headline,
.urdu-content .subheading,
.urdu-content .tagline,
[data-lang="ur"] .headline,
[data-lang="ur"] .subheading,
[data-lang="ur"] .tagline {
    font-family: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, sans-serif;
}

.urdu-content *,
[data-lang="ur"] * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.urdu-content .Header,
[data-lang="ur"] .Header {
    width: 100%;
    max-width: 100%;
}

.urdu-content .header-content,
[data-lang="ur"] .header-content {
    min-width: 0;
    width: 100%;
}

/* Ensure form inputs are correctly aligned and styled */
[data-lang="ur"] input,
[data-lang="ur"] select,
[data-lang="ur"] textarea {
    direction: rtl;
    text-align: right;
    font-size: 1.05rem; /* Ensure form text is legible */
}

/* Adjust blog card meta for RTL layout */
[data-lang="ur"] .blog-meta span {
    flex-direction: row-reverse;
}
.urdu-content .intro-text,
.urdu-content .faq-answer,
.urdu-content .blog-excerpt,
.urdu-content .case-study-content,
.urdu-content .testimonial-content,
.urdu-content .footer-description,
.urdu-content .footer-copyright,
[data-lang="ur"] .intro-text,
[data-lang="ur"] .faq-answer,
[data-lang="ur"] .blog-excerpt,
[data-lang="ur"] .case-study-content,
[data-lang="ur"] .testimonial-content,
[data-lang="ur"] .footer-description,
[data-lang="ur"] .footer-copyright {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

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

img {
    height: auto;
}

p,
li,
a,
span,
h1, h2, h3, h4, h5, h6,
label,
small,
td,
th {
    overflow-wrap: anywhere;
    word-break: normal;
}

input,
select,
textarea,
button {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

textarea {
    width: 100%;
}

iframe[width],
iframe[style*="width"],
[style*="width: 500px"] {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        border-top-width: 3px;
        box-shadow: none;
    }

    .language-switcher {
        padding: 8px 6px;
        gap: 6px;
        max-width: 400px;
    }

    .lang-btn {
        flex: 0 1 auto;
        padding: 7px 12px;
        min-width: 0;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .Header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 18px 12px;
        text-align: center;
    }

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

    .engineer-photo {
        width: 110px;
        height: 145px;
        object-fit: cover;
    }

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

    .headline {
        font-size: clamp(1.2rem, 6vw, 1.55rem);
        line-height: 1.35;
        letter-spacing: normal;
    }

    .subheading {
        font-size: clamp(0.85rem, 4vw, 1rem);
        line-height: 1.45;
    }

    .tagline {
        font-size: clamp(0.95rem, 4.5vw, 1.1rem);
        line-height: 1.5;
    }

    .body {
        padding: 18px 12px;
    }

    .section-title {
        font-size: clamp(1.1rem, 5vw, 1.35rem);
        line-height: 1.4;
    }

    .intro-text {
        font-size: 0.94rem;
        line-height: 1.75;
        text-align: start;
    }

    .content-section {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .focus-areas,
    .why-choose {
        width: 100%;
        flex: 1 1 100%;
    }

    .benefit-item {
        gap: 12px;
    }

    .benefit-text {
        flex: 1 1 auto;
    }

    .blog-grid,
    .case-studies-grid,
    .testimonials-grid,
    .footer-main {
        grid-template-columns: 1fr !important;
    }

    .blog-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-content,
    .case-study-card,
    .testimonial-card {
        overflow-wrap: anywhere;
    }

    .faq-section,
    .testimonials-section,
    .consultation-form-section,
    .contact-section,
    .fee-structure-section {
        padding-inline: 12px;
        margin-inline: 0;
        max-width: 100%;
    }

    .faq-question {
        min-height: 48px;
        padding: 12px 13px;
        gap: 8px;
        text-align: start;
    }

    .faq-answer {
        padding-inline: 13px;
    }

    .faq-answer.open {
        padding-inline: 13px;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        font-size: 16px; /* prevents iOS Safari auto-zoom */
    }

    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        min-width: 0;
        max-width: 100%;
    }

    .pay-btn,
    .submit-btn {
        width: 100%;
        max-width: 100%;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

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

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

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

    #paymentModal > div,
    .cookie-consent {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box;
    }

    .cookie-consent {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .urdu-content,
    [data-lang="ur"] {
        font-size: 0.95rem;
        padding: 0 5px;
    }

    .urdu-content .headline,
    [data-lang="ur"] .headline {
        font-size: 1.3rem;
        line-height: 1.5;
        word-break: break-word;
    }

    .urdu-content .subheading,
    [data-lang="ur"] .subheading {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .urdu-content .tagline,
    [data-lang="ur"] .tagline {
        font-size: 1rem;
    }

    .urdu-content .intro-text,
    [data-lang="ur"] .intro-text {
        font-size: 0.9rem;
        line-height: 1.7;
        text-align: justify;
        padding: 0 3px;
    }

    .urdu-content .section-title,
    [data-lang="ur"] .section-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .urdu-content .benefit-item,
    [data-lang="ur"] .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .urdu-content .benefit-icon,
    [data-lang="ur"] .benefit-icon {
        margin-bottom: 6px;
    }

    .urdu-content .newsletter-form,
    [data-lang="ur"] .newsletter-form {
        flex-direction: column;
        gap: 6px;
    }

    .urdu-content .newsletter-form input,
    [data-lang="ur"] .newsletter-form input {
        border-radius: 30px !important;
        text-align: right;
    }

    .urdu-content .newsletter-form button,
    [data-lang="ur"] .newsletter-form button {
        border-radius: 30px !important;
        padding: 8px 16px;
    }
}

/* Extra-small phones */
@media (max-width: 480px) {
    body {
        padding: 3px;
    }

    .headline {
        font-size: 1.2rem;
    }

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

    .contact-title {
        font-size: 1.1rem;
    }

    .form-title {
        font-size: 1.2rem;
    }

    .cookie-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .engineer-photo {
        width: 100px;
        height: 140px;
    }

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

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

    .benefit-icon {
        margin-bottom: 6px;
    }

    .blog-card {
        border-radius: 12px;
    }

    .blog-content {
        padding: 14px;
    }

    .case-study-card,
    .testimonial-card {
        padding: 14px;
    }

    .faq-question {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .faq-answer {
        font-size: 0.85rem;
        padding: 0 12px;
    }

    .faq-answer.open {
        padding: 0 12px 12px;
    }

    .pay-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .newsletter-form input {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .newsletter-form button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 12px 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .urdu-content,
    [data-lang="ur"] {
        font-size: 0.9rem;
        padding: 0 3px;
    }

    .urdu-content .headline,
    [data-lang="ur"] .headline {
        font-size: 1.1rem;
    }

    .urdu-content .subheading,
    [data-lang="ur"] .subheading {
        font-size: 0.85rem;
    }

    .urdu-content .tagline,
    [data-lang="ur"] .tagline {
        font-size: 0.95rem;
    }

    .urdu-content .intro-text,
    [data-lang="ur"] .intro-text {
        font-size: 0.85rem;
        padding: 0 2px;
    }

    .urdu-content .section-title,
    [data-lang="ur"] .section-title {
        font-size: 1rem;
    }

    .cookie-consent {
        left: 6px !important;
        right: 6px !important;
        bottom: 6px !important;
        width: calc(100% - 12px) !important;
        max-width: calc(100% - 12px) !important;
    }
}

/* Very narrow devices */
@media (max-width: 340px) {
    .lang-btn {
        padding-inline: 8px;
        font-size: 0.7rem;
    }

    .Header {
        padding-inline: 7px;
    }

    .body {
        padding-inline: 7px;
    }

    .intro-text {
        font-size: 0.86rem;
    }

    .faq-question {
        font-size: 0.82rem;
    }
}

/* Tablet / medium screens */
@media (min-width: 769px) and (max-width: 1100px) {
    .Header {
        gap: 15px;
        padding-inline: 15px;
    }

    .engineer-photo {
        width: 125px;
        height: 170px;
    }

    .header-content {
        min-width: 0;
    }

    .content-section {
        gap: 20px;
    }
}

/* Accessibility: avoid hover jitter on touch devices */
@media (hover: none) and (pointer: coarse) {
    .blog-card:hover,
    .case-study-card:hover,
    .testimonial-card:hover,
    .read-more:hover,
    .submit-btn:hover,
    .pay-btn:hover {
        transform: none;
    }
}

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

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

    body {
        background: white;
        padding: 0;
        margin: 0;
    }

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

    .Header {
        background: #1a237e !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

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


/* ============================================================
   BLOG & ARTICLE PAGE STYLES
   This consolidates all styles from the individual blog HTML
   files into a single reusable stylesheet.
   ============================================================ */

/* --- Article Wrapper & Layout --- */
.legal-page {
    width: min(100%, 1180px);
    margin: 0 auto 40px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,.20);
    border-radius: 0 0 20px 20px;
}

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

/* --- Main Article Sections --- */
.legal-section {
    width: 100%;
    min-width: 0;
    margin-bottom: clamp(32px, 5vw, 50px);
    padding-bottom: clamp(22px, 3vw, 30px);
    border-bottom: 1px solid var(--border);
}

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

.legal-section h2 {
    color: var(--blue);
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    line-height: 1.3;
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 3px solid var(--gold);
    font-weight: 700;
    overflow-wrap: anywhere;
    scroll-margin-top: 80px;
}

.legal-section h3 {
    color: var(--blue-2);
    font-size: clamp(1.12rem, 2.5vw, 1.35rem);
    line-height: 1.4;
    margin: 26px 0 15px;
    padding-left: 12px; /* LTR */
    border-left: 4px solid var(--gold); /* LTR */
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* RTL support for section headings */
[dir="rtl"] .legal-section h3 {
    padding-left: 0;
    padding-right: 12px;
    border-left: none;
    border-right: 4px solid var(--gold);
}

.legal-section p {
    color: var(--text);
    margin: 0 0 17px;
    font-size: clamp(.98rem, 1.45vw, 1.02rem);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.legal-section ul, .legal-section ol {
    margin: 16px 0 20px;
    padding-left: 1.5rem; /* LTR */
}

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

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: clamp(.96rem, 1.4vw, 1rem);
    overflow-wrap: anywhere;
}

.legal-section li strong {
    color: var(--blue);
}


/* --- Table of Contents --- */
.toc-container {
    width: 100%;
    background: var(--surface);
    padding: clamp(20px, 3.5vw, 28px) clamp(18px, 4vw, 32px);
    border-radius: 20px;
    margin: 25px 0 35px;
    border-left: 5px solid var(--blue); /* LTR */
}
[dir="rtl"] .toc-container {
    border-left: none;
    border-right: 5px solid var(--blue);
}
.toc-title {
    color: var(--blue);
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toc-list li { margin: 0 0 8px; }
.toc-list a {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    transition: color .15s ease, padding-left .15s ease, padding-right .15s ease;
}
.toc-list a:hover, .toc-list a:focus-visible {
    color: var(--gold-dark);
    text-decoration: underline;
    outline: none;
}
[dir="ltr"] .toc-list a:hover { padding-left: 6px; }
[dir="rtl"] .toc-list a:hover { padding-right: 6px; }

/* --- Info Box --- */
.info-box {
    width: 100%;
    background: linear-gradient(135deg, #e8f4fd 0%, #d4e6f1 100%);
    padding: clamp(18px, 3.5vw, 24px);
    border-radius: 20px;
    border-left: 5px solid var(--info); /* LTR */
    margin: 28px 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: 6px; }
[dir="rtl"] .info-box i { margin-right: 0; margin-left: 6px; }

/* --- Data Table --- */
.data-table-wrapper {
    width: 100%;
    margin: 28px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    overflow-x: auto; /* Important for mobile */
}
.data-table {
    width: 100%;
    min-width: 600px; /* Force scroll on small screens */
    border-collapse: collapse;
    background: #fff;
}
.data-table th {
    background: var(--blue);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    text-align: left; /* LTR */
}
[dir="rtl"] .data-table th { text-align: right; }
.data-table td {
    padding: 14px 18px;
    border: 1px solid var(--border);
    vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--surface); }
.data-table tr:hover td { background: #eef2f6; }

/* --- Blog Header --- */
.header-container {
    width: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #1a237e 100%);
    color: #fff;
    text-align: center;
    padding: clamp(16px, 3vw, 24px) 16px clamp(20px, 4vw, 32px);
}
.top-bar {
    width: min(100%, 1200px);
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    background: #fff;
    padding: 9px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}
.back-button i { transition: transform .2s ease; }
[dir="rtl"] .back-button i { transform: scaleX(-1); }
.back-button:hover, .back-button:focus-visible {
    background: #f1f5f9;
    outline: 3px solid var(--gold);
}
.language-switcher {
    gap: 4px;
    background: rgba(255,255,255,0.12);
    padding: 4px;
    border-radius: 30px;
}
.lang-btn {
    padding: 7px 14px;
    border-radius: 24px;
    color: black;
    text-decoration: none;
    font-weight: 600;
    font-size: .82rem;
    transition: all .2s ease;
}
.lang-btn:hover:not(.active) { background: rgba(255,255,255,0.15); }
.lang-btn.active { background: var(--gold); color: var(--navy); }
.header-center { text-align: center; }
.logo-img {
    width: clamp(76px, 11vw, 100px);
    height: clamp(76px, 11vw, 100px);
    margin: 0 auto 12px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid var(--gold);
}
.logo-text {
    font-size: clamp(1.55rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--gold);
}
.logo-subtext { margin-top: 10px; opacity: .92; }
.header-container h1 {
    margin: 18px auto 0;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--gold);
}

/* --- Blog Hero Image & Meta --- */
.blog-hero {
    width: 100%;
    height: clamp(190px, 32vw, 350px);
    overflow: hidden;
    border-radius: 15px;
    margin: 0 0 25px;
}
.blog-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 18px;
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 25px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--border);
}
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta i { color: var(--gold); }

/* --- CTA Box --- */
.cta-box {
    width: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #1a237e 100%);
    color: #fff;
    padding: clamp(24px, 5vw, 35px);
    border-radius: 20px;
    margin: 35px 0 0;
    text-align: center;
}
.cta-box h3 { color: var(--gold); margin: 0 0 12px; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.cta-box p { color: #e2e8f0; margin: 0 auto 20px; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.cta-btn:hover, .cta-btn:focus-visible {
    opacity: .95;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* --- CSS Variables (Root) --- */
:root {
    --navy: #0f1744;
    --blue: #1e4663;
    --blue-2: #2c5a7a;
    --gold: #d4af37;
    --gold-dark: #b8942a;
    --text: #2d3e50;
    --text-dark: #1e2a3e;
    --muted: #6b7280;
    --border: #e2e8f0;
    --surface: #f8fafc;
    --info: #2196f3;
}