/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
    --white: #ffffff;
    --blue: #002f61;
    --red: #C80000;
    --red-accent: #C41A1F;
    --navy-dark: #0A1628;
    --navy-surface: #112035;
    --navy-medium: #1A2F4A;
    --navy-light: #2A4563;
    --slate: #64748B;
    --cream: #FAFAF9;
    --gold: #D4AF37;
    --lightblue: #96bcea;
    --lightestblue: #c4dfff;
    --lightgray: #d4d4d4;
    --lightestgray: #F3F4F6;
    --dark-border: rgba(255, 255, 255, 0.2);

    --header-height: 100px;

    --shadow-light-sm: 0 4px 8px rgba(10, 22, 40, 0.10);
    --shadow-light-sm-hover: 0 4px 8px rgba(0, 47, 97, 0.22);
    --shadow-light: 0 4px 24px rgba(10, 22, 40, 0.10);
    --shadow-light-hover: 0 12px 30px rgba(10, 22, 40, 0.15);
    --shadow-light-active: 0 8px 30px rgba(0, 47, 97, 0.22);
    --shadow-red: 0 4px 20px rgba(200, 0, 0, 0.3);
    --shadow-red-hover: 0 6px 40px rgba(200, 0, 0, 0.4);
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 17px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    hyphens: none;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--navy-dark);
    background: var(--cream);
    font-size: 1rem;
    line-height: 1.6;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--slate);
    margin: 1em 0;
    padding: 0;
}

strong,
.strong,
.bold {
    font-weight: 700;
}

table td,
table th {
    vertical-align: top;
    padding: 5px;
    border-bottom: 1px solid var(--lightgray);
}

blockquote,
.wp-block-quote {
    width: 100%;
    margin: 20px auto;
    font-style: italic;
    padding: 1.2em 30px 1.2em 75px;
    border: none;
    line-height: 1.6;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
}

blockquote::before {
    font-family: Arial;
    content: "\201C";
    font-size: 4em;
    position: absolute;
    left: 10px;
    top: -10px;
}

blockquote::after {
    content: '';
}

blockquote span {
    display: block;
    color: var(--navy-dark);
    font-style: normal;
    font-weight: bold;
    margin-top: 1em;
}

mark,
.mark {
    padding: 0;
    background: transparent;
}

.circle,
.circle img {
    border-radius: 50%;
}

.nodisplay {
    display: none !important;
}


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.text-white  { color: var(--white); }
.bg-white    { background: var(--white); }
.text-gold   { color: var(--gold); }
.text-xs     { font-size: 0.85rem; }
.text-sm,
.small       { font-size: 0.95rem; }
.fw-light    { font-weight: 300; }
.fw-normal   { font-weight: 400; }
.fw-medium   { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold     { font-weight: 700; }
.flex-1      { flex: 1; }
.mt-80       { margin-top: 80px; }


/* ============================================================
   HEADINGS
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    line-height: 1.05;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    hyphens: none;
}

main h1 { font-size: 3rem;    margin-bottom: 2rem; }
main h2 { font-size: 2rem;    margin: 0 0 3rem; }
main h3 { font-size: 1.35rem; margin: 3rem 0 1rem; }
main h4 { font-size: 1.2rem;  margin: 2rem 0 0.75rem; }
main h5 { font-size: 1.1rem;  margin: 1rem 0 0.5rem; }
h6      { font-size: 1rem;    margin: 1rem 0 0.3rem; }

h2.wp-block-heading          { margin: 0 0 2rem; }
h3.wp-block-heading,
.expertise-content h3        { margin: 3rem 0 1rem; }
.search h3,
.card h3                     { margin: 0 0 1rem; }


/* ============================================================
   LAYOUT
   ============================================================ */

.wrapper {
    padding-bottom: 80px;
}

main {
    padding: 80px 0 0;
}

.home main {
    padding: 0;
}

section {
    padding: 4rem 0;
}

main > section {
    padding: 0;
}

.section-header {
    margin-bottom: 3rem;
}

section.lgray {
    background: var(--lightestgray);
}

.dark {
    background: linear-gradient(135deg, var(--navy-surface), var(--navy-light));
    color: var(--white);
}

.container {
    position: relative;
}

.row.nomargin {
    margin-left: 0;
    margin-right: 0;
}

.nogutter > [class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}

@media (max-width: 991px) {
    main { padding: 30px 0 0; }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .container { max-width: 100%; }
}

@media (min-width: 1280px) and (max-width: 1365px) {
    .container { max-width: 1240px; }
}

@media (min-width: 1365px) and (max-width: 1439px) {
    .container { max-width: 1325px; }
}

@media (min-width: 1440px) and (max-width: 1599px) {
    .container { max-width: 1400px; }
}

@media (min-width: 1600px) {
    .container,
    .site-header .container-fluid,
    .container-fluid.breadcrums-wrap,
    .container-fluid.lang {
        max-width: 1560px;
    }
}


/* ============================================================
   LINKS
   ============================================================ */

main a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.25s ease;
}

main a:hover {
    color: var(--red);
}

main ul li {
    margin-bottom: 15px;
    position: relative;
    list-style: none;
}

main ul li a::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    margin-left: -20px;
    margin-right: 20px;
    position: relative;
    top: 17px;
}

main ul li a:hover::before {
    transform: scale(1.5);
}

main .tab-content ul li a::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    top: auto;
}


/* ============================================================
   GALLERY
   ============================================================ */

.gallery,
.wp-block-gallery {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2rem 0;
    align-items: stretch;
}

.gallery-item,
.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery figure {
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    aspect-ratio: 4 / 3;
    margin: 0;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.12);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover,
.wp-block-gallery .blocks-gallery-item:hover,
.wp-block-gallery figure:hover {
    box-shadow: 0 10px 32px rgba(10, 22, 40, 0.22);
    transform: translateY(-3px);
}

.gallery-icon,
.wp-block-gallery .blocks-gallery-item a,
.wp-block-gallery figure a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img,
.wp-block-gallery .blocks-gallery-item img,
.wp-block-gallery figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-item::after,
.wp-block-gallery .blocks-gallery-item::after,
.wp-block-gallery figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gallery-item:hover::after,
.wp-block-gallery .blocks-gallery-item:hover::after,
.wp-block-gallery figure:hover::after {
    opacity: 1;
}

.gallery-item::before,
.wp-block-gallery .blocks-gallery-item::before,
.wp-block-gallery figure::before {
    content: "⤢";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gallery-item:hover::before,
.wp-block-gallery .blocks-gallery-item:hover::before,
.wp-block-gallery figure:hover::before {
    opacity: 1;
}

.gallery-caption,
.wp-block-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-caption,
.wp-block-gallery .blocks-gallery-item:hover figcaption,
.wp-block-gallery figure:hover figcaption {
    opacity: 1;
}

@media (max-width: 640px) {
    .gallery-item,
    .wp-block-gallery .blocks-gallery-item,
    .wp-block-gallery figure {
        flex: none;
        width: calc(50% - 5px);
    }
}


/* ============================================================
   FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(10, 22, 40, 0.25);
    border-radius: 7px;
    background: var(--cream);
    color: var(--navy-dark);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(42, 69, 99, 0.1);
    background: var(--white);
    outline: none;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--navy-dark);
}

input:focus::placeholder {
    color: transparent;
}

.form-control,
.form-select,
select {
    outline: none;
    box-shadow: var(--shadow-light);
}

.form-select:focus,
.form-control:focus,
select:focus {
    outline: none;
    color: var(--navy-dark);
    border-color: var(--navy-dark);
    box-shadow: var(--shadow-light-hover);
}

.child-option  { color: var(--navy-light); }
.parent-option { font-weight: 600; }

.searchform input[type="text"] {
    width: auto;
    border-color: var(--navy-dark);
    padding: 6px 15px;
    display: inline-block;
}

.searchform button {
    padding: 9px 15px;
    border-radius: 8px;
}

.search-result {
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-top: 2px;
}

.search-result .post-date {
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .category-uudised .searchform {
        position: relative;
        left: 0;
        right: 0;
        margin: 20px auto 0;
    }
}


/* ============================================================
   BUTTONS
   ============================================================ */

.wrapper .button,
.wrapper button,
[type="submit"],
.wp-block-button {
    padding: 10px 15px;
    font-size: 0.9rem;
    line-height: 1.1;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    gap: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    align-items: center;
    will-change: transform;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.wrapper .button.xl,
.wrapper button.xl,
[type="submit"].xl {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.wrapper .button:hover,
.wrapper button:hover,
[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light-hover);
}

.wrapper .button-primary,
[type="submit"] {
    background: var(--red);
    color: var(--white);
}

.wrapper .button-primary:hover,
[type="submit"]:hover {
    background: var(--red-accent);
    box-shadow: var(--shadow-light-hover);
}

.wrapper .button-primary-invert {
    background: var(--white);
    color: var(--red);
}

.wrapper .button-primary-invert:hover {
    background: var(--cream);
    box-shadow: var(--shadow-light-hover);
}

.wrapper .button-secondary {
    background: var(--navy-dark);
    color: var(--white);
    border-color: var(--white);
}

.hero .wrapper .button-secondary:hover {
    background: color-mix(in srgb, var(--white) 10%, transparent);
}

@media (max-width: 640px) {
    .button-primary,
    .button-secondary {
        text-align: center;
        justify-content: center;
    }
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    padding: 0 0 40px;
    text-align: center;
    margin-bottom: 20px;
}

h1.page-title {
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

h1.page-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 20px auto 0;
}


/* ============================================================
   HERO — generic
   Modifiers: .hero--short  .hero--light
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 0, 0, 0.08));
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero__intro {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    color: var(--white);
}

.hero__intro p {
    margin-bottom: 0;
    color: var(--white);
}

.hero__ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero .breadcrumb a,
.hero .breadcrumb .menu-item-home {
    color: var(--white);
}

.hero .menu-item-home::before {
    background-color: var(--white);
}

.hero .breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
    color: var(--white);
}

.breadcrumbs a[href="*/valdkond/"],
.breadcrumbs a[href="*/expertise/"] {
    display: none;
}

.hero h1.page-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--white);
    text-align: left;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero h1.page-title::before {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 0 0 20px;
}

.hero h1.page-title.text-center::before {
    margin: 0 auto 20px;
}

.hero h1.page-title::after {
    display: none;
}

.hero--short {
    padding: 3rem 0;
}

.hero--short h1.page-title {
    font-size: 2.25rem;
    margin-bottom: 0;
}

.hero--short .hero__intro,
.hero--short .hero__ctas {
    display: none;
}

.hero--light {
    background: var(--cream);
    color: var(--navy-dark);
}

.hero--light::before {
    display: none;
}

.hero--light .breadcrumb a,
.hero--light h1.page-title,
.hero--light .hero__intro,
.hero--light .hero__intro p {
    color: var(--navy-dark);
}

.hero--light h1.page-title::after {
    display: block;
}

.hero--light .button-secondary {
    color: var(--navy-dark);
    border-color: var(--navy-dark);
}

.hero--light .button-secondary:hover {
    background: var(--navy-dark);
    color: var(--white);
}

@media (max-width: 768px) {
    .hero { padding: 3rem 0; }
    .hero h1.page-title { font-size: 2rem; }
}

@media (max-width: 640px) {
    .hero__ctas { flex-direction: column; }
}


/* ============================================================
   HOME HERO
   ============================================================ */

.home .hero {
    position: relative;
}

.home .hero h1 {
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 300;
}

.home .hero h2 {
    font-size: clamp(20px, 2.8vw, 36px);
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 300;
}

.home .hero a.button::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    position: relative;
    top: -1px;
    width: 18px;
    height: 8px;
    background: currentColor;
    clip-path: polygon(0% 35%, 82% 35%, 82% 15%, 100% 50%, 82% 85%, 82% 65%, 0% 65%);
    transition: transform 0.25s ease;
}

.home .hero a.button:hover::after {
    transform: translateX(8px);
}

.home .hero .hero-lettermark {
    position: absolute;
    right: 300px;
    bottom: -60px;
    font-family: 'Fraunces', serif;
    font-size: 520px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.home .card .readmore {
    justify-content: left;
}


/* ============================================================
   POST HERO — full-width dark header with image + experts
   ============================================================ */

.post-hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    color: var(--white);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .post-hero {
        padding: 3rem 0 2.5rem;
    }
}

@media (max-width: 640px) {
    .post-hero {
        padding: 2rem 0 2rem;
    }
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 0, 0, 0.06));
    pointer-events: none;
}

.post-hero__inner {
    display: grid;
    grid-template-columns: 1fr minmax(0, 33%);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .post-hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.post-hero__meta {
    position: relative;
    z-index: 1;
}

.post-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.post-hero__area {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.25s ease;
}

.post-hero__area::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

.post-hero__area:hover {
    opacity: 0.75;
    color: var(--red);
    text-decoration: none;
}

.post-hero__area + .post-hero__area::before {
    display: none;
}

.post-hero__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    hyphens: none;
}

@media (max-width: 991px) {
    .post-hero__title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
}

.post-hero__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.post-hero__date {
    font-weight: 400;
}

.post-hero__sep {
    opacity: 0.4;
}

.post-hero__expert {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.post-hero__expert:hover {
    color: var(--white);
    text-decoration: none;
}

.post-hero__image {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .post-hero__image {
        order: -1;
    }
}

.post-hero__img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 8px;
}

@media (max-width: 991px) {
    .post-hero__img {
        max-height: 280px;
        border-radius: 6px;
    }
}

.post-hero__caption {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 8px 0 0;
    line-height: 1.4;
}

.post-hero__experts {
    position: relative;
    z-index: 1;
}

.post-hero__experts-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.25rem;
}

.post-hero__experts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 767px) {
    .post-hero__experts-grid {
        flex-direction: column;
    }
}

.post-hero__expert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 16px 10px 10px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease;
    flex: 0 0 auto;
}

.post-hero__expert-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

@media (max-width: 767px) {
    .post-hero__expert-card {
        width: 100%;
    }
}

.post-hero__expert-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--navy-light);
}

.post-hero__expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.post-hero__expert-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-hero__expert-name {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
}

.post-hero__expert-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

/* ============================================================
   FOOTER
   ============================================================ */

.wrapper-footer {
    width: 100%;
    background: var(--navy-dark);
    color: var(--white);
    padding: 40px 15px;
}

.wrapper-footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.25s ease;
}

.wrapper-footer a:hover {
    color: var(--white);
}

.wrapper-footer .social a {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.wrapper-footer .social a:hover {
    opacity: 1;
    color: var(--red);
    transform: translateY(-3px);
}

@media (min-width: 992px) {
    .wrapper-footer {
        padding: 80px 60px 0 0;
        text-align: left;
    }
}


/* ============================================================
   CARD
   ============================================================ */

.card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    color: var(--navy-dark);
    box-shadow: var(--shadow-light);
}

.card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    color: var(--navy-dark);
    text-decoration: none;
}

.card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 1.5rem 1.5rem;
}

.card .card-image {
    width: 100%;
    min-height: 460px;
    background: linear-gradient(135deg, var(--red), #8B0000);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 991px) {
  .card .card-image {
    height: 420px;
    max-height: 420px;
}  }

.related .card .card-image {
    height: 280px;
    min-height: 280px;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.card a .card-image * {
    text-decoration: none;
}

.card .post-title {
    flex-grow: 0;
    margin: 1.5rem 0 1rem;
}

.card .readmore {
    margin-top: auto;
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 1rem;
    color: var(--gold);
}

.card a.readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.readmore a {
    text-decoration: none;
}

.card .readmore-text,
.card .readmore-arrow {
    position: static;
    font-weight: 600;
}

.readmore-arrow {
    transition: transform 0.25s ease;
    margin-left: 10px;
    display: inline-block;
}

.card:hover .readmore-arrow,
.readmore:hover .readmore-arrow {
    transform: translateX(8px);
}

.card.linked {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card.linked:hover {
    box-shadow: var(--shadow-light-hover);
    transform: translateY(-2px);
}

.card.light.modest {
    border-top: none;
    font-size: 0.9rem;
    border: 1px solid var(--lightgray);
    padding: 1.5rem;
    color: var(--navy-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card.light.modest:hover {
    box-shadow: var(--shadow-light-hover);
    transform: translateY(-2px);
}

.card.light.modest h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--navy-dark);
}

.subareas-section__label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.subareas-section__label::before,
.subareas-section__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lightgray);
}

.dark .subareas-section__label {
    color: var(--lightgray);
}

.card.dark a {
    color: var(--white);
}

.lightbg .card.dark {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy-medium));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lightbg .card.dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.2), transparent);
    border-radius: 50%;
    transform: translate(40%, -40%);
    transition: transform 0.25s ease;
}

.lightbg .card.dark.linked:hover {
    box-shadow: var(--shadow-light-hover);
}

.lightbg .card.dark.linked:hover::before {
    transform: translate(40%, -40%) scale(1.5);
}

section.dark .card.dark {
    background: var(--navy-dark);
    box-shadow: var(--shadow-red);
}

section.dark .card.dark.linked:hover,
.card.dark:has(a:hover) {
    box-shadow: var(--shadow-red-hover);
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%;
    transition: opacity 0.25s ease;
}

.card-image a:hover {
    opacity: 0.9;
}

.expert-info h3 a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.25s ease;
}

.team-tabs .readmore,
.expertise-parent .readmore,
.expertise-child .readmore,
.related.news .readmore {
    display: block;
    text-align: left;
}


/* ============================================================
   CARDS WRAPPER
   ============================================================ */

section.expertise-experts.dark {
    margin-top: -5rem;
}

.expertise-content .cards {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: var(--navy-dark);
    color: var(--white);
    margin-top: 40px;
    padding: 30px 20px 60px 20px;

}

@media (min-width: 992px) {
    .expertise-content .cards :where(.wp-block-columns.is-layout-flex) {
        gap: 6em;
    }
}

.card-highlight {
    padding: 1.5rem;
}

.card-highlight,
.cards .wp-block-columns {
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cards .wp-block-heading {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 3rem;
    font-style: italic;
}

.expertise-content .wp-block-group__inner-container {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .expertise-content .wp-block-group.cards .wp-block-group__inner-container  {
        max-width: 66%;
    }
}

.cards ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cards ul li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.5;
}

@media (min-width: 992px) {
    .cards ul li:first-child {
        border-top: 1px solid var(--dark-border);
    }
}

.cards ul li::before {
    content: '›';
    color: var(--red);
    font-size: 1.3rem;
    line-height: 1.2;
    flex-shrink: 0;
    font-weight: 300;
}


/* ============================================================
   POST THUMBNAIL
   ============================================================ */

.post-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    margin: 0 6px;
    border-radius: 10px;
    background: var(--white);
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(10, 22, 40, 0.1);
    box-shadow: var(--shadow-light-sm);
    transition: transform 0.25s ease, background-color 0.25s ease,
        border-color 0.25s ease, box-shadow 0.25s ease;
}

.pagination-wrap .page-numbers:hover {
    background: var(--lightblue);
    color: var(--navy-dark);
    border-color: var(--lightblue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light-sm-hover);
}

.pagination-wrap .page-numbers.current {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    font-weight: 700;
    cursor: default;
}

.pagination-wrap .prev,
.pagination-wrap .next {
    padding: 0 18px;
    font-weight: 600;
}

.pagination-wrap .dots {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--slate);
    cursor: default;
}


/* ============================================================
   EXPERTISE
   ============================================================ */

.expertise-thumb {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.expertise-children {
    padding: 5rem 0;
}

.expertise-children h2 {
    text-align: center;
    color: var(--navy-dark);
}

.expertise-item--parent > a {
    font-weight: 600;
}


/* ============================================================
   EXPERTS / TEAM CARD
   ============================================================ */

.expert-info {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.expert-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.expert-contact {
    margin: 1.5rem 0;
}

.card .label,
.card-highlight .label,
.profile-stat__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0;
}


/* ============================================================
   TEAM TABS
   ============================================================ */

.team-tabs {
    margin-top: 2rem;
}

.team-tabs .nav-tabs {
    padding: 15px 0 10px 30px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-light);
    border-radius: 10px;
    overflow: hidden;
}

.nav-tabs .nav-item {
    margin: 0 0.5rem 15px 0;
}

.nav-tabs .nav-link {
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--navy-dark);
    padding: 0.75rem;
    transition: color 0.25s ease;
    cursor: pointer;
}

.team-tabs .nav-tabs .nav-link:hover,
.team-tabs .nav-tabs .nav-link.active {
    color: var(--red);
    background-color: transparent;
}

.team-tabs .tab-content {
    border-top: none;
    padding: 2rem;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-top: -1px;
    background: var(--white);
}

.team-tabs .tab-pane .card .post-thumb,
.team-tabs .tab-pane .card .item-date {
    display: none;
}

.team-tabs .tab-pane .card .post-title {
    margin-top: 0;
}

.tab-pane .card.light {
    border-top: none;
}

.team-linked-services li {
    margin-bottom: 0;
    padding: 10px 0;
}

.team-linked-services a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

@media (min-width: 992px) {
    .nav-tabs .nav-link::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        width: 100%;
        border-bottom: 0.15rem solid var(--red);
        transition: transform 0.25s ease;
    }

    .nav-tabs .nav-link.active::after,
    .nav-tabs .nav-link:focus::after,
    .nav-tabs .nav-link:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
}

@media (max-width: 991px) {
    .team-tabs .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
    }

    .team-tabs .nav-tabs .nav-link {
        flex: 0 0 auto;
        margin-right: 0.5rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.95rem;
    }

    .team-tabs .tab-content {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .tab-pane .card {
        background: none;
        border: none;
        border-top: 1px solid rgba(10, 22, 40, 0.1);
        border-radius: 0;
        box-shadow: none;
        height: auto;
    }

    .tab-pane .card .card-image,
    .tab-pane .card .post-thumb {
        display: none;
    }

    .tab-pane .card a {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 0 0;
    }

    .tab-pane .card .card-body {
        padding: 0;
        gap: 4px;
    }

    .tab-pane .card .post-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
    }

    .tab-pane .card .post-date {
        font-size: 0.78rem;
        color: var(--slate);
    }

    .tab-pane .card .readmore {
        padding-top: 0;
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .tab-pane .card .readmore-text {
        display: none;
    }

    .tab-pane .card .readmore-arrow {
        font-size: 1.1rem;
    }
}


/* ============================================================
   PROFILE HERO
   ============================================================ */

.profile-hero {
    padding: 0;
    overflow: visible;
}

.profile-hero__meta {
    padding: 80px 0 60px;
}

.profile-hero__position {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
}

.profile-hero__role::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

.profile-hero__name {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 300;
    line-height: 0.95;
    color: var(--white);
    margin-bottom: 2rem;
}

.profile-hero__photo {
    align-self: end;
}

.profile-hero__photo img {
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 0;
    height: 480px;
}

.profile-hero__contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-hero__contacts a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.25s ease;
}

.profile-hero__contacts a:hover {
    color: var(--white);
}

.profile-hero__contacts svg {
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.25s ease;
}

.profile-hero__contacts a:hover svg {
    opacity: 1;
}

@media (max-width: 991px) {
    .profile-hero__photo {
        order: -1;
        max-width: 185px;
    }

    .profile-hero__meta {
        padding: 24px 0 36px;
    }
}


/* ============================================================
   PROFILE STATS BAR
   ============================================================ */

.profile-stats-bar {
    background: var(--red);
    padding: 0;
}

.profile-stats-bar__inner {
    display: flex;
    flex-wrap: wrap;
}

.profile-stat {
    padding: 18px 40px 18px 0;
    border-right: 1px solid var(--dark-border);
    margin-right: 40px;
}

.profile-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.profile-stat__label {
    color: rgba(255, 255, 255, 0.55);
}

.profile-stat__value {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

.profile-stat__value a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.25s ease;
}

.profile-stat__value a:hover {
    border-color: var(--white);
}

@media (max-width: 991px) {
    .profile-stat {
        padding: 12px 24px 12px 0;
        margin-right: 24px;
    }

    .profile-stat.expertise {
        display: none;
    }
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-col-form {
    padding: 30px !important;
    background: color-mix(in srgb, var(--navy-dark) 10%, transparent);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.contact-col-form .form-sub {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 28px;
}

.contact-col-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    border-radius: 10px;
    padding: 28px;
    box-shadow: var(--shadow-light);
    border-top: 3px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    margin-bottom: 0;
}

.info-card:hover {
    box-shadow: var(--shadow-light-hover);
    border-top-color: var(--red);
}

.info-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card__label::before {
    content: '';
    display: block;
    width: 16px;
    height: 2px;
    background: var(--red);
    flex-shrink: 0;
}

.info-item.wp-block-group {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0;
    box-shadow: none;
}

.info-item__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--lightestgray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.info-item__icon svg {
    display: block;
}

.info-item__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-item__text a {
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.25s ease;
}

.info-item__text a:hover {
    color: var(--red);
}

.info-item__text small {
    font-size: 0.75rem;
    color: var(--slate);
    font-weight: 400;
    display: block;
}

.hours-table table {
    width: 100%;
    border: none;
    box-shadow: none;
}

.hours-table td {
    border: none;
    padding: 5px 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.hours-table td:first-child { color: var(--slate); }
.hours-table td:last-child  { text-align: right; font-weight: 600; }

.map-card.wp-block-group {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    padding: 0;
    transition: box-shadow 0.25s ease;
}

.map-card:hover {
    box-shadow: var(--shadow-light-hover);
}

.map-frame {
    width: 100%;
    border: none;
    display: block;
}

.map-footer {
    padding: 0 20px 20px;
    align-items: center;
    gap: 12px;
}

.map-address {
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.4;
    margin: 0;
}

.map-address strong {
    display: block;
    font-size: 0.88rem;
    color: var(--navy-dark);
    margin-bottom: 2px;
}

.map-links p {
    margin: 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 5px;
    transition: background 0.25s ease, color 0.25s ease;
}

.map-link--google {
    background: var(--lightestgray);
    color: var(--navy-dark);
}

.map-link--google:hover {
    background: var(--navy-dark);
    color: var(--white);
}

.map-link--waze {
    background: #33CCFF;
    color: var(--navy-dark);
}

.map-link--waze:hover {
    background: #00b8e6;
}

@media (max-width: 768px) {
    .contact-col-info { order: -1; }
    .contact-page-body { padding: 40px 24px 60px; }
    .page-hero.wp-block-group { padding: 48px 24px 40px; }
}


/* ============================================================
   CONTACT FORM 7
   ============================================================ */

.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 4px;
    display: block;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200, 0, 0, 0.1);
}

.wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
}

.wpcf7-mail-sent-ok {
    background: rgba(10, 22, 40, 0.05);
    color: var(--navy-dark);
    border-left: 4px solid var(--navy-dark);
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background: rgba(200, 0, 0, 0.06);
    color: var(--red);
    border-left: 4px solid var(--red);
}

.wpcf7-spinner {
    margin-left: 0.5rem;
    vertical-align: middle;
}


/* ============================================================
   HOME NEWS
   ============================================================ */

.news-featured-row {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-featured-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light-hover);
}

.news-featured-body {
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
    color: var(--navy-dark);
    border: none;
    border-left: 4px solid var(--red);
    min-height: 320px;
    transition: background 0.25s ease;
}

.news-featured-row:hover .news-featured-img,
.news-featured-row:hover .news-featured-body {
    background: var(--cream);
    transform: none;
}

.news-featured-body .post-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    color: var(--navy-dark);
}

.news-featured-body .readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--red);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    padding-top: 0;
    margin-top: 0;
    justify-content: flex-start;
}

.news-featured-body:hover .readmore-arrow {
    transform: translateX(8px);
}

.news-featured-img {
    position: relative;
    overflow: hidden;
    background: var(--white);
    min-height: 0;
    transition: background 0.25s ease;
}

.news-featured-img > a {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
}

.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform 0.45s ease;
}

.news-featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(10, 22, 40, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.news-featured-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 60%, var(--navy-light) 100%);
    text-decoration: none;
    overflow: hidden;
}

.news-featured-img-placeholder::before {
    content: attr(data-category);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -0.02em;
    line-height: 1;
}

.news-featured-img-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
}

.news-featured-placeholder-logo {
    font-family: 'Fraunces', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    background: rgba(200, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    border-top: 3px solid transparent;
    box-shadow: var(--shadow-light);
    color: var(--navy-dark);
    transition: border-top-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
    border-top-color: var(--red);
    box-shadow: var(--shadow-light-hover);
    transform: translateY(-2px);
    color: var(--navy-dark);
}

.news-card-cat {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
}

.news-card .post-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 20px;
    color: var(--navy-dark);
}

.news-card-foot {
    border-top: 1px solid rgba(10, 22, 40, 0.07);
    font-size: 0.72rem;
}

.news-card-foot .item-date {
    font-size: 0.72rem;
}

.news-card-foot .readmore-arrow {
    color: var(--red);
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.news-card:hover .readmore-arrow {
    transform: translateX(6px);
}

@media (min-width: 992px) {
    .news-featured-img {
        aspect-ratio: unset;
        min-height: 360px;
        height: 100%;
    }
}

@media (max-width: 991px) {
    .news-featured-body {
        min-height: 260px;
        border-left: none;
    }

    .news-featured-img {
        min-height: 220px;
        max-height: 260px;
    }

    .news-featured-img img {
        object-position: center top;
    }

    .news-featured-row .col-12:last-child {
        order: -1;
    }
}

@media (max-width: 575px) {
    .news-featured-body .post-title { font-size: 1.3rem; }

    .news-featured-img,
    .news-featured-img-placeholder {
        min-height: 200px;
    }
}


/* ============================================================
   MISC / UTILITIES
   ============================================================ */

.cmplz-btn.cmplz-manage-consent.manage-consent-1 {
    display: none;
}

.featured-image-caption {
    font-size: 0.75rem;
    color: var(--slate);
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.4;
}

.cat-parent-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    margin-bottom: 12px;
    transition: gap 0.25s ease, opacity 0.25s ease;
}

.cat-parent-link:hover {
    gap: 12px;
    opacity: 0.75;
}

.post-category-label {
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--red);
}

.post-category-label .cat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-category-label .cat-item::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 10px;
    background: var(--lightgray);
    flex-shrink: 0;
}

.post-category-label .cat-item:last-child::after {
    display: none;
}

.cat-pills {
 
}

.cat-pill {
    align-items: center;
    padding: 4px 14px;
    color: var(--navy-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
}

.cat-pill:hover {
    color: var(--red);
}

.cat-pill + .cat-pill::before {
    content: "|";
    position: absolute;
    left: 0;
    color: var(--lightgray);
    font-weight: 300;
}

.cat-pill + .cat-pill:last-of-type::before {
    content: "";
}