* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy-bg: #1c2b3d;
    --navy-dark: #141f2d;
    --navy-card: #24354a;
    --lime-green: #c1db51;
    --lime-hover: #b1cc40;
    --text-dark: #222222;
    --text-muted: #a0aec0;
    --text-light: #ffffff;
    --banner-bg: #1f2f42;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: var(--navy-bg);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top Banner */
.top-banner {
    position: relative;
    background-color: var(--banner-bg);
    height: 150px;
    overflow: hidden;
    border-bottom: 2px solid #ffffff;
    display: flex;
    align-items: center;
}

.logo-container {
    position: relative;
    z-index: 10;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.logo-container a {
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0 5rem 0;
    background-color: var(--navy-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
    color: #f0f4f8;
}

.portrait-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Buttons */
.btn-talk {
    display: inline-block;
    background-color: var(--lime-green);
    color: #2b3811;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-talk:hover {
    background-color: var(--lime-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Client Logo Bands */
.logo-band {
    background-color: #ffffff;
    padding: 1.8rem 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.logo-band-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    padding: 0 10px;
}

.logo-img {
    max-height: 75px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.05));
}

/* Case Studies Section */
.case-studies-section {
    padding: 5rem 0;
    background-color: #213247;
    background-image: linear-gradient(180deg, var(--navy-bg) 0%, #172433 100%);
    position: relative;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    background-color: #ffffff;
    color: var(--text-dark);
    padding: 2.5rem 2rem;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.case-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.case-card p {
    font-size: 0.98rem;
    color: #4a5568;
    line-height: 1.6;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: #b0c4de;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.testimonial-item {
    margin-bottom: 1.2rem;
}

.testimonial-item:last-child {
    margin-bottom: 0;
}

.quote-text {
    font-size: 1rem;
    color: #333333;
    font-style: italic;
    margin-bottom: 0.3rem;
}

.quote-author {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2a3a;
}

/* Headless CMS Carousel */
.rhmc-carousel {
    max-width: 1100px;
    margin: 4rem auto;
    background: #141f2d;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.rhmc-carousel-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.rhmc-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    width: 100%;
}

.rhmc-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    text-decoration: none;
    color: #ffffff;
    background: #192738;
}

.rhmc-slide:hover {
    text-decoration: none;
    color: #ffffff;
}

.rhmc-slide-media {
    position: relative;
    overflow: hidden;
    background: #0f1724;
    min-height: 280px;
    max-height: 380px;
}

.rhmc-slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.rhmc-slide:hover .rhmc-slide-media img {
    transform: scale(1.03);
}

.rhmc-slide-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rhmc-slide-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2b3811;
    background: var(--lime-green);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.rhmc-slide-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 0.85rem 0;
}

.rhmc-slide:hover .rhmc-slide-title {
    color: var(--lime-green);
}

.rhmc-slide-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin: 0 0 1.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rhmc-slide-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 500;
}

.rhmc-meta-dot {
    opacity: 0.5;
}

.rhmc-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: #0f1724;
    border-top: 1px solid var(--border-color);
}

.rhmc-carousel-indicator {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.rhmc-indicator-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #a0aec0;
}

.rhmc-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rhmc-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rhmc-dot.active {
    width: 28px;
    background: var(--lime-green);
}

.rhmc-carousel-arrows {
    display: flex;
    gap: 0.6rem;
}

.rhmc-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rhmc-arrow-btn:hover {
    background: var(--lime-green);
    border-color: var(--lime-green);
    color: #2b3811;
}

.rhmc-carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4rem 2rem;
    width: 100%;
    color: #a0aec0;
    font-size: 0.95rem;
}

.rhmc-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(193, 219, 81, 0.2);
    border-top-color: var(--lime-green);
    border-radius: 50%;
    animation: rhmcSpin 0.75s linear infinite;
}

@keyframes rhmcSpin {
    to { transform: rotate(360deg); }
}

/* Contact Section & Footer */
.contact-section {
    padding: 5rem 0 3rem 0;
    background-color: var(--navy-dark);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-box p {
    font-size: 1.15rem;
    color: #cbd5e0;
    margin-bottom: 2rem;
}

.footer-text {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: #718096;
}

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .rhmc-slide {
        grid-template-columns: 1fr;
    }

    .rhmc-slide-media {
        max-height: 220px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .logo-band-container {
        gap: 1.2rem;
    }

    .rhmc-slide-body {
        padding: 1.5rem;
    }

    .rhmc-carousel-footer {
        padding: 0.8rem 1.2rem;
    }
}

/* ==========================================================================
   Article Detail View (post.html)
   ========================================================================== */
.post-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem 1.5rem;
}

.post-back-nav {
    margin-bottom: 2.5rem;
}

.back-link {
    color: var(--lime-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.back-link:hover {
    text-decoration: underline;
    transform: translateX(-4px);
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.post-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cbd5e0;
    font-weight: 400;
}

.post-featured-media {
    margin: 2.5rem 0 3.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    max-height: 480px;
    background-color: var(--navy-card);
    border: 1px solid var(--border-color);
}

.post-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Post Typography & Prose */
.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.post-body p {
    margin-bottom: 1.75rem;
}

.post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 3rem 0 1rem 0;
    letter-spacing: -0.02em;
}

.post-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2.25rem 0 0.85rem 0;
}

.post-body ul, 
.post-body ol {
    margin: 1.5rem 0 2rem 1.5rem;
    color: #cbd5e0;
}

.post-body li {
    margin-bottom: 0.6rem;
}

.post-body a {
    color: var(--lime-green);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--lime-hover);
}

.post-body blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--navy-card);
    border-left: 4px solid var(--lime-green);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #f1f5f9;
}

.post-body code {
    font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: #0f1724;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--lime-green);
}

/* ==========================================================================
   Featured Media - Contained & Centered
   ========================================================================== */
.post-featured-media,
#postMediaWrapper {
    max-width: 680px !important;
    width: 100% !important;
    margin: 24px auto 32px auto !important;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(20, 31, 45, 0.6);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    padding: 12px;
}

.post-featured-media img,
#postFeaturedImage {
    max-width: 100% !important;
    max-height: 380px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 10px;
}