/* Modern Professional Law Firm CSS with Enhanced UI */
:root {
    /* Modern Color Palette */
    --primary-color: #0a2540;
    --primary-light: #1e3a5f;
    --secondary-color: #d4af37;
    --secondary-dark: #b8941f;
    --accent-color: #2563eb;
    --accent-light: #3b82f6;
    --text-dark: #1a1a1a;
    --text-light: #4b5563;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-secondary: #f3f4f6;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 70px rgba(0,0,0,0.2);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Info Marquee */
.info-marquee {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: var(--text-dark);
    padding: 0.6rem 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    display: inline-block;
    padding: 0 3rem;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    margin: 0 !important;
    margin-bottom: 0 !important;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Remove gap between header and next element (slider) */
header + section,
header + .slider-container {
    margin-top: 0 !important;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateX(5px);
}

.logo::before {
    content: "⚖";
    font-size: 2.2rem;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
    display:none;
}

/* Logo image styling */
.logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    font-family: 'Great Vibes', cursive;
}

/* When logo has image, adjust the ::before icon */
.logo:has(.logo-image)::before {
    content: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.6rem 0;
    transition: var(--transition);
    font-size: 1.05rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* Slider Section - Owl Carousel */
.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--primary-color);
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    display: block;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: relative;
    width: 100%;
    height: 600px;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

/* Desktop/Mobile Slider Images */
.slider-mobile-img {
    display: none; /* Hide mobile image by default */
}

.slider-desktop-img {
    display: block; /* Show desktop image by default */
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(10, 37, 64, 0.5) 0%, rgba(30, 58, 95, 0.4) 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    padding: 3rem;
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-content h2 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: var(--secondary-color);
    width: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.97) 0%, rgba(30, 58, 95, 0.95) 100%),
                url('../images/hero-bg.jpg') center/cover;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
    animation: pulse 18s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: scale(1.3) rotate(45deg); opacity: 0.7; }
}

.hero-content {
    max-width: 1000px;
    padding: 3rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.hero .tagline {
    font-size: 1.7rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1.2rem;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-size: 3rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 2rem auto 0;
    font-size: 1.15rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), transparent);
    transition: var(--transition-slow);
    z-index: 0;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover::after {
    width: 100%;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

.card p, .card ul {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    transition: var(--transition-fast);
}

.card ul li:hover {
    padding-left: 2.3rem;
    color: var(--secondary-color);
}

.card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Team Member Cards */
.team-member {
    text-align: center;
}

.team-member-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 1.8rem;
    object-fit: cover;
    border: 6px solid var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.team-member:hover .team-member-img {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
}

.team-member.senior {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
}

.team-member.senior .team-member-img {
    width: 280px;
    height: 280px;
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 2rem;
}

.team-member .designation {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.team-member .education,
.team-member .experience {
    color: var(--text-light);
    margin-bottom: 0.7rem;
    font-style: italic;
    font-size: 1.05rem;
}

/* Contact Form */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--bg-light);
    transform: translateX(8px);
}

.contact-item-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.contact-item p, .contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.05rem;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

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

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    text-align: center;
    position: relative;
}

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

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    line-height: 2.2;
    font-size: 1.05rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

.footer-bottom p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        max-height: 500px;
        padding: 1.5rem 0;
    }

    .nav-links li {
        text-align: center;
        padding: 1.2rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle {
        display: flex;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.7rem; }

    /* Reduce container padding on tablet */
    .container {
        padding: 0 3%;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .tagline {
        font-size: 1.3rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .slider-container {
        height: 400px;
    }

    .slide {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    /* Show mobile slider on mobile devices if available */
    .slider-desktop-img {
        display: none !important;
    }

    .slider-mobile-img {
        display: block !important;
    }

    /* If no mobile image exists, fall back to desktop image */
    .slide:not(:has(.slider-mobile-img)) .slider-desktop-img {
        display: block !important;
    }

    /* Remove left/right spacing from slider on mobile */
    .slider-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
    }

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

    .marquee-content span {
        padding: 0 2rem;
    }

    /* Reduce container padding on mobile - minimal spacing */
    .container {
        padding: 0 2% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Ensure cards don't overflow - remove side padding */
    .card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-shadow: none !important;
    }

    /* Cards with inline max-width */
    .card[style*="max-width"] {
        max-width: 100% !important;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }

    /* Member Profile Mobile Responsive */
    .member-profile-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .member-profile-grid > div:first-child {
        text-align: center;
        margin: 0 auto;
        display: block !important;
        width: 100% !important;
        padding: 0 0.5rem !important;
    }

    .member-profile-grid > div:first-child > div[style*="background"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem !important;
    }

    .member-profile-grid img[style*="250px"],
    .member-profile-grid > div > div[style*="250px"] {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto 1.5rem !important;
    }

    .member-profile-grid > div:last-child {
        text-align: left;
        display: block !important;
        width: 100% !important;
        padding: 0 0.5rem !important;
    }

    .member-profile-grid > div:last-child p,
    .member-profile-grid > div:last-child div,
    .member-profile-grid > div:last-child h4 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }

    /* Ensure all text is visible */
    .member-profile-grid p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .member-profile-grid h4 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* Specialization tags */
    .member-profile-grid span[style*="background"] {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
        display: inline-block !important;
    }

    /* Adjust contact box on mobile */
    .member-profile-grid div[style*="background: var(--bg-light)"] {
        margin-top: 1rem !important;
        text-align: left;
    }

    /* Adjust expertise tags for mobile */
    .member-profile-grid div[style*="flex-wrap"] {
        justify-content: flex-start !important;
    }

    /* Team Page Mobile Responsive */
    .grid {
        gap: 1.5rem !important;
    }

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

    .team-member {
        text-align: center;
        padding: 1.5rem 1rem !important;
    }

    .team-member-img {
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto 1.2rem !important;
    }

    .team-member.senior {
        grid-column: 1 !important;
        max-width: 100% !important;
    }

    .team-member.senior .team-member-img {
        width: 180px !important;
        height: 180px !important;
    }

    .team-member h3 {
        font-size: 1.5rem !important;
    }

    .team-member .designation {
        font-size: 1.1rem !important;
    }

    .team-member .education,
    .team-member .experience {
        font-size: 0.95rem !important;
    }

    /* Team member buttons */
    .team-member .btn {
        font-size: 0.9rem !important;
        padding: 0.7rem 1.5rem !important;
    }

    /* Team member expertise tags */
    .team-member div[style*="flex-wrap"] {
        justify-content: center !important;
    }

    .team-member span[style*="border-radius: 20px"] {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Lists in cards (legal services section) */
    .card ul {
        text-align: left !important;
        padding-left: 1.5rem !important;
    }

    .card ul li {
        font-size: 0.95rem !important;
        margin-bottom: 0.6rem !important;
    }

    /* Section titles on mobile */
    .section-title h2 {
        font-size: 1.8rem !important;
    }

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

    /* Hero section on mobile (member profile page) */
    .hero {
        min-height: 30vh !important;
        padding: 3rem 0 !important;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    .hero-content .tagline {
        font-size: 1.1rem !important;
    }

    /* Member profile page specific adjustments */
    .member-profile-grid img[style*="250px"] {
        width: 160px !important;
        height: 160px !important;
        border-width: 4px !important;
    }

    .member-profile-grid > div > div[style*="250px"] {
        width: 160px !important;
        height: 160px !important;
        font-size: 4rem !important;
        border-width: 4px !important;
    }

    /* Contact box in member profile */
    .member-profile-grid div[style*="background: var(--bg-light)"] {
        padding: 1rem !important;
        margin-top: 1rem !important;
    }

    .member-profile-grid div[style*="background: var(--bg-light)"] h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .member-profile-grid div[style*="background: var(--bg-light)"] p {
        font-size: 0.9rem !important;
        word-break: break-word !important;
    }

    /* Member profile content area */
    .member-profile-grid > div:last-child p[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* CTA section on member page */
    section[style*="background: linear-gradient"] h2 {
        font-size: 1.6rem !important;
    }

    section[style*="background: linear-gradient"] p {
        font-size: 1rem !important;
    }

    section[style*="background: linear-gradient"] .btn {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.8rem !important;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert messages */
.alert {
    padding: 1.2rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.05rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--secondary-color);
    color: var(--text-dark);
}

/* Owl Carousel Custom Styles */
.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: contain;
    background: var(--primary-color);
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem !important;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: none;
    line-height: 60px;
    padding: 0;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.owl-carousel .owl-nav button.owl-prev {
    left: 30px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 30px;
}

.owl-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.owl-carousel .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.owl-carousel .owl-dot:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.owl-carousel .owl-dot.active {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

@media (max-width: 600px) {
    .owl-carousel .owl-item img {
        height: 400px;
        object-fit: cover;
    }

    /* Adjust dots for mobile */
    .owl-carousel .owl-dots {
        bottom: 20px;
        gap: 8px;
    }

    .owl-carousel .owl-dot {
        width: 10px;
        height: 10px;
    }

    .owl-carousel .owl-dot.active {
        transform: scale(1.4);
    }
}

/* Force remove gap between header and slider - Override all */
header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

section.slider-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Eliminate any whitespace/line-height issues */
header::after {
    content: none !important;
}

body > header + section {
    margin-top: 0 !important;
}

/* Ensure nav doesn't add extra space */
header nav {
    display: flex !important;
    margin: 0 !important;
}

/* Force slider to stick to header */
.slider-container,
section.slider-container {
    display: block !important;
    position: relative !important;
}

/* Nuclear option - Negative margin to pull slider up if gap persists */
section.slider-container {
    margin-top: -47px !important;
}

@media (max-width: 600px) {
section.slider-container {
    margin-top: 50px !important;
}}


/* Member Profile Grid */
.member-profile-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.member-profile-grid img[style*="250px"],
.member-profile-grid > div > div[style*="250px"] {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
