/*
 * Dexie Navy&Gold — Responsive & Layout Overrides
 * NAVY&Gold Stitch デザインを WordPress で再現するための CSS
 */

/* ----------------------------------------------------------------
   Root: prevent horizontal overflow
   ---------------------------------------------------------------- */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-width: 0;
}

/* ----------------------------------------------------------------
   Sticky Header: fixed on scroll
   ---------------------------------------------------------------- */
header.wp-block-template-part {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--wp--preset--color--background, #ffffff);
}

/* Body offset for fixed header — hero handles its own overlap */
body {
    padding-top: 0 !important;
}

/* For pages other than home, prevent content from hiding behind the fixed header */
body:not(.home):not(.front-page) {
    padding-top: 95px !important; /* Adjusted from 135px to match actual header height and remove the white gap */
}

/* WordPress admin bar offset */
.admin-bar header.wp-block-template-part {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header.wp-block-template-part {
        top: 46px;
    }
}

/* Ensure wp-site-blocks doesn't break layout */
.wp-site-blocks {
    overflow: visible !important;
}

/* Full-width surface sections (topics → footer seamless) */
.wp-block-group.alignfull.has-surface-background-color,
.has-surface-background-color.alignfull {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Footer connects to topics (no gap) */
footer.wp-block-template-part {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove default WP block spacing between all sections */
.wp-site-blocks>*+* {
    margin-block-start: 0 !important;
}

/* Post content must allow full-width children */
.wp-block-post-content,
main.wp-block-group {
    overflow: visible !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Neutralise WP root-padding-aware alignments on home */
.wp-block-post-content.has-global-padding>.alignfull {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Remove bottom padding on main to connect content to footer */
main.wp-block-group {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ----------------------------------------------------------------
   Utility: serif font
   ---------------------------------------------------------------- */
.font-serif {
    font-family: var(--wp--preset--font-family--serif) !important;
}

/* ----------------------------------------------------------------
   Site Logo (logo image + company name)
   ---------------------------------------------------------------- */
.dexie-site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.dexie-site-logo:hover {
    opacity: 0.8;
    color: var(--wp--preset--color--primary);
}

.dexie-logo-img {
    display: block;
    border-radius: 4px;
    object-fit: contain;
    width: auto;
}

/* Header logo specific size */
.dexie-logo-img.size-header {
    /* controlled by inline styles */
}

/* Footer logo specific size */
.dexie-logo-img.size-footer {
    /* controlled by inline styles */
}

.dexie-logo-text {
    white-space: nowrap;
}

/* ----------------------------------------------------------------
   Header: 2-row layout (Stitch NAVY&Gold style)
   ---------------------------------------------------------------- */

/* Row 1: lang toggle bar */
.dexie-lang-toggle {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.dexie-lang-toggle a {
    text-decoration: none;
    color: var(--wp--preset--color--muted);
    transition: color 0.2s;
}

.dexie-lang-toggle a:hover {
    color: var(--wp--preset--color--primary);
}

.dexie-lang-toggle strong {
    color: var(--wp--preset--color--primary);
}

/* Row 2: custom nav shortcode */
/* Force Flex and Vertical Center for Header Row 2 */
.dexie-header-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
}

/* Fix wpautop wrapping shortcodes in paragraphs, breaking alignment */
.dexie-header-main-row>p {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
}

.dexie-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.dexie-nav a {
    text-decoration: none;
    color: var(--wp--preset--color--foreground);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.dexie-nav a:hover {
    color: var(--wp--preset--color--accent);
}

/* Last nav link → CTA button style */
.dexie-nav a:last-child {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    padding: 0.55rem 1.5rem;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.dexie-nav a:last-child:hover {
    opacity: 0.9;
    color: #ffffff;
}

/* ----------------------------------------------------------------
   Hero Section (Stitch-style full-width with overlay)
   ---------------------------------------------------------------- */
.navygold-hero {
    position: relative;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 110px;
    /* offset for fixed header content area */
}

.navygold-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.navygold-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navygold-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 31, 63, 0.4), rgba(0, 31, 63, 0.2));
}

.navygold-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.navygold-hero-content .subtitle {
    color: var(--wp--preset--color--accent);
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.navygold-hero-content h1 {
    color: #ffffff;
    font-family: var(--wp--preset--font-family--serif);
    font-size: clamp(1.98rem, 1.44rem + 1.8vw, 3.42rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.navygold-hero-content h1 em {
    font-style: normal;
    color: #ffffff;
}

.navygold-hero-content .gold-line {
    height: 4px;
    width: 5rem;
    background: var(--wp--preset--color--accent);
    margin-bottom: 2rem;
}

.navygold-hero-content .desc {
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
}

.navygold-hero .scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ----------------------------------------------------------------
   About Section (2-column)
   ---------------------------------------------------------------- */
.navygold-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--wp--preset--spacing--80) 24px;
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: center;
}

.navygold-about .section-label {
    color: var(--wp--preset--color--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
}

.navygold-about h2 {
    font-family: var(--wp--preset--font-family--serif);
    color: var(--wp--preset--color--primary);
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.navygold-about .text-content {
    font-size: 1.05rem;
    color: var(--wp--preset--color--muted);
    line-height: 2;
}

.navygold-about .text-content p {
    margin-bottom: 1.5rem;
}

.navygold-about .more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--wp--preset--color--primary);
    padding-bottom: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 1.5rem;
}

.navygold-about .more-link:hover {
    color: var(--wp--preset--color--accent);
    border-color: var(--wp--preset--color--accent);
}

.navygold-about .image-side {
    position: relative;
}

.navygold-about .image-side img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.navygold-about .year-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    padding: 2rem;
}

.navygold-about .year-badge .year {
    font-family: var(--wp--preset--font-family--serif);
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.navygold-about .year-badge .label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------
   Topics Section (Home page — 3-column cards)
   ---------------------------------------------------------------- */
.navygold-topics-section {
    background: var(--wp--preset--color--surface);
    padding: var(--wp--preset--spacing--80) 0;
}

.navygold-topics-section .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navygold-topics-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.navygold-topics-section .section-label {
    color: var(--wp--preset--color--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.navygold-topics-section h2 {
    font-family: var(--wp--preset--font-family--serif);
    color: var(--wp--preset--color--primary);
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
    margin: 0;
}

.navygold-topics-section .view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--wp--preset--color--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.navygold-topics-section .view-all:hover {
    color: var(--wp--preset--color--primary);
}

/* Full-width topics wrapper (generated by shortcode, breaks out of root padding) */
.navygold-topics-wrapper {
    background-color: var(--wp--preset--color--surface, #f8f9fa);
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-bottom: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Latest topics shortcode override for home — 3-column cards */
.dexie-latest-topics {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin: 0 auto;
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.dexie-latest-topics .topics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.dexie-latest-topics .topics-header-left .section-label {
    color: var(--wp--preset--color--accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.dexie-latest-topics .topics-header-left h2 {
    font-family: var(--wp--preset--font-family--serif);
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    margin: 0;
}

.dexie-latest-topics .view-all-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--wp--preset--color--muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.dexie-latest-topics .view-all-link:hover {
    color: var(--wp--preset--color--primary);
}

.dexie-latest-topics ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dexie-latest-topics li {
    background: #ffffff;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.dexie-latest-topics li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dexie-latest-topics time {
    color: var(--wp--preset--color--accent);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.dexie-latest-topics .topic-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.dexie-latest-topics a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.dexie-latest-topics a:hover .topic-title {
    color: var(--wp--preset--color--accent);
}

.dexie-latest-topics .topic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: auto;
}

.dexie-latest-topics .topic-category {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.dexie-latest-topics .topic-arrow {
    color: #ccc;
    transition: transform 0.2s;
}

.dexie-latest-topics li:hover .topic-arrow {
    transform: translateX(4px);
    color: var(--wp--preset--color--accent);
}

.dexie-latest-topics .more-link {
    text-align: center;
    margin-top: var(--wp--preset--spacing--40);
}

/* ----------------------------------------------------------------
   Footer (Stitch NAVY&Gold style)
   ---------------------------------------------------------------- */
.dexie-footer-cols {
    display: flex;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    flex-wrap: wrap;
}

.dexie-footer-col {
    min-width: 120px;
}

.dexie-footer-heading {
    position: relative;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-left: 0.75rem;
    color: var(--wp--preset--color--primary);
}

.dexie-footer-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: -0.5rem;
    bottom: -0.1rem;
    width: 4px;
    background-color: var(--wp--preset--color--accent);
}

.dexie-footer-cols ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 2.2;
}

.dexie-footer-cols a {
    text-decoration: none;
    color: var(--wp--preset--color--muted);
    transition: color 0.2s;
}

.dexie-footer-cols a:hover {
    color: var(--wp--preset--color--accent);
}

/* ----------------------------------------------------------------
   Pagination: prev/next as buttons (NAVY&Gold style)
   ---------------------------------------------------------------- */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: inline-block;
    padding: 0.6em 1.4em;
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    border-radius: 9999px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    transition: opacity 0.2s ease;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* Back-to-list button on single topics */
.dexie-back-btn {
    display: inline-block;
    padding: 0.6em 1.4em;
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    border-radius: 9999px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    transition: opacity 0.2s ease;
}

.dexie-back-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* ----------------------------------------------------------------
   Contact Form — NAVY&Gold styling enhancement
   ---------------------------------------------------------------- */
.dexie-contact-form-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.dexie-contact-note {
    color: var(--wp--preset--color--muted);
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.dexie-contact-table {
    width: 100%;
    border-collapse: collapse;
}

.dexie-contact-table th,
.dexie-contact-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--border);
    text-align: left;
    vertical-align: top;
}

.dexie-contact-table th {
    width: 35%;
    font-weight: 600;
    white-space: nowrap;
}

.dexie-contact-table input[type=text],
.dexie-contact-table input[type=email],
.dexie-contact-table select,
.dexie-contact-table textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.2s;
    outline: none;
}

.dexie-contact-table input:focus,
.dexie-contact-table select:focus,
.dexie-contact-table textarea:focus {
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 3px rgba(181, 141, 61, 0.15);
}

.dexie-contact-table .req {
    color: #c00;
    font-size: 0.75em;
    margin-left: 0.3em;
    background: #fef2f2;
    padding: 0.1em 0.5em;
    border-radius: 4px;
}

.dexie-contact-table .opt {
    color: var(--wp--preset--color--muted);
    font-size: 0.75em;
    margin-left: 0.3em;
}

.dexie-contact-table .err {
    color: #c00;
    font-size: 0.85em;
    margin: 0.3em 0 0;
}

.dexie-contact-actions {
    text-align: center;
    margin-top: 2rem;
}

.dexie-contact-actions.two-btn {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dexie-contact-actions .outline {
    background: transparent;
    color: var(--wp--preset--color--primary);
    border: 1px solid currentColor;
}

.dexie-contact-table.confirm td {
    font-weight: 400;
}

.dexie-contact-form-wrap.complete {
    text-align: center;
    padding: 3rem 0;
}

/* Step progress indicator */
.dexie-step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0;
}

.dexie-step-progress .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dexie-step-progress .step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.dexie-step-progress .step-number.active {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
}

.dexie-step-progress .step-number.inactive {
    background: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--muted);
}

.dexie-step-progress .step-label.active {
    font-weight: 700;
    color: var(--wp--preset--color--primary);
}

.dexie-step-progress .step-label.inactive {
    font-weight: 500;
    color: var(--wp--preset--color--muted);
}

.dexie-step-progress .step-divider {
    width: 4rem;
    height: 2px;
    background: var(--wp--preset--color--border);
    margin: 0 1.5rem;
}

/* ----------------------------------------------------------------
   Mobile: ≤ 767px
   ---------------------------------------------------------------- */
@media (max-width: 767px) {

    /* Header: stack site title and nav vertically */
    header .wp-block-group[class*="is-layout-flex"] {
        flex-wrap: wrap;
    }

    /* Navigation: shrink and wrap gracefully */
    .dexie-nav {
        font-size: 0.85rem;
        gap: 0.8rem;
    }

    .dexie-nav a:last-child {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    /* About section: single column */
    .navygold-about {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: var(--wp--preset--spacing--60) 24px;
    }

    .navygold-about .year-badge {
        display: none;
    }

    /* Hero adjustments */
    .navygold-hero {
        min-height: 60vh;
    }

    /* Footer columns stack */
    .dexie-footer-cols {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Topics list: stack on very small */
    .dexie-latest-topics ul {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dexie-latest-topics .topics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Logo: smaller on mobile */
    .dexie-logo-img {
        width: 36px !important;
        height: 36px !important;
    }

    /* Contact form: responsive table */
    .dexie-contact-table th,
    .dexie-contact-table td {
        display: block;
        width: 100%;
    }

    .dexie-contact-table th {
        padding-bottom: 0.25rem;
        border-bottom: none;
    }

    /* Step progress */
    .dexie-step-progress .step-divider {
        width: 2rem;
        margin: 0 0.5rem;
    }

    .dexie-step-progress .step-label {
        font-size: 0.8rem;
    }
}

/* ----------------------------------------------------------------
   Tablet: 768–1023px
   ---------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    .dexie-nav {
        gap: 1.2rem;
    }

    .dexie-nav a {
        font-size: 0.85rem;
    }

    .navygold-about {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ----------------------------------------------------------------
   Service Cards (Business Guide page) — moved from inline <style>
   ---------------------------------------------------------------- */
.navygold-service-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.navygold-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.navygold-card-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* ----------------------------------------------------------------
   Company Info — map & flex responsive ordering
   ---------------------------------------------------------------- */
.company-map-cover {
    transition: opacity 0.3s ease;
}

.company-map-cover .wp-block-cover__image-background {
    opacity: 0.8 !important;
    transition: opacity 0.3s ease;
}

.company-map-cover:hover .wp-block-cover__image-background {
    opacity: 1 !important;
}

.company-map-button {
    background-color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    transition: all 0.3s ease;
}

.company-map-cover:hover .company-map-button {
    background-color: var(--wp--preset--color--accent) !important;
    color: #fff !important;
}

@media (min-width: 782px) {
    .company-kobe-image {
        order: 2;
    }

    .company-kobe-text {
        order: 1;
    }
}

/* ----------------------------------------------------------------
   Business Guide sub-pages — category nav hover
   ---------------------------------------------------------------- */
.navygold-cat-nav-hover {
    transition: background-color 0.3s ease;
}

.navygold-cat-nav-hover:hover {
    background-color: #fff;
}

/* ----------------------------------------------------------------
   Business Guide — agency / group tags
   ---------------------------------------------------------------- */
.tag-agency {
    border: 1px solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tag-group {
    background-color: var(--wp--preset--color--surface);
    color: var(--wp--preset--color--primary);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 1px solid var(--wp--preset--color--border);
}

/* ----------------------------------------------------------------
   Business Guide — gold bullet list
   ---------------------------------------------------------------- */
.gold-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    row-gap: 0.5rem;
}

@media (min-width: 768px) {
    .gold-bullet-list {
        grid-template-columns: 1fr 1fr;
    }
}

.gold-bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--wp--preset--color--muted);
    font-size: 0.95rem;
}

.gold-bullet-list li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wp--preset--color--accent);
    font-size: 0.75rem;
}

/* ----------------------------------------------------------------
   Contact page — hide default title, flush hero
   ---------------------------------------------------------------- */
.page-template-default.page-slug-contact main>.wp-block-post-title,
body.page-slug-contact main>.wp-block-post-title {
    display: none !important;
}

/* ----------------------------------------------------------------
   Recruit page — specific styles
   ---------------------------------------------------------------- */
.vertical-bar-heading {
    position: relative;
    padding-left: 1.5rem;
}

.vertical-bar-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 6px;
    background-color: var(--wp--preset--color--accent);
}

.recruit-job-card {
    transition: border-color 0.3s ease;
}

.recruit-job-card:hover {
    border-left-color: var(--wp--preset--color--accent) !important;
}

.recruit-profile-text,
.recruit-req-td p {
    font-size: 0.9em;
}

@media (min-width: 782px) {
    .recruit-profile-text {
        padding-left: 3rem;
    }

    .recruit-req-row .wp-block-columns {
        display: flex;
        flex-wrap: nowrap;
    }

    .recruit-req-th {
        display: flex;
        align-items: center;
    }

    .recruit-cta-col-right {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 4rem;
    }
}

.hover-accent:hover {
    color: var(--wp--preset--color--accent) !important;
}

.recruit-cta-btn:hover {
    background-color: #fff !important;
    color: var(--wp--preset--color--accent) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.recruit-cta-btn:hover .cta-mail-icon {
    animation: mailBounce 1s infinite alternate;
}

@keyframes mailBounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}