/*
 * Admin paneldən yüklənən şəkillər şablonun demo şəkilləri ilə eyni ölçüdə
 * olmur. Bu class-lar yalnız dinamik şəkillərə əlavə olunur ki, kart
 * düzülüşü pozulmasın.
 */
.kg-cover { object-fit: cover; }
.kg-footer-thumb { width: 78px; height: 79px; object-fit: cover; border-radius: 8px; }
.kg-sidebar-thumb { width: 86px; height: 90px; object-fit: cover; }
.kg-card-img { width: 100%; aspect-ratio: 370 / 271; object-fit: cover; }
.kg-program-img { width: 100%; aspect-ratio: 322 / 215; object-fit: cover; }
.kg-teacher-img { width: 100%; aspect-ratio: 322 / 285; object-fit: cover; }
.kg-team-img { width: 100%; aspect-ratio: 400 / 509; object-fit: cover; }
.kg-avatar { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.kg-brand-logo { max-height: 105px; width: auto; object-fit: contain; }
.kg-why-icon { max-width: 84px; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.kg-video-cover { aspect-ratio: 1296 / 576; object-fit: cover; border-radius: 24px; }
.kg-author-avatar { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; border: 1px solid #ece7f5; }
.kg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kg-form-alert { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.kg-form-alert.is-success { background: #e8f8ee; color: #1a7f45; }
.kg-form-alert.is-error { background: #fdecec; color: #b42318; }
.kg-rich-text p { margin-bottom: 1rem; }
.kg-rich-text img { max-width: 100%; height: auto; border-radius: 16px; }
.kg-rich-text ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.kg-rich-text ol { list-style: decimal; padding-left: 1.25rem; margin-bottom: 1rem; }

/*
 * Header bandı — üst zolaq + navbar eyni rəngli sahədə oturur, header-in özünün
 * fonu yoxdur (şəffaf). Band alçaq olduğu üçün main.js-in verdiyi
 * `position: sticky` orada işləməzdi; yapışan halda navbar `fixed` olur, band
 * isə onun hündürlüyü qədər yer saxlayır ki, məzmun sıçramasın.
 */
.kg-header-band.is-stuck > .header {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    z-index: 99;
}

/*
 * Footer — üst dalğa şəkli (our-program-shape1) məzmunun üstünə düşürdü,
 * başlıqlar dalğaya qarışırdı. Əsas blok dalğadan aşağı başlayır.
 */
.kg-footer-body { padding-top: 190px; }
/* Dekorativ şəkillər də əlavə boşluq qədər aşağı düşür — mətnin üstünə çıxmasınlar. */
.footer .kg-footer-shape1 { margin-top: 340px; }
.footer .kg-footer-shape2 { margin-top: 280px; }
@media (max-width: 991.98px) { .kg-footer-body { padding-top: 150px; } }
@media (max-width: 575.98px) { .kg-footer-body { padding-top: 130px; } }

/* Blog kartı: şəkil klipslənir, başlıq 2 sətirdən sonra kəsilir, müəllif sətri həmişə altda. */
.kg-blog-card { display: flex; flex-direction: column; height: 100%; }
.kg-blog-card__media { display: block; width: 100%; overflow: hidden; margin-bottom: 24px; flex-shrink: 0; }
.kg-blog-card__body { display: flex; flex-direction: column; flex-grow: 1; padding: 0 28px 8px; }
.kg-blog-card__title { margin-bottom: 24px; }
.kg-blog-card__title a {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; overflow-wrap: anywhere; line-height: 1.35; min-height: 2.7em;
}
.kg-blog-card__footer { margin-top: auto; }
.min-w-0 { min-width: 0; }

/* About Us — müəllim kartı (bir sırada 4) və digər dinamik şəkillər. */
.kg-teacher-card-img { aspect-ratio: 1 / 1.05; object-fit: cover; }
.kg-gallery-img { object-fit: cover; border-radius: 20px; }
.kg-why-icon-sm { width: 44px; height: 44px; object-fit: contain; }

/*
 * Program kartı — `.bg-img` (height:100%) `h-100` kartın içində şəkil sarğısını
 * bütün kart hündürlüyünə uzadırdı, mətn kartdan kənara çıxırdı. Kart indi flex
 * sütundur: şəkil öz nisbətində, mətn 3 sətirdə kəsilir, altındakı sıra hizalanır.
 */
.kg-program-card { display: flex; flex-direction: column; height: 100%; }
.kg-program-card .kg-program-img { display: block; width: 100%; height: auto; aspect-ratio: 322 / 215; object-fit: cover; }
.kg-program-card__body { display: flex; flex-direction: column; flex-grow: 1; }
.kg-program-card__text {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    overflow: hidden; min-height: 3em; line-height: 1.5;
}
.kg-program-card__sep { margin-top: auto !important; }
.kg-program-teacher { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }

/*
 * Footer dekorativ şəkilləri (zürafə, şarlar) footerin altından çıxıb səhifənin
 * sonunda ağ zolaq yaradırdı — footer artıq onları kəsir, alt zolaq ən aşağıya yapışır.
 */
.footer { overflow: hidden; }

/* Dil seçici — fonsuz düymə + hər dilin öz bayrağı olan açılan siyahı. */
.kg-lang { position: relative; z-index: 120; }
.kg-lang__toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 0; padding: 4px 2px; cursor: pointer;
    color: #000; font-size: 14px; line-height: 1;
}
.kg-lang__toggle:focus-visible { outline: 2px solid #ff4b26; outline-offset: 2px; border-radius: 6px; }
.kg-lang__flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.kg-lang__code { font-weight: 600; }
.kg-lang__caret { flex-shrink: 0; transition: transform .2s; }
.kg-lang__toggle[aria-expanded="true"] .kg-lang__caret { transform: rotate(180deg); }
.kg-lang__menu {
    min-width: 170px; padding: 6px; margin-top: 10px !important;
    border: 0; border-radius: 14px; background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}
.kg-lang__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: #1c1c1c; }
.kg-lang__item:hover, .kg-lang__item:focus { background: #fff1ec; color: #ff4b26; }
.kg-lang__item.is-active { font-weight: 700; background: #fff6f3; }
