body {
    margin: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #18212b;
    background: #f4f7fb;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.top-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-buttons a {
    color: #dbe4f0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.top-buttons a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.top-buttons a.active-top-button {
    color: #ffffff;
    background-color: #2f80ed;
    box-shadow: 0 8px 24px rgba(47, 128, 237, 0.28);
}

.news-hero-section {
    padding: 72px 0 40px;
    background:
        radial-gradient(circle at top left, rgba(47, 128, 237, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.news-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: stretch;
}

.news-hero-left {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.1);
    color: #1d5fbf;
    font-size: 0.92rem;
    font-weight: 600;
}

.news-hero-left h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1.05;
    color: #0f172a;
}

.news-hero-left p {
    margin: 0;
    font-size: 1.08rem;
    color: #334155;
    max-width: 700px;
}

.news-hero-right {
    min-height: 340px;
}

.featured-news-card {
    height: 100%;
    background: linear-gradient(180deg, #17375e, #10243d);
    color: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(16, 36, 61, 0.2);
    display: flex;
    flex-direction: column;
}

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

.featured-news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.featured-badge {
    display: inline-block;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #dbe4f0;
    font-size: 0.95rem;
}

.featured-news-content h3 {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.2;
}

.featured-news-btn {
    margin-top: auto;
    border: none;
    background: #2f80ed;
    color: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.featured-news-btn:hover {
    transform: translateY(-2px);
    background: #256fd1;
}


.news-feed-section {
    padding: 20px 0 80px;
}

.news-section-title {
    margin-bottom: 26px;
}

.news-section-title h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: #0f172a;
}

.news-section-title p {
    margin: 0;
    color: #475569;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.news-card-content {
    padding: 22px;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.news-date,
.news-category {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.news-date {
    background: #edf2f7;
    color: #334155;
}

.news-category {
    background: rgba(47, 128, 237, 0.1);
    color: #1d5fbf;
}

.news-card h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.3;
    color: #0f172a;
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.news-modal.active {
    display: block;
}

.news-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 22, 0.72);
    backdrop-filter: blur(5px);
}

.news-modal-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.news-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 30px;
    cursor: pointer;
    z-index: 5;
}

.news-modal-scroll {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 58px 28px 28px;
}

.modal-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.modal-left h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.1;
    color: #0f172a;
}

.modal-text p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 1.03rem;
    text-align: justify;
}

.modal-right {
    position: sticky;
    top: 0;
}

.modal-main-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.modal-main-image img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
}

.modal-info-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.modal-info-row + .modal-info-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.modal-info-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-info-value {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.modal-gallery-section {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #e2e8f0;
}

.modal-gallery-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-gallery-top h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #0f172a;
}

.modal-gallery-controls {
    display: flex;
    gap: 10px;
}

.gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-btn:hover {
    background: #f8fafc;
}

.modal-gallery-viewport {
    overflow: hidden;
}

.modal-gallery-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.gallery-item {
    min-width: calc((100% - 32px) / 3);
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.footer-left {
    width: 600px;
}

.footer {
    background: #1c1c1c;
    color: #ddd;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-description {
    line-height: 1.6;
    font-size: 15px;
}

.footer-center h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-center ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-center li {
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-right {
    text-align: right;
}

.made-by {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.made-by img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.made-by p {
    margin: 0;
    font-size: 16px;
}

.founded {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-buttons {
        flex-wrap: wrap;
    }

    .news-hero-grid,
    .modal-layout {
        grid-template-columns: 1fr;
    }

    .modal-right {
        position: static;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        min-width: calc((100% - 16px) / 2);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .made-by {
        justify-content: center;
    }

    .footer-left {
        width: 100%;
    }

    .footer-description {
        overflow-wrap: break-word;
    }
}

@media (max-width: 600px) {
    .header-container {
        min-height: auto;
        padding: 16px 0;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .top-buttons a {
        font-size: 0.95rem;
        padding: 9px 14px;
    }

    .news-hero-section {
        padding: 48px 0 30px;
    }

    .news-hero-left {
        padding: 24px;
        min-height: auto;
    }

    .featured-news-content {
        padding: 18px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-modal-scroll {
        padding: 56px 16px 20px;
    }

    .modal-gallery-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-item {
        min-width: 100%;
    }

    .footer {
        padding: 36px 16px 16px;
    }
}
