﻿/* ============================================
   CERA Home Page Styles
   ============================================ */

/* Variables to match STFM brand */
:root {
    --stfm-primary: #1d417b; /* Dark Blue */
    --stfm-secondary: #ef8d2b; /* Orange */
    --stfm-tertiary: #0096D2; /* Bright Blue */
    --stfm-text: #333333;
    --stfm-text-light: #f8f9fa;
    --stfm-light-gray: #f8f9fa;
    --stfm-border-gray: #dee2e6;
    --stfm-heading-font: 'Montserrat', sans-serif;
    --stfm-body-font: 'Open Sans', sans-serif;
}

/* ============================================
   Main Layout
   ============================================ */
.cera-home-content {
    font-family: var(--stfm-body-font);
    color: var(--stfm-text);
}

.cera-main-section {
    background-color: #ffffff;
}

    .cera-main-section .row {
        position: relative;
    }

        .cera-main-section .row::before {
            content: '';
            position: absolute;
            left: calc(75% - 0.75rem);
            top: 1.5rem;
            bottom: 0;
            width: 1px;
            background-color: #e9ecef;
            z-index: 1;
        }

        .cera-main-section .row:has(.col-lg-12)::before {
            display: none;
        }
/* ============================================
   Accordion Styles - Minimalist Design
   ============================================ */
.cera-accordion {
    background-color: #ffffff;
    padding-right: 1.5rem;
}

.accordion-panel {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

    .accordion-panel:last-child {
        border-bottom: none;
    }

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .accordion-header:hover {
        background-color: rgba(0, 150, 210, 0.02);
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 8px;
    }

    .accordion-header h2 {
        font-family: var(--stfm-heading-font);
        font-weight: 700;
        font-size: 1.4rem;
        color: var(--stfm-primary);
        margin: 0;
        transition: color 0.3s ease;
    }

.accordion-panel.active .accordion-header h2 {
    color: var(--stfm-tertiary);
}

.accordion-icon {
    font-size: 1rem;
    color: var(--stfm-tertiary);
    transition: transform 0.3s ease;
}

.accordion-panel.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0;
}

.accordion-panel.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

.accordion-panel-list {
    margin-bottom: 30px;
}

.accordion-panel-list-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.accordion-content ul {
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
}

.accordion-content li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: #555;
    display: flex;
    align-items: flex-start;
    padding-left: 2rem;
    position: relative;
}

    .accordion-content li .icon {
        position: absolute;
        left: 0;
        top: 0.1rem;
        font-size: 0.9rem;
        color: var(--stfm-secondary);
        width: 1.5rem; /* reserve space for alignment */
        text-align: center;
    }

        .accordion-content li .icon > i.fa-circle,
        .accordion-content li .icon > i.fa-circle,
        .accordion-content li .icon > i.fa-check {
            font-size: 0.48em; /* smaller than text so it reads like a bullet */
            line-height: 1;
            vertical-align: middle; /* keep vertically centered with the text */
            margin-right: 0.55em; /* consistent gap before text */
            transform: translateY(0.02em); /* tiny nudge if needed; tweak 0–0.06em */
        }

        .accordion-content li .icon > i.fa-check {
            font-size: 0.78em; /* smaller than text so it reads like a bullet */
        }

/* Make Font Awesome minus render as a baseline "underscore" line */
.fas.fa-minus {
    /* tune these two to taste */
    --u-len: 2.1em; /* length of the line */
    --u-thick: 0.12em; /* thickness of the line */

    display: inline-block;
    width: var(--u-len);
    height: 0; /* baseline = bottom edge */
    border-bottom: var(--u-thick) solid currentColor;
    margin-right: 0.65em; /* space before text */
    /* alignment that doesn't affect siblings */
    vertical-align: baseline; /* when NOT in a flex container */
    align-self: baseline; /* when inside a flex <li> */
}

    /* Hide the actual FA glyph but ONLY for the minus icon */
    .fas.fa-minus::before {
        content: none !important;
    }




.accordion-content strong,
.accordion-content b {
    color: var(--stfm-primary);
    font-weight: 600;
}

.accordion-content em {
    color: var(--stfm-secondary);
    font-style: normal;
    font-weight: 600;
}

.accordion-content .vision-statement {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(to right, transparent 0%, rgba(0, 150, 210, 0.02) 5%, rgba(0, 150, 210, 0.02) 95%, transparent 100%);
    border-radius: 6px;
    overflow: visible;
    position: relative;
    text-align: center;
}

    .accordion-content .vision-statement::before {
        content: '"';
        font-family: var(--stfm-heading-font);
        font-size: 2rem;
        color: var(--stfm-tertiary);
        opacity: 0.3;
        position: absolute;
        left: -1rem;
        top: -0.5rem;
        z-index: 1;
    }

    .accordion-content .vision-statement::after {
        content: '"';
        font-family: var(--stfm-heading-font);
        font-size: 2rem;
        color: var(--stfm-tertiary);
        opacity: 0.3;
        position: absolute;
        right: -1rem;
        bottom: -1rem;
        z-index: 1;
    }

    .accordion-content .vision-statement p {
        font-family: var(--stfm-body-font);
        font-size: 1.3rem;
        font-weight: 400;
        font-style: italic;
        color: var(--stfm-primary);
        margin: 0;
        line-height: 1.4;
        text-align: center;
        position: relative;
        z-index: 2;
        letter-spacing: 0.5px;
    }

        .accordion-content .vision-statement p::before {
            display: none;
        }

.accordiong-list-supporting-text-italic {
    font-style: italic;
}

/* ============================================
   Sidebar Styles
   ============================================ */
.cera-sidebar {
    position: sticky;
    top: 2rem;
    padding-left: 1rem;
}

.sidebar-header {
    margin-bottom: .5rem;
    padding: .5rem 0 .5rem 0; 
}

    .sidebar-header h3 {
        font-family: var(--stfm-heading-font);
        font-weight: 700;
        font-size: 1.3rem;
        color: var(--stfm-primary);
        margin: 0 0 0.5rem 0;
    }

.year-badge {
    color: var(--stfm-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.survey-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

    .survey-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.survey-type {
    font-family: var(--stfm-heading-font);
    font-weight: 700;
    font-size: 1rem;
    color: var(--stfm-primary);
    margin-bottom: 0.5rem;
}

.survey-details {
    font-size: 0.9rem;
}

.survey-description {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #666;
    font-size: 0.9rem;
}

.survey-details-supporting-text {
    margin: 0.5rem 0;
    line-height: 1.4;
    color: #666;
    font-size: 0.9rem;
}

.survey-details-supporting-text-italic {
    margin: 0.5rem 0;
    line-height: 1.4;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.survey-detail-list {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

    .survey-detail-list li {
        margin-bottom: 0.25rem;
        line-height: 1.4;
        color: #666;
        padding-left: 1.5rem;
        position: relative;
    }

        .survey-detail-list li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--stfm-secondary);
            position: absolute;
            left: 0;
            top: 0.1rem;
            font-size: 0.8rem;
        }

.detail-line {
    margin-bottom: 0.25rem;
    color: #666;
    line-height: 1.4;
}


/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991.98px) {
    .cera-main-section .row::before {
        display: none;
    }

    .cera-accordion {
        padding-right: 0; /* Remove padding on mobile */
    }

    .cera-sidebar {
        position: static;
        margin-top: 2rem;
        padding-left: 0;
    }

    .counter-text-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-right: 2rem;
    }

        .counter-text-content h2 {
            font-family: var(--stfm-heading-font);
            font-weight: 700;
            font-size: 2rem;
            color: var(--stfm-primary);
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .counter-text-content .lead {
            font-size: 1.1rem;
            color: var(--stfm-primary);
            margin-bottom: 0;
            line-height: 1.5;
            font-weight: 400;
        }

    .counter-cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .counter-image {
        display: none;
    }

    /* Hide grid lines by removing pseudo-elements */
    .counter-cards-grid::before,
    .counter-cards-grid::after {
        display: none;
    }

    /* Hide center point */
    .counter-cards-grid .center-point {
        display: none;
    }

    /* Adjust grid to show only cards */
    .counter-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
        padding: 1rem;
        max-width: 400px;
    }

    /* Stack counter cards vertically */
    .counter-card {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .accordion-header {
        padding: 1rem 0;
    }

        .accordion-header h2 {
            font-size: 1.2rem;
        }

    .accordion-panel.active .accordion-content {
        padding-bottom: 1rem;
    }

    .sidebar-header h3 {
        font-size: 1.2rem;
    }

    .year-badge {
        font-size: 0.85rem;
    }
}