body {
    font-family: 'Roboto', sans-serif;
    background: #1a1a1a; /* Тёмный фон для всего сайта */
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 600px; /* Добавлено: чтобы контейнер был видимым */
    display: block;    /* Добавлено: явно делаем контейнер блочным */
    background: #1a1a1a; /* Тёмный фон контейнера */
    z-index: 2;
}

.football-section {
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.sport-section {
    display: none;
    animation: sectionFadeOut 0.6s ease forwards;
}

.sport-section.active {
    display: block;
    animation: sectionFadeIn 0.6s ease forwards;
}

/* Общий стиль для всех заголовков секций */
.sport-section h2 {
    text-align: center;
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.sport-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ffd700;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #141414;
}

.highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #ffd700;
}

.social-link img {
    height: 20px;
    width: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link:hover img {
    opacity: 1;
}

.centered-nav .nav-menu {
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, #ffd700, #1a1a1a); /* Градиент разделителя */
    margin: 15px 0 25px 0;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

/* Стиль для главной страницы */
[data-sport="ГЛАВНАЯ"] .news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #f0f0f0;
}

[data-sport="ГЛАВНАЯ"] .news-container::-webkit-scrollbar {
    height: 8px;
}

[data-sport="ГЛАВНАЯ"] .news-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

[data-sport="ГЛАВНАЯ"] .news-container::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

/* Удаляем старые стили для h2 */
[data-sport="ГЛАВНАЯ"] h2 {
    text-align: center;
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

[data-sport="ГЛАВНАЯ"] h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #ffd700;
}

[data-sport="ГЛАВНАЯ"] .category-header {
    background: linear-gradient(to right, #1a1a1a, #333);
    color: #fff;
    padding: 15px 20px;
    margin: 30px 0 20px;
    border-radius: 8px;
    font-size: 18px;
    position: relative;
    padding-left: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

[data-sport="ГЛАВНАЯ"] .category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #ffd700;
    border-radius: 0 2px 2px 0;
}

[data-sport="ГЛАВНАЯ"] .news-card {
    position: relative;
    background: #242424;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

[data-sport="ГЛАВНАЯ"] .news-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

[data-sport="ГЛАВНАЯ"] .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    background: #2a2a2a;
}

/* Стиль для остальных разделов */
.sport-section:not([data-sport="ГЛАВНАЯ"]) .news-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.sport-section:not([data-sport="ГЛАВНАЯ"]) .news-card {
    width: calc(25% - 15px);
    margin-bottom: 20px;
}

/* Заголовки категорий на главной */
.category-header {
    width: 100%;
    margin: 20px 0 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 5px;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .sport-section:not([data-sport="ГЛАВНАЯ"]) .news-card {
        width: calc(33.33% - 15px);
    }
}

@media (max-width: 768px) {
    .sport-section:not([data-sport="ГЛАВНАЯ"]) .news-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .sport-section:not([data-sport="ГЛАВНАЯ"]) .news-card {
        width: 100%;
    }
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    height: auto;
    min-height: 400px;
    padding: 0;
    background-color: #242424; /* Тёмный фон карточки */
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.1); /* Золотистая тень */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Добавляем transition для opacity */
    color: #fff; /* Белый текст */
}

.news-card img {
    width: 100%;
    height: 45%;
    object-fit: cover;
    border-radius: 4px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    background: #2a2a2a;
    border-color: #ffd700;
}

[data-sport="ГЛАВНАЯ"] .news-card {
    flex: 0 0 auto;
    width: 300px;
    background: #242424;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

[data-sport="ГЛАВНАЯ"] .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    background: #2a2a2a;
}

.news-card h3 {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.4;
    color: #ffd700;
    padding: 15px;
    margin: 0;
    display: block;
    min-height: 50px;
    max-height: none;
    overflow: visible;
}

.news-card p {
    padding: 0 15px 15px;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.4;
    font-size: clamp(12px, 1.5vw, 14px);
    color: #ccc; /* Светло-серый текст */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.header {
    background: #1a1a1a;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    background: url('../img/mainbetshapka.jpg') center/cover;
    background-position: center var(--header-bg-position, 70%); /* Добавляем переменную для позиционирования */
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    height: var(--header-height, 80px); /* Добавляем переменную для высоты */
}


.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.header-top > * {
    position: relative;
    z-index: 2;
}

.social-media {
    justify-self: start;
    flex: 1;
    display: flex;
    gap: 15px;
}

.contact-info {
    justify-self: end; /* Изменено с center на end */
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 14px;
    margin-right: 20px;
}

.ad-text {
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-toggle {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
}

.logo h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    padding: 0 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: translateY(-2px);
}

.nav-link.active {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

@media (max-width: 768px) {
    .nav-buttons {
        display: none;
    }
}

.contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: #fff;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none; /* Добавляем это */
}

.mobile-menu.active {
    left: 0;
    opacity: 1;
    pointer-events: auto; /* Добавляем это */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none; /* Добавляем это */
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Добавляем это */
}

.mobile-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.mobile-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffd700;
    transform: translateX(5px);
}

.mobile-link.active {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}



.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.close-menu {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1002;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: #ffd700;
}

@media (max-width: 768px) {
    .nav-buttons {
        display: none;
    }
    
    .mobile-menu {
        max-height: 90vh;
        overflow-y: auto;
    }

    .contacts {
        display: none;
    }

    .header-top {
            grid-template-columns: 1fr;
        padding: 15px;
        height: 80px;
        background: url('../img/shapkaphone.jpg') center/cover;
        background-position: center;
    }

    .social-media,
    .contact-info,
    .logo-center {
        display: none;
    }

    .news-card {
        height: auto;
        min-height: 300px;
    }

    .news-card img {
        height: 200px;
    }
}

.news-card[style*="display: none"] {
    animation: fadeOut 0.3s ease-out;
}

.news-card[style*="display: block"] {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
}

.dropdown-item {
    color: #fff !important;
    padding: 8px 20px;
    transform: translateY(-10px);
    opacity: 0;
    animation: itemsAnimation 0.3s ease-out forwards;
}

@keyframes itemsAnimation {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dropdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.dropdown-item:nth-child(2) {
    animation-delay: 0.15s;
}

.dropdown-item:nth-child(3) {
    animation-delay: 0.2s;
}

.dropdown-item:nth-child(4) {
    animation-delay: 0.25s;
}

.dropdown-item:nth-child(5) {
    animation-delay: 0.3s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffd700 !important;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle {
    font-size: 20px;
    padding: 0 10px;
    transition: transform 0.3s ease;
    color: #fff !important;
}

.dropdown.show .dropdown-toggle {
    transform: rotate(90deg);
}

.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 15px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    color: #fff;
    animation: modalAppear 0.3s ease forwards;
    transform-origin: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.modal-images {
    position: relative;
    height: 100%;
}

.image-slider {
    height: 70%;
    position: relative;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    transform: rotate(180deg);
    color: #ffd700;
}

.modal-title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    background: linear-gradient(90deg, #ffd700, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 40px;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.modal-description {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: clamp(14px, 2vw, 16px);
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 20px;
}

.certificate {
    font-size: 12px;
    line-height: 1.4;
    color: #999;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.license-info {
    font-size: 12px;
    line-height: 1.6;
    color: #999;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .modal-title {
        font-size: clamp(18px, 2.5vw, 24px);
        padding: 0 20px;
    }

    .modal-description {
        padding: 15px;
        font-size: clamp(13px, 1.8vw, 15px);
    }
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalAppear {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal.active .modal-content {
    transform: none;
}

.footer {
    background: #1a1a1a;
    padding: 40px 0 20px;
    margin-top: 50px;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-link img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.footer-social .social-link:hover img {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-trigger {
    font-size: 18px;
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 0.3s;
}

.admin-trigger:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .news-container {
        flex-direction: column;
        gap: 15px;
        padding: 5px;
        overflow-x: hidden;
    }

    .news-card {
        min-width: 100%;
        height: auto;
        margin: 0;
    }

    .news-card img {
        height: 150px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        height: 100%;
        overflow: hidden;
    }

    .modal-description {
        overflow-y: auto;
        max-height: calc(50vh - 20px);
        padding: 0 10px;
    }

    .modal-text {
        margin-bottom: 20px;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
        padding: 10px;
    }

    .slider-btn {
        padding: 5px 10px;
        font-size: 16px;
    }

    .close-modal {
        position: fixed;
        right: 15px;
        top: 15px;
        font-size: 35px;
        color: #fff;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .image-slider {
        height: 40vh;
        margin-bottom: 15px;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    font-size: 20px;
    padding: 8px 15px;
    color: #fff;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    min-width: 180px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    transform: translateY(0);
}

.dropdown-menu .nav-link {
    display: block;
    padding: 8px 15px;
    white-space: nowrap;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.news-card {
    background: #242424; /* Тёмный фон карточки */
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(255, 215, 0, 0.1); /* Золотистая тень */
    overflow: hidden;
    transition: transform 0.3s ease;
    color: #fff; /* Белый текст */
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card h3 {
    padding: 15px 15px 10px;
    margin: 0;
    font-size: 18px;
    color: #ffd700; /* Золотой заголовок */
}

.news-card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #ccc; /* Светло-серый текст */
    font-size: 14px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    background: #2a2a2a;
    border-color: #ffd700;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 15px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    color: #fff;
    animation: modalAppear 0.3s ease forwards;
    transform-origin: center;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 600;
    background: linear-gradient(90deg, #ffd700, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 40px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: rotate(180deg);
    color: #ffd700;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.modal-description {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: clamp(14px, 2vw, 16px);
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .modal-title {
        font-size: clamp(18px, 2.5vw, 24px);
        padding: 0 20px;
    }

    .modal-description {
        padding: 15px;
        font-size: clamp(13px, 1.8vw, 15px);
    }
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalAppear {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}