/**
 * GGA Education Portal - Custom Styles
 * Bootstrap 5 Enhancements
 */

/* ============================================
   CSS Variables (GGA Brand Colors - Warm & Approachable)
   ============================================ */
:root {
    --gga-primary: #D4826A;       /* Terracotta Orange */
    --gga-primary-dark: #c4725a;  /* Terracotta hover/dark */
    --gga-secondary: #798B66;     /* Mossy Green */
    --gga-secondary-dark: #697b56;/* Mossy Green hover/dark */
    --gga-accent: #D4826A;        /* Terracotta Orange */
    --gga-dark: #5A5A58;          /* Graphite */
    --gga-heading: #111827;       /* Near-black for headings */
    --gga-light: #FFFFFF;         /* Pure White */
    --gga-cream: #EAE8E3;         /* Cream */
    --gga-grey: #A8A8A5;          /* Concrete Grey */
    --gga-text: #5A5A58;          /* Graphite for body text */
    --gga-muted: #A8A8A5;         /* Concrete Grey for muted text */
}

/* ============================================
   Global Styles
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gga-text);
    background-color: var(--gga-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Heading Styles - Playfair Display */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gga-heading);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gga-heading);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gga-heading);
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ============================================
   Environment Banner
   ============================================ */
.environment-banner {
    position: sticky;
    top: 0;
    z-index: 1100;
    font-size: 0.875rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

.site-header .navbar {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.logo-img {
    max-width: 200px;
    max-height: 60px;
    height: auto;
    width: auto;
}

.brand-text {
    line-height: 1.2;
}

.brand-heading1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gga-dark);
}

.brand-heading2 {
    font-size: 0.875rem;
    color: var(--gga-muted);
}

.powered-by {
    font-size: 0.8rem;
    color: #999;
    font-style: normal;
}

.navbar-nav .nav-link {
    color: var(--gga-text);
    font-weight: 300;
    letter-spacing: 0.70px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gga-primary);
    background-color: rgba(0, 0, 0, 0.08);
}

.navbar-nav .nav-link i {
    margin-right: 0.25rem;
}

/* Active nav state */
.navbar-nav .nav-link.active {
    color: var(--gga-primary);
    font-weight: 600;
}

/* Gigi nav avatar */
.nav-gigi {
    display: flex;
    align-items: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-gigi-avatar {
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.nav-gigi:hover .nav-gigi-avatar {
    transform: scale(1.1);
}

/* ============================================
   Main Content Area
   ============================================ */

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--gga-light);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background-color: var(--gga-primary);
    border-color: var(--gga-primary);
}

.btn-primary:hover {
    background-color: var(--gga-primary-dark);
    border-color: var(--gga-primary-dark);
}

.btn-secondary {
    background-color: var(--gga-secondary);
    border-color: var(--gga-secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: var(--gga-secondary);
    color: var(--gga-secondary);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--gga-secondary);
    color: var(--gga-secondary);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--gga-secondary);
    border-color: var(--gga-secondary);
    color: #fff;
}

.btn-accent {
    background-color: var(--gga-accent);
    border-color: var(--gga-accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--gga-primary-dark);
    border-color: var(--gga-primary-dark);
    color: #fff;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    margin-top: auto;
    font-size: 0.9rem;
    background-color: var(--gga-cream);
    color: var(--gga-text);
}

.site-footer p,
.site-footer li,
.site-footer span {
    color: var(--gga-text);
}

/* Tagline row */
.footer-tagline p {
    color: var(--gga-muted);
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.15rem !important;
}

/* Footer headings */
.footer-heading {
    color: var(--gga-text);
    font-weight: 400;
    font-style: normal;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    position: relative;
}

.footer-heading::after {
    display: none;
}

/* Tighten footer content on larger screens */
.footer-tagline,
.footer-columns {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer links */
.footer-links li {
    margin-bottom: 0.35rem;
}

.site-footer a:not(.btn) {
    color: var(--gga-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:not(.btn):hover {
    color: var(--gga-secondary) !important;
}

/* Contact column — envelope icon accent */
.footer-icon {
    color: var(--gga-secondary);
    margin-right: 0.25rem;
}

/* Bottom bar: social + phone + address */
.footer-bottom-bar {
    border-top: none;
}

.footer-divider {
    color: var(--gga-grey);
}

/* Social links (non-button style) */
.social-links a {
    color: var(--gga-muted);
    font-size: 1.1rem;
    margin: 0 0.35rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--gga-secondary) !important;
}

/* Copyright row */
.footer-copyright {
    border-top: none;
    color: var(--gga-muted);
}

.footer-copyright small {
    color: var(--gga-muted);
}

/* Contact Us column alignment */
.footer-contacts li {
    text-align: right;
}

@media (max-width: 767.98px) {
    .footer-contacts li {
        text-align: center;
    }
}

/* ============================================
   News/Articles
   ============================================ */
.article-card {
    margin-bottom: 1.5rem;
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--gga-muted);
}

.article-meta i {
    margin-right: 0.25rem;
}

.article-excerpt {
    color: var(--gga-text);
    line-height: 1.6;
}

/* ============================================
   Forms
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--gga-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gga-text);
}

/* ============================================
   Alerts & Messages
   ============================================ */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-gga-primary {
    color: var(--gga-primary) !important;
}

.text-gga-secondary {
    color: var(--gga-secondary) !important;
}

.text-gga-accent {
    color: var(--gga-accent) !important;
}

.bg-gga-primary {
    background-color: var(--gga-primary) !important;
}

.bg-gga-secondary {
    background-color: var(--gga-secondary) !important;
}

.bg-gga-light {
    background-color: var(--gga-light) !important;
}

/* Interactive Card - shared hover pattern for clickable cards */
.card-interactive {
    display: block;
    background: var(--gga-light);
    border: 2px solid var(--gga-grey);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.card-interactive:hover {
    border-color: var(--gga-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

/* Image zoom on hover inside interactive cards */
.card-interactive .img-zoom {
    transition: transform 0.3s ease;
}

.card-interactive:hover .img-zoom {
    transform: scale(1.05);
}

/* Title color change on hover inside interactive cards */
.card-interactive .title-hover {
    transition: color 0.2s ease;
}

.card-interactive:hover .title-hover {
    color: var(--gga-primary);
}

/* Notice/Warning box - yellow left-border disclaimer style */
.notice-warning {
    background: #fef9e7;
    border: none;
    border-left: 4px solid #f1c40f;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: #7d6608;
}

/* Category Badge - pill-shaped category label */
.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gga-primary);
    background: rgba(212, 130, 106, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* Link Arrow - animated read-more link */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gga-primary);
    transition: gap 0.2s ease;
}

.card-interactive:hover .link-arrow {
    gap: 0.75rem;
}

/* Font Display - Playfair Display utility */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
        margin-top: 1rem;
    }
    
    .brand-heading1 {
        font-size: 1rem;
    }
    
    .logo-img {
        max-width: 150px;
        max-height: 45px;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 1rem 0;
    }
}

/* ============================================
   NEW HOMEPAGE STYLES - Minimal Design
   ============================================ */

/* My Account Button */
.btn-my-account {
    font-size: 0.75rem;
    padding: 0.35rem 1rem;
    border-color: var(--gga-primary);
    color: var(--gga-primary);
}

.btn-my-account:hover {
    background-color: var(--gga-primary);
    border-color: var(--gga-primary);
    color: #fff;
}

.btn-my-account:focus,
.btn-my-account:active,
.btn-my-account.show,
.btn-outline-primary.btn-my-account:active,
.btn-outline-primary.btn-my-account:focus-visible,
.btn-check:active + .btn-my-account {
    background-color: var(--gga-primary) !important;
    border-color: var(--gga-primary) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.btn-my-account + .dropdown-menu {
    font-size: 0.75rem;
}

.btn-my-account + .dropdown-menu .dropdown-item:active {
    background-color: var(--gga-primary);
    color: #fff;
}

.language-select {
    border: 1px solid #ddd;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    min-width: 140px;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 0;
    background: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gga-heading);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-gigi-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gga-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Trust Badges */
.trust-badges span {
    font-size: 0.9rem;
    color: var(--gga-text);
}

.trust-badges i {
    color: var(--gga-muted);
    margin-right: 0.25rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 1rem 0 3rem;
    background: #fff;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gga-text);
    margin-bottom: 1.5rem;
}

/* Step Number */
.step-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--gga-dark);
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gga-dark);
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.9rem;
    color: var(--gga-text);
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

.step-footnote {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--gga-muted);
    max-width: 260px;
    margin: 0.75rem auto 0;
    line-height: 1.4;
}

/* Gigi's Toolkit Section */
.gigi-toolkit-section {
    padding: 3rem 0 4rem;
}

.toolkit-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.toolkit-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0;
}

/* Featured card (left column) */
.toolkit-featured-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toolkit-featured-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.toolkit-featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.toolkit-featured-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    max-width: 320px;
}

.toolkit-featured-hint {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* Tools card (right column) */
.toolkit-tools-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toolkit-tools-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
}

.toolkit-tools-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Tool rows — terracotta outline buttons */
.toolkit-tool-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--gga-primary);
    background: transparent;
    text-decoration: none;
    color: var(--gga-primary);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.toolkit-tool-row:hover {
    background-color: var(--gga-primary);
    border-color: var(--gga-primary);
    color: #fff;
    text-decoration: none;
}

.toolkit-tool-row:hover .toolkit-tool-hint {
    color: rgba(255, 255, 255, 0.85);
}

.toolkit-tool-row:hover .toolkit-tool-icon {
    color: #fff;
}

.toolkit-tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--gga-primary);
    transition: color 0.2s ease;
}

.toolkit-tool-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.toolkit-tool-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.toolkit-tool-hint {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.125rem;
}

.toolkit-tool-arrow {
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.toolkit-tool-row:hover .toolkit-tool-arrow {
    transform: translateX(4px);
}

@media (max-width: 767.98px) {
    .gigi-toolkit-section {
        padding: 2rem 0 3rem;
    }

    .toolkit-featured-card {
        padding: 1.5rem;
    }
}

/* GGA Primary Button - Terracotta */
.btn-gga-primary {
    background-color: var(--gga-primary);
    border-color: var(--gga-primary);
    color: #fff;
    padding: 0.75rem 2.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.btn-gga-primary:hover {
    background-color: var(--gga-primary-dark);
    border-color: var(--gga-primary-dark);
    color: #fff;
}

/* Two Cards Section */
.cards-section {
    padding: 4rem 0;
    background: #fff;
}

.info-card {
    border: 2px solid var(--gga-grey);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gga-dark);
    margin-bottom: 1rem;
}

.info-card-text {
    font-size: 0.95rem;
    color: var(--gga-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.info-card .btn-outline-secondary {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    align-self: center;
}

/* Featured Article Section */
.featured-article-section {
    padding: 5rem 0;
    background: #fff;
}

.featured-image-wrapper {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    max-height: 160px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.featured-image-placeholder i {
    font-size: 4rem;
    color: #ccc;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gga-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.featured-description {
    font-size: 1rem;
    color: var(--gga-muted);
    margin-bottom: 1.5rem;
}

.featured-article-section .btn-gga-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Featured Card - uses .card-interactive for base hover styles */
.featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.featured-card .link-arrow {
    margin-top: auto;
}

.featured-card .featured-image-wrapper {
    margin-bottom: 1.5rem;
}

.featured-card .featured-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gga-muted);
    margin-bottom: 0.5rem;
}

.featured-article-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gga-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

/* Responsive adjustments for new sections */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .how-it-works-section {
        padding: 2rem 0 3rem;
    }

    .cards-section {
        padding: 2rem 0;
    }

    .info-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .featured-title {
        font-size: 1.75rem;
    }

    .featured-card .featured-title {
        font-size: 1rem;
    }

    .featured-article-title {
        font-size: 1.25rem;
    }

    .featured-article-section {
        padding: 3rem 0;
    }
}

/* ============================================
   Gigi Shared Layout (Chat + Quiz pages)
   ============================================ */
.gigi-section {
    padding: 0 0 4rem 0;
    background: var(--gga-light, #f8f9fa);
    min-height: calc(100vh - 200px);
}

.gigi-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gigi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0 1.5rem 0;
    border-bottom: 2px solid #e9ecef;
    text-align: left;
}

.gigi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gigi-header-text h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gga-heading);
}

.gigi-header-text p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--gga-muted, #6c757d);
}

/* .gigi-disclaimer uses .notice-warning for base styles */
.gigi-disclaimer {
    padding-right: 2.5rem;
    margin-bottom: 1.25rem;
}

.gigi-disclaimer .btn-close {
    padding: 1rem;
}

.gigi-acknowledge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gigi-acknowledge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--gga-secondary);
    border: 1px solid var(--gga-secondary);
    border-radius: 6px;
    padding: 0.375rem 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    margin: 0;
}

.gigi-acknowledge-btn:hover {
    background: var(--gga-secondary-dark);
    border-color: var(--gga-secondary-dark);
}

.gigi-acknowledge-btn .form-check-input {
    margin: 0;
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: transparent;
}

.gigi-acknowledge-btn .form-check-input:checked {
    background-color: #fff;
    border-color: #fff;
}

.gigi-acknowledge-btn .form-check-input:checked::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
}

.gigi-acknowledge-btn .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(121, 139, 102, 0.35);
}

.gigi-dismiss-btn {
    font-size: 0.8rem;
    font-weight: 500;
    color: #7d6608;
    border: 1px solid #d4b83c;
    border-radius: 4px;
    background: rgba(241, 196, 15, 0.15);
    padding: 0.25rem 0.75rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.gigi-dismiss-btn:hover:not(:disabled) {
    background: rgba(241, 196, 15, 0.35);
    color: #5c4b06;
}

.gigi-dismiss-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Disabled state for chat when acknowledgement is not yet given */
.chat-input-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.suggested-questions-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.gigi-footer-disclaimer {
    font-size: 0.8rem;
    color: var(--gga-muted, #6c757d);
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    border-top: 1px solid #e9ecef;
}

/* ============================================
   INVESTMENT COMFORT QUESTIONNAIRE (Quiz)
   ============================================ */

/* Quiz Section */
.quiz-section {
    padding: 2rem 0 4rem;
    background: var(--gga-light);
    min-height: calc(100vh - 200px);
}

/* Quiz Container */
.quiz-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Intro Block - Hero-like styling */
.quiz-intro {
    background: transparent;
    padding: 3rem 0 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.quiz-intro__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gga-heading);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.quiz-intro__subtitle {
    font-size: 1rem;
    font-style: italic;
    color: var(--gga-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* .quiz-intro__note uses .notice-warning for base styles */
.quiz-intro__note {
    text-align: left;
    max-width: 100%;
}

/* Form Styles */
.quiz-form {
    margin: 0;
    padding: 0;
}

/* Question Block (Fieldset) */
.quiz-question {
    position: relative;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0.75rem 0;
    margin: 0;
    min-inline-size: 0;
    width: 100%;
    box-shadow: none;
    transition: opacity 0.25s ease;
}

.quiz-question[hidden] {
    display: none;
}

.quiz-question--active {
    background: transparent;
    box-shadow: none;
}

.quiz-question--completed {
    opacity: 0.85;
}

.quiz-question--completed .quiz-question__answers {
    pointer-events: none;
}

/* Question Number — small muted label */
.quiz-question__number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gga-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    margin-left: 3rem;
    display: block;
}

/* Legend — chat-bubble style (avatar + bubble) */
.quiz-question__legend {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gga-dark);
    line-height: 1.5;
    padding: 0;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.quiz-question__legend-text {
    flex: 1;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 2px 12px 12px 12px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Gigi Avatar on Questions — round like chat avatar */
.quiz-question__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .quiz-question__avatar {
        width: 60px;
        height: 60px;
    }
}


/* Help Text — muted line below the bubble */
.quiz-question__help {
    font-size: 0.8rem;
    color: var(--gga-muted);
    margin-bottom: 0.75rem;
    margin-left: 3rem;
    font-style: italic;
}

/* Answer Group — pill button layout like followup-buttons */
.quiz-question__answers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 3rem;
}

/* Radio Option — pill button style */
.quiz-option {
    position: relative;
    display: inline-block;
}

.quiz-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz-option__label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.4rem 1rem;
    background: #fff;
    border: 1px solid var(--gga-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--gga-primary);
    text-align: left;
}

.quiz-option__label:hover {
    background: var(--gga-primary);
    color: #fff;
}

.quiz-option__input:focus + .quiz-option__label {
    outline: 3px solid rgba(212, 130, 106, 0.4);
    outline-offset: 2px;
}

.quiz-option__input:checked + .quiz-option__label {
    background: var(--gga-primary);
    border-color: var(--gga-primary);
    color: #fff;
}

/* Hide the radio indicator — selection shown by pill fill */
.quiz-option__indicator {
    display: none;
}

.quiz-option__text {
    color: inherit;
}

/* Completed state for options */
.quiz-question--completed .quiz-option__label {
    cursor: default;
    opacity: 0.5;
}

.quiz-question--completed .quiz-option__input:checked + .quiz-option__label {
    opacity: 1;
    background: var(--gga-secondary);
    border-color: var(--gga-secondary);
    color: #fff;
}

/* Question Actions */
.quiz-question__actions {
    margin-top: 0.75rem;
    margin-left: 3rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quiz-question__actions[hidden] {
    display: none;
}

.quiz-question__back {
    border-color: var(--gga-grey);
    color: var(--gga-text);
}

.quiz-question__back:hover {
    background: var(--gga-cream);
    border-color: var(--gga-dark);
    color: var(--gga-dark);
}

.quiz-question__next:disabled {
    background: var(--gga-grey);
    border-color: var(--gga-grey);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Result Block — Chat Bubble Layout */
.quiz-result {
    padding: 0.5rem 0;
    color: var(--gga-dark);
}

.quiz-result[hidden] {
    display: none;
}

/* Chat message row (avatar + bubble) */
.quiz-result__chat-msg {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quiz-result__chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

@media (min-width: 576px) {
    .quiz-result__chat-avatar {
        width: 60px;
        height: 60px;
    }
}

.quiz-result__chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 2px 12px 12px 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.quiz-result__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--gga-dark);
}

/* Score Display */
.quiz-result__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: var(--gga-light, #f8f9fa);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.quiz-result__score-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gga-muted);
    margin-bottom: 0.25rem;
}

.quiz-result__score-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gga-primary);
}

.quiz-result__score-max {
    font-size: 0.8rem;
    color: var(--gga-muted);
    margin-top: 0.25rem;
}

.quiz-result__portfolio {
    font-size: 1rem;
    color: var(--gga-text);
    margin-bottom: 1rem;
}

.quiz-result__features {
    background: var(--gga-light, #f8f9fa);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    border: 1px solid #dee2e6;
}

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

.quiz-result__features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    color: var(--gga-text);
    font-size: 0.9rem;
}

.quiz-result__features li i {
    color: var(--gga-secondary);
}

/* CTA pill buttons — matches followup-btn pattern */
.quiz-result__cta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quiz-result__pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gga-primary, #D4826A);
    background: #fff;
    color: var(--gga-primary, #D4826A);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quiz-result__pill:hover {
    background: var(--gga-primary, #D4826A);
    color: #fff;
    text-decoration: none;
}

.quiz-result__disclaimer {
    font-size: 0.8rem;
    color: var(--gga-muted);
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
    padding-left: calc(36px + 0.75rem);
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation for question reveal */
@keyframes quizFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question--reveal {
    animation: quizFadeSlideIn 0.4s ease forwards;
}

.quiz-result--reveal {
    animation: quizFadeSlideIn 0.5s ease forwards;
}

/* Quiz Responsive Adjustments */
@media (min-width: 640px) {
    .quiz-container {
        padding: 0 1.5rem;
    }

    .quiz-intro__title {
        font-size: 2.75rem;
    }

    .quiz-result__chat-bubble {
        max-width: 75%;
    }
}

@media (max-width: 575.98px) {
    .quiz-intro {
        padding: 2rem 0 1.5rem;
    }

    .quiz-intro__title {
        font-size: 1.75rem;
    }

    .quiz-option__label {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .quiz-result__chat-bubble {
        max-width: 95%;
    }

    .quiz-result__title {
        font-size: 1.1rem;
    }

    .quiz-result__score-value {
        font-size: 2.5rem;
    }
}

/* ============================================
   QUIZ CHAT-STYLE STACKING
   ============================================ */

/* Chat-like wrapper that grows naturally */
.quiz-chat-scroll {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
}

/* Collapsed state for completed questions */
.quiz-question--collapsed {
    padding: 0.5rem 0;
    opacity: 0.9;
}

.quiz-question--collapsed:hover {
    opacity: 1;
}

/* Hide child elements in collapsed state */
.quiz-question--collapsed .quiz-question__help,
.quiz-question--collapsed .quiz-question__answers,
.quiz-question--collapsed .quiz-question__actions {
    display: none !important;
}

/* Hide question number in collapsed state */
.quiz-question--collapsed .quiz-question__number {
    display: none;
}

/* Compact legend in collapsed state */
.quiz-question--collapsed .quiz-question__legend {
    margin-bottom: 0;
}

.quiz-question--collapsed .quiz-question__legend-text {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Selected answer summary — "You" chat bubble (right-aligned)
   Uses inline-level children with text-align: right to avoid
   fieldset min-inline-size quirks that break flex layouts. */
.quiz-question__summary {
    text-align: right;
    font-size: 0;          /* collapse whitespace between inline children */
}

.quiz-question__summary-inner {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 80%;
    text-align: left;
    font-size: 0.8rem;     /* restore font size */
    margin-top: 1rem;
}

.quiz-question__summary-bubble {
    background-color: #667eea;
    color: #fff;
    border-radius: 12px 2px 12px 12px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.quiz-question__summary-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #8b9bf0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Edit button on collapsed questions */
.quiz-question__edit {
    position: absolute;
    top: 0.5rem;
    right: 0;
    background: none;
    border: none;
    color: var(--gga-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.quiz-question__edit:hover {
    color: var(--gga-primary);
    background: rgba(212, 130, 106, 0.1);
}

/* Responsive adjustments for chat-style quiz */
@media (max-width: 575.98px) {
    .quiz-question__number {
        margin-left: 2.5rem;
    }

    .quiz-question__help {
        margin-left: 2.5rem;
    }

    .quiz-question__answers {
        margin-left: 2.5rem;
    }

    .quiz-question__actions {
        margin-left: 2.5rem;
    }

    .quiz-question__summary-bubble {
        font-size: 0.75rem;
    }

    .quiz-question__summary-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .quiz-question__legend-text {
        font-size: 0.85rem;
    }

    .quiz-question__edit {
        font-size: 0.7rem;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--gga-secondary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--gga-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.back-to-top:focus {
    outline: 3px solid rgba(121, 139, 102, 0.4);
    outline-offset: 2px;
}

.back-to-top:active {
    transform: translateY(0);
}

/* Adjust position when translate widget is present */
@media (max-width: 575.98px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}

/* ============================================
   POSTS / ARTICLE LISTING PAGE
   ============================================ */

/* Filter Section */
.posts-filter-section {
    padding: 1.5rem 0;
    background: var(--gga-cream);
    border-bottom: 1px solid var(--gga-grey);
}

.posts-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.posts-filter__btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gga-text);
    background: var(--gga-light);
    border: 2px solid var(--gga-grey);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.posts-filter__btn:hover {
    border-color: var(--gga-primary);
    color: var(--gga-primary);
    text-decoration: none;
}

.posts-filter__btn--active {
    background: var(--gga-primary);
    border-color: var(--gga-primary);
    color: white;
}

.posts-filter__btn--active:hover {
    background: var(--gga-primary-dark);
    border-color: var(--gga-primary-dark);
    color: white;
}

/* Posts Section */
.posts-section {
    padding: 3rem 0 4rem;
    background: var(--gga-light);
    min-height: 60vh;
}

.posts-count {
    font-size: 0.875rem;
    color: var(--gga-muted);
    margin-bottom: 1.5rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Post Card - uses .card-interactive for base hover styles */

.post-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gga-cream);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__content {
    padding: 1rem;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.post-card__date {
    font-size: 0.8125rem;
    color: var(--gga-muted);
}

.post-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
    color: var(--gga-dark);
}

.post-card__excerpt {
    font-size: 0.85rem;
    color: var(--gga-text);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

/* Pagination */
.posts-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gga-grey);
}

.posts-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gga-text);
    background: var(--gga-light);
    border: 2px solid var(--gga-grey);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.posts-pagination__btn:hover {
    border-color: var(--gga-primary);
    color: var(--gga-primary);
    text-decoration: none;
}

.posts-pagination__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.posts-pagination__numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.posts-pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gga-text);
    background: var(--gga-light);
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.posts-pagination__num:hover {
    border-color: var(--gga-grey);
    text-decoration: none;
}

.posts-pagination__num--active {
    background: var(--gga-primary);
    color: white;
    border-color: var(--gga-primary);
}

.posts-pagination__ellipsis {
    padding: 0 0.5rem;
    color: var(--gga-muted);
}

/* Empty State */
.posts-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.posts-empty i {
    font-size: 4rem;
    color: var(--gga-grey);
    margin-bottom: 1.5rem;
}

.posts-empty h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gga-dark);
    margin: 0 0 0.5rem 0;
}

.posts-empty p {
    color: var(--gga-muted);
    margin: 0 0 1.5rem 0;
}

/* Posts Responsive */
@media (max-width: 991.98px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .post-card__title {
        font-size: 1rem;
    }
}

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

    .posts-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .posts-filter__btn {
        flex-shrink: 0;
    }

    .posts-pagination {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .posts-pagination__numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .posts-section {
        padding: 2rem 0 3rem;
    }

    .post-card__content {
        padding: 1rem;
    }

    .post-card__title {
        font-size: 0.95rem;
    }

    .post-card__excerpt {
        font-size: 0.8125rem;
    }

    .posts-pagination__btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .posts-pagination__num {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
}

/* ============================================
   SINGLE ARTICLE PAGE
   ============================================ */

/* Article Meta Bar - Cream bar with breadcrumbs and meta */
.article-meta-bar {
    padding: 1rem 0;
    background: var(--gga-cream);
    border-bottom: 1px solid var(--gga-grey);
}

.article-meta-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta-bar__inner--centered {
    justify-content: center;
    gap: 0.75rem;
}

.article-meta-divider {
    color: var(--gga-muted);
    font-size: 0.875rem;
}

/* Article Category Link */
.article-category-link {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gga-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-category-link:hover {
    color: var(--gga-secondary);
}

.article-date {
    font-size: 0.875rem;
    color: var(--gga-muted);
}

/* Article Section */
.article-section {
    padding: 3rem 0 4rem;
    background: var(--gga-light);
}

/* Article Content */
.article-content {
    background: var(--gga-light);
}

/* Article Image */
.article-image {
    margin: 0 0 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body - Content from CMS */
.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gga-text);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gga-dark);
    margin: 2rem 0 1rem 0;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gga-dark);
    margin: 1.75rem 0 1rem 0;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gga-dark);
    margin: 1.5rem 0 0.75rem 0;
}

.article-body p {
    margin: 0 0 1.25rem 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.25rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--gga-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--gga-cream);
    font-style: italic;
    color: var(--gga-text);
}

.article-body a {
    color: var(--gga-primary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--gga-primary-dark);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body th,
.article-body td {
    padding: 0.75rem;
    border: 1px solid var(--gga-grey);
    text-align: left;
}

.article-body th {
    background: var(--gga-cream);
    font-weight: 600;
}

/* Article Actions */
.article-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gga-grey);
}

/* Article Error State */
.article-error {
    text-align: center;
    padding: 4rem 2rem;
}

.article-error i {
    font-size: 4rem;
    color: var(--gga-primary);
    margin-bottom: 1.5rem;
}

.article-error p {
    font-size: 1.125rem;
    color: var(--gga-muted);
    margin-bottom: 1.5rem;
}

/* Recent Articles Section */
.article-recent {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gga-grey);
}

.article-recent__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gga-dark);
    margin: 0 0 1.5rem 0;
}

.article-recent__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Article Recent Item - uses .card-interactive for base hover styles */
.article-recent__item {
    border-radius: 8px;
}

.article-recent__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gga-cream);
}

.article-recent__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-recent__content {
    padding: 1rem;
}

.article-recent__date {
    font-size: 0.75rem;
    color: var(--gga-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.article-recent__heading {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gga-dark);
    margin: 0;
}

/* Article Responsive */
@media (max-width: 991.98px) {
    .article-recent__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .article-section {
        padding: 2rem 0 3rem;
    }

    .article-actions {
        flex-direction: column;
    }

    .article-recent__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .article-body {
        font-size: 0.9375rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   CONTENT PAGES (Disclaimer, About, etc.)
   ============================================ */
.content-header {
    padding: 3rem 0 2rem;
    background: var(--gga-light);
}

.content-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gga-heading);
    margin: 0;
}

.content-section {
    padding: 0 0 4rem;
    background: var(--gga-light);
}

.content-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gga-text);
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body a {
    color: var(--gga-primary);
    text-decoration: underline;
}

.content-body a:hover {
    color: var(--gga-primary-dark);
}

.disclaimer-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gga-cream);
    border-left: 4px solid var(--gga-primary);
    border-radius: 4px;
}

.disclaimer-notice p {
    margin-bottom: 0;
    font-size: 0.9375rem;
}

@media (max-width: 767.98px) {
    .content-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .content-header {
        padding: 2rem 0 1.5rem;
    }

    .content-title {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 0 0 3rem;
    }

    .content-body {
        font-size: 0.9375rem;
    }
}

/* ============================================
   ABOUT US / TEAM SECTION
   ============================================ */
.about-description {
    font-size: 1rem;
    line-height: 1.8;
}

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

.team-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gga-heading);
    margin-bottom: 0.5rem;
}

.team-section-subtitle {
    font-size: 1rem;
    color: var(--gga-text);
    margin-bottom: 2rem;
}

.team-member-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.team-member-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.team-photo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gga-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #9ca3af;
}

.team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-info .btn {
    margin-top: auto;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gga-heading);
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 0.875rem;
    color: var(--gga-text);
    margin-bottom: 0.75rem;
}

/* Staff Modal Styles */
.staff-modal-photo {
    max-width: 180px;
    border-radius: 8px;
}

.staff-modal-placeholder {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: var(--gga-cream);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #9ca3af;
}

.staff-modal-title {
    color: var(--gga-text);
    font-size: 0.9375rem;
}

.staff-contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.staff-contact-list li {
    margin-bottom: 0.5rem;
}

.staff-contact-list a {
    color: var(--gga-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.staff-contact-list a:hover {
    color: var(--gga-primary);
}

.staff-contact-list i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--gga-primary);
}

.staff-bio {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gga-text);
}

.staff-bio p {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .team-section-title {
        font-size: 1.75rem;
    }

    .team-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .team-name {
        font-size: 1rem;
    }

    .staff-modal-photo,
    .staff-modal-placeholder {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 575.98px) {
    .team-member-card {
        padding: 1rem;
    }

    .staff-contact-list {
        text-align: center;
    }
}

/* ============================================
   CHANGE JOBS FORM
   ============================================ */
.cj-form-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cj-form-card .form-control {
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
}

.cj-form-card .form-control:focus {
    border-color: var(--gga-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 130, 106, 0.2);
}

.cj-captcha-input {
    max-width: 160px;
}

.cj-consent-label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--gga-text);
}

.cj-form-card .form-check-input:checked {
    background-color: var(--gga-primary);
    border-color: var(--gga-primary);
}

/* Honeypot - visually hidden from users */
.cj-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .cj-form-card {
        padding: 1.5rem;
        border-radius: 8px;
    }
}

/* ============================================
   RISK RANKING PAGE
   ============================================ */
.rr-page {
    padding-left: 3rem;
    padding-right: 3rem;
}

.rr-title {
    color: var(--gga-dark);
    font-size: 28px;
    margin-bottom: 5px;
}

.rr-subtitle {
    color: var(--gga-muted);
    font-weight: normal;
}

/* Table */
.rr-table {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rr-table thead th {
    background-color: #337ab7;
    color: white;
    font-weight: bold;
    padding: 12px;
}

.rr-table tbody td {
    padding: 10px;
    font-size: 0.875rem;
    vertical-align: middle;
    transition: background-color 0.2s ease-in-out;
}

/* Vertical risk indicator column */
.rr-indicator {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 14px;
    color: var(--gga-dark);
    text-align: center;
    vertical-align: middle;
    padding: 20px 10px;
}

/* INDEX box */
.rr-index-box {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    padding: 15px;
    border-radius: 4px;
}

.rr-index-box h4 {
    margin-top: 0;
    color: #31708f;
}

/* Disclaimer box */
.rr-disclaimer-box {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    padding: 15px;
    border-radius: 4px;
    font-size: 12px;
}

.rr-disclaimer-box h4 {
    margin-top: 0;
    color: #8a6d3b;
}

/* Risk Ranking Responsive */
@media (max-width: 768px) {
    .rr-page {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Risk Ranking Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .site-header,
    .site-footer,
    .back-to-top,
    .environment-banner {
        display: none !important;
    }

    .rr-table {
        box-shadow: none;
    }

    body {
        background-color: white !important;
    }

    .rr-table tbody td {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .rr-indicator {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
