/* Main CSS - Premium Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Libre+Baskerville:wght@400;700&family=Lora:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --primary: #003366;
    --primary-dark: #051024;
    --text-white: #ffffff;
    --text-muted: #a8b2d1;
    --accent: #00aaff;
    --accent-gold: #c5a059;
    --accent-blue: #0084ff;
    --card-dark-center: #1a2f55;
    --card-dark-edge: rgba(229, 229, 229, 0.4);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-white: #ffffff;
    --bg-dark: #0a192f;
    --bg-navy: #112240;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gray-light: #e6f1ff;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --radius: 12px;
    --serif-font: 'Playfair Display', serif;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fdfdfd;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.admin-container {
    width: 80%;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--white);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn:hover {
    background: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

/* Header */
.main-header {
    background: var(--bg-dark);
    color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
}

.main-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.main-nav a:hover {
    color: var(--white);
    opacity: 1;
}

/* Nav City Selector Dropdown */
.nav-city-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav-city-selector select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: var(--white);
    padding: 5px 30px 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23EEEEEE' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s, background-color 0.2s;
}

.nav-city-selector select:hover,
.nav-city-selector select:focus {
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.nav-city-selector select option {
    background: var(--bg-dark);
    color: var(--white);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    color: #fff;
    width: 200px;
    font-size: 0.85rem;
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    opacity: 0.5;
    cursor: pointer;
}

/* Hero Section (New Design) */
.hero {
    padding: 6rem 5% 2rem;
    text-align: center;
    background: #051024;
    color: var(--text-white);
}

.hero h1 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.2;
    color: var(--text-white);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-box-new {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--accent-gold);
}

.input-group {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #333;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    color: #4a90e2;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    position: relative;
    color: #333;
}

.dropdown-selected::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #888;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: var(--accent-blue);
}

.dropdown-parent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.parent-item {
    font-weight: 700;
    flex: 1;
}

.toggle-subs {
    padding: 10px 15px;
    font-size: 0.75rem;
    color: var(--accent-gold);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: none;
}

.toggle-subs:hover {
    color: #b08d4a;
}

.subcategory-list {
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.sub-item {
    padding-left: 30px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f5f5f5;
}

.sub-item:last-child {
    border-bottom: none;
}

.btn-search {
    background: #051024;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
}

.search-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--text-white);
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    color: var(--text-dark);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 0 20px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-text {
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Comprehensive Legal Topics (New Design) */
.comprehensive-topics {
    padding: 2rem 5%;
    text-align: center;
    background-color: var(--primary-dark);
}

.comprehensive-topics h2 {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--text-white);
}

.grid-container-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Base Styles */
.card-new {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.card-new:hover {
    transform: translateY(-4px);
}

/* White Card Pattern */
.white-card-new {
    background-color: #f5f7fa;
    /* Very light gray background for white cards */
    /* Light gray background for bottom row cards */
    color: #051024;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.white-card-new .icon-new {
    color: #051024;
}

.white-card-new .view-guide-new {
    color: #051024;
}

/* Solid Dark Card Pattern with Radial Gradient (Glassmorphism Effect) */
.glass-card-new {
    background: radial-gradient(circle at 30% 30%, var(--card-dark-center) 0%, var(--card-dark-edge) 100%);
    border: 1px solid var(--card-border);
    box-shadow: inset 0 0 20px rgba(4, 59, 81, 0.3);
    color: #82a7e7;
}

.glass-card-new .icon-new {
    color: #EEE;
    opacity: 0.9;
}

.glass-card-new .view-guide-new {
    color: #EEE;
}

.glass-card-new .icon-new {
    font-size: 2.53rem;
    /* 10% bigger than 2.3rem */
}

/* Specific Card Layouts */
.card-large-new {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card-large-new h2 {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #051024;
}

.card-large-new p {
    font-size: 1rem;
    opacity: 0.8;
}

.card-new h3 {
    font-family: var(--serif-font);
    font-size: 1.1rem;
    margin: 1rem 0;
}

.icon-new {
    font-size: 2.3rem;
}

.white-card-new .icon-new {
    font-size: 2.4rem;
    /* 10% bigger than 2.18rem */
}

.view-guide-new {
    text-decoration: underline;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Latest Legal Guides Section - Blended with dark design */
.latest-guides-new {
    padding: 6rem 5%;
    text-align: center;
    background-color: #081a38;
}

.latest-guides-new h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.divider-new {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 0 auto 4rem;
}

.guides-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card-small-new {
    background: radial-gradient(circle at top left, #142a55 0%, #0a1833 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.glass-card-small-new:hover {
    background: radial-gradient(circle at top left, #1a356b 0%, #0d1e40 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card-small-new i {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--accent-gold);
}

.glass-card-small-new h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    color: white;
}

/* Local Resources Section (New Design) */
.local-resources-new {
    padding: 6rem 5%;
    background-color: #08162d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.resources-container-new {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.resources-text-new h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.resources-text-new p {
    font-size: 1.1rem;
    max-width: 600px;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.browse-link-new {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.browse-link-new:hover {
    opacity: 0.8;
}

.btn-get-listed-new {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-get-listed-new:hover {
    background-color: white;
    color: #08162d;
}

/* Bottom CTA (New Design - blended with footer colors) */
.bottom-cta-new {
    background: #000000;
    color: var(--text-white);
    padding: 60px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-inner-new {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text-new h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cta-text-new p {
    opacity: 0.7;
    font-size: 0.95rem;
    max-width: 600px;
}

.cta-link-new {
    display: block;
    margin-top: 15px;
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
}

/* Main Footer (New Design) */
.main-footer {
    background-color: #000000;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.main-footer .footer-links-bottom {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-footer .footer-links-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer .footer-links-bottom a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-search-container {
        flex-direction: column;
        gap: 20px;
    }

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

    .success-stories {
        flex-direction: column;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* Consultation Page Styles */
.consultation-hero {
    background-color: #0f172a;
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
}

.hero-left .badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-family: var(--serif-font);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    gap: 15px;
}

.benefit-icon {
    font-size: 1.5rem;
}

.benefit-content strong {
    display: block;
    font-size: 1.1rem;
    color: #ffffff;
}

.benefit-content p {
    color: #94a3b8;
    margin: 4px 0 0;
}

.trust-badges {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.badge-item span {
    display: block;
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.badge-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Consultation Form Card */
.consultation-form-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.card-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-card h4 {
    color: #1e293b;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.step-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Article Redesign Styles */
.article-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
    display: block;
}

.article-view h1 {
    font-family: var(--serif-font);
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.article-content .entry-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
}

/* Related Box */
.related-box {
    background: var(--bg-dark);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.related-box-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.related-content p {
    margin: 0 !important;
    font-size: 1rem !important;
    color: var(--white) !important;
}

.related-content a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

/* Quick Link Box (Quote Style) */
.quick-link-box {
    background: var(--bg-dark);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    float: right;
    width: 45%;
    margin: 0 0 30px 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quick-link-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.quick-link-icon {
    font-size: 1.2rem;
    opacity: 0.8;
}

.quick-link-box p {
    font-size: 0.95rem !important;
    color: var(--white) !important;
    font-style: italic;
    margin: 0 !important;
}

.quick-link-box h3 {
    color: var(--white) !important;
}

.quick-link-box .author {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.6;
    color: var(--white);
}

/* Article CTA */
.article-cta-block {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 60px 0;
}

.article-cta-block .btn {
    font-size: 1.5rem;
    padding: 20px 50px;
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--white);
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.article-cta-block .btn:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

/* More Articles section */
.more-articles-section {
    padding: 80px 0;
    background: radial-gradient(circle at top right, #0a1f44 0%, #051024 100%);
    color: var(--white);
}

.more-articles-header {
    margin-bottom: 40px;
}

.more-articles-header h2 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
}

/* DEPRECATED: .more-grid, .more-card have been replaced by .category-grid and .premium-article-card */

@media (max-width: 768px) {
    .article-view h1 {
        font-size: 2.5rem;
    }

    .quick-link-box {
        width: 100%;
        margin: 20px 0;
        float: none;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span.separator {
    color: #cbd5e1;
}

/* Unobtrusive Inline Related Link */
.inline-related-link {
    margin: 2.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-gold);
    background-color: transparent;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
}

.inline-related-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    transition: all 0.2s;
}

.inline-related-link a:hover {
    color: var(--accent-blue);
    border-bottom-style: solid;
}

/* Author Bio Section */
.author-bio {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f1f5f9;
}

.author-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.author-info p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.author-expert-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

/* Home Page Redesign - Glassmorphism & Specialty Grid */
.categories-section-dark {
    background: var(--bg-navy);
    padding: 100px 0;
    color: var(--white);
}

.categories-section-dark .section-title h2 {
    color: var(--white);
    font-family: var(--serif-font);
    font-size: 3rem;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 24px;
}

.card-common {
    border-radius: 16px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 100%;
}

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

/* Wide White Card */
.card-wide-white {
    grid-column: span 2;
    background: var(--white);
    color: var(--text-dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.card-wide-white h3 {
    font-size: 2.5rem;
    font-family: var(--serif-font);
    line-height: 1.1;
    margin-bottom: 10px;
}

.card-wide-white p {
    color: #666;
    font-size: 1.1rem;
}

/* Glass Card */
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.card-glass:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-glass h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-glass .view-guide {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    margin-top: auto;
}

/* Standard White Card */
.card-white {
    background: var(--white);
    color: var(--text-dark);
}

.card-white:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-white h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-white .view-guide {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    font-size: 0.9rem;
}

.view-guide {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.card-common:hover .view-guide {
    letter-spacing: 0.5px;
}

.card-icon-img {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

.card-icon-img-large {
    height: 150px;
    width: auto;
    justify-self: center;
}

@media (max-width: 991px) {
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-wide-white {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .specialty-grid {
        grid-template-columns: 1fr;
    }

    .card-common {
        padding: 32px;
    }

    .card-wide-white {
        grid-column: span 1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .card-icon-img-large {
        margin-top: 20px;
    }
}

/* City Filter Bar */
.city-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.city-filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c5a059'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    transition: background 0.2s, border-color 0.2s;
}

.city-filter-select:hover,
.city-filter-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    outline: none;
}

.city-filter-select option {
    background: var(--bg-dark);
    color: var(--white);
}

.city-context-label {
    opacity: 0.8;
    font-style: italic;
}

/* --- Premium Article SEO Styles --- */

/* Article Hero Section */
.article-hero {
    background: radial-gradient(circle at top right, #0a1f44 0%, #051024 100%);
    padding: 80px 0 120px;
    color: var(--white);
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.article-hero .breadcrumbs-dark {
    justify-content: center;
    color: #a8b2d1;
    margin-bottom: 30px;
}

.article-hero .breadcrumbs-dark a {
    color: var(--accent-gold);
    font-weight: 600;
}

.article-hero .breadcrumbs-dark a:hover {
    color: var(--white);
}

.article-title {
    font-family: var(--serif-font);
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.2;
    color: var(--white);
}

.article-hero .meta-dark {
    justify-content: center;
    border-bottom: none;
    color: #a8b2d1;
    padding-bottom: 0;
}

.article-hero .meta-dark i {
    color: var(--accent-gold);
}

/* Floating Article Container */
.article-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: 1200px;
    margin: -80px auto 60px;
    /* Pulls up over the hero */
    width: 92%;
    position: relative;
    z-index: 10;
}

/* Main Content Card */
.article-view {
    min-width: 0;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-of-contents {
    background: var(--gray-light);
    border-left: 4px solid var(--accent-gold);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
}

.toc-header {
    font-family: var(--serif-font);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: #475569;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
}

.table-of-contents a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.toc-level-3 {
    padding-left: 20px;
}

/* Enhanced Typography for Entry */
.entry-content h2 {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    margin: 50px 0 25px;
    color: var(--primary-dark);
    scroll-margin-top: 100px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 35px 0 15px;
    color: var(--primary-dark);
    scroll-margin-top: 100px;
}

.entry-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 25px;
}

/* Sidebar Styling */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
    display: inline-block;
}

.category-links {
    list-style: none;
    padding: 0;
}

.category-links li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 15px;
}

.category-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.category-links a {
    font-size: 0.95rem;
    color: #475569;
    display: block;
    line-height: 1.4;
    font-weight: 500;
}

.category-links a:hover {
    color: var(--accent-blue);
}

.cta-widget {
    background: radial-gradient(circle at top, #112240 0%, #051024 100%);
    color: white;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.cta-widget h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: var(--serif-font);
}

.cta-widget p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-widget .btn-sm {
    display: inline-block;
    padding: 10px 20px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Enhanced Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 0;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    gap: 20px;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.article-navigation a {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.article-navigation a:hover {
    background: var(--white);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 700;
}

.nav-title {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.nav-next {
    text-align: right;
}

@media (max-width: 991px) {
    .article-hero {
        padding: 60px 0 100px;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .article-container {
        grid-template-columns: 1fr;
        margin-top: -60px;
    }

    .article-view {
        padding: 30px;
    }

    .article-sidebar {
        display: none;
    }

    .article-navigation {
        flex-direction: column;
    }
}

/* --- Premium Auth Styles --- */
.auth-page-wrapper {
    background: radial-gradient(circle at top right, #0a1f44 0%, #051024 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-top: 4px solid var(--accent-gold);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .form-group-premium {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.input-with-icon input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 800;
}

.btn-gold:hover {
    background: #d4af6a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* --- Premium Category Page Styles --- */
.category-hero {
    background: radial-gradient(circle at top, #0a1f44 0%, #051024 100%);
    padding: 80px 0 100px;
    color: var(--white);
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.category-title {
    font-family: var(--serif-font);
    font-size: 3.5rem;
    margin: 20px 0;
    color: var(--white);
}

.category-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-container {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.premium-article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-article-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.placeholder-img {
    color: var(--accent-gold);
    font-size: 4rem;
    opacity: 0.5;
}

/* Removed card-cover-title for legibility */

.card-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #7a5c10;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-content h3 a {
    color: var(--primary-dark);
}

.card-content h3 a:hover {
    color: var(--accent-blue);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.card-meta i {
    color: var(--accent-gold);
    margin-right: 5px;
}

.read-more-link {
    margin-top: auto;
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-family: var(--serif-font);
}

.empty-state p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-hero {
        padding: 60px 0 80px;
    }

    .category-title {
        font-size: 2.5rem;
    }
}

/* Subcategory Hub */
.subcat-hub-section {
    width: 100%;
    padding: 40px 0;
}

.subcat-hub {
    padding: 10px 0 10px;
    margin-bottom: 10px;
}

.subcat-hub-header,
.all-articles-divider {
    display: block;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 14px;
}

.subcat-hub-header::before,
.subcat-hub-header::after,
.all-articles-divider::before,
.all-articles-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.subcat-hub-header span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    white-space: nowrap;
}

.all-articles-divider {
    margin-top: 40px;
    margin-bottom: 30px;
}

.all-articles-divider::before,
.all-articles-divider::after {
    display: none;
}

.all-articles-divider span {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-dark);
    white-space: nowrap;
}

.subcat-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.subcat-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #c2d0e4;
    border-top: 3px solid var(--accent-gold);
    padding: 22px 20px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.subcat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
    border-color: #3a5f8a;
    border-top-color: var(--accent-gold);
}

.subcat-card-name {
    font-family: var(--serif-font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.subcat-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subcat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.subcat-count {
    font-size: 0.78rem;
    font-weight: 700;
    background: #fef9ee;
    color: var(--accent-gold);
    padding: 3px 10px;
    border-radius: 0;
    border: 1px solid #f0e0b8;
}

.subcat-arrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
}

@media (max-width: 600px) {
    .subcat-hub-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}