@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1A1A1A;
    color: #FFFFFF;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.footer {
    color: #888;
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

.footer i {
    color: white;
}

.header {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #F0B90B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #F0B90B;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 16px;
    border: 2px solid #F0B90B;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #F0B90B;
    color: #1A1A1A;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #F0B90B;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.news-list-container, .news-detail-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 12px;
}

h2, h3 {
    color: #F0B90B;
    text-align: left;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

#hero-section {
    background-color: #3A3A3A;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#hero-section:hover {
    transform: scale(1.02);
}

.hero-item {
    display: flex;
    flex-direction: column;
}

.hero-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero-item h3 {
    font-size: 2em;
    color: #FFFFFF;
    margin: 0 0 15px;
}

.hero-item p {
    color: #adadad;
    font-size: 1em;
    margin: 0;
    line-height: 1.5;
}

.carousel-container {
    margin-bottom: 30px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 25%;
    background-color: #3A3A3A;
    border-radius: 10px;
    padding: 15px;
    margin-right: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.carousel-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.carousel-item h3 {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0 0 8px;
    flex-grow: 0;
}

.carousel-item p {
    color: #adadad;
    font-size: 0.85em;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #F0B90B;
    font-size: 1.2em;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.grid-container, .latest-news-container {
    margin-bottom: 30px;
}

.grid, .latest-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-item, .latest-news-item {
    background-color: #3A3A3A;
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-item:hover, .latest-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.news-item img, .latest-news-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-item h3, .latest-news-item h3 {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0 0 10px;
}

.news-item p, .latest-news-item p {
    color: #adadad;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

#news-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#news-date {
    color: #4A4A4A;
    font-size: 0.9em;
    margin: 10px 0;
    font-style: italic;
}

#news-title {
    font-size: 2em;
    color: #f0b90b;
    margin: 0 0 15px;
}

#news-description {
    text-align: justify;
    color: #FFFFFF;
    font-size: 1.1em;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #F0B90B;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 10px 20px;
    border: 2px solid #F0B90B;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-link:hover {
    background-color: #F0B90B;
    color: #1A1A1A;
}

.error {
    color: #FF4D4D;
    text-align: center;
    font-size: 1em;
    margin: 20px 0;
    display: none;
}

@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.2em;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #2D2D2D;
        flex-direction: column;
        width: 200px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-item img {
        height: 250px;
    }

    .hero-item h3 {
        font-size: 1.6em;
    }

    .carousel-item {
        flex: 0 0 50%;
        min-height: 280px;
    }

    .carousel-item img {
        height: 120px;
    }

    .grid, .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .news-list-container,
    .news-detail-container {
        padding: 15px;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }
}