/* Toolbar, WhatsApp, dark mode, a11y, search */
.bs-toolbar {
    position: fixed;
    top: 120px;
    right: 0;
    z-index: 9980;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bs-blue-dark, #1e3a5f);
    border-radius: 8px 0 0 8px;
    padding: 6px;
    box-shadow: -4px 4px 16px rgba(0,0,0,0.15);
}
.bs-toolbar button {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}
.bs-toolbar button:hover { background: var(--bs-gold, #c9a227); }

.bs-whatsapp {
    position: fixed;
    bottom: 100px;
    right: 22px;
    z-index: 9988;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}
.bs-whatsapp:hover { color: #fff; transform: scale(1.08); }

.bs-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.bs-search-modal.open { display: flex; }
.bs-search-box {
    background: #fff;
    width: 90%;
    max-width: 560px;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}
.bs-search-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}
#bs-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
.bs-search-hit {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: inherit;
}
.bs-search-hit strong { display: block; color: var(--bs-blue-dark); }

body.bs-dark { background: #0f172a !important; color: #e2e8f0; }
body.bs-dark .main-header,
body.bs-dark section { background-color: #1e293b !important; }
body.bs-dark .sec-title h1, body.bs-dark h3 { color: #f1f5f9 !important; }
body.bs-dark .text, body.bs-dark p { color: #cbd5e1 !important; }

body.bs-a11y-large { font-size: 118%; }
body.lang-ar { font-family: 'Cairo', 'Tajawal', sans-serif; }

/* Premium sections */
.principal-photo { max-width: 100%; border-radius: 12px; }
.virtual-tour-embed iframe { width: 100%; height: 450px; border: 0; border-radius: 12px; }
.fees-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.fees-table th, .fees-table td { padding: 14px 18px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.fees-table th { background: var(--bs-blue-dark); color: #fff; }
.grade-avail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.grade-avail-item { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.grade-avail-item.waitlist { border-left: 4px solid #f59e0b; }
.grade-avail-item.open { border-left: 4px solid #22c55e; }
.grade-name { font-weight: 700; color: var(--bs-blue-dark); }
.testimonial-card, .alumni-card, .showcase-card, .career-item {
    background: #fff; padding: 24px; border-radius: 12px; margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.career-item-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.career-item-header h3, .career-item-header h4 { margin: 0; color: var(--bs-blue-dark); }
.career-job-code {
    display: inline-block; background: var(--bs-gold, #c9a227); color: #1e3a5f;
    font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 20px;
}
.career-page-item { max-width: 800px; margin-left: auto; margin-right: auto; }
.career-page-item .theme-btn { margin-top: 12px; }
.accreditations-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.accreditation-item img { max-height: 60px; object-fit: contain; }
.tracker-result.success { background: #ecfdf5; padding: 20px; border-radius: 12px; }
.tracker-result.error { background: #fef2f2; padding: 20px; color: #b91c1c; }
.event-calendar-link { font-size: 13px; margin-top: 8px; display: inline-block; color: var(--bs-blue); }
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    padding-bottom: 16px;
}
.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0f172a;
}
.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.video-card h3 {
    margin: 14px 16px 6px;
    color: var(--bs-blue-dark, #1e3a5f);
    font-size: 1.15rem;
}
.video-card p {
    margin: 0 16px;
    color: #64748b;
}

/* Advertisement banners — top of website */
.ad-banners-section {
    display: none;
}
.ad-banners-section.is-visible {
    display: block;
}
.ad-banners-top {
    position: relative;
    z-index: 10050;
    width: 100%;
    padding: 0;
    background: #0f172a;
}
.ad-banners-top .ad-banners-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
.ad-banner {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.ad-banner-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    padding: 12px 48px 12px 18px;
    text-align: center;
}
.ad-banner-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 12px;
    min-width: 0;
}
.ad-banner-copy strong { font-size: 1rem; }
.ad-banner-copy span { opacity: 0.95; font-size: 0.92rem; }
.ad-banner-btn {
    display: inline-block;
    background: var(--bs-gold, #c9a227);
    color: #1e3a5f !important;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 0.9rem;
}
.ad-banner-btn:hover { filter: brightness(1.05); color: #1e3a5f !important; }
.ad-banner-image { background: #0f172a; }
.ad-banner-media-link { display: block; }
.ad-banner-media-link img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    display: block;
}
.ad-banner-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 48px 12px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
}
.ad-banner-overlay strong { font-size: 1rem; }
.ad-banner-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.ad-banner-image .ad-banner-close { top: 8px; transform: none; }
.ad-banner-close:hover { background: rgba(0,0,0,0.65); }

/* Welcome / announcement popup */
.bs-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bs-popup.open { opacity: 1; }
.bs-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}
.bs-popup-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}
.bs-popup.open .bs-popup-dialog { transform: none; }
.bs-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}
.bs-popup-media img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}
.bs-popup-body { padding: 22px 24px 24px; text-align: center; }
.bs-popup-body h2 {
    margin: 0 0 10px;
    color: #1e3a5f;
    font-size: 1.45rem;
}
.bs-popup-body p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.55;
}
.bs-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.bs-popup-dismiss {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.section-cms-btn {
    margin-top: 14px;
}
.section-cms-btn .theme-btn {
    display: inline-block;
}

@media (max-width: 767px) {
    .ad-banner-text { padding: 10px 40px 10px 12px; }
    .ad-banner-media-link img { max-height: 110px; }
    .bs-popup-dialog { max-width: 100%; }
}
[data-bs-security-badge] { font-size: 13px; color: #64748b; margin-top: 8px; }
[data-bs-parent-portal] { display: none; margin-left: 12px; }
