/* Anti-Fraud Public Welfare Alliance - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #1a5490;
    --secondary-color: #2c7ac4;
    --accent-color: #f39c12;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.header-scrolled {
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button, 
.btn-primary,
.btn-consultation {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
}

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

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== Header & Navigation ===== */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

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

.header-links a {
    color: white;
    margin-left: 20px;
    opacity: 0.9;
}

.header-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.navbar {
    padding: 20px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.btn-consultation {
    background: #ad122a;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-consultation:hover {
    background: #8d0e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(173, 18, 42, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 1001;
    position: relative;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    color: white;
    padding: 120px 0;
    text-align: left;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero h4 {
    font-size: 24px;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.hero .btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--accent-color);
}

.hero .btn-primary:hover {
    background: transparent;
    border-color: white;
    color: white;
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.about-text h5 {
    font-size: 14px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-learn-more {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.btn-learn-more:hover {
    background: var(--secondary-color);
}

/* ===== Practice Areas ===== */
.practice-areas {
    padding: 80px 0;
    background: var(--bg-light);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.area-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.area-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.area-card p {
    color: var(--text-light);
    font-size: 16px;
}

.total-recovered {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
}

.total-recovered h3 {
    font-size: 48px;
    margin-bottom: 10px;
}

.total-recovered p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== What Sets Us Apart ===== */
.advantages {
    padding: 80px 0;
    background: var(--bg-white);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.stat-box {
    text-align: center;
    padding: 30px;
}

.stat-box h2 {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-box p {
    font-size: 18px;
    color: var(--text-light);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Steps Section ===== */
.steps-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-card h5 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Success Cases ===== */
.cases-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.case-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.case-card p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.case-author {
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* ===== Blog Section ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    margin-bottom: 15px;
}

.blog-tag {
    position: absolute;
    top: 30px;
    left: 30px;
    background: linear-gradient(108.99deg, #ad122a -0.16%, #790123 153.62%);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.blog-card h4 {
    color: var(--text-dark);
    margin: 15px 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Footer ===== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Chat Widget Placeholder ===== */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.chat-widget::before {
    content: '💬';
    font-size: 28px;
}

/* ===== About Features Grid ===== */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ===== Index Page Grids ===== */
.red-banner-grid {
    display: grid;
}

.about-content-grid {
    display: grid;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 0 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        z-index: 1002;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu > li > a {
        display: block;
        padding: 15px 25px;
        color: #333;
        font-size: 16px;
        width: 100%;
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .nav-menu > li > a:hover,
    .nav-menu > li > a.active {
        background: #f8f9fa;
        color: #ad122a;
    }

    .dropdown {
        position: relative;
    }

    .dropdown > a {
        pointer-events: none;
        color: #999 !important;
        font-size: 14px;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        padding: 0 !important;
        min-width: auto !important;
        display: block !important;
    }

    .dropdown-menu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .dropdown-menu li:last-child {
        border-bottom: none;
    }

    .dropdown-menu a {
        padding: 12px 25px 12px 45px;
        font-size: 15px;
        display: block;
    }

    .btn-consultation {
        width: calc(100% - 50px);
        margin: 15px 25px;
        text-align: center;
        display: block;
    }

    /* Hero Section */
    .hero {
        min-height: 450px;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 36px !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero h4 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    .hero p {
        font-size: 18px !important;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Sections */
    section {
        padding: 40px 0 !important;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* About Content */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Index page - Red Banner */
    .red-banner-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: left !important;
    }

    .red-banner-grid > div:last-child {
        text-align: left !important;
    }

    .red-banner-grid > div:last-child a {
        display: block !important;
        text-align: center !important;
        width: fit-content !important;
    }

    /* Index page - About Section */
    .about-content-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* About page - What Makes Us Different section */
    .about-features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .about-features-grid > div h5 {
        font-size: 18px !important;
    }

    .about-features-grid > div p {
        font-size: 14px !important;
    }

    /* Stats */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-box h2 {
        font-size: 36px;
    }

    .stat-box p {
        font-size: 14px;
    }

    /* Practice Areas */
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .area-card {
        padding: 30px 20px;
    }

    .area-card h3 {
        font-size: 20px;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-card {
        padding: 25px 20px;
    }

    /* Cases */
    .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Case page specific - 40px gap indicates case page */
    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] > div h5 {
        font-size: 18px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] > div p {
        font-size: 14px !important;
    }

    /* Professionals - 30px gap indicates professionals page */
    .professionals-grid,
    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 30px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div > div {
        text-align: center;
    }

    section[style*="background: #f8f9fa"] h2 {
        font-size: 16px !important;
    }

    section[style*="background: #f8f9fa"] p {
        font-size: 13px !important;
    }

    /* Total Recovered */
    .total-recovered h3 {
        font-size: 32px;
    }

    .total-recovered p {
        font-size: 14px;
    }

    /* CTA Section */
    section[style*="padding: 60px 0"] > .container > div[style*="background: linear-gradient"] {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px 20px !important;
        gap: 20px;
    }

    section[style*="padding: 60px 0"] h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }

    section[style*="padding: 60px 0"] p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    section[style*="padding: 60px 0"] a {
        width: 100% !important;
        max-width: 280px;
        text-align: center !important;
        padding: 12px 25px !important;
        font-size: 16px !important;
        white-space: normal !important;
    }

    /* Footer */
    footer > .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    footer h3 {
        font-size: 16px !important;
    }

    footer p, footer a {
        font-size: 13px !important;
    }

    /* Buttons */
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        right: 0 !important;
        bottom: 15px !important;
        font-size: 20px !important;
    }

    .chat-widget {
        width: 45px !important;
        height: 45px !important;
        right: 0 !important;
        bottom: 75px !important;
    }

    .chat-widget::before {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo img {
        width: 140px !important;
        height: auto !important;
    }

    .nav-menu {
        width: 260px;
        padding: 70px 0 20px;
    }

    .nav-menu > li > a {
        padding: 14px 20px;
        font-size: 15px;
    }

    .dropdown > a {
        font-size: 13px;
    }

    .dropdown-menu a {
        padding: 11px 20px 11px 40px;
        font-size: 14px;
    }

    .btn-consultation {
        width: calc(100% - 40px);
        margin: 12px 20px;
        padding: 11px 20px;
        font-size: 15px;
    }

    .hero {
        min-height: 380px;
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 28px !important;
        margin-bottom: 12px;
    }

    .hero h4 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .hero p {
        font-size: 16px !important;
    }

    .hero .btn-primary {
        padding: 10px 25px;
        font-size: 15px;
    }

    section {
        padding: 35px 0 !important;
    }

    .section-title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .section-subtitle {
        font-size: 13px !important;
    }

    /* Index page - Red Banner */
    .red-banner-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        text-align: left !important;
    }

    .red-banner-grid > div:last-child {
        text-align: left !important;
    }

    .red-banner-grid > div:last-child a {
        display: block !important;
        text-align: center !important;
        width: fit-content !important;
    }

    .red-banner-grid p {
        font-size: 16px !important;
    }

    /* Index page - About Section */
    .about-content-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .about-content-grid h2 {
        font-size: 24px !important;
    }

    .about-content-grid h5 {
        font-size: 16px !important;
    }

    .about-content-grid p {
        font-size: 14px !important;
    }

    /* About page - What Makes Us Different section */
    .about-features-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .about-features-grid > div {
        padding: 20px !important;
    }

    .about-features-grid > div h5 {
        font-size: 17px !important;
    }

    .about-features-grid > div p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .area-card {
        padding: 25px 18px;
    }

    .area-card h3 {
        font-size: 18px !important;
    }

    .area-card p {
        font-size: 14px;
    }

    /* Cases - 40px gap indicates case page */
    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] > div > div[style*="padding"] {
        padding: 20px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] > div h5 {
        font-size: 17px !important;
        margin-bottom: 12px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 40px"] > div p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* Professionals - 30px gap indicates professionals page */
    section[style*="background: #f8f9fa"] > .container > div[style*="gap: 30px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    section[style*="background: #f8f9fa"] > .container > div > div > div {
        padding: 15px !important;
    }

    section[style*="background: #f8f9fa"] h2 {
        font-size: 15px !important;
    }

    section[style*="background: #f8f9fa"] p {
        font-size: 12px !important;
    }

    .stat-box h2 {
        font-size: 28px !important;
    }

    .stat-box p {
        font-size: 13px !important;
    }

    .total-recovered h3 {
        font-size: 26px !important;
    }

    .total-recovered p {
        font-size: 13px !important;
    }

    section[style*="padding: 60px 0"] > .container > div[style*="background: linear-gradient"] {
        padding: 25px 18px !important;
    }

    section[style*="padding: 60px 0"] h3 {
        font-size: 18px !important;
    }

    section[style*="padding: 60px 0"] p {
        font-size: 14px !important;
    }

    section[style*="padding: 60px 0"] a {
        padding: 11px 22px !important;
        font-size: 15px !important;
    }

    footer h3 {
        font-size: 15px !important;
    }

    footer p, footer a {
        font-size: 12px !important;
    }

    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        right: 0 !important;
        bottom: 12px !important;
        font-size: 20px !important;
    }

    .chat-widget {
        width: 45px !important;
        height: 45px !important;
        right: 0 !important;
        bottom: 72px !important;
    }

    .chat-widget::before {
        font-size: 22px !important;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    right: 0;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(108.99deg, #ad122a -0.16%, #790123 153.62%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(173, 18, 42, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(108.99deg, #8d0e22 -0.16%, #5a0118 153.62%);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(173, 18, 42, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 0;
        bottom: 80px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ===== Contact Modal ===== */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.contact-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.contact-modal-close:hover {
    color: #ad122a;
}

.contact-modal-title {
    font-size: 28px;
    color: #ad122a;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.contact-modal-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-modal-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-modal-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.contact-modal-info {
    flex: 1;
}

.contact-modal-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.contact-modal-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Footer Contact Us block - make items slightly smaller and more compact */
footer .contact-modal-item {
    padding: 8px 0;
    margin-bottom: 4px;
}

footer .contact-modal-label {
    font-size: 10px;
    margin-bottom: 2px;
}

footer .contact-modal-value {
    font-size: 13px;
}

footer .contact-modal-icon {
    margin-right: 10px;
    text-align: left;
}

.contact-modal-item a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 480px) {
    .contact-modal-content {
        padding: 30px 20px;
    }
    
    .contact-modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .contact-modal-item {
        padding: 12px 15px;
    }
    
    .contact-modal-icon {
        font-size: 20px;
        width: 35px;
    }
    
    .contact-modal-value {
        font-size: 14px;
    }
}
