﻿/* Modern Law Firm Styles */
:root {
    --primary-color: #1a365d; /* Deep navy blue */
    --secondary-color: #2d3748; /* Charcoal */
    --accent-color: #c49b61; /* Gold */
    --accent-light: #e2c792; /* Light gold */
    --background-color: #f7fafc; /* Very light blue-gray */
    --card-background: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    --gradient-accent: linear-gradient(135deg, #c49b61 0%, #e2c792 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Crimson Text', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 2.125rem;
}

h4 {
    font-size: 1.75rem;
}

h5 {
    font-size: 1.375rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="100" fill="url(%23a)"/><circle cx="400" cy="700" r="200" fill="url(%23a)"/></svg>') no-repeat center;
        background-size: cover;
        opacity: 0.1;
    }

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.header h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header .subtitle {
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 2rem;
    font-family: var(--font-accent);
    font-style: italic;
}

.header .tagline {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* =========================
   Navigation & Side Drawer
   ========================= */

/* Navigation bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-lg);
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Top menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: 100px !important;
    margin: 0;
    padding: 0;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        padding: 0.5rem 0;
    }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--accent-color);
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .nav-menu a:hover::after,
        .nav-menu a.active::after {
            width: 100%;
        }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--accent-color);
            font-weight: 600;
        }

        /* Enhanced active pill */
        .nav-menu a.active {
            background: rgba(196, 155, 97, 0.1);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            margin: 0 -0.5rem;
        }

            .nav-menu a.active::after {
                bottom: 0.25rem;
                height: 2px;
            }

/* Single, canonical nav-toggle */
.nav-toggle {
    background: transparent;
    border: none;
    display: none; /* shown on mobile via media query */
    gap: 4px;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 3px 0;
        transition: transform 0.3s ease, opacity 0.2s ease;
        border-radius: 2px;
    }

    /* active (X) state */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

/* Side drawer (anchored left) */
.side-nav {
    position: fixed;
    inset: 0 auto 0 0; /* top right bottom left -> anchored left */
    width: 0;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(26,54,93,0.98), rgba(45,55,72,0.98));
    color: white;
    z-index: 1200;
    overflow: hidden;
    transition: width 0.28s cubic-bezier(.2,.9,.2,1);
    box-shadow: 4px 0 30px rgba(2,6,23,0.3);
    display: flex;
    align-items: stretch;
}

    /* expanded state */
    .side-nav.open {
        width: 320px;
    }

/* inner content */
.side-nav-inner {
    width: 320px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

/* close button */
.side-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.95);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

/* overlay that dims page and closes on click */
.side-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 1100;
}

    /* overlay visible when drawer open */
    .side-nav.open + .side-overlay,
    .side-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

/* logo inside drawer */
.side-logo {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* side menu */
.side-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .side-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: rgba(255,255,255,0.92);
        text-decoration: none;
        border-radius: 8px;
        transition: background .18s ease, transform .12s ease;
        font-weight: 600;
    }

        .side-menu a:hover,
        .side-menu a:focus {
            background: rgba(196,155,97,0.12);
            color: var(--accent-color);
            transform: translateX(4px);
            outline: none;
        }

        .side-menu a.active {
            background: rgba(196,155,97,0.12);
            color: var(--accent-color);
        }

/* CTA at bottom */
.side-cta {
    margin-top: auto;
    text-align: center;
}

/* Focus styles for keyboard users */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(196,155,97,0.24);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .side-nav,
    .side-overlay,
    .nav-toggle span {
        transition: none !important;
    }
}

/* Mobile responsiveness: show hamburger, hide desktop menu */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* smaller padding on mobile */
    .nav-container {
        padding: 0.75rem 1rem;
    }
}

/* Desktop: ensure nav-toggle hidden */
@media (min-width: 901px) {
    .nav-toggle {
        display: none;
    }
}

/* small polish */
.side-nav-inner::-webkit-scrollbar {
    width: 8px;
}

.side-nav-inner::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
}

/* ensure stacking stability when side-nav positioned right in the future:
   change inset to `inset: 0 0 0 auto;` and use -4px shadow if you flip side. */


/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-secondary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

    .section:nth-child(even) {
        background: white;
    }

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.section-title {
    margin-bottom: 2rem;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: var(--gradient-accent);
        border-radius: 2px;
    }

/* Cards */
.card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-accent);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

        .card:hover::before {
            transform: scaleX(1);
        }

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Additional specialized grids for comprehensive responsiveness */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Team Cards */
.team-card {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .team-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .team-card:hover::before {
        opacity: 0.05;
    }

    .team-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-xl);
    }

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.team-card .position {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.team-card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact-section {
    background: var(--gradient-primary);
    color: white;
}

    .contact-section .section-title {
        color: white;
    }

        .contact-section .section-title::after {
            background: var(--accent-color);
        }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.contact-item h3 {
    color: white;
    margin-bottom: 1rem;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

    .contact-item a:hover {
        color: var(--accent-light);
    }

/* Footer */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

    .footer-section ul li {
        margin-bottom: 0.75rem;
    }

        .footer-section ul li a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.95rem;
        }

            .footer-section ul li a:hover {
                color: var(--accent-color);
                padding-left: 5px;
            }

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }

        .footer-social a:hover {
            background: var(--accent-color);
            color: white;
            transform: translateY(-2px);
        }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

    .footer-bottom p {
        color: rgba(255, 255, 255, 0.6);
        margin: 0;
        font-size: 0.9rem;
    }

/* Single column footer for simple pages */
.footer.simple .footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: block;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Empanelments & Clients Page Styles */
.empanelments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.empanelment-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .empanelment-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

.empanelment-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

    .empanelment-icon i {
        font-size: 2rem;
        color: white;
    }

.empanelment-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.empanelment-type {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empanelment-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.service-tag {
    background: var(--background-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Client Cards */
.client-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .client-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
    }

    .client-card.featured {
        border: 2px solid var(--accent-color);
        background: linear-gradient(135deg, var(--card-background) 0%, #faf8f5 100%);
    }

.client-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

    .client-icon i {
        font-size: 2rem;
        color: white;
    }

.client-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.client-type {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.client-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Service Area Cards */
.service-area-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .service-area-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

    .service-icon i {
        font-size: 1.8rem;
        color: white;
    }

.service-area-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.service-area-card ul {
    list-style: none;
    text-align: left;
}

.service-area-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

    .service-area-card li:last-child {
        border-bottom: none;
    }

    .service-area-card li:before {
        content: "▸";
        color: var(--accent-color);
        margin-right: 0.5rem;
        font-weight: bold;
    }

/* Service Categories */
.service-category {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

    .service-category h3 {
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--accent-color);
    }

        .service-category h3 i {
            margin-right: 0.5rem;
            color: var(--accent-color);
        }

.service-list {
    list-style: none;
}

    .service-list li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-secondary);
        transition: color 0.3s ease;
    }

        .service-list li:last-child {
            border-bottom: none;
        }

        .service-list li:before {
            content: "✓";
            color: var(--accent-color);
            margin-right: 0.75rem;
            font-weight: bold;
        }

        .service-list li:hover {
            color: var(--primary-color);
        }

/* Feature Cards */
.feature-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

    .feature-icon i {
        font-size: 1.8rem;
        color: white;
    }

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

    .testimonial-content i {
        font-size: 2rem;
        color: var(--accent-light);
        margin-bottom: 1rem;
        display: block;
    }

    .testimonial-content p {
        font-style: italic;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
    }

.testimonial-author h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--accent-light);
    font-size: 0.9rem;
}

/* Page Hero Styles for dedicated pages */
.page-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* Account for fixed navbar */
}

    .page-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="150" cy="150" r="100" fill="url(%23a)"/><circle cx="850" cy="200" r="80" fill="url(%23a)"/><circle cx="300" cy="800" r="120" fill="url(%23a)"/><circle cx="700" cy="700" r="90" fill="url(%23a)"/></svg>') no-repeat center;
        background-size: cover;
        opacity: 0.1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Stat Cards for pages */
.stat-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-accent);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Responsive design for page hero */
@media (max-width: 768px) {
    .page-hero {
        padding: 6rem 0 3rem;
    }

        .page-hero h1 {
            font-size: 2.5rem;
        }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}


/* Page transitions */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Base responsive improvements */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve touch interactions */
a, button, .btn, .nav-toggle {
    -webkit-tap-highlight-color: rgba(196, 155, 97, 0.3);
    touch-action: manipulation;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-primary: #000000;
        --border-color: #000000;
        --accent-color: #B8860B;
    }
}

/* Mobile Navigation Styles */

/* Tablet Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .header h1 {
        font-size: 3rem;
    }

    .header .subtitle {
        font-size: 1.3rem;
    }

    .header .tagline {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.875rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Enhanced tablet section styles */
    .card, .service-card, .empanelment-card, .team-card {
        padding: 1.75rem;
    }

    .card-icon, .service-icon, .empanelment-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    /* Stats section for tablets */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    /* Team section for tablets */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .team-card .team-photo {
        width: 140px;
        height: 140px;
    }

    /* Empanelments section for tablets */
    .empanelments-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* Services section for tablets */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }

    /* Contact section for tablets */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    /* About section for tablets */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    /* About page specific tablet styles */
    .about-founder-grid {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
        align-items: center;
    }

    .founder-photo {
        width: 250px;
        height: 250px;
        margin: 0 auto 1.5rem;
    }

    .founder-credentials {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Services page tablet styles */
    .service-detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    /* Team page tablet styles */
    .team-founder-grid {
        grid-template-columns: auto 1fr;
        gap: 2rem;
        align-items: center;
    }

    .team-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    /* Contact page tablet styles */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contact-item {
        padding: 2rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1.5rem;
    }
}

/* Medium Tablet Responsive Styles */
@media (max-width: 768px) and (min-width: 481px) {
    /* Medium tablet specific adjustments */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card, .service-card, .empanelment-card, .team-card {
        padding: 1.5rem;
    }

    .empanelments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .header {
        min-height: 80vh;
        padding: 8rem 0 4rem;
    }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
        }

        .header .subtitle {
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .header .tagline {
            font-size: 1rem;
            margin-bottom: 2rem;
            line-height: 1.5;
        }

    .header-content .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Grid adjustments for mobile */
    .grid, .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Card adjustments */
    .card, .service-card, .empanelment-card, .team-card, .client-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .card-icon, .service-icon, .empanelment-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .card h3, .service-card h3, .empanelment-card h3, .team-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .card p, .service-card p, .empanelment-card p, .team-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Team card specific adjustments */
    .team-card .team-photo {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }

    .team-card .position {
        font-size: 0.875rem;
    }

    /* Client card adjustments */
    .client-card {
        padding: 1.25rem;
        text-align: center;
    }

        .client-card h4 {
            font-size: 1.125rem;
        }

        .client-card p {
            font-size: 0.875rem;
        }

    /* Stats adjustments */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0.5rem 0;
    }

    .header-content div[style*="flex"] {
        flex-direction: column !important;
        align-items: center;
    }

    /* ===== PAGE-SPECIFIC MOBILE RESPONSIVE STYLES ===== */

    /* About Page Mobile Styles */
    .about-founder-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .founder-photo {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto 1.5rem;
    }

    .founder-credentials {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .about-content {
        padding: 1.5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services Page Mobile Styles */
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card ul {
        margin-top: 1rem;
    }

        .service-card ul li {
            font-size: 0.9rem;
            margin-bottom: 0.4rem;
            line-height: 1.4;
        }

    /* Team Page Mobile Styles */
    .team-founder-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .team-avatar {
        width: 100px !important;
        height: 100px !important;
        font-size: 2rem;
        margin: 0 auto 1rem;
    }

    .team-founder-card {
        padding: 2rem 1.5rem;
    }

    .team-founder-photo {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 1rem;
    }

    .team-qualifications {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* Contact Page Mobile Styles */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }

    .contact-item h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .contact-item a {
        font-size: 1rem;
        word-break: break-all;
        line-height: 1.4;
    }

    /* Office locations mobile */
    .office-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .office-card {
        padding: 1.5rem;
        text-align: center;
    }

    .office-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Contact Form Mobile Styles */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

        .form-group label {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.875rem;
            font-size: 0.9rem;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }

        .form-group textarea {
            min-height: 120px;
            resize: vertical;
        }

    .form-submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        margin-top: 1rem;
    }

    /* Universal Page Mobile Adjustments */
    .page-hero {
        min-height: 50vh;
        padding: 6rem 0 3rem;
    }

        .page-hero h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

        .page-hero .subtitle {
            font-size: 1.1rem;
        }

        .page-hero .tagline {
            font-size: 0.95rem;
        }

    /* Responsive tables for mobile */
    .responsive-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .responsive-table table {
            min-width: 600px;
        }

    /* Mobile-friendly lists */
    .mobile-list {
        list-style: none;
        padding: 0;
    }

        .mobile-list li {
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
        }

            .mobile-list li:last-child {
                border-bottom: none;
            }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Small Mobile Responsive Styles */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .header {
        min-height: 70vh;
        padding: 6rem 0 3rem;
    }

        .header h1 {
            font-size: 2rem;
            line-height: 1.1;
        }

        .header .subtitle {
            font-size: 1.1rem;
        }

        .header .tagline {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-title {
        margin-bottom: 1rem;
    }

    /* Grid for very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .card, .service-card, .empanelment-card {
        padding: 1.25rem;
    }

    /* Enhanced section responsive styles */
    .section-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .section-header p:not(.section-subtitle):not(.section-title) {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Specific page section adjustments */
    .empanelments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .empanelment-card {
        padding: 1.5rem;
        text-align: center;
    }

    .empanelment-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin: 0 auto 1rem;
    }

    /* Services page specific adjustments */
    .service-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* About page adjustments */
    .about-content {
        padding: 1.5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact page adjustments */
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    /* ===== PAGE-SPECIFIC VERY SMALL MOBILE STYLES ===== */

    /* About Page Very Small Screens */
    .founder-photo {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 1rem;
    }

    .founder-credentials {
        gap: 1rem;
    }

        .founder-credentials .card {
            padding: 1rem;
        }

    /* Services Page Very Small Screens */
    .service-card ul li {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    /* Team Page Very Small Screens */
    .team-founder-photo {
        width: 120px !important;
        height: 120px !important;
    }

    .team-avatar {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.5rem;
    }

    .team-founder-card {
        padding: 1.5rem 1rem;
    }

    /* Contact Page Very Small Screens */
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

        .contact-item h3 {
            font-size: 1.125rem;
        }

        .contact-item a {
            font-size: 0.9rem;
        }

    /* Contact Form Very Small Screens */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-submit-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    /* Office cards very small screens */
    .office-card {
        padding: 1.25rem;
    }

    .office-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Page hero very small screens */
    .page-hero {
        min-height: 40vh;
        padding: 5rem 0 2rem;
    }

        .page-hero h1 {
            font-size: 1.75rem;
        }

        .page-hero .subtitle {
            font-size: 1rem;
        }

        .page-hero .tagline {
            font-size: 0.875rem;
        }

    /* ===== INLINE STYLE OVERRIDES FOR RESPONSIVENESS ===== */

    /* About page inline style overrides */
    @media (max-width: 768px) {
        div[style*="grid-template-columns: 1fr 2fr"] {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 2rem !important;
        }

        div[style*="grid-template-columns: auto 1fr"] {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 2rem !important;
        }

        div[style*="grid-template-columns: 1fr 1fr"] {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 1.5rem !important;
        }

        div[style*="width: 300px; height: 300px"] {
            width: 200px !important;
            height: 200px !important;
            margin: 0 auto 1.5rem !important;
        }

        div[style*="width: 200px; height: 200px"] {
            width: 150px !important;
            height: 150px !important;
            margin: 0 auto 1rem !important;
        }

        div[style*="display: flex"] {
            flex-direction: column !important;
            align-items: center !important;
            gap: 0.5rem !important;
        }
    }

    @media (max-width: 480px) {
        div[style*="width: 300px; height: 300px"] {
            width: 150px !important;
            height: 150px !important;
        }

        div[style*="width: 200px; height: 200px"] {
            width: 120px !important;
            height: 120px !important;
        }

        h3[style*="font-size: 2rem"] {
            font-size: 1.5rem !important;
        }

        h3[style*="font-size: 2.25rem"] {
            font-size: 1.75rem !important;
        }

        p[style*="font-size: 1.25rem"] {
            font-size: 1.1rem !important;
        }

        p[style*="font-size: 1.1rem"] {
            font-size: 1rem !important;
        }
    }

    /* Navigation adjustments */
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 2rem 0;
        gap: 1.5rem;
    }

        .nav-menu a {
            font-size: 1.125rem;
            padding: 0.875rem 1.5rem;
        }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    /* Enhanced section responsiveness for very small screens */
    .section {
        padding: 1.5rem 0;
    }

    .section-header {
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }

    .section-title {
        font-size: 1.375rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    /* Cards for very small screens */
    .card, .service-card, .empanelment-card, .team-card, .client-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .card-icon, .service-icon, .empanelment-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .card h3, .service-card h3, .empanelment-card h3, .team-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .card p, .service-card p, .empanelment-card p, .team-card p {
        font-size: 0.875rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    /* Team specific for very small screens */
    .team-card .team-photo {
        width: 100px;
        height: 100px;
        margin: 0 auto 0.75rem;
    }

    .team-card .position {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Stats for very small screens */
    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Services page specific */
    .service-detail {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .service-list {
        gap: 0.75rem;
    }

    /* Contact page specific */
    .contact-form, .contact-info {
        padding: 1rem;
    }

        .contact-form .form-group {
            margin-bottom: 1rem;
        }

        .contact-form input,
        .contact-form textarea {
            padding: 0.75rem;
            font-size: 0.9rem;
        }

    /* About page specific */
    .about-content {
        padding: 1rem 0;
    }

    /* Client cards for very small screens */
    .client-card {
        padding: 1rem;
    }

        .client-card h4 {
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .client-card p {
            font-size: 0.8rem;
            line-height: 1.3;
        }

    /* Footer adjustments */
    .footer-content {
        padding: 1rem 0;
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
        padding: 0 3rem;
    }

    .header h1 {
        font-size: 4.5rem;
    }

    .header .subtitle {
        font-size: 1.75rem;
    }

    .header .tagline {
        font-size: 1.375rem;
    }

    .section {
        padding: 8rem 0;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3.25rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 896px) and (min-height: 414px) and (orientation: landscape) {
    .header {
        min-height: 80vh;
        padding: 6rem 0 2rem;
    }

        .header h1 {
            font-size: 2.25rem;
        }

        .header .subtitle {
            font-size: 1.1rem;
        }

        .header .tagline {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }

    .section {
        padding: 2.5rem 0;
    }

    .nav-menu {
        padding: 1.5rem 0;
        gap: 1rem;
    }

        .nav-menu a {
            padding: 0.75rem 1.5rem;
            font-size: 1.1rem;
        }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .card, .service-card, .empanelment-card {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .footer,
    .btn {
        display: none !important;
    }

    .header {
        min-height: auto;
        padding: 2rem 0;
        background: white !important;
        color: black !important;
    }

        .header h1,
        .header .subtitle {
            color: black !important;
        }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    .card,
    .service-card,
    .empanelment-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ===== RESPONSIVE UTILITY CLASSES ===== */

/* Responsive display utilities */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-stack {
        flex-direction: column !important;
    }

    .mobile-hide {
        display: none !important;
    }
}

/* Responsive spacing utilities */
.responsive-padding {
    padding: 2rem;
}

.responsive-margin {
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .responsive-padding {
        padding: 1rem;
    }

    .responsive-margin {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .responsive-padding {
        padding: 0.75rem;
    }

    .responsive-margin {
        margin: 0.75rem 0;
    }
}

/* Responsive grid utilities */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .responsive-grid-2,
    .responsive-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Responsive text utilities */
@media (max-width: 768px) {
    .mobile-text-sm {
        font-size: 0.9rem !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-text-left {
        text-align: left !important;
    }
}

/* Responsive image utilities */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .responsive-avatar {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .responsive-avatar {
        width: 120px;
        height: 120px;
    }
}
