@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Additional styles for the arrow */
.arrow-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.arrow {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.arrow:hover {
    color: #ddd;
}

/* Slide up animation */
@keyframes slideUp {
    0% {
        height: 206px;
        opacity: 1;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

.banner {
    height: 206px;
    transition: height 1s ease-out, opacity 1s ease-out;
}

.banner.slide-up {
    height: 0;
    opacity: 0;
    overflow: hidden;
}

body {
    background-color: #f8f9fa; /* Off-white background */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.header {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: slideDown 1s ease-out;
}
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}
.header .title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.header .icons {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header .icons a {
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.header .icons a:hover {
    color: #555;
}
.banner {
    width: 100%;
    background: url('https://source.unsplash.com/random/1600x400?coding') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    margin-top: 50px; /* To offset the fixed header */
    animation: slideDown 1s ease-out 0.5s;
    animation-fill-mode: both;
}
.banner .overlay {
    background: #bcc5c6;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}
.banner h1 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
.nav {
    background-color: #333333;
    padding: 12px;
    z-index: 1003;
    transition: margin-top 1s ease-out;
    margin-top: 0; /* Ensure no gap initially */
}
.nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 15px;
}
.nav a {
    color: #fff;
    text-decoration: none;
    margin: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav a:hover {
    background-color: #555;
    color: #fff;
}
.dropdown {
    position: relative;
    display: flex;
}
.dropdown-content {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}
.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
    background-color: #555;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown:hover .dropbtn {
    background-color: #555;
}
.content {
    margin-top: 20px; /* To ensure it sits below the navigation bar */
    transition: margin-top 1s ease-out;
}
.content h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 16px;
}
.article-box {
    margin-bottom: 16px;
    max-width: 1200px;
    margin: 37px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.article-box h3 {
    font-size: 24px;
    font-weight: semi-bold;
}
.article-box p {
    color: #555;
}
.article-box img {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 5%;
}
.footer {
    background-color: #333;
    color: white;
    padding: 16px;
    animation: slideDown 1s ease-out 0.5s;
}
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}
.footer p {
    margin: 0;
}
.footer .social {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.footer .social a {
    color: white;
    margin: 0 8px;
    text-decoration: none;
}
.footer .social a:hover {
    text-decoration: underline;
}
.logo {
    bottom: 0;
}
.main {
    margin-top: 20px; /* To ensure it sits below the navigation bar */
    transition: margin-top 1s ease-out;
}

@media (max-width: 768px) {
    .header .title {
        font-size: 20px;
    }
    .banner {
        height: 200px;
    }
    .banner h1 {
        font-size: 28px;
    }
    .content h2 {
        font-size: 24px;
    }
    .article-box h3 {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .header .title {
        font-size: 18px;
    }
    .banner {
        height: 150px;
    }
    .banner h1 {
        font-size: 24px;
    }
    .content h2 {
        font-size: 20px;
    }
    .article-box h3 {
        font-size: 18px;
    }
    .article-box img {
        width: 30%;
        height: auto;
        display: block;
        margin: 0 auto;
        border-radius: 5%;
    }
    .main {
        overflow-y: scroll;
        max-height: 60vh;
    }
    .title .icon {
        font-size: 14px;
        color: #999; /* Blue color */
        margin: 2px;
    }

    ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    li {
        margin-right: 15px;
        margin-bottom: 0;
    }

}

.icon {
    font-size: 20px;
    color: #333; /* Blue color */
    margin: 2px;
}

ul {
    list-style-type: none;
    padding: 2px;
    display: flex;
    align-items: center;
}

li {
    margin-right: 15px;
}
