/*
Theme Name: Mahmoud Shams Foreigners Marriage
Theme URI: https://mahmoudshamss.com
Author: Nemer Digital Solutions
Description: An ultra-fast, premium multi-page theme customized for Foreigners Marriage services in Egypt.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mahmoud-shams-marriage
*/

/* CSS VARIABLE DEFINITIONS */
:root {
    --primary-color: #0c2340; /* Royal Navy */
    --primary-dark: #071527;
    --accent-color: #c5a059; /* Warm Gold */
    --accent-hover: #b48e48;
    --secondary-color: #1e3a8a;
    --bg-light: #f8fafc;
    --bg-dark: #0b132b;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Cairo', 'Tajawal', sans-serif;
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER & NAVIGATION */
.site-header {
    background-color: rgba(12, 35, 64, 0.98);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--accent-color);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lawyer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    object-fit: cover;
    object-position: center top;
    background-color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: var(--transition-smooth);
}

.logo-area:hover .lawyer-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--text-light);
}

.lawyer-title-wrapper {
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.lawyer-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.lawyer-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after,
.nav-menu .active a::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background-color: var(--text-light) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.3;
}

.section-divider {
    height: 4px;
    width: 90px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 18px auto 0;
    border-radius: 10px;
}

/* HERO SECTION Styles */
.page-hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 170px 0 70px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"%3E%3Cpath d="M40 0l40 40-40 40L0 40z" fill="%23ffffff" fill-opacity="0.015"/%3E%3C/svg%3E');
    opacity: 0.6;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.8s ease;
}

.page-hero-breadcrumbs {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.page-hero-breadcrumbs a {
    color: var(--accent-color);
}

.page-hero-breadcrumbs a:hover {
    color: var(--text-light);
}

.main-content-area {
    padding: 90px 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* FOOTER STYLING */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 30px;
    border-top: 4px solid var(--accent-color);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-widget {
    flex: 1;
    min-width: 280px;
}

.footer-widget.about-widget {
    flex: 1.6;
}

.footer-widget h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.footer-widget p {
    color: #cbd5e1;
    font-size: 0.98rem;
    margin-bottom: 18px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-color);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 6px;
}

.footer-links a:hover::before {
    transform: translateX(-4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-bottom span {
    color: var(--accent-color);
    font-weight: 700;
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #ffffff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1) rotate(15deg);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* MICRO-ANIMATIONS & REVEAL CLASSES */
.reveal-fade-in,
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.reveal-fade-in.reveal-active,
.reveal-on-scroll.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* SCROLL-TO-TOP BUTTON */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 110px;
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .header-container {
        padding: 10px 15px;
    }
    .nav-menu {
        gap: 10px;
    }
    .nav-menu a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .nav-cta {
        padding: 8px 18px !important;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* DARK THEME VARIABLES & STYLES */
body.dark-theme {
    --primary-color: #0b132b;
    --primary-dark: #050a18;
    --bg-light: #1c2541;
    --text-dark: #f8fafc;
    --text-muted: #cbd5e1;
    background-color: var(--primary-color);
}
body.dark-theme .site-header {
    background-color: rgba(5, 10, 24, 0.98);
}
body.dark-theme .service-card,
body.dark-theme .step-item,
body.dark-theme .stat-card,
body.dark-theme .testimonial-card,
body.dark-theme .faq-item,
body.dark-theme .detailed-service-row,
body.dark-theme .detailed-info-box,
body.dark-theme .nationalities-section,
body.dark-theme .contact-form-card,
body.dark-theme .calculator-box,
body.dark-theme .translator-card {
    background-color: #111a36;
    border-color: rgba(255,255,255,0.05);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
body.dark-theme .faq-answer,
body.dark-theme .step-item p,
body.dark-theme .service-card p,
body.dark-theme .nationality-card p,
body.dark-theme .testimonial-text,
body.dark-theme .value-card p,
body.dark-theme .translator-desc,
body.dark-theme .faq-question {
    color: #cbd5e1;
}
body.dark-theme .detailed-service-text p,
body.dark-theme .detailed-service-text li,
body.dark-theme .detailed-info-list li,
body.dark-theme .about-main-text p,
body.dark-theme .value-card h4 {
    color: var(--text-light);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-toggle-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}
.lang-select-dropdown {
    background-color: var(--primary-dark);
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.lang-select-dropdown:hover {
    border-color: var(--accent-color);
}

/* INTERACTIVE DOCUMENT CALCULATOR */
.calculator-section {
    padding: 100px 0;
    background-color: #ffffff;
}
body.dark-theme .calculator-section {
    background-color: #0b132b;
}
.calculator-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(12,35,64,0.05);
}
.calculator-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}
.calc-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    background-color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
}
body.dark-theme .calc-select {
    background-color: #1c2541;
    border-color: rgba(255,255,255,0.1);
    color: var(--text-light);
}
.calc-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--accent-color);
    padding: 14px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}
.calc-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.calc-result-box {
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    background-color: #ffffff;
    border-right: 4px solid var(--accent-color);
    display: none;
    animation: fadeInUp 0.5s ease;
}
body.dark-theme .calc-result-box {
    background-color: #1c2541;
}
.calc-result-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
}
body.dark-theme .calc-result-box h4 {
    color: var(--accent-color);
}
.calc-result-list {
    list-style: none;
}
.calc-result-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}
.calc-result-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--accent-color);
}

/* WARNINGS SECTION */
.warnings-section {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}
body.dark-theme .warnings-section {
    background-color: #2d1c1c;
    border-color: #742a2a;
}
.warnings-section h3 {
    color: #c53030;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.dark-theme .warnings-section h3 {
    color: #feb2b2;
}
.warnings-list {
    list-style: none;
}
.warnings-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    color: #742a2a;
    font-weight: 600;
    text-align: justify;
}
body.dark-theme .warnings-list li {
    color: #feb2b2;
}
.warnings-list li::before {
    content: "\f071";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: #e53e3e;
}

/* INLINE WHATSAPP HELP */
.inline-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-right: 8px;
    transition: var(--transition-smooth);
}
.inline-whatsapp-btn:hover {
    transform: scale(1.2) rotate(15deg);
    background-color: #128c7e;
}

/* PARTNERS & TRANSLATORS */
.translators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.translator-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(12,35,64,0.04);
}
.translator-lang {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
}
.translator-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* TRUST BADGES */
.trust-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0.8;
}
.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
}
.trust-badge-item i {
    font-size: 2.2rem;
}

/* APPOINTMENT MODAL STYLES */
.appointment-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}
.appointment-modal-content {
    background-color: #ffffff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: fadeInUp 0.4s ease;
}
body.dark-theme .appointment-modal-content {
    background-color: #111a36;
    color: var(--text-light);
}
.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.close-modal-btn:hover {
    color: var(--accent-color);
}
.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}
body.dark-theme .modal-title {
    color: var(--accent-color);
}
.modal-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

@media(max-width: 768px) {
    .calculator-fields {
        grid-template-columns: 1fr;
    }
}


/* HOMEPAGE SPECIFIC LAYOUT STYLES */
/* HERO SECTION */
        .hero-section {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
            color: var(--text-light);
            position: relative;
            padding: 180px 0 100px;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cpath d="M10 10h80v80H10z" fill="none" stroke="%23ffffff" stroke-opacity="0.015" stroke-width="1"/%3E%3C/svg%3E');
            opacity: 0.4;
            pointer-events: none;
        }

        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 50px;
            position: relative;
            z-index: 2;
        }

        .hero-content {
            flex: 1.2;
            max-width: 700px;
        }

        .badge {
            background-color: rgba(197, 160, 89, 0.18);
            border: 1px solid var(--accent-color);
            color: var(--accent-color);
            padding: 6px 18px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 700;
            display: inline-block;
            margin-bottom: 22px;
            box-shadow: 0 4px 10px rgba(197,160,89,0.1);
        }

        .hero-title {
            font-size: 3.25rem;
            font-weight: 900;
            line-height: 1.25;
            margin-bottom: 22px;
            color: var(--text-light);
            letter-spacing: -0.5px;
        }

        .hero-title span {
            color: var(--accent-color);
            position: relative;
        }

        .hero-desc {
            font-size: 1.15rem;
            color: #cbd5e1;
            margin-bottom: 40px;
            line-height: 1.8;
            text-align: justify;
        }

        .hero-ctas {
            display: flex;
            gap: 20px;
        }

        .btn {
            padding: 15px 32px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1.05rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: var(--transition-smooth);
        }

        .btn-primary {
            background-color: var(--accent-color);
            color: var(--primary-color);
        }

        .btn-primary:hover {
            background-color: var(--accent-hover);
            transform: translateY(-3px);
            box-shadow: 0 6px 22px rgba(197, 160, 89, 0.4);
        }

        .btn-secondary {
            background-color: transparent;
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
        }

        .btn-secondary:hover {
            background-color: var(--accent-color);
            color: var(--primary-color);
            transform: translateY(-3px);
            box-shadow: 0 6px 22px rgba(197, 160, 89, 0.2);
        }

        .hero-image-wrapper {
            flex: 0 0 420px;
            position: relative;
        }

        .lawyer-card {
            position: relative;
            border-radius: 20px;
            background: linear-gradient(185deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            text-align: center;
        }

        .lawyer-card::before {
            content: '';
            position: absolute;
            inset: -6px;
            border-radius: 26px;
            background: linear-gradient(45deg, var(--accent-color), transparent, var(--accent-color));
            z-index: -1;
            opacity: 0.35;
            filter: blur(12px);
        }

        .lawyer-photo {
            border-radius: 15px;
            width: 100%;
            height: 440px;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background-color: var(--primary-dark);
            transition: var(--transition-smooth);
        }

        .lawyer-photo:hover {
            transform: scale(1.02);
            border-color: var(--accent-color);
        }

        .lawyer-card-badge {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--primary-color);
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            padding: 10px 28px;
            border-radius: 50px;
            font-weight: 800;
            font-size: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            white-space: nowrap;
        }

        /* SERVICES SECTION */
        .services-section {
            padding: 100px 0;
            background-color: var(--bg-light);
        }

        .services-grid {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 35px;
        }

        .service-card {
            background-color: #ffffff;
            border-radius: 16px;
            padding: 40px 30px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
            border-bottom: 4px solid transparent;
            transition: var(--transition-smooth);
            text-align: center;
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 45px rgba(12, 35, 64, 0.08);
            border-color: var(--accent-color);
        }

        .service-icon {
            width: 75px;
            height: 75px;
            background-color: rgba(197, 160, 89, 0.1);
            color: var(--accent-color);
            border-radius: 50% 20% 50% 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.85rem;
            margin: 0 auto 28px;
            transition: var(--transition-smooth);
        }

        .service-card:hover .service-icon {
            background-color: var(--accent-color);
            color: var(--primary-color);
            border-radius: 50%;
            transform: rotate(-10deg);
        }

        .service-card h3 {
            font-size: 1.4rem;
            color: var(--primary-color);
            margin-bottom: 15px;
            font-weight: 800;
        }

        .service-card p {
            color: var(--text-muted);
            font-size: 0.98rem;
            line-height: 1.7;
            text-align: justify;
        }

        /* TIMELINE/STEPS SECTION */
        .steps-section {
            padding: 100px 0;
            background-color: #ffffff;
        }

        .steps-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .step-item {
            background-color: var(--bg-light);
            border-radius: 12px;
            padding: 30px;
            border-top: 4px solid var(--primary-color);
            position: relative;
            transition: var(--transition-smooth);
        }

        .step-item:hover {
            transform: translateY(-5px);
            border-top-color: var(--accent-color);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .step-number {
            position: absolute;
            top: -20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background-color: var(--accent-color);
            color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 1.15rem;
            box-shadow: 0 4px 10px rgba(197,160,89,0.3);
        }

        .step-item h3 {
            font-size: 1.25rem;
            color: var(--primary-color);
            margin: 15px 0 12px;
            font-weight: 800;
        }

        .step-item p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
            text-align: justify;
        }

        /* HIGHLIGHT SECTION */
        .highlight-section {
            background-color: var(--bg-light);
            padding: 100px 0;
            border-top: 1px solid rgba(12,35,64,0.05);
        }

        .highlight-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            gap: 60px;
        }

        .highlight-text {
            flex: 1.3;
        }

        .highlight-text h3 {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 22px;
            font-weight: 800;
        }

        .highlight-text p {
            color: var(--text-dark);
            margin-bottom: 30px;
            font-size: 1.05rem;
            line-height: 1.8;
            text-align: justify;
        }

        .highlight-text ul {
            list-style: none;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .highlight-text li {
            position: relative;
            padding-right: 32px;
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1rem;
        }

        .highlight-text li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            right: 0;
            top: 2px;
            color: var(--accent-color);
            font-size: 0.95rem;
            background-color: rgba(197, 160, 89, 0.12);
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .highlight-stats {
            flex: 0 0 380px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 22px;
        }

        .stat-card {
            background-color: #ffffff;
            border-radius: 16px;
            padding: 35px 20px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(12, 35, 64, 0.04);
            transition: var(--transition-smooth);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
            box-shadow: 0 15px 35px rgba(197, 160, 89, 0.1);
        }

        .stat-num {
            font-size: 2.75rem;
            font-weight: 900;
            color: var(--accent-color);
            margin-bottom: 8px;
            display: block;
        }

        .stat-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* TESTIMONIALS SECTION */
        .testimonials-section {
            padding: 100px 0;
            background-color: #ffffff;
        }

        .testimonials-grid {
            max-width: 1200px;
            margin: 50px auto 0;
            padding: 0 24px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .testimonial-card {
            background-color: var(--bg-light);
            border-radius: 15px;
            padding: 35px;
            position: relative;
            box-shadow: 0 8px 25px rgba(0,0,0,0.02);
            transition: var(--transition-smooth);
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0,0,0,0.05);
        }

        .testimonial-text {
            color: var(--text-dark);
            font-size: 0.98rem;
            line-height: 1.7;
            margin-bottom: 25px;
            text-align: justify;
            font-style: italic;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .author-info h4 {
            font-size: 1.05rem;
            color: var(--primary-color);
            font-weight: 800;
        }

        .author-info span {
            font-size: 0.85rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .quote-icon {
            position: absolute;
            bottom: 25px;
            left: 30px;
            font-size: 2.5rem;
            color: rgba(197,160,89,0.12);
        }

        /* FAQ SECTION */
        .faq-section {
            padding: 100px 0;
            background-color: var(--bg-light);
        }

        .faq-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .faq-item {
            border-bottom: 1px solid #e2e8f0;
            padding: 20px 0;
            background-color: #ffffff;
            margin-bottom: 15px;
            border-radius: 8px;
            padding: 20px 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.01);
        }

        .faq-question {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition-smooth);
        }

        .faq-question:hover {
            color: var(--accent-color);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
            color: var(--text-muted);
            font-size: 1.02rem;
            line-height: 1.8;
            padding-top: 10px;
            text-align: justify;
        }

        .faq-item.active .faq-answer {
            max-height: 500px;
            transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
        }

        .faq-icon {
            font-size: 1rem;
            color: var(--accent-color);
            transition: var(--transition-smooth);
        }

        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }

        /* INTERSECTION OBSERVER ANIMATION */
        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
        }

        .reveal-on-scroll.reveal-active {
            opacity: 1;
            transform: translateY(0);
        }

        /* SCROLL-TO-TOP BUTTON */
        .scroll-top-btn {
            position: fixed;
            bottom: 30px;
            left: 110px;
            background-color: var(--primary-color);
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-smooth);
        }

        .scroll-top-btn.visible {
            opacity: 1;
            visibility: visible;
        }

        .scroll-top-btn:hover {
            background-color: var(--accent-color);
            color: var(--primary-color);
            transform: translateY(-3px);
        }

        /* HIDDEN SEO BLOCK STYLING */
        .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;
        }

        @media (max-width: 1024px) {
            .hero-container {
                flex-direction: column;
                text-align: center;
                padding-top: 40px;
            }

            .hero-content {
                max-width: 100%;
            }

            .hero-title {
                font-size: 2.75rem;
            }

            .hero-ctas {
                justify-content: center;
            }

            .hero-image-wrapper {
                flex: 0 0 auto;
                width: 100%;
                max-width: 380px;
            }

            .highlight-container {
                flex-direction: column;
            }

            .highlight-stats {
                flex: 0 0 auto;
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.2rem;
            }

            .hero-ctas {
                flex-direction: column;
                gap: 15px;
            }

            .btn {
                width: 100%;
            }

            .highlight-text ul {
                grid-template-columns: 1fr;
            }

            .scroll-top-btn {
                left: 20px;
                bottom: 110px;
            }
        }

        /* PREMIUM CARD AND BUTTON MICRO-ANIMATIONS */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        @keyframes pulse-glow {
            0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
            70% { box-shadow: 0 0 0 12px rgba(197, 160, 89, 0); }
            100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
        }

        @keyframes shake {
            0%, 100% { transform: rotate(0deg); }
            20%, 60% { transform: rotate(-3deg); }
            40%, 80% { transform: rotate(3deg); }
        }

        /* Floating lawyer photo card */
        .lawyer-card {
            animation: float 6s ease-in-out infinite;
        }

        /* Bouncy WhatsApp button */
        .whatsapp-float {
            animation: float 4s ease-in-out infinite;
            box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
        }

        .whatsapp-float:hover {
            transform: scale(1.1) rotate(5deg) !important;
        }

        /* Bouncy primary action buttons */
        .btn-primary {
            animation: pulse-glow 2s infinite;
        }

        .btn-primary:hover {
            transform: translateY(-4px) scale(1.02) !important;
        }

        /* Dynamic list element slide-in on hover */
        .warnings-list li, .detailed-info-list li, .calc-result-list li, .highlight-text li {
            transition: transform 0.3s ease, color 0.3s ease;
        }

        .warnings-list li:hover, .detailed-info-list li:hover, .calc-result-list li:hover, .highlight-text li:hover {
            transform: translateX(8px);
            color: var(--accent-color) !important;
        }

        /* Premium card zoom & glow effect on hover */
        .service-card, .step-item, .stat-card, .testimonial-card, .translator-card, .nat-card, .post-step-card {
            transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease !important;
        }

        .service-card:hover, .step-item:hover, .stat-card:hover, .testimonial-card:hover, .translator-card:hover, .nat-card:hover, .post-step-card:hover {
            transform: translateY(-8px) scale(1.01) !important;
            box-shadow: 0 20px 40px rgba(12, 35, 64, 0.12) !important;
            border-color: var(--accent-color) !important;
        }

        /* Bouncy and spinning icons on hover */
        .service-card:hover .service-icon i, .step-item:hover .step-number, .translator-card:hover i {
            animation: shake 0.5s ease-in-out;
        }

        /* GLASSMORPHISM HEADER UPGRADE */
        .site-header {
            background: rgba(12, 35, 64, 0.85) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            transition: background 0.3s ease, border 0.3s ease;
        }

        .site-header.scrolled {
            background: rgba(12, 35, 64, 0.98) !important;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        /* SCROLL PROGRESS BAR */
        #scroll-progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
            width: 0%;
            z-index: 9999;
            transition: width 0.1s ease-out;
        }

        /* STICKY MOBILE ACTION BAR */
        #sticky-mobile-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: rgba(12, 35, 64, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
            z-index: 999;
            padding: 10px 15px;
        }

        @media (max-width: 768px) {
            #sticky-mobile-bar {
                display: grid !important;
                grid-template-columns: 1fr 1fr;
                gap: 15px;
                align-items: center;
            }
            body {
                padding-bottom: 70px !important; /* Avoid content overlap with mobile bar */
            }
        }

        .mobile-sticky-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            height: 50px;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.95rem;
            text-decoration: none;
            color: var(--text-light);
            transition: var(--transition-smooth);
        }

        .mobile-sticky-btn.call {
            background-color: var(--accent-color);
            color: var(--primary-color) !important;
        }

        .mobile-sticky-btn.whatsapp {
            background-color: #25d366;
            color: var(--text-light) !important;
        }

        /* INTERACTIVE WHATSAPP ACTIVE STATUS */
        .whatsapp-status-wrapper {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .whatsapp-pulse-dot {
            width: 10px;
            height: 10px;
            background-color: #25d366;
            border-radius: 50%;
            position: relative;
            display: inline-block;
        }

        .whatsapp-pulse-dot::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 2px solid #25d366;
            animation: pulse-glow 1.5s infinite;
        }

        /* FEE CALCULATOR */
        .fee-calculator-box {
            background: var(--bg-light);
            border-radius: 16px;
            border: 1px solid rgba(12, 35, 64, 0.06);
            padding: 40px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
            margin-top: 40px;
        }

        .fee-calc-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

        @media (max-width: 992px) {
            .fee-calc-grid {
                grid-template-columns: 1fr;
            }
        }

        .fee-calc-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .fee-calc-select, .fee-calc-input {
            width: 100%;
            height: 52px;
            padding: 0 15px;
            border-radius: 8px;
            border: 2px solid rgba(12, 35, 64, 0.1);
            background-color: #ffffff;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--primary-color);
            transition: var(--transition-smooth);
            outline: none;
        }

        .fee-calc-select:focus, .fee-calc-input:focus {
            border-color: var(--accent-color);
        }

        .fee-calc-btn {
            width: 100%;
            height: 55px;
            background-color: var(--accent-color);
            color: var(--primary-color);
            border: none;
            border-radius: 8px;
            font-size: 1.05rem;
            font-weight: 800;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .fee-calc-btn:hover {
            background-color: var(--accent-hover);
            transform: translateY(-2px);
        }

        .fee-results-box {
            display: none;
            background-color: #ffffff;
            border-radius: 12px;
            border-right: 4px solid var(--accent-color);
            padding: 25px;
            margin-top: 30px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.02);
        }

        /* EMBASSY DIRECTORY */
        .embassy-tabs {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 35px;
            flex-wrap: wrap;
        }

        .embassy-tab-btn {
            padding: 10px 25px;
            border-radius: 50px;
            background: var(--bg-light);
            border: 2px solid rgba(12, 35, 64, 0.05);
            color: var(--primary-color);
            font-weight: 700;
            font-size: 0.95rem;
            cursor: pointer;
            transition: var(--transition-smooth);
        }

        .embassy-tab-btn.active, .embassy-tab-btn:hover {
            background-color: var(--accent-color);
            border-color: var(--accent-color);
            color: var(--primary-color);
        }

        .embassy-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .embassy-content.active {
            display: block;
        }

        .embassy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .embassy-card {
            background: #ffffff;
            border: 1px solid rgba(12, 35, 64, 0.05);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.01);
            text-align: right;
        }

        .embassy-card h4 {
            color: var(--primary-color);
            font-weight: 800;
            font-size: 1.15rem;
            margin-bottom: 12px;
        }

        .embassy-card p {
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 8px;
            color: var(--text-muted);
        }

        .embassy-card a {
            display: inline-block;
            margin-top: 10px;
            font-weight: 700;
            color: var(--accent-color);
            text-decoration: none;
        }

        .embassy-card a:hover {
            color: var(--accent-hover);
        }

        /* MEDICAL CENTERS AND REUNIFICATION */
        .medical-centers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .medical-center-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.01);
            border-right: 3px solid var(--accent-color);
            text-align: right;
        }

        .medical-center-card h4 {
            color: var(--primary-color);
            font-weight: 800;
            font-size: 1.15rem;
            margin-bottom: 10px;
        }

        .medical-center-card p {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-muted);
            margin-bottom: 5px;
        }

        /* REVIEWS CAROUSEL */
        .reviews-slider-container {
            max-width: 1200px;
            margin: 40px auto 0;
            padding: 0 24px;
            overflow: hidden;
            position: relative;
        }

        .reviews-track {
            display: flex;
            gap: 30px;
            transition: transform 0.5s ease-in-out;
        }

        .review-slide-card {
            flex: 0 0 calc(33.333% - 20px);
            background: var(--bg-light);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.01);
            position: relative;
            text-align: right;
        }

        @media (max-width: 992px) {
            .review-slide-card {
                flex: 0 0 calc(50% - 15px);
            }
        }

        @media (max-width: 768px) {
            .review-slide-card {
                flex: 0 0 100%;
            }
        }

        .star-rating {
            color: #ffc107;
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        /* FAQ SEARCH FILTER */
        .faq-search-box-wrapper {
            max-width: 600px;
            margin: 0 auto 40px;
            position: relative;
        }

        .faq-search-input {
            width: 100%;
            height: 54px;
            border-radius: 50px;
            border: 2px solid rgba(12, 35, 64, 0.1);
            padding: 0 50px 0 25px;
            font-size: 1rem;
            color: var(--primary-color);
            outline: none;
            font-weight: 600;
            transition: var(--transition-smooth);
            text-align: right;
        }

        .faq-search-input:focus {
            border-color: var(--accent-color);
            box-shadow: 0 10px 25px rgba(197, 160, 89, 0.1);
        }

        .faq-search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent-color);
            font-size: 1.25rem;
        }

        /* PARALLAX BG SECTIONS */
        .parallax-bg-section {
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }

        @media (max-width: 1024px) {
            .parallax-bg-section {
                background-attachment: scroll; /* Disable parallax on mobile for performance */
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==========================================================================
           STUNNING BLOG AND ARTICLE PAGES (PREMIUM BLOG SYSTEM)
           ========================================================================== */

        /* Page Hero */
        .blog-hero {
            background: linear-gradient(135deg, var(--primary-dark) 0%, #112d50 100%);
            padding: 80px 20px;
            text-align: center;
            border-bottom: 3px solid var(--accent-color);
            position: relative;
            overflow: hidden;
            margin-top: 80px; /* Offset for sticky header */
        }
        .blog-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        .blog-hero-title {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--text-light);
            margin-bottom: 15px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
            font-family: var(--font-main);
        }
        .blog-hero-subtitle {
            font-size: 1.1rem;
            color: #cbd5e1;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Two Column Layout */
        .blog-container {
            max-width: 1200px;
            margin: 50px auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 8fr 4fr;
            gap: 40px;
            align-items: start;
            font-family: var(--font-main);
        }

        .article-container {
            max-width: 1200px;
            margin: 95px auto 50px;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 8fr 4fr;
            gap: 40px;
            align-items: start;
            font-family: var(--font-main);
        }

        @media (max-width: 991px) {
            .blog-container {
                grid-template-columns: 1fr;
                margin: 30px auto;
            }
            .article-container {
                grid-template-columns: 1fr;
                margin: 85px auto 30px;
            }
        }

        /* Blog Listing Grid */
        .blog-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }
        @media (max-width: 768px) {
            .blog-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Blog Cards */
        .blog-card {
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(12, 35, 64, 0.04);
            border: 1px solid rgba(12, 35, 64, 0.05);
            transition: var(--transition-smooth);
            display: flex;
            flex-direction: column;
        }
        .dark-theme .blog-card {
            background: #112240;
            border-color: rgba(255,255,255,0.05);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        .blog-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(197, 160, 89, 0.12);
            border-color: rgba(197, 160, 89, 0.3);
        }

        .blog-card-media {
            position: relative;
            height: 220px;
            overflow: hidden;
        }
        .blog-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition-smooth);
        }
        .blog-card:hover .blog-card-img {
            transform: scale(1.08) rotate(1deg);
        }

        .blog-card-category {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent-color);
            color: var(--primary-color);
            font-weight: 700;
            font-size: 0.8rem;
            padding: 6px 12px;
            border-radius: 20px;
            box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
        }

        .blog-card-body {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .blog-card-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 12px;
        }
        .dark-theme .blog-card-meta {
            color: #94a3b8;
        }
        .blog-card-meta i {
            color: var(--accent-color);
        }

        .blog-card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 12px;
            line-height: 1.4;
            transition: var(--transition-smooth);
        }
        .dark-theme .blog-card-title {
            color: var(--text-light);
        }
        .blog-card-title a {
            color: inherit;
            text-decoration: none;
        }
        .blog-card:hover .blog-card-title {
            color: var(--accent-color);
        }

        .blog-card-excerpt {
            font-size: 0.95rem;
            color: var(--text-dark);
            line-height: 1.6;
            margin-bottom: 20px;
            opacity: 0.8;
        }
        .dark-theme .blog-card-excerpt {
            color: #cbd5e1;
        }

        .blog-card-footer {
            margin-top: auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(12, 35, 64, 0.06);
            padding-top: 15px;
        }
        .dark-theme .blog-card-footer {
            border-color: rgba(255,255,255,0.06);
        }

        .blog-card-btn {
            color: var(--accent-color);
            font-weight: 700;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            transition: var(--transition-smooth);
        }
        .blog-card-btn i {
            transition: var(--transition-smooth);
        }
        .blog-card:hover .blog-card-btn i {
            transform: translateX(-4px);
        }

        /* Sidebar Widgets */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        .widget {
            background: #ffffff;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(12, 35, 64, 0.04);
            border: 1px solid rgba(12, 35, 64, 0.05);
        }
        .dark-theme .widget {
            background: #112240;
            border-color: rgba(255,255,255,0.05);
        }
        .widget-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        .dark-theme .widget-title {
            color: var(--text-light);
        }
        .widget-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 40px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 2px;
        }

        /* Lawyer Card Widget */
        .lawyer-widget {
            text-align: center;
        }
        .lawyer-widget-img {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent-color);
            margin: 0 auto 15px;
            display: block;
            box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
        }
        .lawyer-widget-name {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
        }
        .dark-theme .lawyer-widget-name {
            color: var(--text-light);
        }
        .lawyer-widget-title {
            font-size: 0.85rem;
            color: var(--accent-color);
            font-weight: 600;
            margin-bottom: 15px;
            display: block;
        }
        .lawyer-widget-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 20px;
        }
        .dark-theme .lawyer-widget-desc {
            color: #94a3b8;
        }
        .lawyer-widget-btn {
            background: var(--accent-color);
            color: var(--primary-color) !important;
            font-weight: 700;
            padding: 12px 20px;
            border-radius: 8px;
            text-decoration: none;
            display: block;
            box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
            transition: var(--transition-smooth);
            border: 1px solid var(--accent-color);
        }
        .lawyer-widget-btn:hover {
            background: transparent;
            color: var(--accent-color) !important;
        }

        /* Categories List Widget */
        .widget-categories-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .widget-categories-list li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(12, 35, 64, 0.05);
            font-size: 0.95rem;
        }
        .dark-theme .widget-categories-list li {
            border-color: rgba(255,255,255,0.05);
        }
        .widget-categories-list li:last-child {
            border: none;
        }
        .widget-categories-list a {
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition-smooth);
        }
        .dark-theme .widget-categories-list a {
            color: #cbd5e1;
        }
        .widget-categories-list a:hover {
            color: var(--accent-color);
            padding-right: 5px;
        }
        .cat-count {
            background: rgba(12, 35, 64, 0.05);
            color: var(--primary-color);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 20px;
        }
        .dark-theme .cat-count {
            background: rgba(255,255,255,0.05);
            color: var(--accent-color);
        }

        /* Recent Posts Widget */
        .widget-recent-posts {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        .recent-post-item {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        .recent-post-img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
        }
        .recent-post-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .recent-post-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1.4;
            text-decoration: none;
            transition: var(--transition-smooth);
        }
        .dark-theme .recent-post-title {
            color: var(--text-light);
        }
        .recent-post-title:hover {
            color: var(--accent-color);
        }
        .recent-post-date {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* Pagination */
        .blog-pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 50px;
            grid-column: span 2;
        }
        .blog-pagination .page-numbers {
            width: 45px;
            height: 45px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border: 1px solid rgba(12, 35, 64, 0.08);
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            transition: var(--transition-smooth);
        }
        .dark-theme .blog-pagination .page-numbers {
            background: #112240;
            border-color: rgba(255,255,255,0.05);
            color: var(--text-light);
        }
        .blog-pagination .page-numbers.current,
        .blog-pagination .page-numbers:hover {
            background: var(--accent-color);
            color: var(--primary-color);
            border-color: var(--accent-color);
            box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
        }

        /* Article Page (single.php) Specific Styles */
        .article-main {
            background: #ffffff;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(12, 35, 64, 0.03);
            border: 1px solid rgba(12, 35, 64, 0.05);
            margin-top: 0;
        }
        .dark-theme .article-main {
            background: #112240;
            border-color: rgba(255,255,255,0.05);
        }
        @media (max-width: 768px) {
            .article-main {
                padding: 25px;
                margin-top: 0;
            }
        }

        .article-hero {
            text-align: center;
            margin-bottom: 30px;
        }
        .article-category {
            background: rgba(197, 160, 89, 0.1);
            color: var(--accent-color);
            font-weight: 700;
            font-size: 0.85rem;
            padding: 6px 16px;
            border-radius: 20px;
            display: inline-block;
            margin-bottom: 15px;
        }
        .article-title {
            font-size: 2.3rem;
            font-weight: 800;
            color: var(--primary-color);
            line-height: 1.4;
            margin-bottom: 20px;
        }
        .dark-theme .article-title {
            color: var(--text-light);
        }
        @media (max-width: 768px) {
            .article-title {
                font-size: 1.8rem;
            }
        }

        .article-meta {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            font-size: 0.9rem;
            color: var(--text-muted);
            border-bottom: 1px solid rgba(12, 35, 64, 0.06);
            padding-bottom: 25px;
            margin-bottom: 30px;
        }
        .dark-theme .article-meta {
            border-color: rgba(255,255,255,0.06);
        }
        .article-meta span {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .article-meta i {
            color: var(--accent-color);
        }

        .article-featured-media {
            width: 100%;
            max-height: 500px;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 35px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        .article-featured-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Post Content Typography Styling */
        .post-content {
            font-size: 1.15rem;
            line-height: 1.95;
            color: var(--text-dark);
            text-align: justify;
        }
        .dark-theme .post-content {
            color: #cbd5e1;
        }

        .post-content p {
            margin-bottom: 25px;
        }

        .post-content h2,
        .post-content h3,
        .post-content h4 {
            color: var(--primary-color);
            font-weight: 700;
            margin: 40px 0 20px;
            line-height: 1.4;
        }
        .dark-theme .post-content h2,
        .dark-theme .post-content h3,
        .dark-theme .post-content h4 {
            color: var(--text-light);
        }

        .post-content h2 {
            font-size: 1.7rem;
            border-right: 4px solid var(--accent-color);
            padding-right: 12px;
        }
        .post-content h3 {
            font-size: 1.4rem;
        }

        .post-content strong {
            color: var(--primary-color);
            font-weight: 700;
        }
        .dark-theme .post-content strong {
            color: var(--accent-color);
        }

        .post-content blockquote {
            background: rgba(197, 160, 89, 0.05);
            border-right: 5px solid var(--accent-color);
            padding: 25px;
            margin: 30px 0;
            border-radius: 8px 0 0 8px;
            font-style: italic;
            color: var(--primary-color);
        }
        .dark-theme .post-content blockquote {
            background: rgba(197, 160, 89, 0.03);
            color: #cbd5e1;
        }
        .post-content blockquote p {
            margin-bottom: 0;
        }

        .post-content ul,
        .post-content ol {
            margin-bottom: 25px;
            padding-right: 25px;
        }
        .post-content li {
            margin-bottom: 10px;
        }

        /* Post Share & Footer widgets */
        .post-share-area {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid rgba(12, 35, 64, 0.06);
            border-bottom: 1px solid rgba(12, 35, 64, 0.06);
            padding: 20px 0;
            margin: 40px 0;
        }
        .dark-theme .post-share-area {
            border-color: rgba(255,255,255,0.06);
        }
        .share-title {
            font-weight: 700;
            font-size: 1rem;
        }
        .share-buttons {
            display: flex;
            gap: 10px;
        }
        .share-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff !important;
            text-decoration: none;
            font-size: 1.1rem;
            transition: var(--transition-smooth);
        }
        .share-btn.facebook { background: #3b5998; }
        .share-btn.twitter { background: #1da1f2; }
        .share-btn.whatsapp { background: #25d366; }
        .share-btn:hover {
            transform: translateY(-3px);
            opacity: 0.9;
        }

        /* Navigation between posts */
        .post-navigation-links {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 40px;
        }
        @media (max-width: 576px) {
            .post-navigation-links {
                grid-template-columns: 1fr;
            }
        }
        .post-nav-card {
            background: var(--bg-light);
            border-radius: 12px;
            padding: 20px;
            text-decoration: none;
            transition: var(--transition-smooth);
            border: 1px solid rgba(12, 35, 64, 0.04);
            display: block;
        }
        .dark-theme .post-nav-card {
            background: #0f1c32;
            border-color: rgba(255,255,255,0.04);
        }
        .post-nav-card:hover {
            background: rgba(197, 160, 89, 0.05);
            border-color: var(--accent-color);
        }
        .post-nav-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
        }
        .post-nav-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1.4;
        }
        .dark-theme .post-nav-title {
            color: var(--text-light);
        }

        /* Post Content Cleanup & Whitespace Fixes */
        .post-content::after {
            content: "";
            display: table;
            clear: both;
        }

        .article-container {
            margin-top: 90px !important;
        }

        .article-main {
            margin-top: 0 !important;
            padding-top: 35px !important;
        }

        .article-hero {
            margin-top: 0 !important;
            padding-top: 0 !important;
            margin-bottom: 25px !important;
        }

        .article-hero * {
            opacity: 1 !important;
            visibility: visible !important;
        }

        .post-content {
            margin-top: 0 !important;
            padding-top: 0 !important;
            min-height: 0 !important;
        }

        .post-content > *:first-child {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }

        /* Force visibility and reset inline height/min-height/margin on all elements inside post-content */
        .post-content div,
        .post-content section,
        .post-content article,
        .post-content header,
        .post-content main,
        .post-content span {
            opacity: 1 !important;
            visibility: visible !important;
            min-height: 0 !important;
        }

        .post-content div[style*="height"],
        .post-content section[style*="height"],
        .post-content div[style*="padding"],
        .post-content section[style*="padding"],
        .post-content div[style*="margin"],
        .post-content section[style*="margin"] {
            margin-top: 0 !important;
            padding-top: 0 !important;
            min-height: 0 !important;
        }

        /* Override and collapse empty spaces & gaps inserted by page builders */
        .post-content .cz_gap,
        .post-content .vc_empty_space,
        .post-content .wp-block-spacer,
        .post-content .elementor-spacer,
        .post-content [class*="gap"],
        .post-content [class*="spacer"],
        .post-content [class*="empty_space"],
        .post-content [class*="cz_post_header"] {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .post-content p:empty,
        .post-content p:only-child:empty,
        .post-content div:empty {
            display: none !important;
        }

        /* Ensure responsive media inside posts doesn't cause giant vertical height */
        .post-content iframe,
        .post-content embed,
        .post-content video,
        .post-content object {
            max-width: 100% !important;
            height: auto !important;
            max-height: 520px !important;
            border-radius: 12px;
            margin: 20px 0;
        }

        /* Remove excessive margins from last elements */
        .post-content > *:last-child,
        .article-main > *:last-child {
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        /* Make sidebar sticky on desktop so it floats smoothly next to content without pushing layout */
        @media (min-width: 992px) {
            .sidebar {
                position: sticky;
                top: 100px;
                align-self: start;
            }
        }

        /* ==========================================================================
           AGGRESSIVE EMPTY SPACE KILLER (Fixing the huge bottom gap)
           ========================================================================== */
        
        /* Limit the categories widget height to prevent it from stretching the entire grid row */
        .widget-categories-list {
            max-height: 350px;
            overflow-y: auto;
            padding-right: 5px;
        }

        /* Target all page builder spacer classes explicitly */
        .post-content .vc_empty_space,
        .post-content .elementor-spacer,
        .post-content .wp-block-spacer,
        .post-content .cz_gap,
        .post-content .cz_spacer,
        .post-content [class*="spacer"],
        .post-content [class*="gap"],
        .post-content [class*="empty_space"] {
            display: none !important;
            height: 0 !important;
            min-height: 0 !important;
            max-height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        /* Force any row inside post-content to not have massive minimum heights */
        .post-content .vc_row,
        .post-content .elementor-section {
            min-height: 0 !important;
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        /* Target consecutive empty paragraphs (WordPress wpautop issue) */
        .post-content p:empty,
        .post-content p br,
        .post-content p:has(> br:only-child) {
            display: none !important;
        }

        /* Squash the container itself to fit content tightly */
        .article-main {
            padding-bottom: 25px !important;
        }

        .post-share-area {
            margin-bottom: 20px !important;
        }

        .post-navigation-links {
            margin-top: 20px !important;
        }

        /* Hide the default empty space blocks injected by some themes/plugins */
        .post-content > *:last-child {
            margin-bottom: 0 !important;
            padding-bottom: 0 !important;
        }




