/* =========================================================
   Qabas Al Ibdaa Private School — main stylesheet
   Layout & palette follow the Leaders School template
   ========================================================= */
:root {
    /* ---- Qabas Al Ibdaa logo colours ---- */
    --qb-slate: #577898;        /* logo blue-grey (main)          */
    --qb-slate-dark: #3f5a75;
    --qb-slate-deep: #344b62;
    --qb-green-logo: #09c909;   /* logo green — accents only      */
    --qb-green-ink: #078a07;    /* logo green, deep enough for white text */
    --qb-yellow-logo: #f7d616;  /* logo yellow — use dark text on it */
    --qb-gold: #8a7000;         /* yellow family, readable on white */
    --qb-ink: #2b3d50;          /* dark text (on yellow, headings) */
    --qb-danger: #d93636;       /* form errors only */

    /* template slots mapped to the logo palette */
    --qb-red: var(--qb-slate);
    --qb-purple: var(--qb-slate-dark);
    --qb-green: var(--qb-green-ink);
    --qb-pink: var(--qb-slate-deep);
    --qb-yellow: var(--qb-yellow-logo);
    --qb-blue: var(--qb-slate);
    --qb-blue-dark: var(--qb-slate-deep);
    --qb-text: #5f6b78;
    --qb-dark: var(--qb-ink);
    --qb-light: #f3f6f9;
    --qb-head: 'Oswald', sans-serif;
    --qb-body: 'Lato', sans-serif;
}
.lang-ar {
    --qb-head: 'Cairo', sans-serif;
    --qb-body: 'Cairo', sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--qb-body);
    color: var(--qb-text);
    background: #fff;
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--qb-head); }
a { color: var(--qb-blue); text-decoration: none; transition: .25s; }
a:hover { color: var(--qb-red); }
img { max-width: 100%; }
[id] { scroll-margin-top: 110px; }

/* ================= NAVBAR ================= */
.qb-navbar {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: padding .25s;
}
.qb-navbar.scrolled { padding: 4px 0; }
.qb-brand { display: flex; align-items: center; gap: 10px; padding: 0; }
.qb-brand img { height: 86px; width: auto; transition: height .25s; }
.qb-navbar.scrolled .qb-brand img { height: 60px; }
.qb-brand-text {
    font-family: var(--qb-head);
    font-size: 20px;
    font-weight: 600;
    color: var(--qb-blue);
    line-height: 1.1;
    display: none;
}
.qb-nav .nav-link {
    font-family: var(--qb-head);
    font-size: 16px;
    text-transform: uppercase;
    padding: 8px 13px !important;
    margin: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}
.lang-ar .qb-nav .nav-link { font-weight: 700; font-size: 15px; }
.qb-nav .c-red    .nav-link { color: var(--qb-red); }
.qb-nav .c-purple .nav-link { color: var(--qb-purple); }
.qb-nav .c-green  .nav-link { color: var(--qb-green); }
.qb-nav .c-pink   .nav-link { color: var(--qb-pink); }
.qb-nav .c-yellow .nav-link { color: var(--qb-gold); }
.qb-nav .c-blue   .nav-link { color: var(--qb-blue); }
.qb-nav .c-red    .nav-link:hover, .qb-nav .c-red    .nav-link.active { background: var(--qb-red);    color: #fff; }
.qb-nav .c-purple .nav-link:hover, .qb-nav .c-purple .nav-link.active { background: var(--qb-purple); color: #fff; }
.qb-nav .c-green  .nav-link:hover, .qb-nav .c-green  .nav-link.active { background: var(--qb-green);  color: #fff; }
.qb-nav .c-pink   .nav-link:hover, .qb-nav .c-pink   .nav-link.active { background: var(--qb-pink);   color: #fff; }
.qb-nav .c-yellow .nav-link:hover, .qb-nav .c-yellow .nav-link.active { background: var(--qb-yellow); color: var(--qb-ink); }
.qb-nav .c-blue   .nav-link:hover, .qb-nav .c-blue   .nav-link.active { background: var(--qb-blue);   color: #fff; }
.qb-lang .nav-link { border: 1px solid var(--qb-blue); text-transform: none; }
.qb-toggler {
    border: 0;
    background: var(--qb-red);
    color: #fff;
    font-size: 20px;
    padding: 6px 12px;
}
.qb-toggler:focus { box-shadow: none; }

/* ================= SLIDER ================= */
.qb-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #222;
}
.qb-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}
.qb-slide.active { opacity: 1; }
/* transition tiles (Camera-style effects) */
.qb-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.qb-fx > div { position: absolute; background-repeat: no-repeat; will-change: transform, opacity; backface-visibility: hidden; }
.qb-heading-text {
    position: absolute;
    left: 0; right: 0;
    bottom: 60px;
    text-align: center;
    z-index: 2;
    padding: 0 16px;
}
.qb-heading-text h1 {
    display: inline-block;
    background: rgba(87, 120, 152, .9);
    color: #fff;
    font-size: 38px;
    font-weight: 500;
    padding: 6px 18px;
    margin-bottom: 18px;
    line-height: 1.25;
    animation: qbFlip 1s ease .3s both;
}
.qb-heading-text p {
    display: table;
    margin: 0 auto;
    background: rgba(7, 138, 7, .88);
    color: #fff;
    font-size: 22px;
    padding: 8px 18px;
    animation: qbUp 1s ease .7s both;
}
.qb-dots {
    position: absolute;
    bottom: 18px;
    right: 22px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
[dir="rtl"] .qb-dots { right: auto; left: 22px; }
.qb-dots button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .6);
    padding: 0;
}
.qb-dots button.active { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
@keyframes qbFlip { from { opacity: 0; transform: perspective(400px) rotateY(90deg); } to { opacity: 1; transform: none; } }
@keyframes qbUp   { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }

/* ================= 4 BOXES ================= */
.qb-boxes { padding: 60px 0 30px; }
.qb-box {
    height: 100%;
    min-height: 370px;
    color: #fff;
    padding: 28px 22px 24px;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.qb-box:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, .15); }
.qb-box.b1 { background: var(--qb-red); }
.qb-box.b2 { background: var(--qb-purple); }
.qb-box.b3 { background: var(--qb-green); }
.qb-box.b4 { background: var(--qb-blue); }
.qb-box-icon {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}
.qb-box h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.qb-box p { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.qb-box a { color: #fff; }
.qb-box .qb-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    border-bottom: 1px dashed rgba(255, 255, 255, .7);
}
.qb-box .qb-more:hover { color: #fff; opacity: .8; }
.qb-box-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; }
.qb-box-list li { margin-bottom: 12px; }
.qb-box-social li a { display: flex; align-items: center; gap: 12px; }
.qb-box-social i {
    flex: 0 0 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.qb-box-social li a:hover i { background: #fff; color: var(--qb-blue); }
.qb-box-social span { word-break: break-all; }

/* ================= TITLES ================= */
.qb-title {
    color: var(--qb-blue);
    font-size: 30px;
    margin-bottom: 30px;
}
.qb-title-box { margin-bottom: 28px; }
.qb-title-primary {
    color: var(--qb-blue);
    font-size: 30px;
    position: relative;
    padding-bottom: 14px;
    margin: 0;
}
.qb-title-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--qb-slate) 0 34%, var(--qb-green-logo) 34% 67%, var(--qb-yellow-logo) 67% 100%);
}

/* ================= VIDEOS ================= */
.qb-videos { padding: 30px 0; }
.qb-video { background: #fff; padding: 8px; border: 1px solid #e6e6e6; }

/* ================= WELCOME / ARTICLE ================= */
.qb-welcome { padding: 40px 0 70px; }
.qb-art p {
    font-weight: 700;
    font-style: italic;
    color: var(--qb-text);
    font-size: 16px;
    margin-bottom: 16px;
}
.lang-ar .qb-art p { font-style: normal; font-weight: 600; font-size: 17px; line-height: 2; }
.qb-art h3 { color: var(--qb-purple); font-size: 22px; margin-bottom: 16px; }

/* ================= INNER PAGES ================= */
.qb-page-banner {
    color: #fff;
    padding: 46px 0 40px;
    position: relative;
    overflow: hidden;
}
.qb-page-banner::before {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -140px;
    inset-inline-end: -60px;
}
.qb-page-banner h1 { font-size: 36px; color: #fff; margin-bottom: 8px; }
.qb-crumb { font-size: 14px; }
.qb-crumb a { color: #fff; opacity: .85; }
.qb-crumb a:hover { color: #fff; opacity: 1; }
.qb-crumb-sep { margin: 0 8px; font-size: 12px; opacity: .8; }
[dir="rtl"] .qb-crumb-sep { transform: scaleX(-1); }
.qb-section { padding: 60px 0; }

.b-red    { background: var(--qb-red); }
.b-purple { background: var(--qb-purple); }
.b-green  { background: var(--qb-green); }
.b-pink   { background: var(--qb-pink); }
.b-yellow { background: var(--qb-yellow); }
.b-blue   { background: var(--qb-blue); }

.qb-about-img {
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    position: relative;
}
.qb-about-img::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    background: var(--qb-yellow);
    z-index: -1;
}
[dir="rtl"] .qb-about-img::before { inset: -18px -18px 18px 18px; }
.qb-about-img img { display: block; width: 100%; }

.qb-vm { background: var(--qb-light); }
.qb-vm-card {
    color: #fff;
    padding: 36px 30px;
    height: 100%;
    position: relative;
}
.qb-vm-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}
.qb-vm-card h3 { color: #fff; font-size: 26px; margin-bottom: 14px; }
.qb-vm-card p { font-size: 16px; line-height: 1.9; margin: 0; }

.qb-cinfo {
    color: #fff;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .3s;
}
.qb-cinfo:hover { transform: translateY(-5px); }
.qb-cinfo-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.qb-cinfo h4 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.qb-cinfo p { margin: 0; font-size: 16px; word-break: break-word; }
.qb-cinfo a { color: #fff; font-weight: 700; }
.qb-cinfo a:hover { color: #fff; text-decoration: underline; }

.qb-map { position: relative; overflow: hidden; }
.qb-map iframe { display: block; width: 100%; border: 0; }
.qb-map-page { height: 450px; border: 6px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.qb-map-page iframe { height: 100%; }
.qb-map-footer { height: 230px; border: 4px solid rgba(255, 255, 255, .5); }
.qb-map-footer iframe { height: 100%; }

/* ================= FOOTER ================= */
.qb-footer {
    background: var(--qb-blue);
    color: #fff;
    padding-top: 55px;
}
.qb-fwidget h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.qb-fcontact { list-style: none; padding: 0; margin: 0; }
.qb-fcontact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.qb-fcontact i { margin-top: 5px; width: 16px; text-align: center; }
.qb-fcontact a, .qb-flinks a { color: #fff; }
.qb-fcontact a:hover, .qb-flinks a:hover { color: var(--qb-yellow); }
.qb-flinks { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.qb-flinks li { margin-bottom: 7px; }
.qb-flinks li::before { content: "\203A"; margin-inline-end: 8px; font-weight: 700; }
.qb-social { display: flex; gap: 10px; }
.qb-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.qb-social a:hover { background: #fff; color: var(--qb-blue); }

.qb-footer2 {
    background: var(--qb-blue-dark);
    margin-top: 45px;
    padding: 16px 0;
    font-size: 13px;
}
.qb-footer2 p { margin: 0; }
.qb-footer2 a { color: #fff; }
.qb-footer2 a:hover { color: var(--qb-yellow); }
.qb-copy { text-align: end; }

.qb-totop {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--qb-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1020;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.qb-totop.show { opacity: 1; visibility: visible; }
.qb-totop:hover { color: #fff; background: var(--qb-purple); }

/* ================= RESPONSIVE ================= */
@media (max-width: 991.98px) {
    .qb-brand img { height: 64px; }
    .qb-brand-text { display: block; }
    .qb-nav { padding: 12px 0; }
    .qb-nav .nav-link { margin: 2px 0; }
    .qb-slider { height: 440px; }
    .qb-heading-text h1 { font-size: 30px; }
    .qb-heading-text p { font-size: 18px; }
    .qb-box { min-height: 0; }
    .qb-copy { text-align: start; }
}
@media (max-width: 575.98px) {
    .qb-brand img { height: 54px; }
    .qb-brand-text { font-size: 16px; }
    .qb-slider { height: 340px; }
    .qb-heading-text { bottom: 46px; }
    .qb-heading-text h1 { font-size: 22px; }
    .qb-heading-text p { font-size: 14px; }
    .qb-title-primary, .qb-title { font-size: 24px; }
    .qb-page-banner h1 { font-size: 28px; }
    .qb-section { padding: 45px 0; }
    .qb-map-page { height: 320px; }
    .qb-art p { font-size: 15px; }
}

/* =========================================================
   GALLERY MENU (dropdown)
   ========================================================= */
.qb-dd .dropdown-toggle::after { vertical-align: .2em; margin-inline-start: 6px; }
.qb-dd-menu {
    border: 0;
    border-top: 3px solid var(--qb-green);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    padding: 6px 0;
    min-width: 210px;
    margin-top: 6px !important;
}
.qb-dd-menu .dropdown-item {
    font-family: var(--qb-head);
    font-size: 15px;
    color: var(--qb-dark);
    padding: 9px 18px;
    display: flex; align-items: center; gap: 10px;
}
.lang-ar .qb-dd-menu .dropdown-item { font-weight: 600; }
.qb-dd-menu .dropdown-item i { width: 18px; text-align: center; color: var(--qb-green); }
.qb-dd-menu li:nth-child(2) .dropdown-item i { color: var(--qb-blue); }
.qb-dd-menu li:nth-child(3) .dropdown-item i { color: var(--qb-yellow); }
.qb-dd-menu .dropdown-item:hover,
.qb-dd-menu .dropdown-item.active { background: var(--qb-green); color: #fff; }
.qb-dd-menu .dropdown-item:hover i,
.qb-dd-menu .dropdown-item.active i { color: #fff; }
@media (min-width: 992px) {
    .qb-dd:hover > .dropdown-menu { display: block; }
    .qb-dd > .dropdown-menu { margin-top: 0 !important; }
}

/* =========================================================
   BACK BAR (folder / album name with arrow)
   ========================================================= */
.qb-backbar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 60px;
    padding: 7px 26px 7px 7px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    color: var(--qb-dark);
    max-width: 100%;
}
[dir="rtl"] .qb-backbar { padding: 7px 7px 7px 26px; }
.qb-backbar:hover { color: var(--qb-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.qb-backbar-arrow {
    flex: 0 0 46px; height: 46px;
    border-radius: 50%;
    background: var(--qb-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: transform .25s;
}
[dir="rtl"] .qb-backbar-arrow i { transform: scaleX(-1); }
.qb-backbar:hover .qb-backbar-arrow { transform: translateX(-4px); }
[dir="rtl"] .qb-backbar:hover .qb-backbar-arrow { transform: translateX(4px); }
.qb-backbar-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.qb-backbar-text small { color: #999; font-size: 12px; }
.qb-backbar-text strong {
    font-family: var(--qb-head);
    font-size: 19px;
    font-weight: 600;
    color: var(--qb-blue);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qb-backbar-text strong i { color: var(--qb-yellow); margin-inline-end: 4px; }

/* =========================================================
   FOLDER / ALBUM CARDS
   ========================================================= */
.qb-gallery { background: var(--qb-light); }
.qb-gcard {
    --c: var(--qb-blue);
    display: block;
    background: #fff;
    height: 100%;
    border-bottom: 4px solid var(--c);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
    color: var(--qb-dark);
}
.qb-gcard:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .12); color: var(--qb-dark); }
.qb-gcard-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9eef3; }
.qb-gcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qb-gcard:hover .qb-gcard-img img { transform: scale(1.07); }
.qb-gcard-icon {
    position: absolute;
    top: -24px;
    inset-inline-end: 18px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    border: 3px solid #fff;
}
.qb-gcard-body { position: relative; padding: 26px 18px 16px; }
.qb-gcard-body h3 {
    font-size: 18px;
    color: var(--qb-dark);
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
.qb-gcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #8a8a8a; }
.qb-gcard-meta i { color: var(--c); margin-inline-end: 3px; }

/* album cards look like a photo stack */
.qb-album { box-shadow: 6px 6px 0 -1px #fff, 6px 6px 0 0 #dfe5eb, 0 6px 18px rgba(0, 0, 0, .06); }
[dir="rtl"] .qb-album { box-shadow: -6px 6px 0 -1px #fff, -6px 6px 0 0 #dfe5eb, 0 6px 18px rgba(0, 0, 0, .06); }

/* =========================================================
   PHOTOS GRID
   ========================================================= */
.qb-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.qb-photo {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e9eef3;
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}
.qb-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qb-photo-zoom {
    position: absolute; inset: 0;
    background: rgba(87, 120, 152, .62);
    color: #fff; font-size: 30px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.qb-photo:hover img { transform: scale(1.1); }
.qb-photo:hover .qb-photo-zoom { opacity: 1; }

/* =========================================================
   VIDEO CARDS
   ========================================================= */
.qb-vcard {
    display: block;
    background: #fff;
    height: 100%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
    color: var(--qb-dark);
}
.qb-vcard:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .12); color: var(--qb-dark); }
.qb-vcard-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #222; }
.qb-vcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.qb-vcard:hover .qb-vcard-img img { transform: scale(1.06); opacity: .85; }
.qb-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 66px; height: 66px;
    border-radius: 50%;
    background: var(--qb-red);
    color: #fff; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    padding-left: 4px;
    box-shadow: 0 0 0 8px rgba(9, 201, 9, .28);
    transition: transform .3s;
}
.qb-vcard:hover .qb-play { transform: translate(-50%, -50%) scale(1.1); }
.qb-vtype {
    position: absolute; top: 12px; inset-inline-start: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff; font-size: 12px;
    padding: 3px 10px; border-radius: 20px;
}
.qb-vtype .fa-youtube { color: #ff3b3b; }
.qb-vcard-body { padding: 16px 18px; }
.qb-vcard-body h3 {
    font-size: 17px; margin: 0 0 6px; line-height: 1.4; color: var(--qb-dark);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qb-vdate { font-size: 13px; color: #8a8a8a; }
.qb-vdate i { color: var(--qb-blue); margin-inline-end: 3px; }
.qb-videos .qb-vcard { border: 1px solid #ececec; }
.qb-link-more { font-family: var(--qb-head); font-weight: 600; color: var(--qb-red); }
[dir="rtl"] .qb-link-more i { transform: scaleX(-1); }

/* =========================================================
   NEWS CARDS — all the same size, description scrolls
   ========================================================= */
.qb-news { background: var(--qb-light); }
.qb-ncard {
    background: #fff;
    height: 520px;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--c);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    transition: box-shadow .3s;
}
.qb-ncard:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, .12); }
.qb-ncard-img { position: relative; flex: 0 0 220px; overflow: hidden; background: #e9eef3; display: block; }
.qb-ncard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.qb-ncard:hover .qb-ncard-img img { transform: scale(1.06); }
.qb-ndate {
    position: absolute; bottom: 0; inset-inline-start: 0;
    background: var(--c);
    color: #fff; font-size: 13px; font-weight: 700;
    padding: 6px 14px;
}
.qb-ncard-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 18px 18px 16px; }
.qb-ncard-body h3 {
    font-size: 19px; color: var(--qb-dark); line-height: 1.4; margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 0 0 auto;
}
.qb-ndesc {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-inline-end: 8px;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--qb-text);
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--c) #f0f0f0;
}
.qb-ndesc:focus { outline: 2px dashed var(--c); outline-offset: 2px; }
.qb-ndesc::-webkit-scrollbar { width: 6px; }
.qb-ndesc::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 6px; }
.qb-ndesc::-webkit-scrollbar-thumb { background: var(--c); border-radius: 6px; }
.qb-ndesc p { margin-bottom: 8px; }
.qb-ndesc img { max-width: 100%; height: auto; }

.qb-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.qb-pg {
    min-width: 42px; height: 42px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--qb-dark);
    border: 1px solid #e3e8ee; font-weight: 700;
}
.qb-pg:hover, .qb-pg.active { background: var(--qb-blue); border-color: var(--qb-blue); color: #fff; }
[dir="rtl"] .qb-pg-arrow i { transform: scaleX(-1); }

/* =========================================================
   EMPTY STATE
   ========================================================= */
.qb-empty {
    text-align: center;
    background: #fff;
    padding: 60px 20px;
    border: 2px dashed #dbe3ea;
    color: #9aa5b1;
}
.qb-empty i { font-size: 54px; color: var(--qb-blue); opacity: .5; margin-bottom: 14px; }
.qb-empty p { margin: 0; font-size: 17px; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.qb-form-wrap {
    display: grid;
    grid-template-columns: 1fr 330px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .08);
}
.qb-form { padding: 34px; position: relative; }
.qb-label { font-weight: 700; color: var(--qb-dark); font-size: 14px; margin-bottom: 6px; display: block; }
.qb-label span { color: var(--qb-danger); }
.qb-input { position: relative; }
.qb-input i {
    position: absolute; top: 50%; inset-inline-start: 15px;
    transform: translateY(-50%);
    color: #b5bec8; transition: color .2s; pointer-events: none;
}
.qb-input-area i { top: 18px; transform: none; }
.qb-input input, .qb-input textarea {
    width: 100%;
    border: 1px solid #dfe5eb;
    background: #fafbfc;
    padding: 12px 15px;
    padding-inline-start: 42px;
    font-family: inherit;
    font-size: 15px;
    color: var(--qb-dark);
    border-radius: 4px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.qb-input textarea { resize: vertical; min-height: 140px; }
.qb-input input:focus, .qb-input textarea:focus {
    outline: 0; background: #fff;
    border-color: var(--qb-blue);
    box-shadow: 0 0 0 3px rgba(87, 120, 152, .2);
}
.qb-input:focus-within i { color: var(--qb-blue); }
.qb-input.invalid input, .qb-input.invalid textarea { border-color: var(--qb-danger); box-shadow: 0 0 0 3px rgba(217, 54, 54, .12); }
.qb-input.invalid i { color: var(--qb-danger); }
.qb-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.qb-btn {
    border: 0;
    background: var(--qb-red);
    color: #fff;
    font-family: var(--qb-head);
    font-size: 17px;
    font-weight: 600;
    padding: 12px 34px;
    border-radius: 4px;
    transition: background .25s, transform .25s;
}
.qb-btn:hover { background: var(--qb-purple); transform: translateY(-2px); }
.qb-btn i { margin-inline-end: 6px; }
[dir="rtl"] .qb-btn .fa-paper-plane { transform: scaleX(-1); }
.qb-btn-wait { display: none; }
.qb-btn.loading { pointer-events: none; opacity: .8; }
.qb-btn.loading .qb-btn-text { display: none; }
.qb-btn.loading .qb-btn-wait { display: inline; }
.qb-form-alert {
    display: none;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-weight: 700;
    border-inline-start: 4px solid;
}
.qb-form-alert.show { display: block; }
.qb-form-alert.ok { background: #eafaf0; color: #2e8b3d; border-color: var(--qb-green); }
.qb-form-alert.err { background: #fff0f0; color: var(--qb-danger); border-color: var(--qb-danger); }
.qb-form-side {
    background: var(--qb-blue);
    color: #fff;
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
}
.qb-form-side::after {
    content: ""; position: absolute;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    bottom: -80px; inset-inline-end: -70px;
}
.qb-form-side h3 { color: #fff; font-size: 22px; margin-bottom: 22px; }
.qb-form-side ul { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.qb-form-side li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.qb-form-side li i {
    flex: 0 0 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
}
.qb-form-side li > a, .qb-form-side li span { padding-top: 7px; word-break: break-all; }
.qb-form-side a { color: #fff; }
.qb-form-side a:hover { color: var(--qb-yellow); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.qb-lb {
    position: fixed; inset: 0;
    background: rgba(10, 14, 20, .94);
    z-index: 2000;
    display: none;
    align-items: center; justify-content: center;
    padding: 60px 70px;
}
.qb-lb.open { display: flex; }
.qb-lb-stage { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.qb-lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: qbZoom .3s ease; }
.qb-lb-video { width: min(1100px, 100%); aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); background: #000; animation: qbZoom .3s ease; }
.qb-lb-video iframe, .qb-lb-video video { width: 100%; height: 100%; border: 0; display: block; }
@keyframes qbZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.qb-lb-close, .qb-lb-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.qb-lb-close:hover, .qb-lb-nav:hover { background: var(--qb-red); }
.qb-lb-close { top: 14px; right: 14px; }
.qb-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.qb-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.qb-lb.single .qb-lb-nav { display: none; }
.qb-lb-caption {
    position: absolute; bottom: 14px; left: 0; right: 0;
    text-align: center; color: #fff; font-size: 15px; padding: 0 70px;
}
body.qb-lb-open { overflow: hidden; }

@media (max-width: 991.98px) {
    .qb-form-wrap { grid-template-columns: 1fr; }
    .qb-dd-menu { box-shadow: none; border-top: 0; background: var(--qb-light); margin: 0 !important; }
}
@media (max-width: 575.98px) {
    .qb-form { padding: 22px 18px; }
    .qb-ncard { height: 480px; }
    .qb-ncard-img { flex-basis: 190px; }
    .qb-photos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .qb-photo { border-width: 2px; }
    .qb-backbar-text strong { font-size: 16px; }
    .qb-lb { padding: 60px 10px; }
    .qb-lb-nav { top: auto; bottom: 10px; transform: none; }
    .qb-lb-caption { bottom: 70px; padding: 0 16px; }
}

/* =========================================================
   FOOTER — Leaders-style: System Login | Latest News | Contact | Map
   ========================================================= */
.qb-syslog {
    position: relative;
    display: block;
    border: 4px solid rgba(255, 255, 255, .85);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
    transition: transform .3s, box-shadow .3s;
}
.qb-syslog img { display: block; width: 100%; aspect-ratio: 600 / 410; object-fit: cover; }
.qb-syslog:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.qb-syslog-btn {
    position: absolute;
    left: 50%; bottom: 10px;
    transform: translate(-50%, 8px);
    background: var(--qb-red);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 20px;
    opacity: 0;
    transition: .3s;
    white-space: nowrap;
}
.qb-syslog:hover .qb-syslog-btn, .qb-syslog:focus .qb-syslog-btn { opacity: 1; transform: translate(-50%, 0); }
[dir="rtl"] .qb-syslog-btn i { transform: scaleX(-1); }

/* Latest News ticker (scrolls up, pauses on hover) */
.qb-ticker {
    position: relative;
    height: 190px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.qb-ticker-list { list-style: none; margin: 0; padding: 0; will-change: transform; }
.qb-ticker.running .qb-ticker-list { animation: qbTicker var(--qb-ticker-dur, 20s) linear infinite; }
.qb-ticker:hover .qb-ticker-list, .qb-ticker:focus-within .qb-ticker-list { animation-play-state: paused; }
@keyframes qbTicker { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.qb-ticker-list li { border-bottom: 1px dashed rgba(255, 255, 255, .3); }
.qb-ticker-list a { display: block; padding: 9px 0; color: #fff; }
.qb-ticker-list a:hover .qb-ticker-title { color: var(--qb-yellow); }
.qb-ticker-date { display: block; font-size: 12px; opacity: .8; margin-bottom: 2px; }
.qb-ticker-date i { margin-inline-end: 4px; }
.qb-ticker-title { font-size: 16px; font-weight: 700; line-height: 1.45; transition: color .2s; display: block; }
.qb-ticker-empty { opacity: .85; font-size: 14px; }
.qb-ticker-all { display: inline-block; margin-top: 12px; color: #fff; font-weight: 700; font-size: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .7); }
.qb-ticker-all:hover { color: var(--qb-yellow); }
[dir="rtl"] .qb-ticker-all i { transform: scaleX(-1); }

.qb-fcontact li { margin-bottom: 11px; }
.qb-map-footer { height: 230px; }

/* bottom bar centered like the original */
.qb-footer2 {
    background: var(--qb-blue);
    border-top: 1px solid rgba(255, 255, 255, .25);
    margin-top: 40px;
    padding: 18px 0 20px;
    text-align: center;
}
.qb-simplenav { margin: 0 0 6px !important; line-height: 2; }
.qb-simplenav span { margin: 0 9px; opacity: .7; }
.qb-footer2 .qb-copy { text-align: center; }

/* =========================================================
   MOBILE / TABLET POLISH
   ========================================================= */
@media (max-width: 991.98px) {
    /* open menu never taller than the screen — it scrolls inside */
    .qb-navbar .navbar-collapse {
        max-height: calc(100vh - 90px);
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .qb-nav .nav-link { padding: 11px 14px !important; }          /* bigger tap targets */
    .qb-dd-menu .dropdown-item { padding: 11px 18px; }
    .qb-lang { margin-top: 6px; }
    .qb-heading-text { bottom: 50px; }
}

@media (max-width: 767.98px) {
    /* iPhone zooms into fields under 16px — keep them at 16px */
    .qb-input input, .qb-input textarea { font-size: 16px; }

    /* one news card per row: card fits its content, long text still scrolls */
    .qb-ncard { height: auto; }
    .qb-ncard-img { flex: 0 0 auto; height: 200px; }
    .qb-ndesc { flex: 0 1 auto; max-height: 210px; }

    .qb-section { padding: 45px 0; }
    .qb-boxes { padding: 40px 0 20px; }
    .qb-welcome { padding: 30px 0 50px; }
    .qb-vm-card { padding: 28px 22px; }
    .qb-vm-card h3 { font-size: 22px; }
    .qb-art p { font-size: 15px; }
    .lang-ar .qb-art p { font-size: 16px; line-height: 1.9; }

    /* footer */
    .qb-footer { padding-top: 40px; }
    .qb-syslog { max-width: 360px; }
    .qb-map-footer { height: 220px; }
    .qb-footer2 { margin-top: 30px; }
    .qb-simplenav span { margin: 0 5px; }

    .qb-backbar { margin-bottom: 22px; }
    .qb-page-banner { padding: 34px 0 30px; }
}

@media (max-width: 575.98px) {
    .qb-slider { height: 300px; }
    .qb-heading-text { bottom: 42px; }
    .qb-heading-text h1 { font-size: 21px; padding: 5px 12px; margin-bottom: 10px; }
    .qb-heading-text p { font-size: 13.5px; padding: 6px 12px; }
    .qb-dots { bottom: 12px; }
    .qb-box { padding: 24px 18px 20px; }
    .qb-gcard-body h3 { min-height: 0; }
    .qb-cinfo { padding: 22px 18px; }
    .qb-form-side { padding: 26px 20px; }
    .qb-btn { width: 100%; }
    .qb-pg { min-width: 38px; height: 38px; }
    .qb-totop { width: 40px; height: 40px; bottom: 14px; inset-inline-end: 14px; }
}

@media (max-width: 359.98px) {
    .qb-brand-text { display: none; }
    .qb-heading-text h1 { font-size: 18px; }
    .qb-heading-text p { font-size: 12.5px; }
    .qb-photos { gap: 6px; }
}

/* phones held sideways: keep the slider inside the screen */
@media (max-height: 500px) and (orientation: landscape) {
    .qb-slider { height: 78vh; }
    .qb-navbar .navbar-collapse { max-height: 70vh; }
}

/* =========================================================
   LOGO THEME — elements that need special colours
   ========================================================= */
/* yellow surfaces always get dark text */
.b-yellow, .b-yellow h1, .b-yellow h3, .b-yellow h4, .b-yellow p,
.b-yellow a, .b-yellow .qb-crumb a, .b-yellow .qb-crumb span { color: var(--qb-ink); }
.b-yellow .qb-cinfo-icon, .b-yellow .qb-vm-icon { background: rgba(43, 61, 80, .12); }
.qb-cinfo.b-yellow a:hover { color: var(--qb-ink); }

/* home boxes: slate · green · yellow · deep slate (no two alike side by side) */
.qb-box.b1 { background: var(--qb-slate); }
.qb-box.b2 { background: var(--qb-green-ink); }
.qb-box.b3 { background: var(--qb-yellow-logo); color: var(--qb-ink); }
.qb-box.b4 { background: var(--qb-slate-dark); color: #fff; }
.qb-box.b3 h4, .qb-box.b3 a, .qb-box.b3 .qb-more:hover { color: var(--qb-ink); }
.qb-box.b3 h4 { border-bottom-color: rgba(43, 61, 80, .25); }
.qb-box.b3 .qb-more { border-bottom-color: rgba(43, 61, 80, .6); }
.qb-box.b3 .qb-box-icon { background: rgba(43, 61, 80, .12); }
.qb-box-social li a:hover i { color: var(--qb-slate); }

/* card colour sets: --c = colour, --c-ink = text on it */
.qb-c0 { --c: var(--qb-slate);       --c-ink: #fff; }
.qb-c1 { --c: var(--qb-green-ink);   --c-ink: #fff; }
.qb-c2 { --c: var(--qb-yellow-logo); --c-ink: var(--qb-ink); }
.qb-c3 { --c: var(--qb-slate-dark);  --c-ink: #fff; }
.qb-c4 { --c: var(--qb-green-ink);   --c-ink: #fff; }
.qb-c5 { --c: var(--qb-slate);       --c-ink: #fff; }
.qb-gcard-icon, .qb-ndate { color: var(--c-ink, #fff); }
.qb-gcard-meta i { color: var(--qb-slate); }

/* call-to-action = logo green */
.qb-btn, .qb-backbar-arrow, .qb-totop, .qb-play, .qb-syslog-btn, .qb-toggler { background: var(--qb-green-ink); }
.qb-btn:hover, .qb-totop:hover { background: var(--qb-slate-dark); }
.qb-link-more { color: var(--qb-green-ink); }
.qb-lb-close:hover, .qb-lb-nav:hover { background: var(--qb-green-ink); }

/* header + footer */
.qb-navbar { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--qb-slate) 0 60%, var(--qb-green-logo) 60% 80%, var(--qb-yellow-logo) 80%) 1; }
.qb-brand-text { color: var(--qb-slate); }
.qb-lang .nav-link { border-color: var(--qb-slate); }
.qb-footer { background: var(--qb-slate); }
.qb-footer2 { background: var(--qb-slate-dark); border-top: 0; }
.qb-fcontact a:hover, .qb-flinks a:hover, .qb-footer2 a:hover,
.qb-ticker-list a:hover .qb-ticker-title, .qb-ticker-all:hover, .qb-form-side a:hover { color: var(--qb-yellow-logo); }
.qb-dd-menu { border-top-color: var(--qb-green-logo); }
.qb-dd-menu li:nth-child(1) .dropdown-item i { color: var(--qb-green-ink); }
.qb-dd-menu li:nth-child(2) .dropdown-item i { color: var(--qb-slate); }
.qb-dd-menu li:nth-child(3) .dropdown-item i { color: var(--qb-gold); }
.qb-pg:hover, .qb-pg.active { background: var(--qb-slate); border-color: var(--qb-slate); }

/* logo size (the real logo is taller than wide) */
.qb-brand img { height: 92px; }
.qb-navbar.scrolled .qb-brand img { height: 64px; }
@media (max-width: 991.98px) { .qb-brand img { height: 66px; } }
@media (max-width: 575.98px) { .qb-brand img { height: 56px; } }

/* =========================================================
   CONTACT CARDS — 3 logo colours × 2 shades, no two alike side by side
   reading order: slate · green · yellow · deep green · amber · deep slate
   ========================================================= */
.qb-cinfo.qb-g1 { background: #577898; }   /* slate       */
.qb-cinfo.qb-g2 { background: #078a07; }   /* green       */
.qb-cinfo.qb-g3 { background: #f7d616; }   /* yellow      */
.qb-cinfo.qb-g4 { background: #056205; }   /* deep green  */
.qb-cinfo.qb-g5 { background: #e8b90c; }   /* amber       */
.qb-cinfo.qb-g6 { background: #3f5a75; }   /* deep slate  */

/* yellow cards (3, 5) get dark text so it stays readable */
.qb-cinfo.qb-g3, .qb-cinfo.qb-g5,
.qb-cinfo.qb-g3 h4, .qb-cinfo.qb-g5 h4,
.qb-cinfo.qb-g3 a,  .qb-cinfo.qb-g5 a,
.qb-cinfo.qb-g3 a:hover, .qb-cinfo.qb-g5 a:hover { color: var(--qb-ink); }
.qb-cinfo.qb-g3 .qb-cinfo-icon,
.qb-cinfo.qb-g5 .qb-cinfo-icon { background: rgba(43, 61, 80, .12); }