:root {
    --bitu-red: #b31b1b;
    --bitu-red-dark: #8f1515;
    --bitu-dark: #2d2d2d;
    --bitu-black: #101010;
    --bitu-white: #ffffff;
    --bitu-gray-100: #f7f7f8;
    --bitu-gray-200: #ececef;
    --bitu-gray-500: #7b7b84;
    --bitu-shadow: 0 14px 35px rgba(22, 22, 26, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

html {
    font-size: 17.5px;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--bitu-dark);
    font-size: 1.05rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force Inter sans-serif everywhere (Bootstrap defaults, inputs, buttons). */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, ul, ol,
button, input, select, textarea, label,
.btn, .form-control, .form-select, .form-label,
.navbar, .dropdown-menu, .dropdown-item,
.card, .card-title, .card-body,
.breadcrumb, .pagination, .pagination .page-link,
.table, .table th, .table td,
.alert, .badge, .toast, .modal, .modal-title, .modal-body, .modal-header, .modal-footer,
.offcanvas, .offcanvas-title, .offcanvas-body, .offcanvas-header,
.swiper, .swiper-slide {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Keep icon fonts (Bootstrap Icons, Flag Icons) intact. */
i, .bi, [class^="bi-"], [class*=" bi-"],
.fi, [class^="fi-"], [class*=" fi-"] {
    font-family: inherit !important;
}
i.bi, [class^="bi-"], [class*=" bi-"] {
    font-family: "bootstrap-icons" !important;
}
.fi, [class^="fi-"], [class*=" fi-"] {
    font-family: "flag-icons" !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.01em;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

.bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(45px);
    opacity: 0.14;
    z-index: -1;
    pointer-events: none;
}

.bg-shape-1 {
    width: 380px;
    height: 380px;
    background: var(--bitu-red);
    top: -120px;
    right: -80px;
}

.bg-shape-2 {
    width: 320px;
    height: 320px;
    background: #232323;
    bottom: -110px;
    left: -70px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
}

.flag-btn-sm {
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
    border-color: rgba(255, 255, 255, 0.3);
}

.flag-btn-sm:hover {
    border-color: rgba(255, 255, 255, 0.7);
}


.bitu-topnav {
    background: linear-gradient(135deg, rgba(130, 15, 15, 0.8) 100%, rgba(130, 15, 15, 0.8) 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bitu-nav-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);
    width: 100%;
    max-width: 100%;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.68rem;
    max-width: 310px;
    flex: 0 0 auto;
    min-width: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 0.2rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.brand-text {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.24;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.05rem;
    overflow: visible;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.desktop-item {
    position: relative;
    flex: 0 0 auto;
}

.desktop-item.has-dropdown {
    position: relative;
}



.desktop-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.95);
    padding: 0.86rem clamp(0.45rem, 0.7vw, 0.78rem);
    border-radius: 11px;
    font-weight: 700;
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    white-space: nowrap;
    transition: all 0.22s ease;
}

.desktop-link:hover,
.desktop-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.desktop-link:after {
    display: none;
}

.section-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.97);
    width: max-content;
    min-width: 280px;
    max-width: min(380px, 92vw);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 24px 54px rgba(20, 20, 24, 0.22);
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
    z-index: 1200;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
    margin-left: 2px;
    opacity: 0.7;
}

/* Hover on desktop — lg breakpoint */
@media (min-width: 992px) {
    .desktop-item.has-dropdown:hover > .section-dropdown,
    .desktop-item.has-dropdown.open > .section-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    .desktop-item.has-dropdown:hover > .desktop-link .dropdown-arrow,
    .desktop-item.has-dropdown.open > .desktop-link .dropdown-arrow {
        transform: rotate(180deg);
        opacity: 1;
    }
}

.section-dropdown .dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.56rem 0.72rem;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.section-dropdown .dropdown-item:hover {
    background: rgba(179, 27, 27, 0.12);
    color: var(--bitu-red-dark);
}

.dropdown-empty {
    display: block;
    padding: 0.7rem 0.72rem;
    color: #75757f;
    font-size: 0.92rem;
}

.nav-tools {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.6rem;
    flex-shrink: 0;
}

.lang-flags {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lang-inline-form {
    margin: 0;
}

.flag-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.12rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.flag-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

.flag-btn.active {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.menu-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.48rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.24s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.bitu-offcanvas {
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    width: min(610px, 100%) !important;
    max-width: 100vw;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-lang-wrap {
    padding: 1rem 1.1rem 1rem;
}

.mobile-lang-form {
    margin: 0;
}

.mobile-lang-select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    padding: 0.58rem 0.72rem;
    font-weight: 700;
}

.mobile-lang-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
}

.mobile-lang-select option {
    color: #9f1d26;
}

.menu-group {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-link-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.14rem 1.2rem;
    color: #fff;
    background: transparent;
    border: none;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.menu-link-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-toggle-row {
    text-align: left;
}

.menu-arrow {
    color: #8f99a6;
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.22s ease, color 0.22s ease;
}

.menu-toggle-row:not(.collapsed) .menu-arrow {
    transform: rotate(90deg);
    color: #fff;
}

.submenu-wrap {
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0;
}

.submenu-link {
    display: block;
    padding: 0.72rem 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    color: #fff;
    border-left-color: var(--bitu-red);
    background: rgba(179, 27, 27, 0.15);
}

.submenu-empty {
    display: block;
    padding: 0.8rem 1.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}

.page-main {
    min-height: 65vh;
    padding-top: 64px;
}

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #101013;
    color: #fff;
    padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 9vw, 6rem);
    min-height: clamp(620px, 86vh, 980px);
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 1;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.02);
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-section.hero-video-ready .hero-video-bg {
    opacity: 1;
}

.hero-section.hero-video-ready .hero-poster {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.605) 0%,
        rgba(0, 0, 0, 0.489) 100%
    );
}

.hero-content {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.65s ease;
    text-align: center;
}

.hero-alerts {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-block;
    border: 1px solid rgba(17, 17, 18, 0.35);
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.32rem 0.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.8rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.35);
}

.hero-subtitle {
    max-width: 670px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    font-size: clamp(1rem, 2.6vw, 1.22rem);
    margin-bottom: 1.6rem;
    font-weight: 600;
}

.hero-btn {
    border-radius: 999px;
    padding: 0.82rem 1.6rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    border-radius: 12px;
    padding: 0.8rem 1.35rem;
    font-weight: 800;
    transition: all 0.22s ease;
}

.hero-cta-primary {
    background: rgba(255, 255, 255, 0.34);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 12, 18, 0.12);
    backdrop-filter: blur(10px);
}

.hero-cta-primary:hover,
.hero-cta-primary.active {
    transform: translateY(-2px);
    background: #fff4f4;
    color: #111111;
}

.hero-cta-secondary {
    background: rgba(179, 27, 27, 0.34);
    color: #fff;
    box-shadow: 0 10px 24px rgba(159, 29, 38, 0.14);
    backdrop-filter: blur(10px);
}

.hero-cta-secondary:hover,
.hero-cta-secondary.active {
    transform: translateY(-2px);
    background: rgba(179, 27, 27, 0.46);
}

.hero-stats-wrap {
    margin-top: clamp(1.2rem, 4vw, 2.1rem);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.8rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    min-height: 94px;
    padding: 0.8rem 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-stat-number {
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.hero-stat-label {
    margin-top: 0.22rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.84rem;
}

.admission-form-wrap {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e4e7ef;
    box-shadow: var(--bitu-shadow);
    padding: clamp(1.1rem, 3vw, 2rem);
}

.admission-form-wrap .form-control {
    border-radius: 12px;
    border-color: #d8deea;
    padding: 0.72rem 0.85rem;
}

.home-news-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 253, 0.94));
}

.home-news-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e6f0;
    background: #fff;
    box-shadow: 0 16px 34px rgba(26, 34, 50, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-news-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 28px 46px rgba(26, 34, 50, 0.14);
}

.home-news-image-wrap {
    overflow: hidden;
}

.home-news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-news-card:hover .home-news-image {
    transform: scale(1.05);
}

.home-news-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.home-news-date {
    margin-bottom: 0.6rem;
    color: var(--bitu-red);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-news-title {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0 0 0.6rem;
    color: #0d223f;
    font-weight: 700;
    transition: color 0.25s ease;
}

.home-news-card:hover .home-news-title {
    color: var(--bitu-red);
}

.home-news-excerpt {
    margin: 0;
    color: #5c6b83;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-read-more {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0d223f;
    transition: color 0.25s ease;
}

.home-news-card:hover .news-read-more {
    color: var(--bitu-red);
}

.news-read-more svg {
    transition: transform 0.3s ease;
}

.home-news-card:hover .news-read-more svg {
    transform: translateX(4px);
}

.partners-section {
    background: #fff;
}

.partner-swiper {
    padding: 1rem 0;
}

.partner-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partner-item {
    width: 100%;
    max-width: 200px;
    height: 94px;
    border: 1px solid #e1e7f2;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    box-shadow: 0 8px 16px rgba(19, 34, 54, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(19, 34, 54, 0.12);
}

.partner-item img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: saturate(1.05);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: saturate(1.2) brightness(1.05);
}

/* --- NEWS DETAIL PAGE --- */
.pattern-bg {
    background-color: var(--bitu-gray-100);
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
}
.news-banner {
    height: 380px;
    display: flex;
    align-items: flex-end;
}
.news-banner-img-wrap {
    width: 100%;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(110px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.news-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-content-container {
    position: relative;
    z-index: 2;
}
iframe {
    border: 0;
}

.ckeditor-content img, .ckeditor-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.8rem 0;
}
.ckeditor-content a {
    color: var(--bitu-red);
    text-decoration: underline;
}

.admission-type-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: #fff1f1;
    color: #8c1e24;
    font-weight: 700;
    font-size: 0.9rem;
}

.section-space {
    padding: clamp(2.2rem, 7vw, 5rem) 0;
}

.section-head {
    animation: fadeInUp 0.45s ease both;
    text-align: center;
}

.section-kicker {
    color: var(--bitu-red);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.55px;
    margin-bottom: 0.35rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--bitu-dark);
}

.content-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--bitu-shadow);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    animation: fadeInUp 0.45s ease both;
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(22, 22, 26, 0.17);
}

.content-card-image {
    width: 100%;
    height: 205px;
    object-fit: cover;
}

.content-card-body {
    padding: 1rem 1rem 1.1rem;
}

.content-category {
    display: inline-block;
    color: var(--bitu-red);
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.content-title {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.55rem;
}

.content-title a:hover {
    color: var(--bitu-red);
}

.content-date {
    color: var(--bitu-gray-500);
    font-size: 0.84rem;
}

.category-box {
    background: #fff;
    border: 1px solid var(--bitu-gray-200);
    border-radius: 16px;
    padding: 1rem;
    min-height: 100%;
    animation: fadeInUp 0.45s ease both;
}

.category-title {
    font-size: 1.22rem;
    margin: 0;
}

.mini-btn {
    background: #fff5f5;
    color: var(--bitu-red);
    border: 1px solid rgba(179, 27, 27, 0.3);
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.category-links {
    margin: 0.9rem 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.category-links li a:hover {
    color: var(--bitu-red);
}

.article-wrap {
    background: #fff;
    border: 1px solid var(--bitu-gray-200);
    border-radius: 18px;
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: var(--bitu-shadow);
}

.article-title {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.article-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.article-content {
    font-size: 1.02rem;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    background: var(--bitu-black);
    color: rgba(255, 255, 255, 0.86);
}

.footer-copyright {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0;
}

.footer-copyright-text {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.footer-title {
    color: #fff;
    margin-bottom: 0.9rem;
}

.footer-subtitle {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.86);
}

.footer-link:hover {
    color: #fff;
}

.footer-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    min-height: 250px;
}

.footer-map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: 0;
    display: block;
}

.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.footer-social-btn {
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #fff;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.footer-social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #fff;
}

.footer-social-btn.telegram { background: #2aabee; }
.footer-social-btn.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.footer-social-btn.facebook { background: #1877f2; }
.footer-social-btn.youtube { background: #ff0000; }
.footer-social-btn.linkedin { background: #0a66c2; }

.floating-social {
    position: fixed;
    right: 14px;
    bottom: 22px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

.floating-social-pair {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.floating-social-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.26rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.22s ease, filter 0.22s ease;
}

.floating-social-btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.08);
    color: #fff;
}

.floating-social-btn.phone { background: #b31b1b; }
.floating-social-btn.telegram { background: #2aabee; }
.floating-social-btn.youtube { background: #ff0000; }
.floating-social-btn.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); }
.floating-social-btn.to-top {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    cursor: pointer;
    color: #111111;
}

.floating-social-btn.to-top i {
    color: #111111 !important;
}

.floating-social-btn.to-top:hover {
    color: #111111;
}

.floating-social-btn.to-top:hover i {
    color: #111111 !important;
}

.empty-state {
    border: 1px dashed #d8d8de;
    border-radius: 16px;
    padding: 1rem 1.15rem;
    background: #fff;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes partnerScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1399px) {
    .brand-wrap {
        max-width: 230px;
    }

    .desktop-link {
        padding: 0.72rem 0.5rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 1199px) {
    .brand-wrap {
        max-width: 190px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .desktop-link {
        padding: 0.68rem 0.42rem;
        font-size: 0.8rem;
    }
}

/* Tablet — below lg, desktop menu hidden, hamburger shown */
@media (max-width: 991px) {
    .bitu-nav-inner {
        min-height: 58px;
    }

    .brand-wrap {
        max-width: none;
        flex: 1 1 0;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-text {
        font-size: 0.84rem;
    }

    .nav-tools {
        margin-left: auto;
    }

    .page-main {
        padding-top: 58px;
    }

    .floating-social {
        right: 10px;
        bottom: 16px;
        gap: 0.55rem;
    }

    .floating-social-pair {
        gap: 0.45rem;
    }

    .floating-social-btn {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .bg-shape {
        display: none;
    }

    .bitu-nav-inner {
        min-height: 52px;
        gap: 0.5rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .brand-text {
        font-size: 0.78rem;
    }

    .menu-button {
        padding: 0.38rem 0.78rem;
        font-size: 0.82rem;
    }

    .menu-button svg {
        width: 18px;
        height: 18px;
    }

    .content-card-image {
        height: 180px;
    }

    .hero-section {
        min-height: clamp(520px, 76vh, 700px);
        padding-top: 2.5rem;
        padding-bottom: 2.2rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.42rem 0.85rem;
    }

    .hero-cta-btn {
        width: 100%;
        min-width: 0;
    }

    .hero-stats-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-space {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .menu-link-row {
        font-size: 1.2rem;
        padding: 0.9rem 1rem;
    }

    .site-footer {
        padding: 2rem 0;
    }

    .footer-social-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .page-main {
        padding-top: 52px;
    }

    .floating-social {
        right: 8px;
        bottom: 12px;
        gap: 0.45rem;
    }

    .floating-social-btn {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .floating-social-pair {
        gap: 0.35rem;
    }
}

@media (max-width: 1199px) {
    .hero-stats-wrap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-bg {
        display: none;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .flag-btn-sm {
        width: 24px;
        height: 24px;
        font-size: 0.72rem;
    }

    .brand-text {
        font-size: 0.72rem;
    }
}

/* --- CERTIFICATES SECTION --- */
.certificates-section {
    background: linear-gradient(135deg, rgba(130, 15, 15, 0.8) 100%, rgba(130, 15, 15, 0.8) 100%) !important;
    overflow: hidden;
}

.bg-shape-cert {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: 
        radial-gradient(circle at right, #ffffff 1px, transparent 1px),
        radial-gradient(circle at left, #ffffff 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.certificates-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 860px;
    line-height: 1.6;
    color: #ffffff;
}

.certificate-item {
    position: relative;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.cert-img {
    border: 1px solid #e1e7f2;
    border-radius: 8px;
    width: 100%;
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 34, 63, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

.certificate-item:hover .cert-overlay {
    opacity: 1;
}

.certificate-swiper .cert-nav-btn {
    color: #fff;
    background: rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.certificate-swiper .cert-nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

.certificate-swiper .cert-nav-btn::after {
    font-size: 1.2rem;
}

/* Certificate modal close button */
#certificateModal .modal-header {
    padding-top: 4.2rem;
    padding-right: 1rem;
}

#certificateModal .cert-close-btn {
    width: 2.35rem;
    height: 2.35rem;
    opacity: 1;
    border-radius: 999px;
    background-color: #ffffff;
    background-size: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    filter: none;
}

#certificateModal .cert-close-btn:hover {
    transform: scale(1.04);
    opacity: 1;
}

@media (max-width: 767px) {
    #certificateModal .modal-header {
        padding-top: 3.8rem;
    }

    #certificateModal .cert-close-btn {
        width: 2.2rem;
        height: 2.2rem;
    }
}

/* --- RICH CONTENT (CKEditor / Word paste) --- */
.page-main :is(
    .article-content,
    .ckeditor-content,
    .about-content,
    .structure-content,
    .history-content,
    .m-content,
    .c-content,
    .b-content,
    .bd-body,
    .a-content,
    .s-content,
    .x-content,
    .member-bio,
    .leader-text
) {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-main :is(
    .article-content,
    .ckeditor-content,
    .about-content,
    .structure-content,
    .history-content,
    .m-content,
    .c-content,
    .b-content,
    .bd-body,
    .a-content,
    .s-content,
    .x-content,
    .member-bio,
    .leader-text
) :is(img, video, iframe) {
    max-width: 100% !important;
    height: auto !important;
}

.page-main :is(
    .article-content,
    .ckeditor-content,
    .about-content,
    .structure-content,
    .history-content,
    .m-content,
    .c-content,
    .b-content,
    .bd-body,
    .a-content,
    .s-content,
    .x-content,
    .member-bio,
    .leader-text
) table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
}

@media (max-width: 767px) {
    .page-main :is(
        .article-content,
        .ckeditor-content,
        .about-content,
        .structure-content,
        .history-content,
        .m-content,
        .c-content,
        .b-content,
        .bd-body,
        .a-content,
        .s-content,
        .x-content,
        .member-bio,
        .leader-text
    ) table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-main :is(
        .article-content,
        .ckeditor-content,
        .about-content,
        .structure-content,
        .history-content,
        .m-content,
        .c-content,
        .b-content,
        .bd-body,
        .a-content,
        .s-content,
        .x-content,
        .member-bio,
        .leader-text
    ) :is(th, td) {
        min-width: 120px;
        white-space: normal;
    }
}
