/* 🌐 GLOBAL STYLES */
/* html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;

    //* ✅ INSERT PAGE BACKGROUND IMAGE HERE /
    background-image: url("/images/bg.svg");
    background-size:auto;
    background-repeat: repeat;
    background-position: center;

    color: #333;
}*/

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;

  /* Stack two background images */
  background-image: 
    url("/images/bg.svg"),  /* top image (like a pattern or texture) */
    url("/images/bg1.svg");  /* bottom image (like a base color/gradient/pattern) */

  background-repeat: 
    no-repeat, /* bg1 will repeat vertically */
    repeat-y;   /* bg2 will tile fully */

  background-position: 
    center top, 
    center;

  background-size: 
    cover, 
    cover;

  color: #4f4f4f;
}


/* 🧭 HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    background: #fff;
    flex-wrap: wrap;
}

header .logo img {
    height: 40px;

    /* ✅ INSERT CUSTOM LOGO IMAGE IN HTML src="../images/logo_wt.svg" */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle img {
    width: 32px;
    height: 32px;

    /* ✅ INSERT HAMBURGER ICON IMAGE IN HTML src="../images/menu-icon.svg" */
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* 🔍 SEARCH + SETTINGS */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-container input {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    background: #41b3a3;
    color: white;
    outline: none;
    font-size: 14px;
}

.search-container input::placeholder {
    color: white;
}

.search-container button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #41b3a3;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-container button img {
    width: 20px;
    height: 20px;

    /* ✅ INSERT SEARCH ICON IMAGE IN HTML src="../images/search-icon.svg" */
}

.settings img {
    width: 24px;
    height: 24px;
    cursor: pointer;

    /* ✅ INSERT SETTINGS ICON IMAGE IN HTML src="../images/settings-icon.svg" */
}

/* 📰 MAIN SECTION */
main {
    flex: 1;
}

.latest-news {
    padding: 40px;

    /* ✅ Optional overlay to make content readable on bg image */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 20px;
}

.latest-news h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.news-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.news-content p {
    font-size: 1.2rem;
    max-width: 300px;
}

.menu-button img {
    width: 50px;
    height: 50px;
    background-color: #41b3a3;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;

    /* ✅ INSERT HAMBURGER ICON AGAIN IF NEEDED */
}

.news-image img {
    width: 100%;
    border-radius: 30px;
    margin-top: 20px;

    /* ✅ INSERT MAIN IMAGE IN HTML src="../images/handwashing.jpg" */
}

/* 🦶 FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #41b3a3;
    color: white;
    font-size: 0.9rem;
}

/* 📱 RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    .nav-links.open {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 10px;
        margin: 10px 0;
        padding-left: 0;
    }

    .header-right {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }

    .latest-news {
        padding: 20px;
        margin: 10px;
    }

    .latest-news h1 {
        font-size: 2rem;
    }

    .news-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .menu-button img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 14px;
    }

    .search-container input {
        width: 120px;
        font-size: 12px;
    }

    .search-container button {
        width: 30px;
        height: 30px;
    }

    .search-container button img {
        width: 16px;
        height: 16px;
    }

    footer {
        font-size: 0.8rem;
    }
}
