body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
}

/*.site-header {
    background: linear-gradient(135deg, #003d7a, #005bbb);
    color: #fff;
    padding: 30px 0;
}*/

/* ===== HEADER DESIGN ===== */
.site-header {
    background: linear-gradient(90deg, #0b2a55, #003f88);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 18px 0;
}

.navbar-brand span {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link.active {
    color: #ffd700 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
}

.logo {
    margin: 0;
    font-weight: 700;
}

.site-footer {
    background: #0d1b2a;
    color: #ccc;
    padding: 20px 0;
}

.hero {
    min-height: 90vh;
    background:
        linear-gradient(rgba(0, 61, 122, 0.75), rgba(0, 91, 187, 0.75)),
        url('/assets/images/hero.jpg') center / cover no-repeat;
}

.navbar-brand {
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    margin-left: 10px;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.navbar-brand img {
    max-height: 42px;
}

.navbar-brand span {
    font-size: 1.1rem;
}

/* ===== DROPDOWN ANIMATION ===== */
/* ===== DROPDOWN FIX ===== */
.navbar .dropdown-menu {
    border-radius: 14px;
    border: none;
    /*box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);*/
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* ТІЛЬКИ для десктопа */
@media (min-width: 992px) {

    .navbar .dropdown-menu {
        opacity: 0;
        transform: translateY(10px);
        visibility: hidden;
        display: block;
    }

    .navbar .dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: #f0f6ff;
    color: #0057b8;
}

.navbar .dropdown-menu {
    background: #0b2a55;
}

.navbar .dropdown-item {
    color: rgba(255,255,255,0.9);
    transition: 0.2s;
}

.navbar .dropdown-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding-left: 25px;
}

/* ===== MOBILE MENU UX ===== */
@media (max-width: 991px) {

    .navbar .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: transparent;
        padding-left: 10px;
        color: #0057b8;
    }

    .navbar .dropdown-menu.show {
        display: block;
    }
}

    .navbar-collapse {
        /*background: #0b2a55;*/
        padding: 20px;
        border-radius: 16px;
        margin-top: 15px;
        animation: slideDown 0.3s ease;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 18px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}



.stats {
    background: #ffffff;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #005bbb;
}

.stat-label {
    margin-top: 5px;
    font-size: 1rem;
    color: #555;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: .85rem;
    color: #777;
    margin-bottom: 8px;
}

.news-body h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.news-body p {
    font-size: .95rem;
    color: #555;
}

.news-body a {
    text-decoration: none;
    font-weight: 500;
    color: #005bbb;
}

.events-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.events-header {
    text-align: center;
    margin-bottom: 50px;
}

.events-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.events-header p {
    color: #666;
    font-size: 16px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.event-date {
    min-width: 90px;
    font-size: 20px;
    line-height: 1.2;
    color: #0057b8;
    font-weight: 600;
    white-space: nowrap;
}

.event-date .day {
    font-size: 24px;
    font-weight: bold;
    color: #0057b8;
    display: block;
}

.event-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.event-place {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
}

.event-type {
    display: inline-block;
    padding: 4px 10px;
    background: #0057b8;
    color: #fff;
    font-size: 12px;
    border-radius: 20px;
}

.event-type.training {
    background: #2e8b57;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.subtitle {
    color: #666;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.news-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-excerpt {
    color: #444;
    margin-bottom: 15px;
}

.news-more {
    font-weight: 600;
    text-decoration: none;
    color: #0d6efd;
}

.news-single {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #0d6efd;
}

.news-meta {
    color: #888;
    margin-bottom: 20px;
}

.news-single img {
    width: 100%;
    border-radius: 16px;
    margin: 20px 0;
}

.news-content p {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 17px;
}

/* Анімація появи */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover ефект */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Картинка */
.card img {
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card img {
    height: 260px;
    width: 100%;
    object-fit: contain;
    background: #f2f2f2;
}

/* ===== ГАЛЕРЕЯ СЛАВИ ===== */

.glory-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Фото */
.glory-img-wrap {
    position: relative;
}

.glory-img-wrap img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

/* Бейдж */
.glory-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
}

/* Блок досягнень */
.glory-rank-box {
    background: linear-gradient(135deg, #f8f9fa, #eef1f4);
    border-left: 4px solid gold;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
}

/* Текст */
.glory-rank {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

/* Ім’я */
.glory-card .card-title {
    font-weight: 600;
}

/* Rating */

/* ТОП-3 */
.top3 {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.top-card {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.top-card h4 {
    margin-top: 10px;
    font-weight: bold;
}

.top-card small {
    opacity: 0.9;
}

.gold { background: linear-gradient(135deg, #FFD700, #d4af37); }
.silver { background: linear-gradient(135deg, #C0C0C0, #a8a8a8); }
.bronze { background: linear-gradient(135deg, #CD7F32, #a97142); }

/* таблиця */
.rating-table tr:hover {
    background: #f1f5ff;
    transition: 0.2s;
}

/* бейдж очок */
.points-badge {
    background: #0d6efd;
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
}