/* ==========================================================
   Aprodu Law - Main Stylesheet
   ========================================================== */

/* CSS Variables for Easy Theming */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c9a227;
    --accent-hover: #b08d1f;
    --text: #333;
    --text-light: #555;
    --text-muted: #6b7280;
    --bg: #fff;
    --bg-alt: #f8f9fa;
    --bg-dark: #0f0f1a;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: 0.3s ease;
}

/* ==========================================================
   Base Styles & Reset
   ========================================================== */

/* System Font Stack - No External Requests */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================
   Utility Classes
   ========================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.sr-only:focus,
.sr-only:active {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 14px;
    clip: auto;
    overflow: visible;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    z-index: 2000;
}

main p {
    max-width: 72ch;
    margin: 0 0 1rem;
}

main li {
    margin-bottom: 0.45rem;
}

main h2,
main h3 {
    line-height: 1.3;
}

main h2 {
    margin-top: 1.7rem;
}

main h3 {
    margin-top: 1.2rem;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   Top Bar
   ========================================================== */

.top-bar {
    background: var(--primary);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.contact-info a:hover {
    color: var(--accent);
}

.contact-info svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background var(--transition);
}

.social-links a:hover {
    background: var(--accent);
}

.social-links svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* ==========================================================
   Header
   ========================================================== */

header {
    background: var(--bg);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav .dropdown-menu,
nav .dropdown-category ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary);
    padding: 8px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::after {
    content: none;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown > a svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform var(--transition);
}

/* Main dropdown: single vertical column */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    min-width: 230px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover > a svg {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

/* Category items in main column */
.dropdown-category {
    position: relative;
}

.dropdown-category > .dropdown-cat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
    padding: 7px 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background var(--transition);
}

.dropdown-category > .dropdown-cat-label::after {
    content: '\203A';
    font-size: 18px;
    line-height: 1;
    color: var(--accent);
    margin-left: 8px;
}

.dropdown-category:hover > .dropdown-cat-label {
    background: var(--bg-alt);
}

.dropdown-category > .dropdown-cat-label a {
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dropdown-category > .dropdown-cat-label a:hover {
    color: var(--primary);
    background: none;
    padding-left: 0;
}

/* Flyout submenu - appears on hover to the right */
.dropdown-category > ul {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--bg);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: all var(--transition);
    z-index: 101;
}

.dropdown-category:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-category ul li a {
    display: block;
    padding: 5px 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text);
    transition: all var(--transition);
    white-space: nowrap;
}

.dropdown-category ul li a:hover {
    color: var(--accent);
    background: var(--bg-alt);
    padding-left: 18px;
}

.dropdown-menu a::after {
    content: none;
}

/* ==========================================================
   Buttons
   ========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* ==========================================================
   Mobile Menu
   ========================================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================================
   Hero Section
   ========================================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,162,39,0.2);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-tagline {
    font-size: 24px;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.hero-image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--accent);
    color: var(--primary);
    padding: 15px 25px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
}

/* ==========================================================
   Trust Bar
   ========================================================== */

.trust-bar {
    background: var(--bg-alt);
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

/* ==========================================================
   Alert Banner
   ========================================================== */

.alert-banner {
    background: linear-gradient(135deg, var(--accent), #d4af37);
    padding: 20px 0;
}

.alert-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.alert-banner p {
    color: var(--primary);
    font-weight: 500;
    flex: 1;
}

.alert-banner .btn {
    background: var(--primary);
    color: #fff;
    white-space: nowrap;
}

/* ==========================================================
   Stats Section
   ========================================================== */

.stats-section {
    padding: 60px 0;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

/* ==========================================================
   Section Styles
   ========================================================== */

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ==========================================================
   Practice Areas Grid
   ========================================================== */

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.practice-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform var(--transition);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.practice-card:hover::before {
    transform: scaleY(1);
}

.practice-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.practice-card h3 svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.practice-card ul {
    list-style: none;
}

.practice-card li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.practice-card li:last-child {
    border-bottom: none;
}

.practice-card li a {
    color: var(--text-light);
    font-size: 14px;
    display: block;
    transition: all var(--transition);
}

.practice-card li a:hover {
    color: var(--accent);
    padding-left: 8px;
}

/* ==========================================================
   Testimonials
   ========================================================== */

.testimonials-section {
    background: var(--bg-alt);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-case {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================
   FAQ Section
   ========================================================== */

.faq-section {
    background: var(--bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 25px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==========================================================
   CTA Section
   ========================================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--accent);
}

.cta-section .btn-outline {
    border-color: #fff;
    color: #fff;
}

.cta-section .btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* ==========================================================
   Footer
   ========================================================== */

.footer-banner {
    background: var(--accent);
    padding: 40px 0;
    text-align: center;
}

.footer-banner h3 {
    font-size: 32px;
    color: var(--primary);
    font-style: italic;
}

.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.footer-bottom a {
    color: var(--accent);
}

/* ==========================================================
   Floating Contact Button
   ========================================================== */

.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: var(--accent-hover);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ==========================================================
   Back to Top
   ========================================================== */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ==========================================================
   Responsive - Tablet
   ========================================================== */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================
   Responsive - Mobile
   ========================================================== */

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        box-shadow: var(--shadow);
        padding: 20px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 4px 0 4px 8px;
        max-height: none;
        min-width: unset;
        display: block;
    }

    .dropdown-category > ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: unset;
        padding: 0 0 0 12px;
        border-radius: 0;
    }

    .dropdown-category > .dropdown-cat-label {
        padding: 5px 10px;
        font-size: 12px;
    }

    .dropdown-category > .dropdown-cat-label::after {
        display: none;
    }

    .dropdown-category ul li a {
        font-size: 12px;
        padding: 3px 10px;
        white-space: normal;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .hero-image-badge {
        position: static;
        margin-top: 15px;
        display: inline-block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        right: 20px;
        bottom: 90px;
    }
}

/* ==========================================================
   Practice Area Page Styles (inner pages)
   ========================================================== */

/* ── Page Hero ─────────────────────────────────────────────── */
.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
}

.page-hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
}

.page-hero .hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.page-hero .hero-buttons {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-light, #666);
    background: var(--bg-alt);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: var(--text-light, #999);
}

/* ── Content Section ───────────────────────────────────────── */
.content-section {
    padding: 60px 0;
}

.content-body {
    max-width: 820px;
    margin: 0 auto;
}

.content-body h2 {
    margin: 48px 0 16px;
    font-size: 1.5rem;
    color: var(--primary);
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h3 {
    margin: 24px 0 12px;
    font-size: 1.15rem;
    color: var(--text);
}

.content-body h4 {
    margin: 20px 0 8px;
    font-size: 1.05rem;
    color: var(--primary);
}

.content-body p {
    margin: 0 0 16px;
    line-height: 1.78;
    color: var(--text);
    font-size: 1.02rem;
}

.content-body ul, .content-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.content-body ul li, .content-body ol li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.content-body a {
    color: var(--accent);
    text-decoration: underline;
}

.content-body a:hover {
    color: var(--primary);
}

.content-body strong {
    color: var(--primary);
}

/* ── Info Card (generic reusable card for practice area pages) */
.info-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(15, 30, 60, 0.06);
}

.info-card h2 {
    margin-top: 0 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.info-card h4 {
    margin-top: 16px;
}

.info-card ul {
    margin-bottom: 12px;
}

/* Alias for offense-card (backward compat with DUI penalties page) */
.offense-card { /* extends info-card */ }
.offense-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(15, 30, 60, 0.06);
}

.offense-card h2 {
    margin-top: 0 !important;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

/* ── Highlight Box (callout with left accent border) ────────── */
.highlight-box {
    background: linear-gradient(135deg, rgba(15, 30, 60, 0.03), rgba(15, 30, 60, 0.06));
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 20px 0 24px;
}

.highlight-box h3 {
    margin-top: 0 !important;
    color: var(--primary) !important;
}

/* Alias for program-highlight (backward compat) */
.program-highlight {
    background: linear-gradient(135deg, rgba(15, 30, 60, 0.03), rgba(15, 30, 60, 0.06));
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 20px 0 24px;
}

.program-highlight h3 {
    margin-top: 0 !important;
    color: var(--primary) !important;
}

/* ── Takeaways / Key Points Box ─────────────────────────────── */
.takeaways-box {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}

.takeaways-box h2 {
    color: #fff !important;
    margin-top: 0 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 12px;
}

.takeaways-box p {
    color: rgba(255, 255, 255, 0.92) !important;
}

.takeaways-box ul {
    color: rgba(255, 255, 255, 0.92);
}

.takeaways-box ul li {
    margin-bottom: 8px;
}

.takeaways-box strong {
    color: #e8b84b !important;
}

.takeaways-box a {
    color: #fff !important;
    font-weight: 600;
}

/* ── Practice Area Card Centering ───────────────────────────── */
#main-content .info-card,
#main-content .highlight-box,
#main-content .takeaways-box {
    margin-left: auto;
    margin-right: auto;
}

/* ── Related Pages Grid ─────────────────────────────────────── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.related-card {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(15, 30, 60, 0.04);
}

.related-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(15, 30, 60, 0.1);
    transform: translateY(-2px);
}

.related-card strong {
    display: block;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 1rem;
}

.related-card span {
    font-size: 0.88rem;
    color: var(--text-light, #666);
    line-height: 1.5;
}

/* ── Practice Area Page Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 40px;
    }

    .page-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .content-section {
        padding: 40px 0;
    }

    .info-card, .offense-card {
        padding: 20px;
    }

    .highlight-box, .program-highlight {
        padding: 18px 20px;
    }

    .takeaways-box {
        padding: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Reduced Motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
