/* ============================================
   Veriground Public Site Styles
   ============================================ */

body.public-page {
    margin-bottom: 0;
}

:root {
    --vg-accent: #5E625F;
    --vg-accent-hover: #4a4e4b;
    --vg-dark: #282a28;
    --vg-darker: #1a1a1a;
    --vg-text-light: #c2c2c2;
    --vg-text-muted: #6E6E6E;
    --vg-bg-light: #F0F0F0;
}

/* ---- Subscription Expiry Banner ---- */
.sub-expiry-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    padding: 8px 20px;
    background: #e65100;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
}

.sub-expiry-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sub-expiry-banner a:hover {
    color: #ffd;
}

.sub-expiry-banner ~ header .public-navbar {
    top: 34px;
}

/* ---- API Degraded Banner ---- */
.api-degraded-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1031;
    padding: 8px 20px;
    background: #455a64;
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
}

.api-degraded-banner a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.api-degraded-banner a:hover {
    color: #cfd8dc;
}

.api-degraded-banner ~ header .public-navbar {
    top: 34px;
}

/* ---- Designer Picker Bar ---- */
.designer-picker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1032;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #1a2e1a;
    color: #9dde9d;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.82rem;
}

.designer-picker-bar .picker-arrow {
    color: #9dde9d;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.designer-picker-bar .picker-arrow:hover {
    color: #fff;
}

.designer-picker-bar .picker-filename {
    font-family: monospace;
    font-size: 0.8rem;
    color: #cef5ce;
    min-width: 200px;
    text-align: center;
}

.designer-picker-bar ~ header .public-navbar {
    top: 34px;
}

/* ---- Navbar ---- */
.public-navbar {
    background-color: var(--vg-dark);
    padding: 0.5rem 180px;
    transition: background-color 0.3s ease;
}

@media (max-width: 991.98px) {
    .public-navbar {
        padding: 0.5rem 1.5rem;
    }
}

.logo-brand-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
}

.logo-brand-img {
    height: 34px;
    display: block;
    flex-shrink: 0;
}

.logo-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
}

.logo-wordmark {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 1;
}

.logo-brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.4s ease;
    min-height: 0.75em;
    line-height: 1;
    white-space: nowrap;
}

.logo-brand-tagline.logo-tagline-fading {
    opacity: 0;
}

.public-navbar .nav-link {
    color: #fff !important;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
}

.public-navbar .nav-item {
    margin: 0 0.4rem;
}

.public-navbar .nav-link:hover {
    color: var(--vg-text-light) !important;
}

.public-navbar .nav-link-shimmer {
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 40%,
        #4caf50 50%,
        #fff 60%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-chase 3s ease-in-out infinite;
}

@keyframes shimmer-chase {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (min-width: 992px) {
    .nav-item.dropdown:not(.dropdown-click-only):hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.user-dropdown {
    background: var(--vg-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-width: 180px;
}

.user-dropdown .dropdown-item {
    color: #fff;
    font-size: 0.85rem;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.user-dropdown .dropdown-item-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

.user-dropdown .dropdown-featured {
    background: #E67E22;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 0;
    padding: 0.4rem 1rem;
    position: relative;
    overflow: hidden;
}

.user-dropdown .dropdown-featured::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: featured-shimmer 3s ease-in-out infinite;
}

@keyframes featured-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.user-dropdown .dropdown-featured:hover {
    background: #F39C12 !important;
    color: #fff !important;
}

.user-dropdown .dropdown-active {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 3px 0 0 #4caf50;
}

.user-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

.public-navbar .nav-link-active {
    border-bottom: 3px solid #4caf50;
    padding-bottom: calc(0.5rem - 3px);
}

.public-navbar .nav-link-highlight {
    background-color: #4caf50;
    border-radius: 4px;
    padding: 0.4rem 1rem !important;
    color: #fff !important;
    font-weight: 700;
}

.public-navbar .nav-link-highlight:hover {
    background-color: #43a047;
    color: #fff !important;
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 2rem 1.5rem;
}

.hero-content-wide {
    max-width: 1500px;
    text-align: left;
}

.hero-content-medium {
    max-width: 1050px;
    text-align: center;
}

.hero-content-narrow {
    max-width: 680px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Power BI iframe ---- */
.pbi-frame {
    width: 100%;
    height: 635px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    background: #fff;
}

/* Right column: scale text down for the narrow col-lg-4 */
@media (min-width: 992px) {
    .home-text-col h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-top: 0;
        margin-bottom: 0;
    }
    .home-text-col .hero-subheading,
    .home-text-col p {
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* At xl+, lock column to iframe height and distribute vertically */
@media (min-width: 1200px) {
    .home-text-col {
        height: 635px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
}

.chart-instructions {
    color: #FFD700 !important;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* ---- Hero subheadings ---- */
.hero-subheading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 0.75rem;
}

.hero-cta-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 0.75rem;
}

/* ---- Buttons ---- */
.btn-vg-cta {
    background-color: #4a90d9;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid #4a90d9;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-vg-cta:hover {
    background-color: #3a7bc8;
    border-color: #3a7bc8;
    color: #fff;
}

.btn-vg-cta-outline {
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid #4a90d9;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-vg-cta-outline:hover {
    background-color: #4a90d9;
    color: #fff;
}

.btn-vg-cta-outline.on-light {
    color: #333;
    border-color: #333;
}

.btn-vg-cta-outline.on-light:hover {
    background-color: #333;
    color: #fff;
}

.cta-arrow {
    display: inline-block;
    margin-left: 0.25rem;
    animation: cta-arrow-bounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.45));
}

@keyframes cta-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.btn-vg-primary {
    background-color: var(--vg-accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid var(--vg-accent);
    border-radius: 2px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-vg-primary:hover {
    background-color: var(--vg-accent-hover);
    border-color: var(--vg-accent-hover);
    color: #fff;
}

.btn-vg-outline {
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid #fff;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-vg-outline:hover {
    background-color: #fff;
    color: var(--vg-dark);
}

/* On light backgrounds */
.btn-vg-outline-dark {
    background-color: transparent;
    color: var(--vg-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid var(--vg-accent);
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-vg-outline-dark:hover {
    background-color: var(--vg-accent);
    color: #fff;
}

/* ---- Promo / Content Sections ---- */
.promo-section {
    padding: 5rem 1.5rem;
    text-align: center;
    background-color: var(--vg-bg-light);
}

.promo-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.75rem;
}

.promo-section h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--vg-text-muted);
    margin-bottom: 1.5rem;
}

.promo-section p {
    font-size: 1rem;
    color: var(--vg-text-muted);
    max-width: 650px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

/* ---- Public Footer ---- */
.public-footer {
    background-color: var(--vg-darker);
    color: var(--vg-text-light);
    padding: 3.5rem 2rem 1.5rem;
    font-size: 0.9rem;
}

.public-footer h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.public-footer a {
    color: var(--vg-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.public-footer a:hover {
    color: #fff;
}

.public-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer ul li {
    margin-bottom: 0.4rem;
}

.footer-contact p {
    margin-bottom: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Who We Are Page ---- */
.wwa-banner {
    min-height: 45vh;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5%;
}

.wwa-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.wwa-scroll-indicator {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ---- Contact Page ---- */
.contact-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 20px 20px 10px 10px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.contact-card .contact-card-subtitle {
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 1.5rem;
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.contact-input {
    border: 1px solid #bbb;
    border-radius: 2px;
    padding: 0.6rem 0.75rem;
}

.contact-input:focus {
    border-color: var(--vg-accent);
    box-shadow: 0 0 0 2px rgba(94, 98, 95, 0.15);
}

/* ---- Where We Are Page ---- */
.wwa-map-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.wwa-image-collage img {
    width: 100%;
}

.wwa-team-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
}

.wwa-team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 16px 16px 0 0;
}

.wwa-team-info {
    padding: 1.5rem 0.5rem;
}

.wwa-team-role {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--vg-text-muted);
}

.wwa-team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0.25rem 0 0.5rem;
}

.wwa-team-title {
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
    color: var(--vg-text-muted);
    margin-bottom: 1rem;
}

.wwa-team-info p:last-child {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.wwa-group-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vg-text-muted);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #ddd;
}

.wwa-group-label:first-of-type {
    margin-top: 0;
}

.wwa-grid-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding-bottom: 1rem;
}

.wwa-grid-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
}

.wwa-grid-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0.75rem 0.75rem 0.15rem;
}

.wwa-grid-role {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--vg-text-muted);
    padding: 0 0.75rem;
}

/* ---- What We Do Page ---- */
.wwd-video-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    padding-top: 60px;
    overflow: hidden;
    background: #000;
}

.wwd-video-hero video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wwd-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wwd-video-overlay h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    padding: 0 1.5rem;
}

/* ---- Photo Carousels ---- */
.wwd-carousel {
    background: #111;
    overflow: hidden;
    padding: 1.5rem 0;
}

.wwd-carousel-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: carousel-scroll 60s linear infinite;
}

.wwd-carousel-track--reverse {
    animation-direction: reverse;
}

.wwd-carousel:hover .wwd-carousel-track {
    animation-play-state: paused;
}

.wwd-carousel-track img {
    height: 200px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 767.98px) {
    .wwd-carousel-track img {
        height: 140px;
    }
}

.wwd-section {
    padding: 4.5rem 1.5rem;
}

.wwd-section-light {
    background-color: var(--vg-bg-light);
}

.wwd-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vg-text-muted);
    margin-bottom: 0.5rem;
}

.wwd-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.25rem;
}

.wwd-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--vg-text-muted);
    margin-bottom: 1.5rem;
}

.wwd-section p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 1rem;
}

.wwd-feature-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.wwd-feature-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.wwd-feature-list li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.4rem;
}

.wwd-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    object-fit: cover;
    max-height: 480px;
}

.wwd-station-diagram {
    max-width: 100%;
    height: auto;
}

.wwd-cta-section {
    padding: 3rem 1.5rem;
    background-color: #fff;
}

/* ---- Resources Hero ---- */
.res-hero {
    position: relative;
    padding: 120px 1.5rem 4.5rem;
    overflow: hidden;
    background: #f5f5f5;
}

.res-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1600px;
    height: 1600px;
    transform: translate(-50%, -50%);
    background: url('/images/veriground-cloud-icon.png') center / contain no-repeat;
    opacity: 0.25;
    pointer-events: none;
}

.res-hero-title {
    font-size: 3.2rem;
    text-align: center;
    animation: res-title-expand 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes res-title-expand {
    0% {
        opacity: 0;
        letter-spacing: -0.15em;
        transform: scaleX(0.6);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        letter-spacing: 0.02em;
        transform: scaleX(1);
    }
}

/* ---- Resources Intro Text ---- */
.res-intro-text {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 0;
    text-wrap: balance;
}

/* ---- Resource Cards ---- */
.res-card {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.res-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.res-card-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.res-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
}

.res-card-text {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.res-card-body .btn {
    align-self: flex-start;
    margin-top: 0.75rem;
}

.res-card-featured {
    position: relative;
    overflow: visible;
    border-color: #2a7a2a;
    border-top-width: 3px;
    box-shadow: 0 4px 24px rgba(42, 122, 42, 0.1);
}

.res-card-banner {
    flex: 0 0 100%;
    background: #2a7a2a;
    color: #fff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
}

.res-card-featured .res-card-body {
    padding: 2rem;
}

.res-card-img {
    flex: 0 0 325px;
    max-width: 325px;
    height: 200px;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.res-card-img-featured {
    flex: 0 0 420px;
    max-width: 420px;
    height: 240px;
}

.res-detail-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 1);
}

.res-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
}

@media (max-width: 575.98px) {
    .res-card {
        flex-direction: column;
    }

    .res-card-img {
        flex: none;
        max-width: 100%;
        height: 200px;
        order: -1;
    }
}

/* ---- Access Tiers ---- */
.res-tiers {
    padding: 5rem 1.5rem;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.res-tiers-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2a7a2a;
    margin-bottom: 0.5rem;
}

.res-tiers-heading {
    margin-bottom: 0.75rem !important;
}

.res-tiers-sub {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    text-wrap: balance;
}

.res-tier-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.res-tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.res-tier-card-featured {
    border-color: #2a7a2a;
    border-top-width: 3px;
    box-shadow: 0 4px 24px rgba(42, 122, 42, 0.1);
}

.res-tier-card-enterprise {
    background: #1a3320;
    border-color: transparent;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.res-tier-badge-pill {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #2a7a2a;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 0.28rem 0.85rem;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}

.res-tier-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2a7a2a;
    margin-bottom: 0.3rem;
    margin-top: 0.5rem;
}

.res-tier-card-enterprise .res-tier-eyebrow {
    color: #7abf7a;
}

.res-tier-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1rem;
}

.res-tier-card-enterprise .res-tier-name {
    color: #fff;
}

.res-tier-rule {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 0 1rem 0;
}

.res-tier-card-enterprise .res-tier-rule {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.res-tier-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.res-tier-list > li {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.55;
    padding: 0.45rem 0 0.45rem 1.4rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.res-tier-list > li:last-child {
    border-bottom: none;
}

.res-tier-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%232a7a2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.res-tier-card-enterprise .res-tier-list > li {
    color: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.res-tier-card-enterprise .res-tier-list > li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%237abf7a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.res-tier-sublist {
    list-style: none;
    padding: 0.2rem 0 0 0;
    margin: 0;
}

.res-tier-sublist li {
    font-size: 0.82rem;
    color: #666;
    padding: 0.12rem 0 0.12rem 0.75rem;
    position: relative;
}

.res-tier-sublist li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #999;
    font-size: 0.75rem;
    line-height: 1.6;
}

.res-tier-inherits {
    font-size: 0.8rem !important;
    font-style: italic;
    color: #999 !important;
    border-bottom-color: transparent !important;
    padding-bottom: 0.2rem !important;
}

.res-tier-inherits::before {
    display: none !important;
}

.res-tier-stat {
    background: rgba(122, 191, 122, 0.12);
    border-radius: 6px;
    padding: 0.55rem 0.65rem 0.55rem 1.65rem !important;
    border-bottom: none !important;
    margin-top: 0.25rem;
}

.res-tier-stat strong {
    color: #7abf7a;
}

.res-tier-desc {
    flex: 1;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.res-tier-card-enterprise .res-tier-desc {
    color: rgba(255, 255, 255, 0.82);
}

.res-tier-foot {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    justify-content: center;
}

.res-tier-card-enterprise .res-tier-foot {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-vg-primary,
    .hero-content .btn-vg-outline {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .promo-section {
        padding: 3rem 1rem;
    }

    .promo-section h2 {
        font-size: 1.5rem;
    }

    .pbi-frame {
        height: 400px;
    }

    .wwd-video-hero {
        height: 60vh;
    }

    .wwd-video-overlay h1 {
        font-size: 1.75rem;
    }

    .wwd-section {
        padding: 3rem 1rem;
    }

    .wwd-title {
        font-size: 1.4rem;
    }

    .wwd-img {
        max-height: 350px;
        margin-top: 1.5rem;
    }
}

/* ========================================
   News Page
   ======================================== */

.news-hero {
    background: var(--vg-dark);
    padding: 148px 1.5rem 5.5rem;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
}

.news-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76,175,80,0.6), transparent);
}

.news-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
}

.news-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #4caf50;
    margin-bottom: 1.25rem;
}

.news-hero-eyebrow::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    background: #4caf50;
    flex-shrink: 0;
}

.news-hero-title {
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0;
    animation: news-title-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes news-title-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* News Feed */
.news-feed {
    background: #fff;
}

.news-item {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    opacity: 0;
    transform: translateY(28px);
    animation: news-item-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.news-item:last-child {
    border-bottom: none;
}

@keyframes news-item-in {
    to { opacity: 1; transform: translateY(0); }
}

.news-item:nth-child(1) { animation-delay: 0.12s; }
.news-item:nth-child(2) { animation-delay: 0.22s; }
.news-item:nth-child(3) { animation-delay: 0.30s; }
.news-item:nth-child(4) { animation-delay: 0.36s; }
.news-item:nth-child(5) { animation-delay: 0.40s; }

.news-date-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4caf50;
    margin-bottom: 1rem;
}

.news-date-tag::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #4caf50;
    flex-shrink: 0;
}

.news-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--vg-darker);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 1.2rem;
}

.news-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #444;
    white-space: pre-line;
    margin-bottom: 1.75rem;
}

.news-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    aspect-ratio: 4 / 3;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-img-wrap:hover img {
    transform: scale(1.04);
}

.news-empty {
    padding: 7rem 1.5rem;
    text-align: center;
    color: var(--vg-text-muted);
    font-size: 1.05rem;
}

@media (max-width: 767.98px) {
    .news-hero {
        padding: 120px 1.5rem 4rem;
    }

    .news-item {
        padding: 3.5rem 0;
    }

    .news-img-wrap {
        margin-bottom: 0.5rem;
    }
}
