/* ==========================================================
   SLAA Professional Outreach — Public Styles v1.0.1
   Elementor/wpautop-hardened: suppress injected <br> and <p>
   tags that WordPress/Elementor insert inside shortcode output.
========================================================== */

/* ---- Suppress wpautop/Elementor injected elements ---- */
.slaa-pro-wrap br,
.slaa-pro-wrap p:empty,
.slaa-pro-card br,
.slaa-card-header br,
.slaa-card-header p:empty,
.slaa-card-title br,
.slaa-card-title a br,
.slaa-card-body > br,
.slaa-pro-single br,
.slaa-single-header br,
.slaa-single-header p:empty,
.slaa-pdf-links br {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Any <p> directly inside our structural containers that is
   purely injected (has no text) gets zeroed out. */
.slaa-card-header > p,
.slaa-card-title > p,
.slaa-single-header > p {
    display: none !important;
}

/* ---- Layout wrapper ---- */
.slaa-pro-wrap {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.slaa-pro-wrap.slaa-cols-2 { grid-template-columns: repeat(2, 1fr); }
.slaa-pro-wrap.slaa-cols-3 { grid-template-columns: repeat(3, 1fr); }
.slaa-pro-wrap.slaa-cols-4 { grid-template-columns: repeat(4, 1fr); }
.slaa-pro-wrap.slaa-layout-list { grid-template-columns: 1fr; }

@media (max-width: 900px) {
    .slaa-pro-wrap.slaa-cols-3,
    .slaa-pro-wrap.slaa-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .slaa-pro-wrap.slaa-cols-2,
    .slaa-pro-wrap.slaa-cols-3,
    .slaa-pro-wrap.slaa-cols-4 { grid-template-columns: 1fr; }
}

/* ---- Cards ---- */
.slaa-pro-card {
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: box-shadow .2s ease, transform .2s ease;
}
.slaa-pro-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* ---- Card Header ---- */
.slaa-card-header {
    background: #1a3a5c;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    /* Prevent Elementor flex-wrapping injected <p>/<br> from
       disrupting the badge + title layout */
    flex-wrap: nowrap;
}
/* Exclude any injected <p> or <br> from flex flow entirely */
.slaa-card-header > p,
.slaa-card-header > br { display: none !important; }

.slaa-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    /* Prevent wpautop <br> from adding height inside the <a> */
    overflow: hidden;
}
.slaa-card-title a {
    color: #fff;
    text-decoration: none;
    /* Force link to be a simple inline-block; neutralises
       any block-level children Elementor might inject */
    display: inline;
}
.slaa-card-title a:hover { text-decoration: underline; }
/* Kill any <br> Elementor injects inside the title anchor */
.slaa-card-title a br,
.slaa-card-title br { display: none !important; }

.slaa-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
/* Suppress auto-injected <p> margin in card body if theme styles bleed in */
.slaa-card-body > p { margin-bottom: 0; }

/* ---- Badge ---- */
.slaa-badge {
    display: inline-block;
    background: #c59a2e;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.slaa-badge-lg { font-size: .8rem; padding: 4px 10px; }
.slaa-badge-sm { font-size: .6rem; padding: 2px 6px; }

/* ---- Meta rows ---- */
.slaa-meta-row {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-size: .875rem;
    color: #444;
    line-height: 1.4;
}
.slaa-meta-icon { flex-shrink: 0; }
.slaa-mission {
    font-size: .875rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ---- PDF Download Buttons ---- */
.slaa-pdf-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}
.slaa-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: 6px 14px;
    background: #1a5080;
    color: #fff !important;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease;
    white-space: nowrap;
    line-height: 1.4;
}
.slaa-pdf-btn:hover { background: #0e3358; }
.slaa-pdf-btn-sm { padding: 4px 10px; font-size: .75rem; }
.slaa-pdf-btn-lg { padding: 10px 20px; font-size: .95rem; }
.slaa-pdf-links-lg { gap: .75rem; }

/* ---- Card Footer ---- */
.slaa-card-footer {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid #eef0f3;
}

/* ---- Generic Buttons ---- */
.slaa-btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    background: #1a3a5c;
    color: #fff !important;
    border: 2px solid #1a3a5c;
    line-height: 1.4;
}
.slaa-btn:hover { background: #0e2440; border-color: #0e2440; }
.slaa-btn-outline {
    background: transparent;
    color: #1a3a5c !important;
}
.slaa-btn-outline:hover { background: #1a3a5c; color: #fff !important; }
.slaa-btn-lg { padding: 10px 22px; font-size: .95rem; }
.slaa-btn-text {
    background: transparent;
    border-color: transparent;
    color: #1a5080 !important;
    padding: 7px 4px;
}
.slaa-btn-text:hover {
    text-decoration: underline !important;
    background: transparent;
    border-color: transparent;
}

/* ==========================================================
   SINGLE PAGE
========================================================== */
.slaa-page-wrap { max-width: 820px; margin: 0 auto; padding: 1.5rem 1rem; }
.slaa-pro-single { font-family: inherit; }

.slaa-single-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
/* Suppress Elementor injected elements in single header */
.slaa-single-header > br,
.slaa-single-header > p:empty { display: none !important; }

.slaa-single-title { margin: 0; font-size: 1.75rem; line-height: 1.2; }

.slaa-single-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8ecf0;
}
.slaa-section-heading {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a3a5c;
}

/* ---- PDF Section ---- */
.slaa-pdf-preview-wrap {
    margin-top: 1.25rem;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f6f8;
}
.slaa-pdf-preview {
    width: 100%;
    height: 680px;
    border: none;
    display: block;
}
@media (max-width: 600px) {
    .slaa-pdf-preview { height: 420px; }
}

/* ---- Action bar ---- */
.slaa-single-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e8ecf0;
}

/* ---- Contact / Request form section ---- */
.slaa-contact-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e8ecf0;
}
.slaa-contact-section .slaa-section-heading { margin-bottom: 1.25rem; }

/* ---- Contact info section ---- */
.slaa-contact-info { }

/* ==========================================================
   TABLE VIEW
========================================================== */
.slaa-schedule-wrap { overflow-x: auto; margin: 1.5rem 0; }
.slaa-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.slaa-schedule-table th {
    background: #1a3a5c;
    color: #fff;
    text-align: left;
    padding: .6rem .9rem;
    font-weight: 600;
}
.slaa-schedule-table td {
    padding: .6rem .9rem;
    border-bottom: 1px solid #e2e4e8;
    vertical-align: top;
}
.slaa-schedule-table tr:nth-child(even) td { background: #f7f8fa; }
.slaa-schedule-table tr:hover td { background: #eef3fa; }
.slaa-schedule-table a {
    color: #1a5080;
    text-decoration: none;
    font-weight: 600;
}
.slaa-schedule-table a:hover { text-decoration: underline; }
.slaa-pdf-cell {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
