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

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

img,
picture,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
    min-width: 0;
}

section,
article,
main,
header,
footer,
aside,
nav,
.form-group,
.container {
    min-width: 0;
}

.nav-links li {
    min-width: 0;
}

.nav-links a {
    word-break: break-word;
}

body.menu-open::before {
    pointer-events: auto;
}

/* Force practice-band cards to exactly match Services page `.service-full-item` */
.practice-band .service-full-item {
    display: flex !important;
    flex-direction: column !important;
    background: var(--surface) !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(13,54,24,0.06) !important;
    transition: transform 220ms ease, box-shadow 220ms ease !important;
    height: 100% !important;
    max-height: 420px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(13,54,24,0.06) !important;
}

.practice-band .service-full-item:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 36px rgba(13,54,24,0.12) !important;
}

.practice-band .service-full-item .preview-image {
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    background: var(--surface) !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    overflow: hidden !important;
}

.practice-band .service-full-item .preview-image img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    display: block !important;
}

.practice-band .service-full-item .service-icon-large {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--surface) !important;
    padding: 0 !important;
}

.practice-band .service-full-item .service-icon-large i {
    font-size: 3.6rem !important;
    color: #ffc107 !important;
    line-height: 1 !important;
}


:root {
    --teal: #5a97ff;
    --copper: #f59e0b;
    --charcoal: #5a97ff;
    --steel: #15223c;
    --surface: #f8fafc;
    --surface-strong: #ffffff;
    --paper: #eef2ff;
    --muted: #334155;
}

/* Accent blue used for practice/services icons */
:root {
    --practice-light-green: #38bdf8;
}

/* Scope icon color changes to the practice/services section only */
.practice-band .services-grid i,
.practice-band .service-icon i,
.practice-band .placeholder-image i,
.practice-band .services-grid .service-item i,
.practice-band .services-grid .preview-icon i {
    color: var(--practice-light-green) !important;
}

.practice-band svg {
    fill: var(--practice-light-green) !important;
    stroke: var(--practice-light-green) !important;
}

/* Also apply the same light green to the Our Services blocks */

/* Mission tabs on homepage */
.mission-tabs {
    display: flex;
    gap: 14px;
    margin: 18px 0 22px 0;
}
.mission-tabs .mission-tab {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(15, 67, 118, 0.08);
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
    border: 1px solid rgba(15, 67, 118, 0.08);
}
.mission-tabs .mission-tab:hover,
.mission-tabs .mission-tab:focus {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 67, 118, 0.16);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), rgba(15, 67, 118, 0.08));
}

/* Smooth scroll target spacing */
#mission, #vision, #core-values { scroll-margin-top: 120px; }

/* Per-tab colors */
.mission-tab--mission { background: linear-gradient(90deg, #e8f5e9, #dcedc8); color: #1b5e20; border-color: rgba(27,94,32,0.08); }
.mission-tab--mission:hover, .mission-tab--mission:focus { background: linear-gradient(90deg, #c8e6c9, #a5d6a7); box-shadow: 0 14px 30px rgba(27,94,32,0.12); }

.mission-tab--vision { background: linear-gradient(90deg, #e3f2fd, #e1f5fe); color: #0d47a1; border-color: rgba(13,71,161,0.08); }
.mission-tab--vision:hover, .mission-tab--vision:focus { background: linear-gradient(90deg, #bbdefb, #90caf9); box-shadow: 0 14px 30px rgba(13,71,161,0.12); }

.mission-tab--core { background: linear-gradient(90deg, #fff8e1, #fff3e0); color: #6b3e00; border-color: rgba(212,175,55,0.12); }
.mission-tab--core:hover, .mission-tab--core:focus { background: linear-gradient(90deg, #ffe082, #ffd54f); box-shadow: 0 14px 30px rgba(212,175,55,0.12); }

/* Force per-tab colors to override other rules (important for caching/priority) */
.mission-tab--mission { background: linear-gradient(90deg, #e8f5e9, #dcedc8) !important; color: #1b5e20 !important; border-color: rgba(27,94,32,0.08) !important; }
.mission-tab--mission:hover, .mission-tab--mission:focus { background: linear-gradient(90deg, #c8e6c9, #a5d6a7) !important; box-shadow: 0 14px 30px rgba(27,94,32,0.12) !important; }
.mission-tab--vision { background: linear-gradient(90deg, #e3f2fd, #e1f5fe) !important; color: #0d47a1 !important; border-color: rgba(13,71,161,0.08) !important; }
.mission-tab--vision:hover, .mission-tab--vision:focus { background: linear-gradient(90deg, #bbdefb, #90caf9) !important; box-shadow: 0 14px 30px rgba(13,71,161,0.12) !important; }
.mission-tab--core { background: linear-gradient(90deg, #fff8e1, #fff3e0) !important; color: #6b3e00 !important; border-color: rgba(212,175,55,0.12) !important; }
.mission-tab--core:hover, .mission-tab--core:focus { background: linear-gradient(90deg, #ffe082, #ffd54f) !important; box-shadow: 0 14px 30px rgba(212,175,55,0.12) !important; }

/* Highlight style for about mission/vision/values when targeted */
.mission-vision-grid article {
    padding: 18px 14px;
    border-radius: 8px;
    transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease, border-left-color 260ms ease;
    border-left: 4px solid rgba(0,0,0,0); /* reserved space for accent */
}
.mission-vision-grid article + article { margin-top: 12px; }
.mission-vision-grid article.is-active {
    background: linear-gradient(180deg, rgba(212,175,55,0.06), rgba(27,94,32,0.03));
    box-shadow: 0 16px 34px rgba(27,94,32,0.08);
    transform: translateY(-6px);
    border-left-color: rgba(212,175,55,1);
}
.mission-vision-grid article.is-active h3 { color: #0b2a17; }
.why-band .why-grid i,
.why-band .why-item i,
.services-preview i,
.services-full i,
.service-item i,
.services-list i {
    color: var(--practice-light-green) !important;
}

.why-band svg,
.services-preview svg,
.services-full svg {
    fill: var(--practice-light-green) !important;
    stroke: var(--practice-light-green) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--muted);
    background: var(--paper);
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #5a97ff 0%, #5a97ff 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.18);
    border-bottom: 3px solid var(--copper);
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.8rem;
}

.site-logo-img {
    width: 150px;
    height: 42px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--copper);
}

.submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 210px;
    display: none;
    list-style: none;
    padding: 8px 0;
    background: rgba(15, 31, 46, 0.98);
    border-radius: 6px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    z-index: 200;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
    color: white;
}

/* Carousel Section */
.carousel-section {
    width: 100%;
    background: #0a0a0a;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: none;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

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

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--copper);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--teal) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button,
.cta-button-dark {
    display: inline-block;
    background: var(--copper);
    color: var(--charcoal);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.cta-button:hover,
.cta-button-dark:hover {
    transform: translateY(-2px);
    background: #d97706;
    color: var(--surface-strong);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.24);
}

/* Services Section */
.services-preview {
    padding: 20px 20px;
    background: var(--paper);
}

.services-preview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--teal);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Full services listing (services.php) - grid with 3 per row on wide screens */
.services-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 700px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(13, 54, 24, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(13, 54, 24, 0.06);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 54, 24, 0.15);
    border-color: #ffc107;
}

.service-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Neutralize icon/placeholder backgrounds (remove green accent) */
.placeholder-image,
.placeholder-image-large,
.service-icon,
.service-icon-large,
.service-icon-display,
.placeholder-avatar,
.info-icon {
    background: var(--paper) !important;
    color: var(--muted) !important;
    border: 1px solid rgba(7,11,22,0.06);
}

.placeholder-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: #ffc107;
}

.service-icon {
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: #ffc107;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--teal);
    /* responsive sizing */
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.2;
    /* allow wrapping so full title is visible */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* Slightly larger headings on wide screens while still staying mostly single-line */
@media (min-width: 1200px) {
    .service-item h3 {
        font-size: clamp(1rem, 1.25vw, 1.25rem);
    }
}

.service-item p {
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Card layout tweaks for services listing */
.service-full-item {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(13,54,24,0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
    height: 100%;
}

.service-full-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(13,54,24,0.12);
}

.service-full-item .preview-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-full-item .preview-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.service-details h3 {
    margin: 0;
    font-weight: 700;
    color: var(--teal);
}

.service-details p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .service-full-item .preview-image {
        height: 160px;
    }
}

/* Override compact card clamping for the full services page so descriptions show completely */
.services-list .service-full-item {
    max-height: none !important;
}

.services-list .service-full-item .service-details p {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
}

.service-item .link {
    color: var(--teal);
    text-decoration: none;
    font-weight: bold;
}

.center-link {
    text-align: center;
}

.view-all {
    font-size: 1.05rem;
    padding: 12px 32px;
    border: 2px solid var(--teal);
    border-radius: 6px;
    display: inline-block;
    color: var(--teal);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.view-all:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.2);
}

.latest-articles {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--paper) 0%, #f2f5f9 100%);
}

.latest-articles h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--muted) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.latest-articles > .container > p:first-of-type {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.article-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(30, 58, 95, 0.06);
}

/* Card polish + entrance animation */
:root {
    --card-accent: linear-gradient(135deg, rgba(27,94,32,0.06), rgba(212,175,55,0.06));
}

.service-item, .article-preview, .team-member {
    background-image: var(--card-accent);
    background-origin: border-box;
    position: relative;
    will-change: transform, box-shadow, opacity;
    animation: cardFadeUp 600ms ease both;
}

/* Stronger card header accent and image polish */
.article-preview, .service-item, .team-member {
    border-radius: 14px;
}

.article-preview::before, .service-item::before, .team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    background: linear-gradient(90deg, rgba(212,175,55,1), rgba(27,94,32,1));
    opacity: 0.95;
    pointer-events: none;
}

/* Make preview images pop */
.latest-articles .preview-image { position: relative; overflow: hidden; }
.latest-articles .preview-image img { transition: transform 0.6s cubic-bezier(.2,.9,.2,1), filter 0.4s; display: block; }
.article-preview:hover .preview-image img { transform: scale(1.12) rotateZ(-0.5deg); filter: saturate(1.05) contrast(1.02); }

/* Larger icon circles and overlap */
.card-icon { width: 64px; height: 64px; font-size: 22px; }
.preview-content .card-icon { margin-top: -28px; margin-bottom: 10px; box-shadow: 0 10px 26px rgba(10,30,60,0.14); }
.article-preview:hover .card-icon, .service-item:hover .card-icon, .team-member:hover .card-icon { transform: translateY(-6px) scale(1.03); }

/* Add subtle badge for featured */
.article-preview .badge-featured {
    position: absolute;
    top: 12px;
    left: 14px;
    background: rgba(212,175,55,0.95);
    color: #081218;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .3px;
}

/* Improve title weight and spacing */
.article-preview .preview-content h3 { font-size: 1.18rem; letter-spacing: -0.2px; }
.service-details h3, .team-member h3 { font-size: 1.15rem; }

/* Call-to-action button on cards */
.article-preview .read-more, .service-item .link {
    display: inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:8px;
    background: linear-gradient(90deg,#f0d14e,#d4af37); color:#081218; box-shadow: 0 8px 20px rgba(212,175,55,0.12);
}
.article-preview .read-more:hover, .service-item .link:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(10,30,60,0.12); }

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(18px) scale(.995); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.article-preview:hover {
    box-shadow: 0 16px 40px rgba(30, 58, 95, 0.16);
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Stronger hover with subtle 3D tilt + sheen */
.article-preview:hover,
.service-item:hover,
.team-member:hover {
    transform: translateY(-12px) rotateX(1deg) scale(1.02);
    box-shadow: 0 28px 60px rgba(10, 30, 60, 0.22);
}

/* Sheen effect */
.article-preview::before,
.service-item::before,
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg) translateX(0);
    transition: transform 0.9s ease;
    pointer-events: none;
    opacity: 0.7;
}

.article-preview:hover::before,
.service-item:hover::before,
.team-member:hover::before {
    transform: translateX(180%) skewX(-20deg);
}

.latest-articles .preview-image {
    height: 160px !important;
    aspect-ratio: auto !important;
    overflow: hidden;
    position: relative;
    background: var(--paper) !important;
    border-bottom: 1px solid rgba(7,11,22,0.04);
}

.latest-articles .preview-image img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.4s ease;
    background: var(--paper);
}

.preview-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    color: var(--modern-gold);
    font-size: 3.5rem;
    opacity: 0.6;
}

.article-preview:hover .preview-image img {
    transform: scale(1.08);
}

.latest-articles .preview-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.latest-articles .preview-content time {
    color: var(--modern-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.article-preview h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--modern-navy);
    line-height: 1.4;
    transition: color 0.3s;
    margin-top: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-preview h3 a {
    color: inherit;
    text-decoration: none;
}

.article-preview h3 a:hover {
    color: var(--modern-gold);
}

.article-preview > .preview-content > p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex-grow: 1;
    font-weight: 500;
}

.article-preview .read-more {
    color: #f0d14e !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    padding: 8px 0;
    letter-spacing: 0.3px;
}

.article-preview .read-more:hover {
    color: var(--modern-navy);
    gap: 0.75rem;
    transform: translateX(2px);
}

.article-preview .read-more i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-preview:hover .read-more i {
    transform: translateX(4px);
}

/* Normalize other card types to match Articles layout and improve home hover */
.service-item, .team-member, .case-item, .article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: white;
    border-radius: 14px;
}

.service-item .preview-image, .team-member .preview-image, .case-item .preview-image, .article-card .preview-image {
    height: 160px !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--paper) !important;
    border-bottom: 1px solid rgba(7,11,22,0.04);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-item img, .team-member img, .case-item img, .article-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.4s ease;
    display: block;
}

/* Ensure any icon/SVG placed in the preview area scales to fit without being cropped */
.service-item .preview-image i,
.service-item .preview-image svg,
.service-item .preview-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.service-item:hover img, .team-member:hover img, .case-item:hover img, .article-card:hover img {
    transform: scale(1.06) rotateZ(-0.3deg);
    filter: saturate(1.04) contrast(1.02);
}

.service-item .card-content, .team-member .card-content, .case-item .card-content, .article-card .card-content {
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Ensure card content is left-aligned for consistent layout */
.card-content, .preview-content {
    text-align: center;
}

/* Left-align smaller card-like blocks used on the homepage */
.why-item,
.why-item h3,
.why-item p,
.about-copy,
.home-about-band .about-copy p {
    text-align: left;
}

/* Match About and Article pages to team alignment (left) */
.page-about .card-content,
.page-about .preview-content,
.page-about .about-copy,
.page-about .mission-vision-grid article,
.page-about .team-grid article,
.page-about .about-feature .about-copy {
    text-align: left;
}

.page-article .article-body,
.page-article .preview-content,
.page-article .card-content,
.page-article .related-articles .article-preview .preview-content {
    text-align: left;
}

/* Center article body text for improved reading on article pages */
.page-article .article-body {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.page-article .article-body p,
.page-article .comment-text {
    text-align: center;
}

/* Beautified comment cards for article pages */
.page-article .comment-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}


.page-article .comment-item {
    background: var(--surface);
    border: 1px solid rgba(13,54,24,0.06);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* stack meta above comment */
    gap: 0.75rem;
    align-items: stretch;
    box-shadow: 0 6px 18px rgba(13,54,24,0.04);
}

.page-article .comment-meta {
    display: block;
    margin-bottom: 12px;
    color: #626a78;
    font-size: 0.92rem;
}

.page-article .comment-meta .comment-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-article .comment-meta .comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--teal);
    flex: 0 0 auto;
}
.page-article .comment-meta strong {
    font-size: 1rem;
    color: var(--ink);
}

.page-article .comment-meta .comment-email,
.page-article .comment-meta .comment-date {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
    margin-top: 6px;
}

.page-article .comment-meta .comment-date {
    font-size: 0.85rem;
    color: #8a9198;
}

.page-article .comment-text {
    text-align: left;
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 0.25rem;
}

@media (max-width: 700px) {
    .page-article .comment-item {
        flex-direction: column;
    }
    .page-article .comment-meta {
        display: block;
    }
    .page-article .comment-meta strong { font-size: 1rem; }
}

/* Make home hero use same color as page header */
.home-hero {
    background: linear-gradient(135deg, #fff8e1 0%, #ffd54f 100%) !important; /* warm yellow */
    color: #0d3618;
}

/* Ensure hero buttons remain visible on yellow background */
.home-hero .cta-button {
    background: #0d3618;
    color: #fff;
}
.home-hero .cta-button:hover {
    background: #ffc107;
    color: #0d3618;
}

/* Remove underlines for breadcrumbs and card links and use hover interactions */
.page-header .breadcrumb a,
.breadcrumb a,
.article-preview h3 a,
.article-preview .read-more,
.service-item .link,
.team-member a,
.case-content h3 a {
    text-decoration: none;
    border-bottom: 0;
    transition: color 180ms ease, transform 180ms ease;
}

.article-preview h3 a:hover,
.article-preview .read-more:hover,
.service-item .link:hover,
.breadcrumb a:hover,
.team-member a:hover,
.case-content h3 a:hover {
    color: var(--teal);
    transform: translateY(-3px);
}

/* Ensure images center on centered pages */
.page-about .preview-image img,
.page-article .preview-image img {
    margin: 0 auto;
}

/* Ensure hover sheen and transform match article previews */
.service-item:hover, .team-member:hover, .case-item:hover, .article-card:hover {
    transform: translateY(-12px) rotateX(1deg) scale(1.02);
    box-shadow: 0 28px 60px rgba(10, 30, 60, 0.22);
    border-color: rgba(212, 175, 55, 0.2) !important;
}


/* Unified card border and stronger hover border */
.article-preview, .service-item, .team-member, .service-full-item, .case-item, .article-card {
    border: 2px solid rgba(15,39,66,0.08) !important;
    border-left: 6px solid rgba(27,94,32,0.9) !important;
    transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.article-preview:hover, .service-item:hover, .team-member:hover, .service-full-item:hover, .case-item:hover, .article-card:hover {
    border-color: rgba(27,94,32,0.16) !important;
    border-left-color: rgba(212,175,55,1) !important;
    box-shadow: 0 26px 60px rgba(10,30,60,0.18) !important;
    transform: translateY(-8px) !important;
}

.latest-articles .center-link {
    margin-top: 2rem;
    text-align: center;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1b5e20 0%, #0d3618 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 3px solid #ffc107;
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--teal) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Center breadcrumb text and highlight the Home link in yellow */
.page-header .breadcrumb {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
}
.page-header .breadcrumb a {
    color: #ffd54f; /* warm yellow for Home link */
    text-decoration: none;
}
.page-header .breadcrumb a:hover {
    color: #fff; /* keep hover visible on dark header */
    text-decoration: underline;
}

/* Ensure the page title itself is centered (Articles heading) */
.page-header h1,
.modern-page-header h1 {
    text-align: center;
}

/* Center the About page subtitle (e.g., "Barristers, Solicitors, Consultants & Notary Public") */
.page-about .page-header > .container > p {
    text-align: center;
    margin-top: 8px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* Ensure breadcrumb and card "Home" links are highlighted site-wide */
.breadcrumb a[href="index.php"],
.page-header .breadcrumb a[href="index.php"] {
    color: #ffd54f !important;
    transition: color 180ms ease, transform 180ms ease;
}
.breadcrumb a[href="index.php"]:hover,
.page-header .breadcrumb a[href="index.php"]:hover {
    color: var(--modern-gold) !important;
    text-decoration: none !important;
    transform: translateY(-3px);
}

/* Make "Home" links inside article list/cards yellow */
.articles-container a[href="index.php"],
.article-preview a[href="index.php"] {
    color: #ffd54f !important;
}
.articles-container a[href="index.php"]:hover,
.article-preview a[href="index.php"]:hover {
    color: var(--modern-gold) !important;
    text-decoration: none !important;
    transform: translateY(-3px);
}

/* Services Full */
.services-full {
    padding: 20px 20px;
    background: var(--paper);
}

.services-list {
    display: grid;
    gap: 2rem;
}

/* Ensure practice-band uses the exact same card sizing as services page */
.practice-band .services-list,
.practice-band .services-full .services-list,
.practice-band .services-full {
    /* inherit grid behavior from services */
    display: grid;
    gap: 2.5rem;
}

/* Add spacing between the practice heading and the cards so the first card sits lower */
.practice-band .practice-directory-grid {
    margin-top: 22px;
}

@media (max-width: 700px) {
    .practice-band .practice-directory-grid { margin-top: 12px; }
}

.practice-band .service-full-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(13,54,24,0.06);
    background: var(--surface);
    height: 100%;
    box-sizing: border-box;
}

.practice-band .service-full-item .preview-image {
    height: 140px;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .practice-band .service-full-item .preview-image { height: 160px; }
}

/* Strong overrides so practice-band cards match services page exactly */
.practice-band .services-list {
    display: grid !important;
    gap: 2rem !important;
}

.practice-band .service-full-item {
    max-height: 420px !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(13,54,24,0.06) !important;
    background: var(--surface) !important;
}

.practice-band .service-full-item .preview-image {
    height: 180px !important;
    min-height: 140px !important;
}

@media (min-width: 1024px) {
    .practice-band .services-list { grid-template-columns: repeat(3, 1fr) !important; }
}

.service-full-item:not(.service-item) {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-full-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.placeholder-image-large {
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    min-height: 300px;
    color: #ffc107;
}

.service-icon-large {
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
    min-height: 0;
    height: 100%;
    color: #ffc107;
}

/* Ensure icons in the practice-band fit their preview area */
.practice-band .service-icon-large {
    font-size: 3rem !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
}


/* Make practice-band preview match Services page preview styling */
.practice-band .service-full-item {
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    background: var(--surface) !important;
}

.practice-band .service-full-item .preview-image {
    width: 100% !important;
    height: 140px !important;
    min-height: 140px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%) !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.practice-band .service-full-item .service-icon-large {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%) !important;
}

.practice-band .service-full-item .service-icon-large i {
    font-size: 3.6rem !important;
    color: #ffc107 !important;
    line-height: 1 !important;
}

.service-full-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    padding: 2rem;
}

.service-details h3 {
    margin-bottom: 1rem;
    color: var(--teal);
}

.service-details p {
    color: var(--muted);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 20px 20px;
    background: var(--paper);
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--teal);
}

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

.team-member {
    background: transparent;
    padding: 0.5rem 0;
    border-radius: 0 !important;
    text-align: left;
    box-shadow: none !important;
    transition: none !important;
    border: none !important;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.team-section .team-member:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    display: block;
}

/* Ensure the card content for team members uses consistent left alignment */
.team-member .card-content {
    text-align: left;
}

/* Team preview image and avatar: centered circular avatar with subtle shadow */
.team-section .team-member .card-content { text-align: left !important; }
.team-section .team-member .preview-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-bottom: none;
}
.team-section .team-member .preview-image img,
.team-section .team-member .preview-image i,
.team-section .team-member .preview-image svg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(10,30,60,0.08);
    display: block;
    margin: 0 auto;
}
.team-member .card-content h3 { margin: 0; margin-bottom: 0.25rem; }
.team-member .position { margin: 0 0 0.5rem 0; }

/* Remove extra padding inside card content for a compact, list-like layout */
.team-section .team-member .card-content { padding: 0; }

/* Overlay inside the image with member name and position */
.team-member .preview-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.6) 100%);
    color: #fff;
    text-align: center;
}
.team-member .preview-overlay h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.team-member .preview-overlay .position { margin: 4px 0 0 0; color: rgba(255,255,255,0.85); font-weight: 600; }

/* Make preview-image positioned relative so overlay can sit inside */
.team-member .preview-image { position: relative; }
.team-section .placeholder-avatar i { font-size: 3.5rem !important; }

.placeholder-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 0 1rem 0;
    color: #ffc107;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: var(--teal);
}

.team-member .position {
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-member .specialties {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-member a {
    color: var(--teal);
    text-decoration: none;
    font-weight: bold;
}

/* Cases Section */
.cases-section {
    padding: 60px 20px;
    background: var(--paper);
}

.cases-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--teal);
}

.cases-list {
    display: grid;
    gap: 2rem;
}

.case-item:not(.article-card) {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 54, 24, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(13, 54, 24, 0.06);
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 54, 24, 0.15);
    border-color: #ffc107;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    margin-bottom: 1rem;
    color: var(--teal);
}

.case-content p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.case-content .outcome {
    color: #ffc107;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    padding: 20px 20px;
    background: var(--paper);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form h2 {
    margin-bottom: 2rem;
    color: var(--teal);
}

.form-group {
    margin-bottom: 1.5rem;
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--teal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 5px rgba(30, 58, 95, 0.3);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

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

.btn-primary:hover {
    background: var(--copper);
    transform: translateY(-2px);
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--teal);
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--copper);
}

.info-item p {
    color: var(--muted);
    line-height: 1.8;
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0d3618 0%, #1b5e20 100%);
    color: white;
    padding: 60px 20px 30px;
}

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

.footer-section h4 {
    margin-bottom: 1.2rem;
    color: #ffc107;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: color 220ms ease, transform 180ms ease;
}

.footer-section ul li a:hover {
    color: #ffd54f;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.footer-bottom a {
    color: #ffc107;
    text-decoration: none;
    display: inline-block;
    transition: color 220ms ease, transform 180ms ease;
}

.footer-bottom a:hover {
    color: #ffd54f;
    transform: translateY(-2px);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.social-links a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.social-links a:hover {
    transform: scale(1.08) translateY(-3px);
    background: rgba(255,197,79,0.12);
    color: #ffd54f;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    color: var(--copper);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

/* Keep social icons in their brand colors */
.social-links a i.fab.fa-facebook-f,
.top-social-links a i.fab.fa-facebook-f { color: #1877F2 !important; }
.social-links a i.fab.fa-instagram,
.top-social-links a i.fab.fa-instagram { color: #E1306C !important; }
.social-links a i.fab.fa-linkedin-in,
.top-social-links a i.fab.fa-linkedin-in { color: #0A66C2 !important; }
.social-links a i.fab.fa-x-twitter,
.top-social-links a i.fab.fa-x-twitter,
.top-social-links a .social-x-icon,
.social-links a .social-x-icon { color: #1DA1F2 !important; }
.social-links a i.fab.fa-youtube,
.top-social-links a i.fab.fa-youtube { color: #FF0000 !important; }
.social-links a i.fab.fa-tiktok,
.top-social-links a i.fab.fa-tiktok { color: #69C9D0 !important; }
.social-links a i.fab.fa-whatsapp,
.top-social-links a i.fab.fa-whatsapp { color: #25D366 !important; }

/* Ensure the round container stays subtle while icon shows brand color */
.social-links a, .top-social-links a {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.top-social-links a:hover, .social-links a:hover {
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.url-input-wrapper {
    position: relative;
    display: block;
}

.url-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
        color: #d4af37;
        pointer-events: none;
    }

    .url-input-wrapper input {
        padding-left: 36px;
    }

    .logo-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        color: #d4af37;
        font-size: 2rem;
    }

    .law-icon {
        color: #d4af37;
    font-weight: 800;
    line-height: 1;
}

/* About Section */
.about-section {
    padding: 60px 20px;
    background: var(--paper);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--teal);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--teal);
}

.about-content p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-content ul {
    margin-left: 2rem;
    color: var(--muted);
}

.about-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

/* Responsive */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation - Sidebar */
    .nav-links {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        height: auto;
        background: #ffffff !important;
        flex-direction: row;
        gap: 0;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: none;
        z-index: 99;
        list-style: none;
        overflow-y: visible;
        flex-wrap: wrap;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        left: auto;
    }

    .nav-links a {
        display: inline-block;
        padding: 1rem 1.5rem;
        border-bottom: none;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
        color: #0d3618;
        text-decoration: none;
        transition: background 0.2s ease;
        font-weight: 500;
        white-space: nowrap;
    }

    .nav-links a:last-child {
        border-right: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(27, 94, 32, 0.08);
        padding-left: 1.5rem;
        color: #1b5e20;
    }

    .submenu {
        position: absolute;
        display: none;
        min-width: 0;
        padding: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .submenu a {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        color: #424242;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    /* Overlay when menu is open */
    html.menu-open,
    body.menu-open {
        overflow: auto !important;
        height: auto !important;
        width: auto !important;
        position: static;
        inset: auto;
    }

    body.menu-open::before {
        content: none;
        display: none;
    }

    /* Carousel */
    .carousel-container {
        height: 300px;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 60px 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Grids */
    .services-grid,
    .team-grid,
    .carousel-item {
        grid-template-columns: 1fr;
    }

    .service-full-item,
    .case-item,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .service-full-item img,
    .case-item img {
        height: auto;
        min-height: 250px;
    }

    .contact-form,
    .contact-info {
        order: 1;
    }

    /* Page Header */
    .page-header {
        background: linear-gradient(135deg, var(--charcoal) 0%, var(--teal) 100%);
        color: white;
        padding: 20px 20px;
        text-align: center;
        margin-top: 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    /* Services Preview */
    .services-preview {
        padding: 10px 15px;
    }

    .services-preview h2 {
        font-size: 1.5rem;
    }

    /* Team Section */
    .team-section {
        padding: 10px 15px;
    }

    .team-member {
        padding: 1.5rem;
    }

    .team-member img,
    .placeholder-avatar {
        width: 120px;
        height: 120px;
    }

    /* Cases Section */
    .cases-section {
        padding: 40px 15px;
    }

    /* Contact */
    .contact-section {
        padding: 10px 15px;
    }

    /* Buttons */
    .cta-button,
    .cta-button-dark,
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 10px;
    }

    /* About Section */
    .about-section {
        padding: 40px 15px;
    }

    .about-content {
        margin-top: 1.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        padding: 40px 10px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* Page Header */
    .page-header {
        padding: 30px 10px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    /* Carousel */
    .carousel-container {
        height: 200px;
    }

    .carousel-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .carousel-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .carousel-control {
        padding: 10px 15px;
        font-size: 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 30px 10px;
    }

    .cta-section h2 {
        font-size: 1.3rem;
    }

    /* Services Preview */
    .services-preview {
        padding: 30px 10px;
    }

    .services-preview h2 {
        font-size: 1.3rem;
    }

    .service-item {
        padding: 1.2rem;
    }

    .placeholder-image {
        height: 150px;
        font-size: 2rem;
    }

    /* Team Section */
    .team-section {
        padding: 30px 10px;
    }

    .team-member {
        padding: 1rem;
    }

    .placeholder-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    /* Cases Section */
    .cases-section {
        padding: 30px 10px;
    }

    /* Footer */
    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    /* Forms */
    .contact-form,
    .form-container {
        padding: 1rem;
    }

    .cta-button,
    .cta-button-dark,
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
    }

    /* Contact Info */
    .contact-info {
        padding: 1rem;
    }

    /* About */
    .about-section {
        padding: 30px 10px;
    }

    .about-content ul li {
        margin-bottom: 0.6rem;
    }
}

/* Desktop (769px and above) */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }

    .menu-toggle {
        display: none !important;
    }

    /* Show 3 service cards per row on desktop and allow them to grow */
    .services-grid {
        grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
        gap: 2rem;
    }
}

.service-item:hover,
.service-full-item:hover,
.team-member:hover,
.case-item:hover,
.article-card:hover,
.article-preview:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 42px rgba(15, 39, 66, 0.12) !important;
}

.service-item h3,
.service-details h3,
.team-member h3,
.case-content h3,
.article-content h2,
.article-preview h3 {
    color: var(--ink) !important;
    font-family: Georgia, 'Times New Roman', serif;
}

.service-item p,
.service-details p,
.team-member p,
.case-content p,
.article-content p,
.info-item p,
.about-content p,
.about-content ul {
    color: var(--muted) !important;
}

.service-item .link,
.view-all,
.team-member a,
.read-more,
.article-content h2 a:hover,
.article-preview h3 a:hover,
.back-link,
.case-content .outcome,
.info-item h4,
.about-content h3,
.footer-section h4,
.footer-bottom a {
    color: var(--gold) !important;
}

.page-header,
.cta-section {
    border-bottom: 3px solid var(--gold);
}

.page-header p,
.cta-section p {
    color: rgba(255, 255, 255, 0.84);
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid var(--line);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 137, 53, 0.18);
}

.footer {
    background: #101827;
    border-top: 4px solid var(--gold);
}

.footer-section p,
.footer-section ul li a {
    color: #ffffff;
}

.footer-section ul li a:hover {
    color: var(--gold-soft) !important;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

@media (max-width: 768px) {
    .carousel-container {
        height: 380px !important;
    }

    .carousel-content {
        width: 88% !important;
        text-align: center !important;
    }

    .carousel-content h2 {
        font-size: 2rem !important;
    }
}

/* Contact page refinement */
.contact-section {
    position: relative;
    background:
        linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(245, 247, 250, 1)),
        radial-gradient(circle at top left, rgba(184, 137, 53, 0.14), transparent 34%) !important;
}

.contact-content {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.contact-form,
.contact-info {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.contact-form::before,
.contact-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.contact-section-heading {
    margin-bottom: 24px;
}

.section-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.15;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form .form-group label {
    color: var(--ink);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    min-height: 48px;
    padding: 13px 14px;
    background: #fbfcfe;
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
}

.contact-form .form-group textarea {
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.contact-form .btn {
    width: auto;
    min-width: 180px;
    padding: 13px 24px;
}

.contact-info {
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%) !important;
}

.info-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    margin-bottom: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.info-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
}

.info-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: rgba(184, 137, 53, 0.12);
    color: var(--gold);
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 4px;
    color: var(--ink) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

.info-item p {
    margin: 0;
    line-height: 1.7;
}

.info-item a {
    color: var(--muted);
    text-decoration: none;
}

.info-item a:hover {
    color: var(--gold);
}

.office-map {
    margin-top: 32px;
    padding: 34px;
    background: var(--surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(14px);
}

.map-frame {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(35, 52, 71, 0.12);
    border-radius: 8px;
    background: #e8edf3;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.map-link:hover {
    color: var(--copper);
}

.custom-page-section {
    padding: 60px 20px;
}

.custom-page-content,
.custom-media-block {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    box-shadow: var(--shadow-3d);
    padding: 34px;
    margin-bottom: 26px;
    color: var(--muted);
    line-height: 1.85;
}

.custom-page-wide .container {
    max-width: 1320px;
}

.custom-page-document_center .custom-page-content,
.custom-page-video_focus .custom-page-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.custom-media-block h2 {
    margin-bottom: 18px;
    color: var(--charcoal);
}

.attachment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.attachment-item,
.media-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(35, 52, 71, 0.12);
    border-radius: 8px;
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
}

.attachment-item:hover,
.media-link:hover {
    color: var(--copper);
    border-color: rgba(196, 138, 58, 0.32);
}

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

.video-grid video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #101721;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-form,
    .contact-info,
    .office-map {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form h2,
    .contact-info h2 {
        font-size: 1.55rem;
    }

    .contact-form .btn {
        width: 100%;
    }

    .info-item {
        grid-template-columns: 38px 1fr;
        gap: 12px;
    }

    .info-icon {
        width: 38px;
        height: 38px;
    }

    .map-frame,
    .map-frame iframe {
        min-height: 280px;
        height: 280px;
    }
}

@media (max-width: 1024px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero {
        padding: 80px 18px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .carousel-container {
        height: 420px;
    }

    .services-preview,
    .latest-articles,
    .cta-section,
    .page-header,
    .contact-section,
    .about-section,
    .cases-section,
    .team-section,
    .custom-page-section {
        padding: 50px 18px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .service-full-item,
    .case-item,
    .contact-content,
    .team-grid,
    .custom-page-content,
    .custom-media-block {
        grid-template-columns: 1fr;
    }

    .team-member img,
    .placeholder-avatar {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 320px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .carousel-content h2 {
        font-size: 1.6rem;
    }

    .cta-button,
    .view-all,
    .btn,
    .cta-button-dark {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .team-member img,
    .placeholder-avatar {
        width: 130px;
        height: 130px;
    }

    .map-frame iframe {
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .service-item,
    .article-preview,
    .team-member,
    .case-item {
        padding: 1rem;
    }

    .hero {
        padding: 50px 14px;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .footer {
        padding: 40px 15px 20px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Professional card image treatment */
.service-item,
.service-full-item,
.team-member,
.case-item,
.article-card,
.article-preview {
    overflow: hidden;
}

.service-item img,
.service-full-item img,
.case-item img,
.article-image img,
.preview-image img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    background: #e8edf3;
}

.service-item img {
    aspect-ratio: 16 / 10;
    height: auto !important;
    margin-bottom: 1.15rem;
}

.article-image,
.preview-image {
    aspect-ratio: 16 / 10;
    height: auto !important;
    background: #e8edf3;
}

.article-image img,
.preview-image img {
    height: 100% !important;
}

.service-full-item,
.case-item {
    align-items: stretch;
}

.service-full-item img,
.case-item img {
    height: 100% !important;
    min-height: 320px;
    max-height: 420px;
}

.team-member img {
    display: block;
    width: 156px;
    height: 156px;
    padding: 4px;
    background: var(--paper);
    border: 2px solid rgba(184, 137, 53, 0.36);
    box-shadow: 0 12px 24px rgba(15, 39, 66, 0.12);
}

@media (max-width: 768px) {
    .service-full-item img,
    .case-item img {
        aspect-ratio: 16 / 10;
        min-height: 0;
        max-height: none;
    }
}

/* Modern 3D refresh */
:root {
    --charcoal: #5a97ff;
    --steel: #233447;
    --teal: #5a97ff;
    --copper: #b08d57;
    --champagne: #f6efe3;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #fffaf0;
    --shadow-3d: 0 28px 65px rgba(18, 24, 33, 0.18);
    --shadow-3d-hover: 0 36px 82px rgba(18, 24, 33, 0.24);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 8% 12%, rgba(23, 139, 143, 0.12), transparent 28rem),
        radial-gradient(circle at 92% 22%, rgba(196, 138, 58, 0.14), transparent 24rem),
        linear-gradient(180deg, #fbfcfe 0%, #f2f5f8 52%, #ffffff 100%);
    color: var(--charcoal);
    font-family: Inter, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background: rgba(18, 24, 33, 0.82) !important;
    border-bottom: 1px solid rgba(246, 239, 227, 0.14);
    box-shadow: 0 18px 42px rgba(18, 24, 33, 0.2);
    backdrop-filter: blur(18px);
}

.logo,
.carousel-content h2,
.page-header h1,
.hero-content h1,
.services-preview h2,
.contact-form h2,
.contact-info h2,
.related-articles h2,
.quick-actions h2,
.recent-section h2,
.about-content h2,
.service-item h3,
.service-details h3,
.team-member h3,
.case-content h3,
.article-content h2,
.article-preview h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.logo:has(.site-logo-img)::before {
    display: none;
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--copper));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.carousel-section,
.carousel-container {
    background: #101721 !important;
}

.carousel-container {
    height: min(78vh, 680px) !important;
    min-height: 560px;
    perspective: 1200px;
}

.carousel-slide {
    isolation: isolate;
}

.fallback-hero .carousel-slide {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.75)) !important;
}

.carousel-slide.no-slide-image {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.75)) !important;
}

.carousel-slide::before,
.page-header::before,
.cta-section::before {
    display: none !important;
}

.carousel-overlay {
    background: rgba(0, 0, 0, 0.65) !important;
}

.carousel-content {
    z-index: 3;
    perspective: 1200px;
}

.hero-copy {
    max-width: 680px;
    transform: translateZ(42px);
}

.carousel-content h2 {
    color: #ffffff;
    font-size: clamp(2.6rem, 6vw, 5.4rem) !important;
    letter-spacing: 0;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.carousel-content p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.05rem, 2vw, 1.45rem) !important;
    text-shadow: none;
}

.cta-button,
.cta-button-dark,
.btn-primary,
.cta-button:hover,
.cta-button-dark:hover,
.btn-primary:hover {
    filter: saturate(1.06);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 24px 46px rgba(196, 138, 58, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

.hero-3d {
    position: relative;
    min-height: 310px;
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-3d::before {
    content: "";
    position: absolute;
    inset: 16% 5% 0;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.34);
    transform: rotateY(-16deg) rotateX(9deg) translateZ(-42px);
}

.scale-stand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(340px, 80vw);
    height: 260px;
    transform: translate(-50%, -50%) rotateY(-18deg) rotateX(10deg);
    transform-style: preserve-3d;
}

.scale-beam,
.scale-post,
.scale-base,
.scale-chain,
.scale-pan {
    position: absolute;
    display: block;
}

.scale-beam {
    left: 15%;
    top: 62px;
    width: 70%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe2a4, #b7792c);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    transform: translateZ(64px) rotateZ(-5deg);
}

.scale-post {
    left: calc(50% - 8px);
    top: 72px;
    width: 16px;
    height: 138px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5b22, #ffd58b 52%, #9a6728);
    transform: translateZ(40px);
}

.scale-base {
    left: 29%;
    bottom: 20px;
    width: 42%;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f6c66f, #8c5b22);
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.38);
    transform: translateZ(52px) rotateX(72deg);
}

.scale-chain {
    top: 76px;
    width: 2px;
    height: 76px;
    background: linear-gradient(180deg, rgba(255, 232, 175, 0.9), rgba(174, 112, 36, 0.9));
    transform: translateZ(56px);
}

.scale-chain.left {
    left: 25%;
}

.scale-chain.right {
    right: 25%;
}

.scale-pan {
    top: 146px;
    width: 92px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 28%, #ffe7aa 0 22%, #c48a3a 58%, #7b4f1f 100%);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
    transform: translateZ(70px) rotateX(62deg);
}

.scale-pan.left {
    left: 11%;
}

.scale-pan.right {
    right: 11%;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    50% {
        transform: translateY(-14px) rotateZ(1.2deg);
    }
}

.page-header,
.cta-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(18, 24, 33, 0.98), rgba(35, 52, 71, 0.94) 58%, rgba(23, 139, 143, 0.82)) !important;
    border-bottom: 0;
}

.page-header .container,
.cta-section .container {
    position: relative;
    z-index: 2;
}

.page-header {
    padding: 82px 20px !important;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    letter-spacing: 0;
}

.page-header p,
.cta-section p {
    color: rgba(255, 255, 255, 0.78);
}

/* Breadcrumb in page header */
.page-header .breadcrumb {
    color: rgba(255,255,255,0.85);
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 10px;
}
.page-header .breadcrumb a,
.modern-page-header .breadcrumb a {
    color: #ffd54f !important; /* bright yellow for Home link */
    text-decoration: none;
    font-weight: 700;
}
.page-header .breadcrumb a:hover,
.modern-page-header .breadcrumb a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.services-preview,
.services-full,
.team-section,
/* Related Articles Section */
.related-articles {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.04) 0%, rgba(255, 193, 7, 0.02) 100%);
    padding: 80px 20px;
    margin-bottom: 0;
}

.related-articles h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #1b5e20;
    position: relative;
    padding-bottom: 20px;
}

.related-articles h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1b5e20, #ffc107, #1b5e20);
    border-radius: 2px;
}

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

.related-articles .article-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(27, 94, 32, 0.06);
}

.related-articles .article-preview:hover {
    box-shadow: 0 16px 32px rgba(27, 94, 32, 0.16);
    transform: translateY(-8px);
    border-color: #ffc107;
}

.related-articles .preview-image {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--paper);
    border-bottom: 1px solid rgba(7,11,22,0.04);
}

.related-articles .preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-articles .article-preview:hover .preview-image img {
    transform: scale(1.08);
}

.preview-image-placeholder {
    height: 160px;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(7,11,22,0.04);
}

.related-articles .preview-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-articles .article-preview h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1b5e20;
    line-height: 1.4;
    transition: color 0.3s;
}

.related-articles .article-preview h3 a {
    color: inherit;
    text-decoration: none;
}

.related-articles .article-preview h3 a:hover {
    color: #ffc107;
}

.related-articles .read-more {
    color: #f0d14e !important;
    text-decoration: none;
    font-weight: 700 !important;
    font-size: 1rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
    margin-top: auto;
}

.related-articles .read-more:hover {
    color: #f0d14e !important;
    gap: 0.75rem;
    transform: translateX(2px);
}

.related-articles .read-more i {
    transition: transform 0.3s;
}

.related-articles .article-preview:hover .read-more i {
    transform: translateX(3px);
}

.services-grid,
.team-grid,
.articles-container,
.services-list,
.cases-list,
.contact-content {
    perspective: 1200px;
}

.service-item,
.service-full-item,
.team-member,
.case-item,
.article-card,
.article-preview,
.contact-form,
.contact-info {
    background: var(--surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px !important;
    box-shadow: var(--shadow-3d) !important;
    backdrop-filter: blur(14px);
    transform-style: preserve-3d;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-item:hover,
.service-full-item:hover,
.team-member:hover,
.case-item:hover,
.article-card:hover,
.article-preview:hover,
.contact-form:hover,
.contact-info:hover {
    border-color: rgba(23, 139, 143, 0.28);
    box-shadow: var(--shadow-3d-hover) !important;
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
}

.service-item::before,
.team-member::before,
.article-card::before,
.contact-form::after,
.contact-info::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.44), transparent 38%);
    opacity: 0.75;
}

.service-item,
.team-member,
.article-card,
.contact-form,
.contact-info {
    position: relative;
}

.service-item img,
.service-full-item img,
.case-item img,
.article-image img,
.preview-image img,
.team-member img {
    filter: saturate(1.02) contrast(1.02);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.service-item:hover img,
.service-full-item:hover img,
.case-item:hover img,
.article-card:hover img,
.article-preview:hover img,
.team-member:hover img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.04);
}

.placeholder-image,
.placeholder-image-large,
.placeholder-avatar,
.info-icon {
    background: linear-gradient(145deg, rgba(23, 139, 143, 0.96), rgba(196, 138, 58, 0.9)) !important;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 18px 34px rgba(23, 139, 143, 0.2);
}

.service-item .link,
.team-member a,
.article-content h2 a:hover,
.article-preview h3 a:hover,
.back-link,
.case-content .outcome,
.info-item h4,
.about-content h3,
.footer-section h4,
.footer-bottom a {
    color: var(--teal) !important;
}

.view-all,
.read-more {
    color: var(--muted) !important;
    transition: color 0.2s;
}

.view-all:hover,
.read-more:hover {
    color: var(--teal) !important;
}

.contact-form,
.contact-info {
    overflow: hidden;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(35, 52, 71, 0.16);
    border-radius: 8px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(23, 139, 143, 0.16);
}

.footer {
    background:
        linear-gradient(135deg, #0e141d 0%, #172232 62%, #123d44 100%);
    border-top: 1px solid rgba(246, 239, 227, 0.16);
}

@media (max-width: 768px) {
    .nav-links {
        background: rgba(18, 24, 33, 0.96) !important;
        backdrop-filter: blur(18px);
    }

    .carousel-container {
        min-height: 460px;
        height: 460px !important;
    }

    .carousel-content {
        width: min(90%, 560px) !important;
    }

    .hero-copy {
        transform: none;
    }

    .carousel-content h2 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
    }

    .hero-3d {
        min-height: 140px;
        transform: scale(0.72);
        transform-origin: center;
    }

    .carousel-control {
        display: none;
    }

    .service-item:hover,
    .service-full-item:hover,
    .team-member:hover,
    .case-item:hover,
    .article-card:hover,
    .article-preview:hover,
    .contact-form:hover,
    .contact-info:hover {
        transform: translateY(-5px);
    }
}

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

.hero-copy {
    max-width: 760px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Clean menu: keep every link readable without a rectangular backing shape */
.navbar .nav-links {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.nav-links a {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: #d4af37 !important;
}

@media (max-width: 768px) {
    .related-articles {
        padding: 60px 20px;
    }

    .related-articles h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .related-articles .articles-grid {
        gap: 2rem;
    }
}

/* Four-column content rows on desktop */
.services-grid,
.articles-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
}

.latest-articles .articles-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px;
}

.services-list,
.cases-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px;
}

.service-full-item,
.case-item {
    display: flex !important;
    flex-direction: column;
}

.service-full-item img,
.case-item img,
.placeholder-image-large {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
}

.service-details,
.case-content,
.article-content,
.preview-content {
    padding: 22px;
}

@media (max-width: 1040px) {
    .related-articles .articles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .services-grid,
    .articles-container,
    .related-articles .articles-grid,
    .team-grid,
    .services-list,
    .cases-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .services-grid,
    .articles-container,
    .related-articles .articles-grid,
    .team-grid,
    .services-list,
    .cases-list {
        grid-template-columns: 1fr !important;
    }
}

/* Professional finish: quiet buttons and stable content cards */
.cta-button,
.cta-button-dark,
.btn,
.btn-primary,
.view-all,
.read-more,
.action-btn,
.carousel-control {
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease !important;
}

.cta-button:hover,
.cta-button-dark:hover,
.btn:hover,
.btn-primary:hover,
.view-all:hover,
.read-more:hover,
.action-btn:hover,
.carousel-control:hover {
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
}

.service-item,
.service-full-item,
.team-member,
.case-item,
.article-card,
.article-preview,
.contact-form,
.contact-info,
.custom-page-content,
.custom-media-block,
.office-map {
    border: 0 !important;
    box-shadow: 0 14px 34px rgba(24, 35, 38, 0.08) !important;
    transform: none !important;
    transition: box-shadow 0.18s ease, background-color 0.18s ease !important;
}

.service-item:hover,
.service-full-item:hover,
.team-member:hover,
.case-item:hover,
.article-card:hover,
.article-preview:hover,
.contact-form:hover,
.contact-info:hover,
.custom-page-content:hover,
.custom-media-block:hover,
.office-map:hover {
    border: 0 !important;
    box-shadow: 0 16px 38px rgba(24, 35, 38, 0.1) !important;
    transform: none !important;
}

.service-item::before,
.team-member::before,
.article-card::before,
.contact-form::after,
.contact-info::after,
.carousel-slide::before,
.page-header::before,
.cta-section::before {
    display: none !important;
}

.service-item:hover img,
.service-full-item:hover img,
.case-item:hover img,
.article-card:hover img,
.article-preview:hover img,
.team-member:hover img {
    transform: none !important;
    filter: none !important;
}

.navbar {
    box-shadow: 0 8px 22px rgba(24, 35, 38, 0.12) !important;
}

.footer {
    border-top: 0 !important;
}

/* Premier Law Consult identity update */
:root {
    --premier-navy: #020842;
    --premier-gold: #b4842b;
    --premier-ink: #070b2f;
    --premier-paper: #f7f7f5;
}

body {
    background: var(--premier-paper) !important;
}

.site-contact-bar {
    background: var(--premier-navy);
    color: #ffffff;
    border-top: 8px solid var(--premier-gold);
    font-weight: 700;
    letter-spacing: 0;
    transition: background 0.25s ease, transform 0.2s ease;
}

.site-contact-bar .container {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-contact-bar span,
.site-contact-bar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-contact-bar i {
    color: var(--premier-gold);
}

.navbar {
    position: sticky;
    top: 0;
    background: #ffffff !important;
    border-bottom: 3px solid var(--premier-navy) !important;
    box-shadow: 0 8px 22px rgba(2, 8, 66, 0.08) !important;
    padding: 0.45rem 0 !important;
}

.navbar .container {
    min-height: 82px;
}

.logo {
    color: var(--premier-navy) !important;
    min-width: 0;
}

.site-logo-img {
    width: min(640px, 48vw) !important;
    max-width: 640px !important;
    height: auto !important;
    max-height: 78px !important;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    gap: 1.35rem;
    align-items: center;
}

.nav-links a,
.menu-toggle {
    color: var(--premier-navy) !important;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--premier-gold) !important;
}

.carousel-overlay {
    background: rgba(2, 8, 66, 0.62) !important;
}

.carousel-content h2,
.page-header h1,
.services-preview h2,
.latest-articles h2,
.contact-form h2,
.contact-info h2,
.about-content h2 {
    color: var(--premier-navy) !important;
}

.carousel-content h2,
.carousel-content p {
    color: #ffffff !important;
}

.cta-button,
.cta-button-dark,
.btn-primary {
    background: var(--premier-gold) !important;
    color: var(--premier-navy) !important;
    font-weight: 800;
}

.view-all,
.read-more {
    background: var(--premier-navy) !important;
    color: #ffffff !important;
}

.service-item h3,
.service-details h3,
.team-member h3,
.case-content h3,
.article-preview h3,
.info-item h4 {
    color: var(--premier-navy) !important;
}

.service-item .link,
.article-preview .read-more,
.map-link {
    color: var(--premier-navy) !important;
}

.page-header,
.cta-section,
.footer {
    background: var(--premier-navy) !important;
}

.page-header h1,
.page-header p,
.cta-section h2,
.cta-section p {
    color: #ffffff !important;
}

.footer {
    border-top: 8px solid var(--premier-gold) !important;
}

.footer-section h4,
.footer-bottom a {
    color: var(--premier-gold) !important;
}

@media (max-width: 1040px) {
    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .logo {
        max-width: min(62vw, 280px);
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .menu-toggle {
        display: block;
        color: var(--premier-navy) !important;
        font-size: 1.75rem;
        background: transparent;
        border: none;
        padding: 0.35rem;
        z-index: 102;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 4rem 0 2rem 0;
        background: #ffffff !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
        transition: left 0.3s ease-in-out;
        z-index: 99;
        list-style: none;
        overflow-y: auto;
        margin: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        color: #0d3618 !important;
        text-decoration: none;
        transition: background 0.2s ease;
        font-weight: 500;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(27, 94, 32, 0.08);
        padding-left: 2rem;
        color: #1b5e20 !important;
    }

    .submenu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .submenu a {
        padding: 0.8rem 1.5rem 0.8rem 3rem;
        font-size: 0.9rem;
        color: #424242 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    html.menu-open,
    body.menu-open {
        overflow: hidden !important;
        height: 100% !important;
        width: 100% !important;
        position: fixed;
        inset: 0;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
}

@media (max-width: 1200px) {
    .menu-toggle {
        display: block !important;
        color: var(--premier-navy) !important;
        position: relative;
        z-index: 105;
    }

    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        max-width: 360px;
        height: 100vh;
        flex-direction: column;
        gap: 0;
        padding: 4rem 0 2rem 0;
        background: #ffffff !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
        transition: left 0.3s ease-in-out;
        z-index: 99;
        list-style: none;
        overflow-y: auto;
        margin: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        color: #0d3618 !important;
        text-decoration: none;
        transition: background 0.2s ease;
        font-weight: 500;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(27, 94, 32, 0.08);
        padding-left: 2rem;
        color: #1b5e20 !important;
    }

    .submenu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
        background: transparent !important;
        box-shadow: none;
    }

    .submenu a {
        padding: 0.8rem 1.5rem 0.8rem 3rem;
        font-size: 0.9rem;
        color: #424242 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    html.menu-open,
    body.menu-open {
        overflow: hidden !important;
        height: 100% !important;
        width: 100% !important;
        position: fixed;
        inset: 0;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
}

@media (max-width: 980px) {
    .navbar .container {
        min-height: 70px;
    }

    .site-logo-img {
        width: min(430px, 74vw) !important;
        max-height: 62px !important;
    }
}

@media (max-width: 768px) {
    .site-contact-bar .container {
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }

    .top-contact-line {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        display: flex !important;
        flex-wrap: wrap !important;
        min-width: 0 !important;
        row-gap: 4px !important;
    }

    .top-social-links {
        width: 100%;
        max-width: 260px;
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .top-contact-line a,
    .top-contact-divider {
        font-size: 0.86rem;
        line-height: 1.35;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    .navbar .nav-links {
        background: #ffffff !important;
        border-top: 1px solid rgba(2, 8, 66, 0.12) !important;
    }
}

/* Modern reference refresh */
:root {
    --modern-ink: #050812;
    --modern-navy: #07112a;
    --modern-blueblack: #0b1c36;
    --modern-gold: #b4842b;
    --modern-soft: #f6f3ed;
    --modern-line: rgba(7, 17, 42, 0.12);
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--modern-soft) !important;
    color: #303642;
}

.site-contact-bar {
    background: var(--modern-ink) !important;
    border: 0 !important;
}

.site-contact-bar .container {
    min-height: 44px;
    min-width: 0;
    justify-content: space-between;
    font-weight: 600;
    gap: 18px;
}

.top-contact-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.top-social-links {
    min-width: 0;
}

..top-contact-line a,
.top-contact-divider {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.top-contact-line a:hover,
.top-social-links a:hover {
    color: var(--modern-gold) !important;
}

.top-social-links a:hover {
    border-color: var(--modern-gold) !important;
}

.top-social-links a:hover i,
.top-social-links a:hover .social-x-icon {
    color: var(--modern-gold) !important;
}

.top-contact-divider {
    opacity: 0.55;
}

.top-contact-line i {
    color: var(--modern-gold);
    font-size: 0.88rem;
}

.top-social-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.top-social-links a {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.top-social-links a:hover {
    color: var(--modern-gold);
    border-color: var(--modern-gold);
    transform: translateY(-1px);
}

.top-social-links a:hover i,
.top-social-links a:hover .social-x-icon {
    color: var(--modern-gold);
}

.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--modern-line) !important;
    padding: 0 !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 86px;
    gap: 18px;
    padding: 0 0.75rem;
}

.menu-toggle {
    margin-left: auto;
    padding: 0.4rem;
}

.logo {
    gap: 12px;
    color: var(--modern-navy) !important;
    font-size: 1.1rem;
    line-height: 1.1;
    max-width: min(620px, 52vw);
    min-width: 0;
    flex: 1 1 auto;
}

.logo-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--modern-gold);
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.25rem;
}

.logo span:last-child {
    font-weight: 800;
    letter-spacing: 0;
}

.logo .logo-lockup {
    display: grid;
    gap: 4px;
    padding-left: 16px;
    border-left: 4px solid var(--modern-navy);
    min-width: 0;
    overflow-wrap: anywhere;
}

.logo .site-logo-img {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

.logo .logo-name {
    color: #020842 !important;
    font-size: clamp(1.55rem, 2.7vw, 2.45rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.logo .logo-tagline {
    color: #b4842b !important;
    font-size: clamp(0.78rem, 1.25vw, 1.15rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 980px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .logo {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .nav-links {
        flex: 1 1 100%;
        justify-content: center;
        gap: 1rem;
    }
}

.nav-links {
    margin-left: auto;
    gap: 1.2rem;
}

.nav-links a {
    color: var(--modern-navy) !important;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-call {
    display: grid;
    gap: 2px;
    padding-left: 20px;
    border-left: 1px solid var(--modern-line);
    color: var(--modern-navy);
    text-decoration: none;
    white-space: nowrap;
}

.nav-call span {
    color: var(--modern-gold);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-call strong {
    font-size: 0.95rem;
}

.modern-hero {
    min-height: 100vh;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--modern-navy);
}

.hero-image {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.98;
    filter: saturate(1.04) brightness(1.08) contrast(1.03);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    background: var(--modern-navy);
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .hero-image {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.98;
    filter: saturate(1.04) brightness(1.08) contrast(1.03);
    z-index: 0;
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    padding: 32px 0;
}

.hero-slide-content .hero-inner {
    width: min(100%, 760px);
    padding-left: 48px;
    padding-right: 48px;
}

@media (max-width: 760px) {
    .hero-slide-content .hero-inner {
        padding-left: 16px;
        padding-right: 16px;
        text-align: center;
    }
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--modern-gold);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-control.prev {
    left: 20px;
}

.hero-control.next {
    right: 20px;
}

.hero-control i {
    font-size: 1rem;
}

.hero-shade {
    position: absolute;
    inset: 0;
    /* reduced darkness so slides appear brighter */
    background:
        linear-gradient(90deg, rgba(5, 8, 18, 0.28) 0%, rgba(7, 17, 42, 0.18) 44%, rgba(7, 17, 42, 0.06) 100%),
        radial-gradient(circle at 78% 48%, rgba(180, 132, 43, 0.08), transparent 38%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding-top: 76px;
    padding-bottom: 110px;
    text-align: left;
    justify-self: start;
    padding-left: 48px;
    padding-right: 48px;
}

@media (max-width: 760px) {
    .hero-inner {
        justify-self: center;
        text-align: center;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-inner .section-kicker {
        font-size: 0.85rem;
        letter-spacing: 0.04em;
    }
}

.section-kicker {
    color: var(--modern-gold) !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.hero-inner h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    line-height: 0.9;
    margin-bottom: 24px;
}

.hero-inner > p:not(.section-kicker) {
    color: rgba(255, 255, 255, 0.84);
    max-width: 650px;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 26px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 6px;
    font-weight: 800;
}

.cta-button,
.cta-button-dark,
.view-all,
.read-more {
    border-radius: 6px !important;
    text-transform: none;
}

.cta-button,
.cta-button-dark {
    background: var(--modern-gold) !important;
    color: var(--modern-navy) !important;
}

.view-all,
.read-more {
    background: var(--modern-navy) !important;
    color: #ffffff !important;
}

.split-section,
.about-feature {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(34px, 6vw, 78px);
    align-items: center;
}

.about-feature-text-only {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

/* Move the 'Know More' button down a bit in the about block */
.home-about-band .about-copy .view-all {
    display: inline-block;
    margin-top: 28px;
}

@media (max-width: 760px) {
    .home-about-band .about-copy .view-all {
        margin-top: 18px;
    }
}

.why-band,
.home-about-band,
.about-overview,
.values-timeline,
.modern-blog-list,
.modern-team {
    padding: 92px 20px;
}

.why-band,
.values-timeline {
    background: #ffffff !important;
}

.split-section h2,
.about-copy h2,
.section-heading-row h2,
.values-timeline h2,
.section-heading-center h2 {
    color: var(--modern-navy) !important;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.why-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.why-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.why-header h2 {
    text-align: center;
    font-size: clamp(2.5rem, 5.5vw, 4.8rem) !important;
    line-height: 1.1;
    margin-bottom: 20px;
}

.why-header .section-kicker {
    margin-bottom: 16px;
    font-size: clamp(0.85rem, 2.2vw, 1.25rem);
    letter-spacing: 1px;
}

.why-item {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid var(--modern-gold);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #d4d4d4;
}

.why-item i {
    color: var(--modern-gold);
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: inline-block;
    width: fit-content;
}

.why-item h3 {
    color: var(--modern-navy) !important;
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Center the why-section headings and icons */
.why-item, .why-item h3 {
    text-align: center;
}

.footer .footer-contact-info .footer-email,
.footer .footer-contact-info .footer-phone {
    margin-left: 0;
    white-space: nowrap;
}

/* Slight left shift for the whole contact column */
.footer .footer-section.footer-contact-info {
    margin-left: -12px;
}

.footer .footer-contact-info {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    text-align: left;
}

.footer .footer-contact-info p {
    font-size: clamp(0.78rem, 1.35vw, 1rem);
}

.why-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.about-values-why {
    padding: 92px 20px;
    background: #ffffff !important;
}

.about-values-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.about-values-panel,
.why-choose-panel {
    display: grid;
    gap: 24px;
}

.values-grid,
.why-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

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

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
    align-items: start;
}

.why-grid .why-lead {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    color: #444;
    font-size: 1.05rem;
}

.why-grid .why-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-grid .why-features .why-item {
    text-align: left;
    padding: 28px;
}

.why-grid .why-features .why-item i {
    display: block;
    font-size: 2rem;
    margin: 0 auto 12px;
}

@media (max-width: 920px) {
    .why-grid .why-features { grid-template-columns: 1fr; }
    .why-header h2 { font-size: clamp(2rem, 5vw, 3rem) !important; }
}

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

@media (max-width: 1040px) {
    .latest-articles .articles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.about-photo-stack {
    position: relative;
    min-height: 620px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.about-photo-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.experience-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 200px;
    min-height: 160px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    background: var(--modern-gold);
    color: var(--modern-navy);
    border-radius: 6px;
    font-weight: 900;
}

.experience-badge strong {
    display: block;
    font-size: 3.6rem;
    line-height: 1;
}

.experience-badge span {
    display: block;
    line-height: 1.2;
}

.mission-tabs,
.mission-vision-grid {
    margin: 24px 0;
}

.mission-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mission-tabs span {
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--modern-line);
    border-radius: 6px;
    color: var(--modern-navy);
    font-weight: 800;
}

.about-copy > p:not(.section-kicker) {
    font-size: 1.08rem;
    color: rgba(2, 8, 66, 0.95);
    max-width: 760px;
    margin: 0 0 20px 12px; /* nudge left a bit */
    line-height: 1.8;
    text-align: left;
    letter-spacing: 0.01em;
    font-weight: 500;
}

@media (max-width: 760px) {
    .about-copy > p:not(.section-kicker) {
        text-align: center;
    }
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    margin-top: 18px;
}

.check-list li {
    background: #ffffff;
    border: 1px solid #eef1f4;
    padding: 14px 16px 14px 64px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 20px rgba(7,17,42,0.04);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.check-list li:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(7,17,42,0.07); }

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--modern-gold);
    font-size: 0.95rem;
}

.check-list li { color: #1e2b3a; font-weight: 800; }

@media (max-width: 760px) {
    .check-list { grid-template-columns: 1fr; }
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.practice-band {
    padding: 86px 20px;
    background: var(--modern-soft) !important;
}

.stats-band {
    padding: 64px 20px;
    background: linear-gradient(135deg, var(--modern-ink), var(--modern-blueblack)) !important;
}

/* Add extra space below stats on the About page to separate from footer */
.page-about .stats-band {
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    text-align: center;
}

.stats-grid strong {
    display: block;
    color: var(--modern-gold);
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
}

.stats-grid span {
    color: #ffffff;
    font-weight: 800;
}

.modern-latest {
    background: #ffffff !important;
}

.modern-latest .articles-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.article-preview,
.blog-list-card,
.team-member,
.timeline-card {
    border-radius: 8px !important;
    box-shadow: 0 18px 40px rgba(7, 17, 42, 0.08) !important;
    border: 1px solid rgba(7, 17, 42, 0.06) !important;
}

.article-preview .preview-image {
    height: 250px !important;
    background: #ffffff;
}

.article-preview .preview-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    background: #ffffff;
    display: block;
}

.preview-content time {
    display: block;
    color: var(--modern-gold);
    font-weight: 900;
    margin-bottom: 12px;
}

.modern-page-header {
    padding: 92px 20px !important;
    text-align: left;
    margin: 0;
}

.modern-page-header h1 {
    color: #ffffff !important;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.modern-page-header p,
.modern-page-header a {
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none;
    font-weight: 700;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.mission-vision-grid article {
    padding: 24px;
    background: #ffffff;
    border-left: 4px solid var(--modern-gold);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mission-vision-grid article:hover {
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.mission-vision-grid article h3 {
    color: var(--modern-navy);
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.mission-vision-grid article p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.timeline-card {
    background: var(--modern-soft);
    padding: 24px;
}

.timeline-card span {
    color: var(--modern-gold);
    font-weight: 900;
}

.timeline-card h3 {
    color: var(--modern-navy) !important;
    margin: 14px 0 8px;
}

.timeline-card a {
    color: var(--modern-navy);
    font-weight: 900;
    text-decoration: none;
}

.section-heading-center {
    text-align: center;
    max-width: 760px;
    margin-bottom: 42px;
}

.modern-blog-list .container {
    display: grid;
    gap: 34px;
}

.modern-blog-list .articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1040px) {
    .modern-blog-list .articles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-blog-list .articles-container {
        grid-template-columns: 1fr;
    }
}

.blog-list-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 18px;
    background: #ffffff;
}

.blog-date {
    display: grid;
    align-content: center;
    justify-items: center;
    background: var(--modern-gold);
    color: var(--modern-navy);
    border-radius: 6px;
    text-align: center;
    min-height: 124px;
}

.blog-date strong {
    font-size: 2.6rem;
    line-height: 1;
}

.blog-date span {
    font-weight: 900;
}

.blog-list-image {
    display: block;
    min-height: 230px;
    background: var(--modern-soft);
    border-radius: 6px;
    overflow: hidden;
}

.blog-list-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--modern-gold);
    font-size: 2.4rem;
    text-decoration: none;
}

.blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    display: block;
}

.blog-list-content {
    padding: 10px 8px;
}

.blog-list-content h2 {
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.18;
    margin: 12px 0;
}

.blog-list-content h2 a {
    color: var(--modern-navy);
    text-decoration: none;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #737986;
    font-weight: 700;
}

.article-meta i {
    color: var(--modern-gold);
}

.footer {
    background: #050812 !important;
    padding-top: 72px;
}

.footer-content {
    grid-template-columns: minmax(220px, 1.15fr) minmax(180px, 0.9fr) minmax(160px, 0.75fr) minmax(360px, 1.35fr);
}

.footer-section h4 {
    color: var(--modern-gold) !important;
}

.footer-bottom {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 1040px) {
    .nav-call {
        display: none;
    }

    .split-section,
    .about-feature,
    .blog-list-card {
        grid-template-columns: 1fr;
    }

    .timeline-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modern-latest .articles-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        min-height: 74px;
    }

    .logo {
        max-width: min(78vw, 390px);
        gap: 9px;
    }

    .logo .site-logo-img {
        width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        max-height: 46px !important;
    }

    .logo .logo-lockup {
        padding-left: 12px;
        border-left-width: 3px;
    }

    .logo .logo-name {
        font-size: clamp(1.2rem, 5.2vw, 1.7rem);
    }

    .logo .logo-tagline {
        font-size: clamp(0.62rem, 2.7vw, 0.82rem);
        white-space: normal;
    }

    .navbar .container {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .logo {
        max-width: min(70vw, 280px);
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
    }

    .logo .logo-lockup {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .logo .logo-name {
        white-space: normal;
    }

    .menu-toggle {
        flex: 0 0 auto;
    }

    .nav-links {
        margin-left: 0;
    }

    .modern-hero {
        min-height: 520px;
    }

    .modern-hero .hero-image {
        background-position: center center;
        background-size: cover;
        opacity: 0.95;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(5, 8, 18, 0.64), rgba(7, 17, 42, 0.24));
    }

    .hero-inner {
        padding-top: 60px;
        padding-bottom: 70px;
        padding-left: 18px;
        padding-right: 18px;
        text-align: center;
        max-width: 100%;
        min-width: 0;
    }

    .hero-inner h1 {
        font-size: clamp(1.9rem, 7vw, 2.7rem);
        line-height: 1.05;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-inner > p:not(.section-kicker) {
        font-size: clamp(1rem, 3.5vw, 1.35rem);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .cta-button,
    .hero-actions .ghost-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-control {
        width: 42px;
        height: 42px;
    }

    .hero-control.prev {
        left: 12px;
    }

    .hero-control.next {
        right: 12px;
    }

    .hero-dots {
        bottom: 18px;
        gap: 8px;
    }

    .why-grid,
    .check-list,
    .timeline-grid,
    .stats-grid,
    .modern-latest .articles-container,
    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .about-photo-stack {
        min-height: 380px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-list-card {
        gap: 16px;
    }

    .blog-date {
        min-height: 92px;
    }
}

.modern-latest .article-preview .read-more,
.modern-blog-list .article-preview .read-more,
.modern-blog-list .blog-list-content .read-more,
.related-articles .article-preview .read-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: auto !important;
    min-height: auto !important;
    margin-top: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #f0d14e !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
}

.modern-latest .article-preview .read-more:hover,
.modern-blog-list .article-preview .read-more:hover,
.modern-blog-list .blog-list-content .read-more:hover,
.related-articles .article-preview .read-more:hover {
    background: transparent !important;
    color: #f0d14e !important;
    gap: 0.75rem !important;
    transform: translateX(2px) !important;
}

/* Requested contact/team refinements */
.contact-section .info-icon {
    background: rgba(180, 132, 43, 0.14) !important;
    color: var(--premier-gold) !important;
    border: 1px solid rgba(180, 132, 43, 0.24) !important;
    box-shadow: none !important;
}

.contact-section .info-icon i {
    color: inherit !important;
}

.team-member {
    aspect-ratio: auto;
    border-radius: 0 !important;
    display: block;
    padding: 0 !important;
    overflow: hidden;
    text-align: center;
}

.team-member .team-photo {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.team-member .team-photo img,
.team-member .team-photo .placeholder-avatar {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    object-position: center top;
}

.team-member .team-photo .placeholder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.team-member h3 {
    margin: 18px 18px 8px !important;
}

.team-member .position {
    margin: 0 18px 18px !important;
}

.team-member .specialties,
.team-member p:not(.position) {
    margin-left: 18px !important;
    margin-right: 18px !important;
}

@media (max-width: 640px) {
    .team-member {
        aspect-ratio: auto;
        min-height: 0;
    }
}

/* Professional polish: card motion, tactile controls, and cleaner surfaces */
:root {
    --ui-shadow-sm: 0 10px 24px rgba(7, 17, 42, 0.08);
    --ui-shadow-md: 0 18px 44px rgba(7, 17, 42, 0.13);
    --ui-shadow-lg: 0 28px 70px rgba(7, 17, 42, 0.18);
    --ui-border: rgba(7, 17, 42, 0.09);
    --ui-border-strong: rgba(180, 132, 43, 0.34);
    --ui-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.services-preview,
.services-full,
.team-section,
.cases-section,
.contact-section,
.latest-articles,
.modern-blog-list,
.modern-team,
.practice-band,
.about-values-why {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 249, 252, 0.96)),
        var(--paper) !important;
}

.service-item,
.service-full-item,
.team-member,
.case-item,
.article-preview,
.blog-list-card,
.timeline-card,
.why-item,
.mission-vision-grid article,
.contact-form,
.contact-info,
.custom-page-content,
.custom-media-block,
.value-card {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--ui-border) !important;
    border-radius: 8px !important;
    box-shadow: var(--ui-shadow-sm) !important;
    transition:
        transform 0.34s var(--ui-ease),
        box-shadow 0.34s var(--ui-ease),
}

.service-item::before,
.service-full-item::before,
.team-member::before,
.case-item::before,
.article-preview::before,
.blog-list-card::before,
.timeline-card::before,
.why-item::before,
.mission-vision-grid article::before,
.contact-form::before,
.contact-info::before,
.custom-page-content::before,
.custom-media-block::before,
.value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(180, 132, 43, 0.14), rgba(7, 17, 42, 0));
    opacity: 0;
    transition: opacity 0.34s var(--ui-ease);
    pointer-events: none;
}

.service-item:hover,
.service-full-item:hover,
.team-member:hover,
.case-item:hover,
.article-preview:hover,
.blog-list-card:hover,
.timeline-card:hover,
.why-item:hover,
.mission-vision-grid article:hover,
.contact-form:focus-within,
.contact-info:hover,
.custom-page-content:hover,
.custom-media-block:hover,
.value-card:hover {
    transform: translateY(-7px);
    border-color: var(--ui-border-strong) !important;
    box-shadow: var(--ui-shadow-lg) !important;
}

.service-item:hover::before,
.service-full-item:hover::before,
.team-member:hover::before,
.case-item:hover::before,
.article-preview:hover::before,
.blog-list-card:hover::before,
.timeline-card:hover::before,
.why-item:hover::before,
.mission-vision-grid article:hover::before,
.contact-form:focus-within::before,
.contact-info:hover::before,
.custom-page-content:hover::before,
.custom-media-block:hover::before,
.value-card:hover::before {
    opacity: 1;
}

.service-item img,
.service-full-item img,
.case-item img,
.article-preview img,
.blog-list-image img,
.team-member .team-photo img,
.custom-media-block img {
    transition: transform 0.5s var(--ui-ease), filter 0.5s var(--ui-ease);
}

.service-item:hover img,
.service-full-item:hover img,
.case-item:hover img,
.article-preview:hover img,
.blog-list-card:hover img,
.team-member:hover .team-photo img,
.custom-media-block:hover img {
    transform: scale(1.045);
    filter: saturate(1.04) contrast(1.03);
}

.service-item,
.article-preview,
.blog-list-card,
.team-member,
.why-item,
.timeline-card,
.mission-vision-grid article {
    animation: cardRise 0.58s var(--ui-ease) both;
}

.services-grid > *:nth-child(2),
.articles-container > *:nth-child(2),
.team-grid > *:nth-child(2),
.why-grid > *:nth-child(2),
.timeline-grid > *:nth-child(2) {
    animation-delay: 0.06s;
}

.services-grid > *:nth-child(3),
.articles-container > *:nth-child(3),
.team-grid > *:nth-child(3),
.why-grid > *:nth-child(3),
.timeline-grid > *:nth-child(3) {
    animation-delay: 0.12s;
}

.services-grid > *:nth-child(4),
.articles-container > *:nth-child(4),
.team-grid > *:nth-child(4),
.why-grid > *:nth-child(4),
.timeline-grid > *:nth-child(4) {
    animation-delay: 0.18s;
}

.cta-button,
.cta-button-dark,
.view-all,
.read-more,
.ghost-button,
.btn,
button {
    transition:
        transform 0.24s var(--ui-ease),
        box-shadow 0.24s var(--ui-ease),
        background-color 0.24s var(--ui-ease),
        color 0.24s var(--ui-ease),
        border-color 0.24s var(--ui-ease) !important;
}

.cta-button:hover,
.cta-button-dark:hover,
.view-all:hover,
.ghost-button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow-md);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(180, 132, 43, 0.38);
    outline-offset: 3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    min-height: 46px;
    border-radius: 8px;
    border-color: rgba(7, 17, 42, 0.14);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(180, 132, 43, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(180, 132, 43, 0.16) !important;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .service-item:hover,
    .service-full-item:hover,
    .team-member:hover,
    .case-item:hover,
    .article-preview:hover,
    .blog-list-card:hover,
    .timeline-card:hover,
    .why-item:hover,
    .mission-vision-grid article:hover,
    .contact-form:focus-within,
    .contact-info:hover,
    .custom-page-content:hover,
    .custom-media-block:hover,
    .value-card:hover {
        transform: none;
    }
}

/* Make header-adjacent sections completely flush under the sticky navbar */
.page-header,
.services-preview,
.services-full,
.team-section,
.contact-section {
    padding-top: 24px !important;
    margin-top: 0 !important;
}

/* Card layout fixes: unify image frames, center icons, and normalize padding for professional cards */
.preview-image,
.service-item .preview-image,
.service-full-item .preview-image,
.team-member .team-photo,
.article-preview .preview-image {
    height: 180px !important;
    min-height: 140px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    background: var(--paper) !important;
    padding: 0 !important;
}

.preview-image img,
.service-item img,
.service-full-item img,
.team-member .team-photo img,
.article-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    max-height: none !important;
    align-self: stretch !important;
}

/* Shorten cards and clamp text for consistent, compact cards */
.service-item,
.service-full-item,
.article-preview,
.team-member {
    max-height: 420px !important;
    display: flex !important;
    flex-direction: column !important;
}

.card-content,
.preview-content,
.service-details {
    padding: 14px !important;
    flex: 1 1 auto !important;
}

.card-content p,
.preview-content > p,
.service-details p,
.team-member p {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.service-item .read-more,
.article-preview .read-more {
    margin-top: 8px !important;
}

/* Icon containers: center and scale icons consistently */
.service-icon,
.service-icon-large,
.placeholder-image,
.placeholder-image-large,
.placeholder-avatar,
.card-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    color: var(--premier-navy) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
    padding: 8px !important;
}

/* Icon font sizing inside icon containers */
.service-icon i,
.service-icon-large i,
.placeholder-image i,
.placeholder-image-large i,
.placeholder-avatar i,
.card-icon i {
    font-size: clamp(28px, 4.2vw, 48px) !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Card content padding and alignment */
.card-content,
.preview-content,
.service-details,
.contact-form,
.contact-info {
    padding: 20px !important;
    text-align: left !important;
}


/* Strong overrides for practice-band service icons to ensure they match Services page */
.practice-band .preview-image,
.practice-band .service-icon-large {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: var(--paper) !important;
}

.practice-band .service-icon-large i {
    font-size: clamp(28px, 5.2vw, 48px) !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin: 0 !important;
    color: inherit !important;
}

/* Ensure the icon container doesn't get constrained by global card clamps */
.practice-band .service-full-item,
.practice-band .service-full-item .preview-image {
    max-height: none !important;
}

/* Team member card polish */
.team-member {
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: var(--surface) !important;
}

.team-member h3,
.team-member .position,
.team-member .specialties {
    padding: 12px 16px !important;
    margin: 0 !important;
    text-align: left !important;
}

/* Gentle icon/image hover for polish */
.service-item:hover img,
.service-full-item:hover img,
.team-member:hover .team-photo img,
.article-preview:hover .preview-image img {
    transform: scale(1.03) !important;
    transition: transform 360ms ease !important;
}

/* Make sure card borders and radii are consistent */
.service-item,
.service-full-item,
.team-member,
.case-item,
.article-preview {
    border-radius: 12px !important;
}

/* Team directory page inspired by the reference roster layout */
.page-team .team-page-header {
    padding: 86px 20px 92px !important;
    text-align: center;
}

.page-team .team-page-header h1 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
}

.page-team .team-page-header .breadcrumb {
    margin: 14px 0 10px;
}

.page-team .team-directory-section {
    padding: 86px 20px 96px !important;
    background: #ffffff !important;
}

.page-team .team-directory-heading {
    margin: 0 auto 46px;
}

.page-team .team-directory-heading h2 {
    margin: 0;
    color: var(--premier-navy) !important;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.page-team .team-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px;
    perspective: none;
}

.page-team .team-directory-grid:has(.team-directory-card:only-child) {
    grid-template-columns: minmax(0, 280px) !important;
    justify-content: center;
}

.page-team .team-directory-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(7, 17, 42, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 34px rgba(7, 17, 42, 0.08) !important;
    text-align: center !important;
    transform-style: flat !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.page-team .team-directory-card::before {
    display: none !important;
}

.page-team .team-directory-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(180, 132, 43, 0.34) !important;
    box-shadow: 0 26px 56px rgba(7, 17, 42, 0.14) !important;
}

.page-team .team-directory-card .team-photo {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    background: #f3f4f6 !important;
    overflow: hidden;
}

.page-team .team-directory-card .team-photo img,
.page-team .team-directory-card .team-photo .placeholder-avatar {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center top !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.page-team .team-directory-card .team-photo .placeholder-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--premier-gold) !important;
    background: linear-gradient(135deg, rgba(7, 17, 42, 0.08), rgba(180, 132, 43, 0.08)) !important;
}

.page-team .team-directory-content {
    padding: 22px 18px 24px;
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-team .team-directory-card h3 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--premier-navy) !important;
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    line-height: 1.25;
    text-align: center !important;
}

.page-team .team-directory-card .position {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--premier-gold) !important;
    display: block !important;
    overflow: visible !important;
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1.4;
    text-align: center !important;
    text-transform: uppercase;
}

.page-team .team-cta-section {
    margin-top: 0;
}

.page-team .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: #737986;
}

@media (max-width: 1100px) {
    .page-team .team-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    .page-team .team-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px;
    }
}

@media (max-width: 560px) {
    .page-team .team-page-header {
        padding: 58px 20px 64px !important;
    }

    .page-team .team-directory-section {
        padding: 58px 20px 66px !important;
    }

    .page-team .team-directory-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Services page: practice-area grid inspired by the reference Case page */
.page-services .services-page-header,
.page-blog .blog-page-header {
    padding: 86px 20px 92px !important;
    text-align: center;
}

.page-services .services-page-header h1,
.page-blog .blog-page-header h1 {
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
}

.page-services .practice-directory-section,
.practice-band .practice-directory-section {
    padding: 82px 20px 96px !important;
    background: #ffffff !important;
}

.page-services .practice-directory-grid,
.practice-band .practice-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 34px 30px;
}

.page-services .practice-card,
.practice-band .practice-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(7, 17, 42, 0.08);
    box-shadow: 0 16px 34px rgba(7, 17, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.page-services .practice-card:hover,
.practice-band .practice-card:hover {
    transform: translateY(-7px);
    border-color: rgba(180, 132, 43, 0.34);
    box-shadow: 0 26px 56px rgba(7, 17, 42, 0.14);
}

.page-services .practice-media,
.practice-band .practice-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f2f3f5;
    overflow: hidden;
}

.page-services .practice-media img,
.practice-band .practice-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s ease;
}

.page-services .practice-card:hover .practice-media img,
.practice-band .practice-card:hover .practice-media img {
    transform: scale(1.045);
}

.page-services .practice-icon,
.practice-band .practice-icon {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--practice-light-green);
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, rgba(7, 17, 42, 0.08), rgba(180, 132, 43, 0.1));
}

/* Practice icons in the "Explore practical legal protection" section are light green */
.practice-band .practice-directory-grid .practice-card .practice-icon {
    color: var(--practice-light-green) !important;
}

.page-services .practice-content,
.practice-band .practice-content {
    padding: 24px 24px 28px;
}

.page-services .practice-content h3,
.practice-band .practice-content h3 {
    color: var(--premier-navy) !important;
    font-size: clamp(1.18rem, 1.8vw, 1.45rem);
    line-height: 1.22;
    margin: 0 0 14px;
}

.page-services .practice-content p,
.practice-band .practice-content p {
    color: #535b69;
    line-height: 1.72;
    margin: 0;
}

/* Blog listing page: publication cards inspired by the reference Our Blog page */
.page-blog .publication-list-section {
    padding: 78px 20px 96px;
    background: #ffffff !important;
}

.page-blog .publication-list {
    display: grid;
    gap: 34px;
    max-width: 1040px;
    margin: 0 auto;
}

.page-blog .publication-card {
    display: grid;
    grid-template-columns: 112px 300px minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(7, 17, 42, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(7, 17, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.page-blog .publication-card:hover {
    transform: translateY(-6px);
    border-color: rgba(180, 132, 43, 0.34);
    box-shadow: 0 26px 56px rgba(7, 17, 42, 0.14);
}

.page-blog .publication-date {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 136px;
    padding: 16px;
    text-align: center;
    border-radius: 6px;
    background: var(--premier-gold);
    color: var(--premier-navy);
    font-weight: 900;
}

.page-blog .publication-date strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
}

.page-blog .publication-date span {
    display: block;
    margin-top: 8px;
    text-transform: uppercase;
}

.page-blog .publication-image {
    display: block;
    min-height: 220px;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f3f5;
    text-decoration: none;
}

.page-blog .publication-image img,
.page-blog .publication-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
}

.page-blog .publication-image img {
    object-fit: cover;
    transition: transform 0.42s ease;
}

.page-blog .publication-card:hover .publication-image img {
    transform: scale(1.045);
}

.page-blog .publication-placeholder {
    display: grid;
    place-items: center;
    color: var(--premier-gold);
    font-size: 2.6rem;
}

.page-blog .publication-content {
    padding: 10px 8px;
    min-width: 0;
}

.page-blog .publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #687080;
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.page-blog .publication-meta i {
    color: var(--premier-gold);
    margin-right: 6px;
}

.page-blog .publication-content h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.4vw, 2.05rem);
    line-height: 1.18;
}

.page-blog .publication-content h2 a {
    color: var(--premier-navy);
    text-decoration: none;
}

.page-blog .publication-content h2 a:hover {
    color: var(--premier-gold);
}

.page-blog .publication-author,
.page-blog .publication-excerpt {
    margin: 0 0 14px;
    color: #535b69;
    line-height: 1.65;
}

.page-blog .publication-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--premier-gold);
    font-weight: 900;
    text-decoration: none;
    text-transform: lowercase;
}

.page-blog .publication-read-more:hover {
    color: var(--premier-navy);
}

@media (max-width: 1040px) {
    .page-services .practice-directory-grid,
    .practice-band .practice-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .page-blog .publication-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .page-blog .publication-image {
        grid-column: 2;
    }

    .page-blog .publication-content {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .page-services .services-page-header,
    .page-blog .blog-page-header {
        padding: 58px 20px 64px !important;
        text-align: center;
    }

    .page-services .practice-directory-section,
    .practice-band .practice-directory-section,
    .page-blog .publication-list-section {
        padding: 58px 20px 66px !important;
    }

    .page-services .practice-directory-grid,
    .practice-band .practice-directory-grid {
        grid-template-columns: 1fr !important;
    }

    .page-blog .publication-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .page-blog .publication-date,
    .page-blog .publication-image,
    .page-blog .publication-content {
        grid-column: auto;
    }

    .page-blog .publication-date {
        min-height: 92px;
    }
}

/* Final responsive overrides for all screen sizes */
@media (max-width: 980px) {
    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        max-width: 360px;
    }

    .site-contact-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .top-contact-line,
    .top-social-links {
        width: 100%;
        justify-content: center;
    }

    .top-contact-line a,
    .top-contact-divider,
    .top-social-links a {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .nav-links {
        width: 85%;
        max-width: 280px;
    }

    .hero,
    .page-header,
    .cta-section,
    .services-preview,
    .team-section,
    .cases-section,
    .about-section,
    .contact-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .site-contact-bar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .carousel-container {
        min-height: 220px;
    }
}

@media (max-width: 980px) {
    .navbar .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 75% !important;
        max-width: 360px !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 4rem 0 2rem !important;
        overflow-y: auto !important;
        background: #ffffff !important;
        border: 0 !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35) !important;
        backdrop-filter: none !important;
        transition: left 0.3s ease-in-out !important;
        z-index: 99 !important;
    }

    .navbar .nav-links.active {
        left: 0 !important;
    }

    .navbar .nav-links a {
        display: block !important;
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: var(--premier-navy) !important;
        background: transparent !important;
        text-align: center !important;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a.active {
        padding-left: 1.5rem !important;
        background: rgba(180, 132, 43, 0.1) !important;
        color: var(--premier-gold) !important;
    }

    .navbar .submenu {
        position: static !important;
        display: block !important;
        min-width: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (min-width: 981px) {
    .site-contact-bar {
        background: #050812 !important;
        color: #ffffff !important;
    }

    .site-contact-bar .container {
        min-height: 46px !important;
        max-width: none !important;
        padding: 0 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 18px !important;
    }

    .top-contact-line {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
    }

    .top-contact-line a,
    .top-contact-divider {
        color: #ffffff !important;
        font-size: inherit !important;
        font-weight: inherit !important;
    }

    .top-contact-line i {
        color: var(--premier-gold) !important;
    }

    .top-social-links {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        margin-left: auto !important;
    }

    .top-social-links a {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
    }

    .navbar {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(7, 17, 42, 0.08) !important;
    }

    .navbar .container {
        max-width: none !important;
        min-height: 96px !important;
        padding: 0 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 24px !important;
    }

    .logo {
        flex: 0 0 auto !important;
        max-width: 52vw !important;
    }

    .logo .site-logo-img {
        width: 64px !important;
        max-width: 64px !important;
        height: 64px !important;
        max-height: 64px !important;
    }

    .logo .logo-lockup {
        padding-left: 18px !important;
        border-left: 4px solid var(--premier-navy) !important;
    }

    .logo .logo-name {
        font-size: clamp(1.6rem, 2.35vw, 3.2rem) !important;
        line-height: 0.95 !important;
        white-space: nowrap !important;
    }

    .logo .logo-tagline {
        font-size: clamp(0.78rem, 1vw, 1.2rem) !important;
        white-space: nowrap !important;
    }

    .menu-toggle {
        display: none !important;
    }

    .navbar .nav-links {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: clamp(0.75rem, 1.35vw, 1.55rem) !important;
        margin-left: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        transition: none !important;
    }

    .navbar .nav-links a {
        padding: 0 !important;
        border: 0 !important;
        color: var(--premier-navy) !important;
        background: transparent !important;
        font-size: clamp(0.86rem, 1vw, 1.2rem) !important;
        font-weight: 900 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a.active {
        color: var(--premier-gold) !important;
        background: transparent !important;
    }
}

@media (min-width: 981px) and (max-width: 1280px) {
    .navbar .container {
        min-height: 86px !important;
        padding: 0 24px !important;
        gap: 16px !important;
    }

    .logo {
        max-width: 45vw !important;
    }

    .logo .site-logo-img {
        width: 54px !important;
        max-width: 54px !important;
        height: 54px !important;
        max-height: 54px !important;
    }

    .logo .logo-lockup {
        padding-left: 14px !important;
    }

    .logo .logo-name {
        font-size: clamp(1.35rem, 2vw, 2.2rem) !important;
    }

    .logo .logo-tagline {
        font-size: clamp(0.68rem, 0.9vw, 0.95rem) !important;
    }

    .navbar .nav-links {
        gap: clamp(0.65rem, 1vw, 1rem) !important;
    }

    .navbar .nav-links a {
        font-size: clamp(0.78rem, 0.9vw, 1rem) !important;
    }
}

/* Bright blue header override */
.navbar {
    background: linear-gradient(135deg, #5a97ff 0%, #5a97ff 100%) !important;
    border-bottom-color: #5a97ff !important;
}

.page-header {
    background: linear-gradient(135deg, #5a97ff 0%, #5a97ff 100%) !important;
    color: white !important;
}

.page-header h1 {
    color: #ffffff !important;
}

.page-header .breadcrumb a,
.modern-page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Final brand navy override from the current Premier reference image */
:root {
    --premier-navy: #001A38;
    --modern-ink: #001A38;
    --modern-navy: #001A38;
    --modern-blueblack: #001A38;
    --charcoal: #001A38;
    --steel: #001A38;
}

.site-contact-bar,
.footer,
.page-header,
.modern-page-header,
.cta-section,
.article-header {
    background: #001A38 !important;
}

.navbar {
    background: #ffffff !important;
    border-bottom-color: #e5e7eb !important;
}

.logo,
.navbar .nav-links a,
.menu-toggle {
    color: #001A38 !important;
}

.logo .logo-name,
.logo .logo-tagline,
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--premier-gold) !important;
}

/* Tablet header polish */
@media (max-width: 980px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    .navbar {
        background: #ffffff !important;
    }

    .navbar .container {
        min-height: 72px !important;
        padding: 0 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
    }

    .logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 58px) !important;
        gap: 10px !important;
        overflow: visible !important;
    }

    .logo .site-logo-img {
        width: 42px !important;
        max-width: 42px !important;
        height: 42px !important;
        max-height: 42px !important;
    }

    .logo .logo-lockup {
        min-width: 0 !important;
        padding-left: 11px !important;
        border-left-width: 3px !important;
    }

    .logo .logo-name {
        font-size: clamp(0.95rem, 3vw, 1.35rem) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .logo .logo-tagline {
        font-size: clamp(0.6rem, 1.9vw, 0.76rem) !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow: visible !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .menu-toggle {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        color: var(--premier-navy) !important;
        background: transparent !important;
    }

    .navbar .nav-links {
        position: fixed !important;
        top: 72px !important;
        right: 0 !important;
        left: auto !important;
        width: min(82vw, 340px) !important;
        height: calc(100vh - 72px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 18px !important;
        background: #ffffff !important;
        border-left: 1px solid rgba(0, 26, 56, 0.1) !important;
        box-shadow: -18px 24px 46px rgba(0, 26, 56, 0.14) !important;
        overflow-y: auto !important;
        transform: translateX(105%) !important;
        transition: transform 0.22s ease !important;
        z-index: 1000 !important;
    }

    .navbar .nav-links.active {
        transform: translateX(0) !important;
    }

    .navbar .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 13px 4px !important;
        border-bottom: 1px solid rgba(0, 26, 56, 0.08) !important;
        color: var(--premier-navy) !important;
        background: transparent !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 520px) {
    .navbar .container {
        min-height: 90px !important;
        padding: 0 14px !important;
        gap: 10px !important;
    }

    .logo {
        max-width: calc(100% - 50px) !important;
        gap: 8px !important;
    }

    .logo .site-logo-img {
        width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
        max-height: 38px !important;
    }

    .logo .logo-lockup {
        padding-left: 9px !important;
        gap: 3px !important;
    }

    .logo .logo-name {
        font-size: clamp(0.95rem, 4.4vw, 1.14rem) !important;
        white-space: nowrap !important;
    }

    .logo .logo-tagline {
        font-size: clamp(0.62rem, 3vw, 0.73rem) !important;
    }

    .navbar .nav-links {
        top: 90px !important;
        height: calc(100vh - 90px) !important;
    }
}

@media (max-width: 380px) {
    .logo .site-logo-img {
        width: 34px !important;
        max-width: 34px !important;
        height: 34px !important;
        max-height: 34px !important;
    }

    .logo .logo-lockup {
        padding-left: 8px !important;
    }

    .logo .logo-name {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
    }

    .logo .logo-tagline {
        font-size: 0.59rem !important;
    }
}

@media (max-width: 520px) {
    .hero-slide-content .hero-inner,
    .hero-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 42px !important;
        padding-right: 42px !important;
        text-align: center !important;
    }

    .hero-inner .section-kicker {
        font-size: 0.76rem !important;
        line-height: 1.2 !important;
    }

    .hero-inner h1 {
        font-size: clamp(1.65rem, 8vw, 2.05rem) !important;
        line-height: 1.08 !important;
        max-width: 100% !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .hero-inner > p:not(.section-kicker) {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    .hero-actions .cta-button,
    .hero-actions .ghost-button {
        max-width: 100% !important;
    }
}

@media (max-width: 380px) {
    .hero-slide-content .hero-inner,
    .hero-inner {
        padding-left: 38px !important;
        padding-right: 38px !important;
    }

    .hero-inner h1 {
        font-size: 1.75rem !important;
    }
}

/* Tablet footer polish */
@media (max-width: 980px) {
    .footer {
        padding: 42px 22px 24px !important;
    }

    .footer .container {
        max-width: 760px !important;
        padding: 0 !important;
    }

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 42px !important;
        margin-bottom: 1.6rem !important;
    }

    .footer-section {
        min-width: 0 !important;
    }

    .footer-section h4 {
        margin-bottom: 0.8rem !important;
        font-size: 0.98rem !important;
        line-height: 1.2 !important;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
    }

    .footer-section ul li {
        margin-bottom: 0.35rem !important;
    }

    .footer .social-links {
        gap: 9px !important;
        margin-top: 0.85rem !important;
    }

    .footer .social-links a {
        width: 34px !important;
        height: 34px !important;
    }

    .footer .footer-contact-info .footer-email,
    .footer .footer-contact-info .footer-phone {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .footer-bottom {
        padding-top: 1.2rem !important;
    }

    .footer-bottom p {
        font-size: 0.84rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .footer .footer-section.footer-contact-info {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    .footer .footer-contact-info h4 {
        text-align: center !important;
    }

    .footer .footer-contact-info .footer-email,
    .footer .footer-contact-info .footer-phone {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}
