:root {
    --brand-primary: #005a8d;
    --brand-primary-dark: #053b64;
    --brand-secondary: #00a7a0;
    --brand-accent: #f6c343;
    --surface-soft: #f6f9fc;
    --surface-card: #ffffff;
    --text-muted-soft: #7b8794;
}

body.public-body {
    min-height: 100vh;
    color: #1f2d3d;
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
    font-family: Nunito, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.public-navbar,
.navbar.bg-primary {
    background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-primary)) !important;
    box-shadow: 0 10px 30px rgba(5, 59, 100, 0.18);
}

.public-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 700;
}

.public-navbar .nav-link.active,
.public-navbar .nav-link:hover {
    color: #fff !important;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 90, 141, 0.22);
}

.logo-mark-sm {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

.hero-section,
.public-hero {
    background: radial-gradient(circle at 85% 20%, rgba(0, 167, 160, 0.18), transparent 40%),
                radial-gradient(circle at 10% 80%, rgba(0, 90, 141, 0.14), transparent 35%);
}

.public-hero {
    position: relative;
    overflow: hidden;
}

.public-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% 45%;
    height: 360px;
    border-radius: 999px;
    background: rgba(0, 167, 160, 0.12);
    transform: rotate(-8deg);
}

.hero-panel {
    position: relative;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.88));
    border: 1px solid rgba(0, 90, 141, 0.08);
    box-shadow: 0 30px 70px rgba(5, 59, 100, 0.16);
    z-index: 1;
}

.public-body .card,
.public-body .accordion-item {
    border-radius: 1rem;
}

.public-body .card {
    border: 0;
    box-shadow: 0 14px 35px rgba(35, 57, 111, 0.08);
}

.public-body .card-header {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.section-kicker {
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    color: var(--brand-secondary);
}

.question-card {
    border: 1px solid rgba(0, 90, 141, 0.08);
    background: #fff;
    border-radius: 1rem;
    padding: 1.15rem;
}

.scale-options .form-check {
    min-width: 150px;
    padding: .6rem .8rem .6rem 2.05rem;
    border: 1px solid #e5ecf6;
    border-radius: .85rem;
    background: #f9fbfe;
}

.scale-options .form-check-input:checked + .form-check-label {
    color: var(--brand-primary);
    font-weight: 800;
}

.public-body .table thead th {
    color: #25396f;
    background: #f8faff;
    font-weight: 800;
    border-bottom-width: 1px;
}

.public-body .table > :not(caption) > * > * {
    vertical-align: middle;
}

.badge-soft-primary {
    color: var(--brand-primary);
    background: rgba(0, 90, 141, 0.11);
}

.badge-soft-success {
    color: #087f5b;
    background: rgba(25, 135, 84, 0.12);
}

.badge-soft-warning {
    color: #946200;
    background: rgba(246, 195, 67, 0.2);
}

.landing-shell {
    font-family: Inter, Nunito, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050b18;
    color: #fff;
}

.landing-nav {
    background: rgba(5, 11, 24, 0.88);
    backdrop-filter: blur(14px);
}

.landing-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(2, 7, 20, 0.88) 0%, rgba(8, 28, 52, 0.91) 60%, rgba(3, 33, 46, 0.94) 100%),
                url('../images/background.jpeg') center/cover no-repeat;
}

.landing-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.02em;
}

.landing-hero p.lead {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.landing-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.35rem;
    backdrop-filter: blur(16px);
}

.landing-section-light {
    background: #f6f9fc;
    color: #1f2d3d;
}

.landing-feature-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-size: 1.5rem;
}

.chart-holder {
    min-height: 320px;
}

@media (max-width: 767.98px) {
    .display-5 {
        font-size: 2.15rem;
    }

    .scale-options .form-check {
        width: 100%;
    }
}

/* Social Media Action Widget Styling */
.social-widget-section {
    position: relative;
    background: #ffffff;
}

.social-card {
    position: relative;
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 30px rgba(35, 57, 111, 0.08);
    height: 100%;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(35, 57, 111, 0.16);
}

.social-card .social-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Instagram Theme */
.social-card-instagram {
    border-top: 4px solid #e1306c !important;
}

.social-card-instagram .social-icon-wrapper {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-card-instagram .btn-social {
    background: linear-gradient(45deg, #e1306c, #c13584);
    color: #fff;
    border: 0;
    font-weight: 700;
}

.social-card-instagram .btn-social:hover {
    opacity: 0.92;
    color: #fff;
}

/* TikTok Theme */
.social-card-tiktok {
    border-top: 4px solid #000000 !important;
}

.social-card-tiktok .social-icon-wrapper {
    background: #010101;
    color: #fe2c55;
    box-shadow: -2px 2px 0 #25f4ee, 2px -2px 0 #fe2c55;
}

.social-card-tiktok .btn-social {
    background: #000000;
    color: #fff;
    border: 0;
    font-weight: 700;
}

.social-card-tiktok .btn-social:hover {
    background: #252525;
    color: #fff;
}

/* Facebook Theme */
.social-card-facebook {
    border-top: 4px solid #1877f2 !important;
}

.social-card-facebook .social-icon-wrapper {
    background: #1877f2;
}

.social-card-facebook .btn-social {
    background: #1877f2;
    color: #fff;
    border: 0;
    font-weight: 700;
}

.social-card-facebook .btn-social:hover {
    background: #1465cc;
    color: #fff;
}

.social-handle-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #334155;
}

/* Floating Social Media Quick Action Bar */
.floating-social-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.floating-social-btn:hover {
    transform: scale(1.12);
}

.floating-social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floating-social-tiktok {
    background: #000;
    color: #fe2c55 !important;
}

.floating-social-facebook {
    background: #1877f2;
}

@media (max-width: 767.98px) {
    .floating-social-widget {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    .floating-social-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Fallback for bi-tiktok icon */
i.bi-tiktok::before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 0h1.98c.144.715.54 1.617 1.235 2.512C12.895 3.389 13.797 4 15 4v2c-1.753 0-3.07-.814-4-1.829V11a5 5 0 1 1-5-5c.28 0 .546.023.806.067V8.13A3.002 3.002 0 0 0 4 11a3 3 0 1 0 5-2.257V0z'/%3E%3C/svg%3E") no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9 0h1.98c.144.715.54 1.617 1.235 2.512C12.895 3.389 13.797 4 15 4v2c-1.753 0-3.07-.814-4-1.829V11a5 5 0 1 1-5-5c.28 0 .546.023.806.067V8.13A3.002 3.002 0 0 0 4 11a3 3 0 1 0 5-2.257V0z'/%3E%3C/svg%3E") no-repeat center / contain;
}


