/* =============================================================
   Homepage Hero Banner
   Background image is set inline via style= on .rc-hero-banner
   from home.cfm using $.siteConfig('themeAssetPath')
   ============================================================= */

.rc-hero-banner {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay */
.rc-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1;
}

.rc-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 16px;
}

/* Centers the tabs + card as a unit */
.rc-hero-inner {
    width: 80%;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .rc-hero-inner { width: 95%; }
}



/* =============================================================
   Tabs — sit flush above the white card
   ============================================================= */

.rc-hero-inner .nav-tabs {
    border-bottom: none;
    margin-bottom: 0;
    padding-left: 0;
}

.rc-hero-inner .nav-tabs .nav-item {
    margin-bottom: 0;
}

.rc-hero-inner .nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.78);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    font-weight: 600;
    padding: 8px 22px;
    transition: background 0.2s ease;
    margin-right: 3px;
}

.rc-hero-inner .nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.93);
    color: #0d6efd;
}

.rc-hero-inner .nav-tabs .nav-link.active {
    background: #fff;
    color: #0d6efd;
    border-color: #dee2e6 #dee2e6 #fff;
}


/* =============================================================
   White card (.carouselbuttonbar inside .rc-hero-inner)
   ============================================================= */

.rc-hero-inner .carouselbuttonbar {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0 12px 12px 12px;
    border: none;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
    padding: 28px 32px;
    width: 100%;
    margin: 0;
}

@media (max-width: 767px) {
    .rc-hero-inner .carouselbuttonbar {
        padding: 20px 16px;
        border-radius: 0 8px 8px 8px;
    }
}


/* =============================================================
   Simple Search — autocomplete form
   ============================================================= */

.rc-hero-inner #schoolSearch label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
    font-size: 1.05rem;
    text-align: center;
}

.rc-hero-inner #schoolSearch .input-group {
    border-radius: 50px;
    border: 1px solid #ccc;
    flex-wrap: nowrap;
    background: #fff;
}

.rc-hero-inner #schoolSearch .input-group-text {
    background: #fff;
    border: none;
    border-right: 1px solid #ccc;
    color: #555;
    font-size: 0.9rem;
    padding: 10px 16px;
    flex-shrink: 0;
}

.rc-hero-inner #schoolSearch .form-control {
    border: none;
    box-shadow: none;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 0 50px 50px 0;
    min-width: 0;
    flex: 1;
}

.rc-hero-inner #schoolSearch .form-control:focus {
    box-shadow: none;
    outline: none;
}

.rc-hero-inner #schoolSearch .btn-autoCompleteSchool {
    display: block;
    margin: 14px auto 0;
    border-radius: 50px;
    padding: 7px 32px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid #aaa;
    color: #555;
    transition: all 0.2s ease;
}

.rc-hero-inner #schoolSearch .btn-autoCompleteSchool:not([disabled]):hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}


/* =============================================================
   Advanced Search — picker form
   ============================================================= */

.rc-hero-inner #standard_st {
    padding: 4px 0;
}

.rc-hero-inner #m_pickerMain,
.rc-hero-inner #m_pickerDrillDown {
    margin-bottom: 10px;
    align-items: center;
}

.rc-hero-inner .picker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
}

.rc-hero-inner .picker label {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    min-width: 65px;
    text-align: right;
    margin: 0;
    font-size: 0.9rem;
}

.rc-hero-inner .picker .form-control,
.rc-hero-inner .picker select {
    flex: 1;
    border-radius: 50px;
    border: 1px solid #ccc;
    padding: 6px 14px;
    font-size: 0.9rem;
    appearance: auto;
    -webkit-appearance: auto;
}

.rc-hero-inner .picker .form-control:focus,
.rc-hero-inner .picker select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    outline: none;
}

.rc-hero-inner .btn-advSearch {
    display: block;
    margin: 10px auto 0;
    border-radius: 50px;
    padding: 7px 32px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid #aaa;
    color: #555;
    transition: all 0.2s ease;
}

.rc-hero-inner .btn-advSearch:not([disabled]):hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

@media (max-width: 575px) {
    .rc-hero-inner .picker {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .rc-hero-inner .picker label {
        text-align: left;
        min-width: unset;
    }
    .rc-hero-inner .picker .form-control,
    .rc-hero-inner .picker select { width: 100%; }
}


/* =============================================================
   jQuery UI Autocomplete dropdown — homepage hero
   jQuery UI appends .ui-autocomplete to <body> so it needs
   a high z-index and matching styles to sit correctly over
   the hero overlay (z-index: 1) and card (z-index: 2)
   ============================================================= */

.ui-autocomplete {
    z-index: 9999 !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    font-size: 0.9rem;
    list-style: none;
}

.ui-autocomplete .ui-menu-item {
    padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 9px 16px;
    cursor: pointer;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: #f0f5ff;
    color: #0d6efd;
}

/* Highlighted match text (yellow in jQuery UI by default) */
.ui-autocomplete .ui-autocomplete-category {
    font-weight: 700;
    padding: 6px 16px 4px;
    color: #888;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8f9fa;
    pointer-events: none;
}


/* =============================================================
   Rating Boxes — Home Page
   Replaces panel/panel-default/panel-body/card-pf-body
   which no longer exist in BS5
   ============================================================= */

/* Outer container */
.home-panels {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    padding: 24px 20px !important;
}

/* Each rating box wrapper — equal width */
.schoolBox.ratingBox {
    flex: 1 1 0;
    min-width: 0;
}

/* Replace .panel.panel-default.cardbox — the actual card */
.schoolBox.ratingBox .panel {
    border: none;
    border-radius: 14px;
    height: auto !important;  /* override the inline height JS was setting */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Replace .panel-body — the colored content area */
.schoolBox.ratingBox .panel-body {
    padding: 20px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    box-sizing: border-box;
}

.schoolBox.ratingBox .panel-body h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Replace .card-pf-body.cardMain */
.schoolBox.ratingBox .card-pf-body.cardMain {
    margin: 0;
}

.schoolBox.ratingBox .card-pf-body.cardMain .col-8 {
    width: 100%;
    padding: 0;
}

.schoolBox.ratingBox .card-pf-body.cardMain p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Rating colors — matched to target screenshot
   5 = Excellent  (gold)
   4 = Good       (light yellow)
   3 = Average    (light blue-gray)
   2 = Below Avg  (teal/dark)
   1 = Unsat      (dark navy)
*/
.panel-body.rating-5 {
    background-color: #F0C060 !important;
    color: #2d2d2d;
}
.panel-body.rating-5 h4,
.panel-body.rating-5 p {
    color: #2d2d2d;
}

.panel-body.rating-4 {
    background-color: #F5E6C8 !important;
    color: #2d2d2d;
}
.panel-body.rating-4 h4,
.panel-body.rating-4 p {
    color: #2d2d2d;
}

.panel-body.rating-3 {
    background-color: #D8E4EE !important;
    color: #2d2d2d;
}
.panel-body.rating-3 h4,
.panel-body.rating-3 p {
    color: #2d2d2d;
}

.panel-body.rating-2 {
    background-color: #2E6B7A !important;
    color: #fff;
}
.panel-body.rating-2 h4,
.panel-body.rating-2 p {
    color: #fff;
}

.panel-body.rating-1 {
    background-color: #2C3A4A !important;
    color: #fff;
}
.panel-body.rating-1 h4,
.panel-body.rating-1 p {
    color: #fff;
}

@media (max-width: 575px) {
    .schoolBox.ratingBox {
        flex: 1 1 100px;
        max-width: 160px;
    }
    .schoolBox.ratingBox .panel-body {
        padding: 14px 12px;
    }
    .schoolBox.ratingBox .panel-body h4 {
        font-size: 0.85rem;
    }
}


/* =============================================================
   Footer
   ============================================================= */

/* Breadcrumb in footer — override BS5 default bg */
footer.footer-wrapper ul.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

footer.footer-wrapper ul.breadcrumb li {
    color: #fff;
    font-size: 0.8rem;
    list-style: none;
}

footer.footer-wrapper ul.breadcrumb li + li::before {
    content: '›';
    margin-right: 6px;
    color: rgba(255,255,255,0.5);
}

/* Back-to-top button — fixed to bottom-right of viewport */
footer.footer-wrapper .scroll-top {
    position: static;
    border: none;
    margin: 0;
    padding: 0;
}

/* Hide the col-lg-2 flow version — we use a fixed button instead */
footer.footer-wrapper .col-lg-2 {
    position: static;
}

.back-to-top {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #2d6fbd !important;
    color: #fff !important;
    border-radius: 6px;
    border: none !important;
    transition: background 0.2s ease;
    font-size: 1rem;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.back-to-top:hover {
    background-color: #1a55a0 !important;
    color: #fff !important;
}

/* Agency logos row — side by side, centered */
footer.footer-wrapper .agency-logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 0 20px;
}

footer.footer-wrapper .footerlogo {
    max-height: 100px;
    width: auto;
    display: block;
}

footer.footer-wrapper .scde-logo-img {
    max-height: 200px;
}

footer.footer-wrapper .eoc-logo-img {
    max-height: 80px;
}

@media (max-width: 575px) {
    footer.footer-wrapper .agency-logos {
        flex-direction: column;
        gap: 20px;
    }
}


/* =============================================================
   Modal Styles
   ============================================================= */

.modal-content {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.modal-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 20px;
    align-items: center;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.modal-body {
    background: #fff;
}

.modal-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
}

/* Form labels inside modals */
.modal-body label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 5px;
    margin-top: 12px;
}

.modal-body label:first-child {
    margin-top: 0;
}

/* Select inputs inside modals */
.modal-body select.form-control,
.modal-body select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: #fff;
    appearance: auto;
    -webkit-appearance: auto;
}

.modal-body select.form-control:focus,
.modal-body select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    outline: none;
}

/* View Report Card / submit button in modal footer */
.modal-footer .btn-advSearch,
.modal-footer .btn-primary,
.modal-footer input[type="submit"] {
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid #aaa;
    background: transparent;
    color: #555;
    transition: all 0.2s ease;
}

.modal-footer .btn-advSearch:not([disabled]):hover,
.modal-footer .btn-primary:not([disabled]):hover,
.modal-footer input[type="submit"]:not([disabled]):hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Error modal */
.modal-content.border-danger.rcerror .modal-header {
    background-color: #fff0f0;
    border-bottom-color: #f5c6cb;
}
