.dta .search-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Circular button with smooth hover effect */
.dta .btn-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease-in-out, background 0.3s;
}

.dta .btn-circle:hover {
    background-color: #0056b3 !important;
    transform: scale(1.1);
}

/* Dark mode for modal */
@media (prefers-color-scheme: dark) {
    .custom-modal {
        background: rgba(30, 30, 30, 0.9);
        color: #fff;
    }
}

#dtaSearchModal {
    backdrop-filter: blur(16px);
}

#dtaSearchModal .modal-backdrop,
#dtaSearchModal.show {
    background: rgba(7, 15, 26, 0.28);
}

#dtaSearchModal .modal-dialog {
    max-width: 760px;
    margin: 12vh auto;
}

#dtaSearchModal .modal-content {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(247, 249, 252, 0.94)
    );
    border: 1px solid rgba(20, 48, 79, 0.08);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    padding: 28px;
}

.modal-header-container {
    position: static;
    transform: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.search-modal__heading {
    max-width: 520px;
}

.search-modal__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8a6a34;
}

.modal-header-container h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #16304c;
    background: none;
    padding: 0;
    border-radius: 0;
}

.search-modal__heading p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(22, 48, 76, 0.72);
}

.search-modal__close {
    min-width: 112px;
    height: 48px;
    padding: 0 10px 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(20, 48, 79, 0.08);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    color: #16304c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.search-modal__close:hover,
.search-modal__close:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(20, 48, 79, 0.14);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.search-modal__close:focus-visible {
    outline: 2px solid rgba(20, 48, 79, 0.18);
    outline-offset: 3px;
}

.search-modal__close-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(20, 48, 79, 0.08);
}

.search-modal__close-icon::before,
.search-modal__close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #16304c;
    border-radius: 999px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.search-modal__close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.search-modal__panel {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(244, 247, 251, 0.88)
    );
    border: 1px solid rgba(20, 48, 79, 0.06);
}

.search-modal__meta {
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(22, 48, 76, 0.52);
}

.gcse-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 22px 20px;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid rgba(20, 48, 79, 0.08);
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 24px rgba(15, 23, 42, 0.04);
}

.gsc-search-button-v2 {
    padding: 4px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .gsc-search-box-tools .gsc-search-box .gsc-input {
        margin: -5px !important;
    }

    #dtaSearchModal {
        margin-top: 6rem;
    }

    #dtaSearchModal .modal-dialog {
        margin: 10vh 16px;
    }

    #dtaSearchModal .modal-content {
        padding: 20px;
        border-radius: 22px;
    }

    .modal-header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .modal-header-container h2 {
        font-size: 26px;
    }

    .search-modal__close {
        width: 100%;
    }

    .search-modal__panel {
        padding: 16px;
        border-radius: 20px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 20px;
    background-color: #25d366 !important;
    color: #fff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active,
.whatsapp-float:visited {
    background-color: #20ba5a !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    text-decoration: none !important;
}

.whatsapp-float i {
    margin-top: 3px;
    color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 15px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 60px;
        right: 10px;
        font-size: 24px;
    }
}

.school-card {
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    gap: 14px;
    background: #fff;
    border-color: 0.15s ease;
    box-shadow: 0.15s ease;
    background-color: 0.15s ease;
    color: 0.15s ease;
}

.school-card:hover {
    border-color: rgba(38, 63, 147, 0.35);
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    background-color: var(--rt-primary);
    color: #fff;
}

/* FIX: icon reacts to card hover */
.school-card:hover .school-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.school-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 63, 147, 0.18);
}

.school-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(38, 63, 147, 0.08);
    color: var(--rt-primary);
    font-size: 3rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.school-text {
    line-height: 1.35;
}
