/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Banner Section */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url(assets/eaw.webp);
    background-size: cover;
    background-position: bottom;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.banner #text {
    position: relative;
    color: #ffd700; /* Base gold color */
    font-size: 10vw; /* Responsive font size */
    background: linear-gradient(45deg, #ffcc00, #ffdd33, #ffe680, #ffdd33, #ffcc00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.5), 
                 2px 2px 4px rgba(255, 223, 0, 0.5),
                 0 0 5px rgba(255, 223, 0, 0.6), 
                 0 0 10px rgba(255, 215, 0, 0.7);
    letter-spacing: 0.1em;
    transform: scale(1.1);
    animation: subtle-glow 4s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    0% {
        text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.5), 
                     2px 2px 4px rgba(255, 223, 0, 0.5),
                     0 0 5px rgba(255, 223, 0, 0.6), 
                     0 0 10px rgba(255, 215, 0, 0.7);
    }
    100% {
        text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3), 
                     2px 2px 4px rgba(255, 223, 0, 0.4),
                     0 0 5px rgba(255, 223, 0, 0.5), 
                     0 0 10px rgba(255, 215, 0, 0.5);
    }
}

.banner .header-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    opacity: 1;
}

.header-buttons a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    padding: 15px 30px; /* Increase padding to make the button bigger */
    border-radius: 50px; /* More rounded corners for a modern look */
    background: linear-gradient(45deg, #ffdd00, #ff8c00); /* Bright golden gradient */
    text-transform: uppercase;
    font-size: 1.2em; /* Larger font size */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Add box shadow for depth */
}

.header-buttons a:hover {
    background: linear-gradient(45deg, #ff8c00, #ffdd00); /* Inverse gradient on hover */
    color: #fff;
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Increase shadow on hover */
}

.banner .clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.banner .clouds img {
    position: absolute;
    bottom: 0;
    max-width: 100%;
    animation: animate calc(6s * var(--i)) linear infinite;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    25%, 75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Section Styles */
section {
    position: relative;
    padding: 75px 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #ffffff;
    overflow: hidden; /* Ensure content doesn't overflow */
}

section h2 {
    position: relative;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Container Styles for Desktop */
.container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    width: 100%;
    max-width: 1200px;
    height: 700px;
    background: #ffffff;
    transition: 0.25s;
}

.container .box {
    position: relative;
    background: var(--img);
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: grayscale(100%) brightness(1.1); /* Ensure 100% grayscale is applied */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.container .box:hover {
    filter: grayscale(0%) brightness(1.2); /* Adjust grayscale on hover */
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.container .box .overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.container .box:hover .overlay-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.container .box::after {
    content: attr(data-text);
    position: absolute;
    bottom: -100px;
    color: #fff;
    font-size: 1.2em;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
    transition: 0.5s;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.container .box:hover::after {
    opacity: 1;
    bottom: -60px;
    transition-delay: 0.25s;
}

/* New Article Section Styles */
.article-section {
    background-color: #f9f9f9;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-container {
    max-width: 900px;
    width: 100%;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.article-container h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.article-container p {
    font-size: 1.2em;
    line-height: 1.8em;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.article-container p:last-child {
    margin-bottom: 0;
}

/* Mobile Optimization */
@media screen and (max-width: 768px) {
    .banner {
        height: 80vh;
    }

    .banner #text {
        font-size: 12vw;
    }

    section {
        padding: 50px 20px;
    }

    .container {
        grid-template-columns: 1fr 1fr;
        grid-gap: 15px;
        width: 100%;
        height: auto;
    }

    .container .box {
        height: 150px;
        background-position: top; /* Show upper part of the image */
    }

    .article-container {
        padding: 30px;
    }

    .article-container h2 {
        font-size: 2.5em;
    }

    .article-container p {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    .banner {
        height: 70vh;
    }

    .banner #text {
        font-size: 12vw;
    }

    .container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }

    .container .box {
        height: 200px;
        background-position: top; /* Show upper part of the image */
    }

    .article-container {
        padding: 20px;
    }

    .article-container h2 {
        font-size: 2em;
    }

    .article-container p {
        font-size: 1em;
    }
}
