/* =====================
   GLOBAL LAYOUT
===================== */

body {
    padding-top: 1px;
    padding-bottom: 1px;
}

/* Prevent content touching edges */
.body-content {
    padding-left: 1px;
    padding-right: 1px;
}

/* Fix bootstrap description list truncation */
.dl-horizontal dt {
    white-space: normal;
}

/* Limit input width */
input,
select,
textarea {
    max-width: 280px;
}

/* FIXED: invalid selector */
.textData {
    font-size: 15px;
}

/* =====================
   HEADER / LOGO
===================== */

.clsLogo {
    margin-top: -25px;
    height: 75px;
    width: auto;
}

.clsJobLink {
    margin-top: -25px;
    height: 75px;
    width: auto;
    color: black;
    text-decoration: underline;
}

/* =====================
   FOOTER
===================== */

.footerComments {
    color: #ffffff !important;
}

    .footerComments:hover::before {
        color: #310e49 !important;
    }

    .footerComments:hover::after {
        color: #2d2c80 !important;
    }

/* =====================
   IMAGE MODAL
===================== */

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    #myImg:hover {
        opacity: 0.7;
    }

/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    padding-top: 90px;
    inset: 0;
    overflow: auto;
}

.modal-lg {
    position: absolute;
    z-index: 9999;
    padding-top: 90px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Modal content */
.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 750px;
}

/* Caption */
#caption {
    margin: auto;
    width: 90%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Animation */
.modal-content,
#caption {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Close buttons */
.close,
.closePhoto {
    position: absolute;
    color: #000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close {
    top: 15px;
    right: 35px;
}

.closePhoto {
    top: 0;
    right: 375px;
}

    .close:hover,
    .closePhoto:hover {
        color: #bbb;
    }

/* Responsive */
@media (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}

/* =====================
   DOWNLOAD / NEWS
===================== */

.downloadAttachment {
    background: url("../images/downloadImage.png") no-repeat;
    display: block;
    height: 25px;
}

.newsUpdate {
    background: url("../images/NewsAnnouncements.jpg") no-repeat center;
    height: 100px;
    text-indent: -9999px;
}

.news {
    margin-bottom: 15px;
}

.educateWithUs {
    height: 100px;
    text-indent: -9999px;
}

/* =====================
   TEXT & TYPOGRAPHY
===================== */

.main {
    text-align: center;
    font-family: "Times New Roman";
}

.set1 {
    font-size: 36px;
    font-weight: bold;
    color: white;
    text-align: left;
}

.set2 {
    text-align: left;
}

.newsText {
    font-size: 24px;
    color: #db1458;
    background-color: #7fff00;
}

.error-info {
    font-size: 12px;
    color: red;
}

.required {
    color: red;
    font-weight: bold;
}

/* =====================
   FORMS
===================== */

#SSFStudentId_chosen,
.ssstudent_search_drp {
    width: auto !important;
}

form#frmSsfAddEdit select.form-control,
form#frmSsfAddEdit .chosen-container {
    width: 100% !important;
    max-width: 100%;
}

/* =====================
   CONTACT LIST
===================== */

.contact-list {
    list-style: none;
    margin: 27px auto;
    padding-left: 18px;
    width: fit-content;
    text-align: center;
    border-left: 3px solid green;
    font-size: 10px;
    line-height: 1.2;
}

    .contact-list li {
        padding: 6px 0;
        font-size: 12px;
    }

        .contact-list li:first-child {
            font-weight: bold;
        }

    .contact-list i {
        color: green;
        margin-right: 5px;
    }

/* =====================
   DOWNLOAD LINK
===================== */

.download-link {
    position: relative;
    padding-right: 30px;
    color: red;
}

.download-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
}

/* =====================
   MISC
===================== */

.logLink {
    font-size: 12px;
}

.advMainPopup {
    display: none !important;
}
/* ================= MARQUEE FIX ================= */

.info-marquee {
    width: 100%;
    background: #ffc107; /* bootstrap warning */
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
}

    /* Individual marquee items */
    .info-marquee .marquee-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0 25px;
        font-weight: 600;
        font-size: 15px;
        color: #000;
        text-decoration: none;
    }

    /* Image inside marquee */
    .info-marquee img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    /* Hover effect */
    .info-marquee .marquee-item:hover {
        text-decoration: underline;
    }

/* Mobile adjustments */
@media (max-width: 576px) {
    .info-marquee .marquee-item {
        font-size: 14px;
        margin: 0 15px;
    }

    .info-marquee img {
        width: 18px;
        height: 18px;
    }
}
#divIsTeachingStaff input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

    #divIsTeachingStaff input[type="radio"]:checked {
        background-color: white;
    }
#divIsTeachingStaff label {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* controls space between radio & text */
    margin-right: 12px;
    cursor: pointer;
}

#divIsTeachingStaff input[type="radio"] {
    margin: 0; /* removes default browser spacing */
}
/* =========================================================
   BOOTSTRAP + LEGACY TEMPLATE FIXES
   ========================================================= */

/* ---------------------------------------------------------
   1. RESTORE BOOTSTRAP CONTAINER GUTTERS (CRITICAL FIX)
   --------------------------------------------------------- */
.container,
.container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* ---------------------------------------------------------
   2. NEUTRALIZE WRAPPER SIDE EFFECTS (DO NOT REMOVE IT)
   --------------------------------------------------------- */
.wrapper {
    text-align: inherit;
    box-sizing: border-box;
}

    /* ---------------------------------------------------------
   3. FIX FOOTER SPACING (row4 + row5)
   --------------------------------------------------------- */
    .wrapper.row4,
    .wrapper.row5 {
        padding-left: 12px;
        padding-right: 12px;
    }

/* ---------------------------------------------------------
   4. PREVENT .hoc AND BOOTSTRAP CONTAINER CONFLICT
   --------------------------------------------------------- */
.hoc {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   5. MOBILE SAFETY FIX
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .wrapper.row4,
    .wrapper.row5 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ---------------------------------------------------------
   6. PREVENT TEXT ALIGNMENT OVERRIDES
   --------------------------------------------------------- */
.text-start,
.text-center,
.text-end {
    text-align: inherit;
}

/* ---------------------------------------------------------
   7. PREVENT OVERFLOW ISSUES CAUSED BY FLOATS
   --------------------------------------------------------- */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}
/* Ensure modal is not constrained by wrapper/hoc */
.modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1055 !important;
}

.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1050 !important;
}

.modal-dialog {
    max-height: calc(100vh - 2rem);
}

.modal-content {
    max-height: 100%;
    overflow: hidden;
}

.modal-body {
    overflow-y: auto;
}