/* -------------------------------------------------------------------------
   LTES Educator of the Year - homepage popup
   Added 2026-11-11.

   Loaded only by resources/views/includes/popup.blade.php, which is included
   from the two homepage views only, so these rules never reach internal pages.

   Everything is namespaced under .ltes-popup* so nothing here can collide with
   styles.css / main_front.css.
   ------------------------------------------------------------------------- */

.ltes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    /* collapses the whitespace between the :before strut and the card */
    font-size: 0;
}

/* Vertical centring without flexbox - this site still targets older browsers.
   A full-height inline-block strut lets the card sit on the middle baseline,
   and the overlay stays scrollable when the card is taller than the viewport. */
.ltes-popup-overlay:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.ltes-popup {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    width: 90%;
    max-width: 560px;
    margin: 20px auto;
    padding: 34px 34px 30px;
    background: #ffffff;
    border-top: 6px solid #5a8c2d;
    border-radius: 4px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.ltes-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777777;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.ltes-popup-close:hover,
.ltes-popup-close:focus {
    color: #000000;
}

.ltes-popup-title {
    margin: 0 0 14px 0;
    padding: 0 28px 0 0; /* keeps the heading clear of the X button */
    font-size: 21px;
    line-height: 1.3;
    font-weight: bold;
    color: #1d1d1d;
}

.ltes-popup-desc {
    margin: 0 0 22px 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

.ltes-popup-cta {
    margin: 0;
    padding: 0;
}

/* !important is needed here only because styles.css sets a blanket link colour
   (a { color: #FFF }) that would otherwise make this button text invisible. */
.ltes-popup-cta a {
    display: inline-block;
    padding: 11px 30px;
    background: #5a8c2d;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 3px;
}

.ltes-popup-cta a:hover,
.ltes-popup-cta a:focus {
    background: #4a7525;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Tablet / narrow desktop */
@media screen and (max-width: 768px) {
    .ltes-popup {
        padding: 30px 26px 26px;
    }
}

/* Phone */
@media screen and (max-width: 600px) {
    .ltes-popup {
        width: 92%;
        margin: 14px auto;
        padding: 26px 18px 22px;
    }

    .ltes-popup-title {
        font-size: 18px;
        padding-right: 24px;
    }

    .ltes-popup-desc {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .ltes-popup-cta a {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }
}
