/* Fonts are loaded dynamically in includes/header.php */

:root {
    --primary-color: #0A0F1E;
    --secondary-color: #1a2340;
    --accent-color: #C5A059;
    --accent-light: #e8c97a;
    --text-color: #3d4a63;
    --text-light: #6b7a97;
    --bg-color: #F4F5F8;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E8EBF2;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(10, 15, 30, 0.06);
    --shadow-md: 0 8px 24px rgba(10, 15, 30, 0.10);
    --shadow-lg: 0 24px 48px rgba(10, 15, 30, 0.14);
    --gold-gradient: linear-gradient(135deg, #b8903e 0%, #e8c97a 45%, #C5A059 100%);
    --dark-gradient: linear-gradient(135deg, #0A0F1E 0%, #1a2340 100%);
    --radius: 12px;
    --radius-lg: 20px;
}

/* DARK MODE OVERRIDES */
body.dark-mode {
    --primary-color: #F8FAFC;
    /* Titles become light */
    --bg-color: #0F172A;
    /* Background becomes deep navy */
    --text-color: #E2E8F0;
    /* Lighter text for better reading */
    --card-bg: #1E293B;
    /* Cards become darker slate */
    --border-color: #334155;
    --white: #FFFFFF;
    /* Fixed: white must stay white for dark backgrounds */
    --glass-bg: rgba(15, 23, 42, 0.8);
}

/* Specific Dark Mode Refinements */
body.dark-mode .main-header {
    background-color: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .nav-links a:not(.btn) {
    color: var(--primary-color);
}

body.dark-mode .current-lang {
    border-color: var(--border-color);
    color: var(--primary-color);
}

body.dark-mode .lang-dropdown {
    background: #1e293b !important;
    border-color: var(--border-color);
}

body.dark-mode .lang-dropdown li a {
    color: #f8fafc !important;
}

/* Global Button Overrides for Dark Mode */
body.dark-mode .btn-primary,
body.dark-mode .hero-btns .btn-primary,
body.dark-mode .main-header .btn-primary {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #F8FAFC !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

body.dark-mode .btn-primary:hover,
body.dark-mode .hero-btns .btn-primary:hover {
    background: transparent !important;
    color: #F8FAFC !important;
    border-color: #F8FAFC !important;
}

body.dark-mode .page-header h1,
body.dark-mode .page-header p,
body.dark-mode .post-header h1,
body.dark-mode .post-header p {
    color: #FFFFFF !important;
}

body.dark-mode .btn-outline,
body.dark-mode .hero .btn-outline {
    color: #F8FAFC !important;
    border-color: #F8FAFC !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: var(--logo-font);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.76rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn>* {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--dark-gradient);
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(10, 15, 30, 0.25);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

/* Prevent ALL page content from overflowing horizontally.
   Safe on <main> — doesn't affect position:fixed elements */
main {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span.overline {
    display: block;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.6rem;
    margin-bottom: 18px;
    color: var(--primary-color);
}

.section-title p {
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-title .divider {
    width: 50px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Header Styles */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(10, 15, 30, 0.07);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(10, 15, 30, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    margin-right: 40px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}

.logo .serif {
    font-family: var(--logo-font);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    text-transform: uppercase;
    transition: var(--transition);
}

.logo .gold {
    font-family: var(--logo-font);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-light);
    /* Lighter accent for pop */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.8;
}

/* Footer Specific Logo Adjustments */
.main-footer .logo .serif {
    color: var(--white);
}


.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 6px 0;
}

.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--accent-color);
    transition: width 0.35s ease;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a:hover::before {
    width: 100%;
}

.nav-links a:not(.btn) {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 6px 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--accent-color);
    transition: width 0.35s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Navigation Divider */
.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 4px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
}

.current-lang {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
    padding: 7px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.current-lang:hover,
.lang-switcher:hover .current-lang {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(10, 15, 30, 0.15);
    border-radius: 10px;
    display: none;
    min-width: 170px;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.lang-dropdown li a:hover,
.lang-dropdown li a.active {
    background: #f1f5f9;
    color: var(--accent-color);
}

.lang-dropdown li:last-child {
    border-bottom: none;
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.lang-dropdown li a img {
    width: 20px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lang-dropdown li a:hover img,
.lang-dropdown li a.active img {
    opacity: 1;
}

.lang-dropdown li a:hover,
.lang-dropdown li a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-light);
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

/* Gap bridge to prevent menu closing */
.lang-switcher::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 20px;
    display: block;
    z-index: 10;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    background: var(--primary-color);
    color: var(--white) !important;
    border: 2px solid var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.btn-sm:hover {
    background: transparent;
    color: var(--primary-color) !important;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 650px;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
}

.hero h1 {
    color: var(--white);
    font-size: 4.2rem;
    margin-bottom: 24px;
    line-height: 1.15;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero h1 .gold {
    font-family: var(--hero-font);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 48px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gold {
    color: var(--accent-light);
    font-style: italic;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 28px;
}

.practice-card-link {
    display: block;
    text-decoration: none;
}

.practice-card {
    background: var(--card-bg);
    padding: 44px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.practice-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.practice-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 160, 89, 0.2);
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.practice-card:hover::after {
    opacity: 1;
}

.practice-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.practice-card:hover h3 {
    color: var(--primary-color);
}

.practice-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Footer */
.main-footer {
    background: var(--dark-gradient);
    color: var(--white);
    padding: 90px 0 40px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.main-footer h3,
.main-footer h4 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 380px;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '→';
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--transition);
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 18px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(-18px);
}

.footer-contact p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Nav Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

body.dark-mode .mobile-menu-toggle span {
    background: #fff;
}

/* Mobile Menu Overlay (Full-screen dark backdrop) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Dark backdrop on left */
.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Side Drawer Panel */
.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* Drawer Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-header .logo .serif {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
}

.mobile-menu-header .logo .gold {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-transform: uppercase;
}

#close-mobile-menu {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

#close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Nav Links */
.mobile-nav-links {
    list-style: none;
    padding: 32px 28px;
    margin: 0;
    flex: 1;
}

.mobile-nav-links li {
    margin-bottom: 6px;
}

.mobile-nav-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--accent-light);
    padding-left: 8px;
}

/* Mobile Lang Switcher in Overlay */
.mobile-lang-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.mobile-lang-links a:hover,
.mobile-lang-links a.active {
    color: var(--accent-light);
}

.mobile-lang-links img {
    width: 22px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}



/* ============================================
   RESPONSIVE DESIGN — WEBSITE
   ============================================ */

/* Tablet (992px) */
@media (max-width: 992px) {

    .main-nav,
    .btn-contact-desktop,
    .nav-divider,
    .lang-switcher,
    #theme-toggle {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 0;
        padding: 110px 0 80px;
        background-attachment: scroll !important;
    }

    .hero::after {
        height: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.01em;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Section Title */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Practice Cards */
    .practice-grid {
        display: block !important;
    }

    .practice-card-link {
        margin-bottom: 24px;
    }

    .practice-card {
        padding: 36px 28px;
    }

    /* Practice Detail Layout */
    .practice-layout {
        grid-template-columns: 1fr !important;
    }

    .practice-sidebar {
        order: -1;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 50px 0;
        gap: 25px;
    }

    .blog-header {
        padding: 60px 0;
    }

    /* Single Post */
    .post-hero {
        height: 260px;
    }

    .post-hero h1,
    .post-header h1 {
        font-size: 2rem;
    }

    .page-content {
        padding: 50px 0;
    }

    /* Contact Page */
    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .contact-info-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .contact-form {
        padding: 28px 22px;
    }

    .contact-form-container {
        order: 1;
    }

    .contact-info-cards {
        order: 2;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .main-footer {
        padding: 70px 0 30px;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo .serif,
    .logo .gold {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 13px 26px;
        font-size: 0.72rem;
    }

    .info-card {
        padding: 22px;
    }

    .blog-image img {
        height: 200px;
    }

    .blog-content {
        padding: 22px;
    }
}

/* Page Header Styles (Blog, etc) */
.page-header,
.post-header {
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.page-header h1,
.post-header h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.page-header p,
.post-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 30px;
    margin-top: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 40px;
    padding: 80px 0;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-body {
    padding: 30px;
}

.blog-body h2 {
    font-size: 1.25rem;
    margin: 15px 0;
    color: var(--primary-color);
    line-height: 1.4;
}

.blog-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-body .date {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.blog-content h3 {
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-color);
    font-weight: 600;
}

/* Single Post */
.post-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.post-hero h1,
.post-header h1 {
    color: var(--white);
    font-size: 3rem;
}

.post-meta {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: var(--accent-color);
}

.breadcrumb span,
.post-header .breadcrumb,
.post-header .breadcrumb a {
    color: #fff;
}

.page-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.w-100 {
    width: 100%;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.info-card h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* Footer & Global Dark Mode Fixes */
body.dark-mode footer {
    background: #020617 !important;
    border-top: 1px solid var(--border-color);
}

body.dark-mode footer .footer-info .logo .serif,
body.dark-mode footer a,
body.dark-mode footer p {
    color: #F8FAFC !important;
}

body.dark-mode .footer-bottom {
    background: #010409;
    border-top: 1px solid var(--border-color);
}

body.dark-mode .footer-bottom p {
    color: #94A3B8;
}

body.dark-mode .info-card,
body.dark-mode .contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode .form-group label {
    color: var(--primary-color);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #0F172A;
    border-color: var(--border-color);
    color: #fff;
}

/* Practice Detail Sidebar Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cta-card {
    background: #0A0F1E !important;
    /* Force dark navy in light mode */
    color: #FFFFFF !important;
    border: none !important;
    padding: 35px !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-lg) !important;
    text-align: center;
}

body.dark-mode .cta-card {
    background: #1e293b !important;
    /* Slate 800 - distinct from page bg */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.cta-card h3 {
    color: var(--accent-light) !important;
    margin-bottom: 20px !important;
    font-size: 1.6rem !important;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 30px !important;
    font-size: 1rem;
    line-height: 1.7;
}

.cta-card .btn-primary {
    background: var(--gold-gradient) !important;
    color: #FFFFFF !important;
    border: none !important;
    width: 100%;
    font-weight: 700;
}

