/* =============================================================
   CAA Base Styles
   Companion stylesheet for Tailwind CSS redesign
   Loaded via public-header.php
   ============================================================= */


/* -------------------------------------------------------------
   BODY
   ------------------------------------------------------------- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #444444;
}


/* -------------------------------------------------------------
   HEADINGS
   ------------------------------------------------------------- */
body h1 {
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    color: #005da0;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

body h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 300;
    color: #005da0;   
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 20px;
    font-weight: 700;
    color: #b82027;
    text-transform: uppercase;
    line-height: 1.3;
}

body h4 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    color: #005da0;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

body h5 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    color: #444444;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}


/* -------------------------------------------------------------
   BODY COPY
   ------------------------------------------------------------- */
body p {
    margin-top: 0;
    font-size: 16px;
    color: #444444;
    line-height: 1.75;
    margin-bottom: 1rem;  /* equivalent to Tailwind mb-4 */
}


/* -------------------------------------------------------------
   LINKS
   ------------------------------------------------------------- */
body a {
    color: #005da0;
    text-decoration: none;
}
body a:hover {
    color: #b82027;
}


/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */

/* Primary: blue — main CTAs */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #005da0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0.375rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.15s;
}
.btn-primary:hover {
    background-color: #004a80;
    color: #ffffff;
}

/* Secondary: red — secondary CTAs */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #b82027;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0.375rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.15s;
}
.btn-secondary:hover {
    background-color: #9a1a20;
    color: #ffffff;
}

/* Full-width variant */
.btn-primary.btn-full,
.btn-secondary.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}


/* -------------------------------------------------------------
   BOX HEADERS
   Used for section boxes: HOW TO ENROLL, PRICING, etc.
   ------------------------------------------------------------- */

/* Blue box header */
.caa-box-header-blue {
    padding: 0.5rem 1rem;
    background-color: #005da0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.375rem 0.375rem 0 0;  /* rounded top corners */
}

/* Red box header */
.caa-box-header-red {
    padding: 0.5rem 1rem;
    background-color: #b82027;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.375rem 0.375rem 0 0;
}


/* -------------------------------------------------------------
   PROMO BAR
   Full-width blue section used at bottom of pages
   ------------------------------------------------------------- */
.caa-promo {
    background-color: #005da0;
    color: rgba(255, 255, 255, 0.85);
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Override heading colors inside promo bars */
.caa-promo h1,
.caa-promo h2,
.caa-promo h3,
.caa-promo h4 {
    color: #ffffff;
    text-transform: none;
}

.caa-promo p {
    color: rgba(255, 255, 255, 0.85);
}

.caa-promo a {
    color: #ffffff;
}
.caa-promo a:hover {
    color: rgba(255, 255, 255, 0.75);
}


/* -------------------------------------------------------------
   LISTS
   ------------------------------------------------------------- */
body ul, body ol {
    font-size: 16px;
    color: #444444;
    line-height: 1.75;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
body ul { list-style-type: disc; }
body ol { list-style-type: decimal; }
body li { margin-bottom: 0.25rem; }


/* -------------------------------------------------------------
   TABLES
   ------------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
th {
    font-weight: 700;
    color: #005da0;
    text-align: left;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid #005da0;
}
td {
    color: #444444;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
tr:hover td {
    background-color: #f9fafb;
}


/* -------------------------------------------------------------
   UTILITY OVERRIDES
   Common color overrides used in body copy
   ------------------------------------------------------------- */

/* Red text — warnings, notes */
.text-red {
    color: #b82027;
}

/* Blue text */
.text-blue {
    color: #005da0;
}

/* Small note text */
.text-note {
    font-size: 14px;
    color: #b82027;
    line-height: 1.75;
}


/* -------------------------------------------------------------
   STATE PAGE DB CONTENT
   Normalizes raw HTML from database (agency_info, state_info)
   which may use bare text and <br> rather than <p> tags
   ------------------------------------------------------------- */
.state-content {
    font-size: 16px;
    color: #444444;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}


/* -------------------------------------------------------------
   FOOTER OVERRIDE
   Footer uses inline styles for color/size control.
   Reset p so it doesn't pick up body copy defaults.
   ------------------------------------------------------------- */
footer p {
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}


/* -------------------------------------------------------------
   RED CALLOUT BOX
   Used for red background boxes with white text
   ------------------------------------------------------------- */
.caa-box-red {
    background-color: #b82027;
    color: rgba(255, 255, 255, 0.9);
}
.caa-box-red p {
    color: rgba(255, 255, 255, 0.9);
}
.caa-box-red a {
    color: #ffffff;
}
.caa-box-red a:hover {
    color: rgba(255, 255, 255, 0.75);
}


/* White button — for use on colored backgrounds (promo bars, etc.) */
.btn-white {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #ffffff;
    color: #005da0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0.375rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.15s;
}
.btn-white:hover {
    background-color: #f0f4f8;
    color: #005da0;
}

/* btn-primary inside promo bars — use darker blue to stand out */
.caa-promo .btn-primary {
    background-color: #004a80;
}
.caa-promo .btn-primary:hover {
    background-color: #003d6b;
}


/* -------------------------------------------------------------
   ACCORDION / TOGGLE
   Usage:
     <div class="caa-accordion">
       <button class="caa-accordion-header" onclick="toggleDetails('id', 'btnId')">
         <span>Section Title</span>
         <span id="btnId" class="caa-accordion-toggle">+ More</span>
       </button>
       <div id="id" class="caa-accordion-body" style="display:none;">
         ...content...
       </div>
     </div>
   ------------------------------------------------------------- */
.caa-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1.5rem;
}

.caa-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background-color: #f3f4f6;
    text-align: left;
    cursor: pointer;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.caa-accordion-header:hover {
    background-color: #e5e7eb;
}

.caa-accordion-toggle {
    font-size: 13px;
    font-weight: 600;
    color: #005da0;
}

.caa-accordion-body {
    padding: 1.25rem;
}



/* -------------------------------------------------------------
   BLOG POST BODY CONTENT
   Scoped to .post-content so page header H2s are not affected
   ------------------------------------------------------------- */
.post-content h2 {
    margin-top: 1.5rem;
}
.post-content h3 {
    margin-top: 1.5rem;
}


/* -------------------------------------------------------------
   ACCORDION BODY CONTENT
   Tailwind preflight can zero out p margins inside accordions
   ------------------------------------------------------------- */
.caa-accordion-body p {
    margin-bottom: 1rem;
}
.caa-accordion-body p:last-child {
    margin-bottom: 0;
}
.caa-accordion-body ul,
.caa-accordion-body ol {
    margin-bottom: 1rem;
}
