/* ==========================================================================
   BAJRA LAW & ASSOCIATES - Design System & Custom Stylesheet
   Theme: Imperial Forest Green (#0f2b20) & Gold (#c9a84c)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* CSS Variables */
:root {
    --primary-color: #0f2b20;
    --primary-light: #1d3f32;
    --primary-dark: #071510;
    --accent-color: #c9a84c;
    --accent-light: #dfbe60;
    --accent-dark: #aa8935;
    --text-color: #334155;
    --text-light: #64748b;
    --text-dark: #0f172a;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 80px;
    --topbar-height: 40px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--bg-light);
}

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

.section-subtitle {
    font-family: var(--font-body);
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

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

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

.btn-outline-white {
    border-color: var(--bg-white);
    color: var(--bg-white);
    background-color: transparent;
}

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

/* Top Bar */
.topbar {
    background-color: var(--primary-dark);
    color: var(--border-color);
    font-size: 0.85rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Stick topbar so fixed header never loses its anchor point */
    position: sticky;
    top: 0;
    z-index: 1001;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contact {
    display: flex;
    gap: 1.5rem;
}

.topbar-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-contact a:hover {
    color: var(--accent-color);
}

.topbar-social {
    display: flex;
    gap: 1rem;
}

.topbar-social a:hover {
    color: var(--accent-color);
}

/* Header & Navigation */
.header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.1s linear, box-shadow 0.1s linear,
                backdrop-filter 0.1s linear, -webkit-backdrop-filter 0.1s linear;
}

.header.opaque {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 4px 24px rgba(10, 31, 68, 0.1);
}

/* Push page content down on pages WITHOUT a full-height hero */
body.has-fixed-header main {
    padding-top: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background-color: #0a1f44;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

.logo-link:hover .logo-icon {
    transform: rotateY(15deg) rotateX(10deg) scale(1.05);
    box-shadow: -4px 6px 12px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.logo-link:hover .logo-icon::after {
    left: 140%;
    opacity: 1;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #0a1f44;
    transform: scale(1.4);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.logo-link:hover .logo-icon img {
    transform: scale(1.45) translateZ(10px);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

/* ── Transparent-header overrides: white text over hero ── */
.header.is-transparent .nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.header.is-transparent .nav-link:hover,
.header.is-transparent .nav-link.active {
    color: #ffffff;
}

.header.is-transparent .logo-title {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    transition: color 0.3s ease;
}

.header.is-transparent .logo-sub {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}

.header.is-transparent .hamburger-inner,
.header.is-transparent .hamburger-inner::before,
.header.is-transparent .hamburger-inner::after {
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color);
}

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

/* Nav Dropdown */
.nav-item {
    position: relative;
    list-style: none;
}

.nav-item > .nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-item > .nav-link .dropdown-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-item:hover > .nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
    list-style: none;
    padding: 0.5rem 0;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-dropdown li a:hover {
    color: var(--accent-color);
    background: var(--bg-light);
    border-left-color: var(--accent-color);
    padding-left: 1.5rem;
}


.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    padding: 0.5rem;
    z-index: 1100;
}

.hamburger-box {
    width: 28px;
    height: 20px;
    display: block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger active transformation */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    height: calc(100vh - var(--topbar-height));
    min-height: 500px;
    overflow: hidden;
    background-color: var(--primary-dark);
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--bg-white);
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 3.5rem;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.slide-content h1 span {
    color: var(--accent-color);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 31, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.slider-btn-prev {
    left: 2rem;
}

.slider-btn-next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--bg-white);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* About Intro Section (Home) */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.about-intro-text p {
    margin-bottom: 1.5rem;
}

.about-intro-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 600;
}

.about-intro-image {
    position: relative;
}

.about-intro-image img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--bg-alt);
    border: 1px solid var(--border-color);
}

.about-intro-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
    z-index: -1;
}

/* Practice Areas Section */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practice-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
}

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

.practice-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.practice-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Section heading link — e.g. "Our Practice Areas" → practice.html */
.section-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.section-title-link:hover {
    color: var(--accent-color);
}

/* Card h3 title links */
.card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.card-title-link:hover {
    color: var(--accent-color);
}

.practice-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.practice-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.practice-link:hover {
    color: var(--accent-color);
}

/* Why Choose Us Section */
.why-choose-us-section {
    position: relative;
    background-image: url('assets/trust_handshake_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Dark overlay for text readability */
.why-choose-us-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 68, 0.88) 0%,
        rgba(10, 31, 68, 0.75) 50%,
        rgba(10, 31, 68, 0.88) 100%
    );
    z-index: 0;
}

.why-choose-us-section .container {
    position: relative;
    z-index: 1;
}

/* Adapt text colors for dark background */
.why-choose-us-section .section-subtitle {
    color: var(--accent-color);
}

.why-choose-us-section .why-left h3,
.why-choose-us-section .why-left p,
.why-choose-us-section .why-item-content h4 {
    color: #ffffff;
}

.why-choose-us-section .why-item-content p {
    color: rgba(255, 255, 255, 0.75);
}

.why-choose-us-section .promise-box {
    background: rgba(255, 255, 255, 0.07) !important;
    border-left-color: var(--accent-color) !important;
}

.why-choose-us-section #promiseQuote {
    color: rgba(255, 255, 255, 0.85) !important;
}

.why-choose-us-section h4[style] {
    color: var(--accent-color) !important;
}

.why-choose-us-section .why-item-num {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Make the button visible on the dark background */
.why-choose-us-section .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

.why-choose-us-section .btn-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.why-left h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.why-left p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1.5rem;
}

.why-item-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    background-color: var(--bg-alt);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-item-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.why-item-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Awards & Recognition Section */
.awards-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.award-badge {
    text-align: center;
    max-width: 180px;
    opacity: 0.7;
    transition: var(--transition);
}

.award-badge:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.award-icon-placeholder {
    width: 90px;
    height: 90px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 2rem;
    position: relative;
    background-color: var(--bg-light);
}

.award-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    display: block;
}

/* Footer Section */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 5rem;
}

.footer h3, .footer h4 {
    color: var(--bg-white);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo-link {
    margin-bottom: 1.5rem;
}

.footer-about .logo-icon {
    border-color: var(--accent-color);
    background-color: #0a1f44;
}

.footer-about .logo-title {
    color: var(--bg-white);
}

.footer-about .logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
}

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

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.footer-bottom {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   PAGE SPECIFIC STYLES
   ========================================================================== */

/* Page Header (Subpages) */
.page-header {
    background-color: var(--primary-dark);
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
}

.page-header-title {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.page-breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.page-breadcrumbs a {
    color: var(--accent-color);
}

.page-breadcrumbs a:hover {
    color: var(--accent-light);
}

.page-breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

/* ABOUT PAGE */
.firm-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.firm-intro-image img {
    box-shadow: 15px 15px 0 var(--accent-color);
    border: 1px solid var(--border-color);
}

.firm-intro-content h3 {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
}

.firm-intro-content p {
    margin-bottom: 1.5rem;
}

.firm-values {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-card {
    text-align: center;
    background: var(--bg-white);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.value-card h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

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

.team-member {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 31, 68, 0.06);
}

.team-img-wrap {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-img-wrap img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.team-contact:hover {
    color: var(--accent-color);
}

/* PRACTICE AREAS PAGE */
.practice-detail-block {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.practice-detail-block.align-start {
    align-items: flex-start;
}


.practice-detail-block:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.practice-detail-block:nth-child(even) .practice-detail-content {
    order: 2;
}

.practice-detail-block:nth-child(even) .practice-detail-image {
    order: 1;
}

.practice-detail-block:last-child {
    margin-bottom: 0;
}

.practice-detail-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.practice-detail-content p {
    margin-bottom: 1.5rem;
}

.practice-detail-list {
    margin-top: 1.5rem;
}

.practice-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.practice-detail-list i {
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.practice-detail-image {
    position: relative;
}

.practice-detail-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--accent-color);
    border-left: 3px solid var(--accent-color);
    z-index: -1;
}

.practice-detail-image img {
    width: 100%;
    box-shadow: 20px 20px 0 var(--bg-alt);
    border: 1px solid var(--border-color);
}

/* Image hover drawer modal effect */
.image-drawer-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    box-shadow: 20px 20px 0 var(--bg-alt);
    border: 1px solid var(--border-color);
}

.image-drawer-wrapper img {
    box-shadow: none;
    border: none;
    display: block;
}

.image-drawer-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
    font-style: italic;
    line-height: 1.35;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
    z-index: 10;
    box-sizing: border-box;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), -1px -1px 3px rgba(0, 0, 0, 0.9), 1px -1px 3px rgba(0, 0, 0, 0.9), -1px 1px 3px rgba(0, 0, 0, 0.9);
}

.image-drawer-wrapper:hover .image-drawer-modal,
.image-drawer-wrapper.is-active .image-drawer-modal {
    opacity: 1;
}

.cta-banner {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-light) 20%, transparent 20%);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 1;
}

.cta-banner .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-banner h2 {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* NEWS PAGE */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.news-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 31, 68, 0.05);
}

.news-img-wrap {
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    transition: var(--transition);
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-readmore {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-readmore:hover {
    color: var(--accent-color);
}

/* CONTACT PAGE */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-block {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info-block h3 {
    color: var(--bg-white);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-detail-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.contact-detail-content h4 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-detail-content p, .contact-detail-content a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-detail-content a:hover {
    color: var(--accent-color);
}

.contact-social-wrap h4 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-social-icons {
    display: flex;
    gap: 1rem;
}

.contact-social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* Contact Form */
.contact-form-wrap {
    padding: 3rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.contact-form-wrap h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(10, 31, 68, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Form Message Status Alert */
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    height: 450px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--border-color);
}

.map-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--primary-color);
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.map-bg-mock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 0;
    filter: grayscale(0.7) contrast(1.05);
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.map-bg-mock:hover {
    filter: none;
    opacity: 1;
}

.map-content-overlay {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(10, 31, 68, 0.1);
    max-width: 450px;
    border-top: 4px solid var(--accent-color);
    pointer-events: auto;
}

.map-content-overlay h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.map-content-overlay p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-intro-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .firm-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .practice-detail-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .practice-detail-block:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .practice-detail-block:nth-child(even) .practice-detail-content {
        order: 1;
    }
    
    .practice-detail-block:nth-child(even) .practice-detail-image {
        order: 2;
    }
    
    .practice-detail-image {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .topbar {
        display: none; /* Hide topbar on mobile to save vertical space */
    }

    /* Fixed header sits at the very top when topbar is hidden */
    .header {
        top: 0;
    }

    /* Hero fills full viewport on mobile since topbar is gone */
    .hero-slider-container {
        height: 100vh;
    }
    
    /* Hamburger menu displays */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        gap: 1.75rem;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu.is-active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }

    /* Fix transparent header overrides when mobile menu is open */
    body.menu-open .header {
        background-color: var(--bg-white) !important;
        box-shadow: 0 4px 24px rgba(10, 31, 68, 0.1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    body.menu-open .header .logo-title {
        color: var(--primary-color) !important;
        text-shadow: none !important;
    }
    
    body.menu-open .header .logo-sub {
        color: var(--text-light) !important;
        text-shadow: none !important;
    }
    
    body.menu-open .header .hamburger-inner,
    body.menu-open .header .hamburger-inner::before,
    body.menu-open .header .hamburger-inner::after {
        background-color: var(--primary-color) !important;
        box-shadow: none !important;
    }
    
    body.menu-open .header .nav-menu .nav-link {
        color: var(--primary-color) !important;
        text-shadow: none !important;
    }
    
    body.menu-open .header .nav-menu .nav-link:hover,
    body.menu-open .header .nav-menu .nav-link.active {
        color: var(--accent-color) !important;
    }

    /* Mobile dropdown: inline, not floating */
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: none;
        border-left: none;
        background: var(--bg-light);
        display: none;
        min-width: 260px;
        padding: 0.5rem 0;
        margin-top: 0.75rem;
        border-radius: 4px;
    }

    .nav-item.is-open .nav-dropdown {
        display: block;
    }

    /* Override desktop hover translation on mobile */
    .nav-item:hover .nav-dropdown {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-dropdown li a {
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
        text-align: center;
        border-left: none;
    }

    .nav-dropdown li a:hover {
        border-left-color: transparent;
        padding-left: 1rem;
        background-color: rgba(10, 31, 68, 0.05);
    }

    .nav-item > .nav-link .dropdown-arrow {
        display: inline-block;
    }

    .nav-item.is-open > .nav-link .dropdown-arrow {
        transform: rotate(180deg);
    }

    .hero-slider-container {
        height: 520px;
        min-height: unset;
    }
    
    .slide {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .slide-img {
        position: relative;
        height: 240px;
        width: 100%;
        object-fit: cover;
        filter: brightness(0.65);
    }
    
    .slide-content {
        position: relative;
        padding: 2rem 1.5rem;
        background-color: var(--primary-dark);
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        transform: translateY(15px);
        transition: all 0.8s ease 0.5s;
    }
    
    .slide.active .slide-content {
        transform: translateY(0);
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        top: 120px;
        transform: translateY(-50%);
    }
    
    .slider-btn-prev {
        left: 0.5rem;
    }
    
    .slider-btn-next {
        right: 0.5rem;
    }
    
    .slider-dots {
        top: 210px;
        bottom: auto;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
    
    .contact-form-wrap, .contact-info-block {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 460px;
    }
    
    .slide-img {
        height: 200px;
    }
    
    .slider-btn {
        top: 100px;
    }
    
    .slide-content {
        padding: 1.5rem 1rem;
    }
    
    .slide-content h1 {
        font-size: 1.45rem;
    }
    
    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .slider-dots {
        top: 175px;
        bottom: auto;
    }
    
    .logo-title {
        font-size: 1.15rem;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }
}

/* ==========================================================================
   ARTICLE MODAL STYLES (DYNAMIC NEWS READING)
   ========================================================================== */

/* Prevent scroll on body when modal is active */
body.modal-open {
    overflow: hidden;
}

.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 31, 68, 0.65); /* Elegant primary dark overlay */
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 1.5rem;
}

.article-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.article-modal-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px -12px rgba(10, 31, 68, 0.25);
    display: flex;
    flex-direction: column;
}

.article-modal.is-active .article-modal-container {
    transform: translateY(0);
}

.article-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.article-modal-close:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: rotate(90deg);
}

.article-modal-hero {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.article-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-modal-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 31, 68, 0.2), rgba(10, 31, 68, 0.8));
    z-index: 1;
}

.article-modal-header-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 3rem 2rem 3rem;
    z-index: 2;
    color: var(--bg-white);
}

.article-modal-header-text h2 {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.article-modal-content {
    padding: 3rem;
    background: var(--bg-white);
}

.article-modal-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    gap: 1rem;
}

.article-modal-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-modal-body p {
    margin-bottom: 1.5rem;
}

.article-modal-body h4 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.25rem 0;
    font-weight: 700;
}

.article-modal-body ul, .article-modal-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-modal-body li {
    margin-bottom: 0.5rem;
    position: relative;
    list-style-type: square;
}

.article-modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 3rem;
    background-color: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.article-modal-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.article-modal-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.article-modal-btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

@media (max-width: 768px) {
    .article-modal {
        padding: 1rem;
    }
    .article-modal-hero {
        height: 280px;
    }
    .article-modal-header-text {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    .article-modal-header-text h2 {
        font-size: 1.6rem;
    }
    .article-modal-content {
        padding: 2rem 1.5rem;
    }
    .article-modal-footer {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .article-modal-footer button {
        width: 100%;
    }
}

/* ==========================================================================
   PRACTICE AREA SUBPAGES
   ========================================================================== */

/* Services Detail Grid */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.08);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.service-detail-icon {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

.service-detail-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.service-detail-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Practice Overview Cards (used in "Other Practice Areas" section) */
.practice-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.practice-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.practice-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.practice-card-link:hover .practice-card {
    box-shadow: 0 12px 30px rgba(10, 31, 68, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.practice-card h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.practice-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.practice-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

.practice-card-link:hover .practice-link {
    color: var(--accent-dark);
}

/* Practice Overview Page Cards (on practice.html) */
.practice-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.practice-overview-grid .practice-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.practice-overview-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.practice-overview-card:hover {
    box-shadow: 0 15px 40px rgba(10, 31, 68, 0.1);
    transform: translateY(-5px);
}

.practice-overview-img {
    height: 220px;
    overflow: hidden;
}

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

.practice-overview-card:hover .practice-overview-img img {
    transform: scale(1.05);
}

.practice-overview-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.practice-overview-body h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.practice-overview-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.practice-overview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.02em;
    transition: var(--transition);
    align-self: flex-start;
}

.practice-overview-card:hover .practice-overview-btn {
    color: var(--accent-dark);
    gap: 0.75rem;
}

/* ==========================================================================
   WORLD CLOCK COMPONENT (Foreign Legal Counsel)
   ========================================================================== */

.world-clock-card {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 2.25rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 20px 20px 0 var(--bg-alt);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-family: var(--font-body);
    box-sizing: border-box;
}

.world-clock-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.world-clock-header h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.world-clock-header p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
}

.world-clock-primary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.clock-city-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}

.clock-pin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-color);
    font-weight: 600;
}

.clock-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.clock-time-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--bg-white);
    line-height: 1;
    margin-top: 0.15rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
}

.primary-time {
    color: #ffffff;
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.world-clock-item {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.85rem;
    transition: var(--transition);
}

.world-clock-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.clock-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.city-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.time-offset {
    font-size: 0.68rem;
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.05rem 0.3rem;
    border: 1px solid rgba(201, 168, 76, 0.35);
}

.clock-item-time {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.15rem;
    text-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.85);
}

.clock-item-date {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

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

@media (max-width: 480px) {
    .world-clock-grid {
        grid-template-columns: 1fr;
    }
}

/* World Clock City Specific Backgrounds */
.clock-kathmandu {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.58)), url('assets/kathmandu_clock.jpg');
    background-size: cover;
    background-position: center;
}

.clock-geneva {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62)), url('assets/geneva_clock.jpg');
    background-size: cover;
    background-position: center;
}

.clock-singapore {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62)), url('assets/singapore_clock.jpg');
    background-size: cover;
    background-position: center;
}

.clock-newdelhi {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62)), url('https://images.unsplash.com/photo-1587474260584-136574528ed5?auto=format&fit=crop&w=400&q=80');
    background-size: cover;
    background-position: center;
}

.clock-hague {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62)), url('assets/hague_clock.jpg');
    background-size: cover;
    background-position: center;
}

.clock-beijing {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62)), url('assets/beijing_clock.jpg');
    background-size: cover;
    background-position: center;
}

.clock-london {
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62)), url('assets/london_clock.jpg');
    background-size: cover;
    background-position: center;
}

/* Featured Program Section */
.featured-program-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color);
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(10, 31, 68, 0.05);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-program-image {
    height: 100%;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.featured-program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-format {
    background: var(--bg-light);
    padding: 1.25rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.program-format svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .featured-program-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .featured-program-image {
        min-height: 250px;
        order: -1;
    }
}

/* ==========================================================================
   COMPARISON TABLE & SERVICE GUIDE STYLES
   ========================================================================== */

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.04);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: left;
    min-width: 600px;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 3px solid var(--accent-color);
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    transition: var(--transition);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.comparison-table tbody tr:hover {
    background-color: rgba(201, 168, 76, 0.06);
}

.comparison-table td a {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 1px solid transparent;
}

.comparison-table td a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

/* Special Featured Styling for the 7th Service Card on Homepage */
.practice-card.featured-guide-card {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.practice-card.featured-guide-card::before {
    background-color: var(--accent-color);
}

.practice-card.featured-guide-card h3 {
    color: var(--bg-white);
}

.practice-card.featured-guide-card p {
    color: rgba(255, 255, 255, 0.85);
}

.practice-card.featured-guide-card .practice-icon {
    color: var(--accent-color);
}

.practice-card.featured-guide-card .practice-link {
    color: var(--accent-color);
}

.practice-card.featured-guide-card .practice-link:hover {
    color: var(--bg-white);
}

/* Priority Areas on About Page */
.priority-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.priority-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.priority-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.priority-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 31, 68, 0.05);
    border-color: var(--accent-color);
}

.priority-card:hover::before {
    transform: scaleY(1);
}

.priority-icon {
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.priority-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.priority-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}







