/* -------- Global Styles -------- */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff5eb;
    color: #5e3c29;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 auto;
  }
  
  /* -------- Nav Bar -------- */
  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9b233;
    padding: 0 30px;
    height: auto;
    position: absolute;
    top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 10;
    flex-wrap: wrap;
  }
  
  .nav-group {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .left-nav,
  .right-nav {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    gap: 20px;
  }
  
  .nav-bar a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    padding: 4px 8px; /* moved from hover to base */
    border-radius: 4px; /* ensure consistent radius */
  }
  
  .nav-bar a:hover {
    color: #5e3c29;
    background-color: rgba(255,255,255,0.2);
  }  
  
  .logo-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 70px;
    flex: 0 0 auto;
    overflow: visible;
    z-index: 10;
  }
  
  .logo-bg {
    background-color: white;
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: 10px;
    z-index: 1;
  }
  
  .logo {
    height: 110px;
    width: auto;
    margin-top: -10px;
    z-index: 2;
  }
  
  .hamburger {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
  
  .hero-banner {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    z-index: 0;
  }
  
  .hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    display: block;
  }
  
  /*------News-----*/
  .news-hero-text {
    position: absolute;
    top: 50%;
    left: 120px;
    transform: translateY(-50%);
    z-index: 2;
    color: #5e3c29;
    font-size: 2.5rem;
  }
  
  .news-hero-text h1 {
    font-size: 5rem;
    line-height: 0.72;
  }
  
  .news-hero-text .news-sub {
    display: inline-block;
    margin-left: 39px;
  }
  
  .news-card {
    cursor: pointer;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    max-width: 1000px;
    margin: 20px auto;
    margin-top: 60px;
  }
  
  .news-card:hover {
    transform: scale(1.02);
  }
  
  .news-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
  }
  
  .news-content {
    padding: 20px;
    padding-right: 60px;
  }

  .news-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    padding-left: 40px;
  }

  .news-content.with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .news-content .text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.4;
  }
  
  .news-content .button {
    flex-shrink: 0;
  }

  .news-cards {
    padding: 0 5vw; /* or use 6vw for more space */
    box-sizing: border-box;
  }
  
  .article-link {
    display: inline-block;
    padding: 20px 15px;
    background-color: #e98a1e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 20px 20px 0;
  }
  
  .article-link:hover {
    background-color: #c56f12;
  }  
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 4vh 2vw;               /* Top and bottom space */
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    box-sizing: border-box;
  }
  
  .modal-content {
    background-color: #fff;
    margin: auto;
    padding: 40px;
    border: 1px solid #888;
    width: 95%;
    max-width: 900px;
    border-radius: 6px;
    color: #5e3c29;
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    max-height: 92vh;              /* Slightly more breathing room */
    overflow-y: auto;
    padding-right: 1rem;
    box-sizing: border-box;
  }  
  
  .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
  }
  
  .close:hover {
    color: #5e3c29;
  }

  /* Collage */
.image-collage {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
  }
  
  .image-collage img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
  }

  .image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
  }
  
  .image-gallery img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .image-gallery img:hover {
    transform: scale(1.05);
  }
  
  /* Lightbox */
  .lightbox {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
  }  

  #imageModal {
    display: none;
  }  
  
  .lightbox-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 6px;
    margin: auto;
    margin-top: 60px;
  }
  
  
  .close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
  }
  
  .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
  }
  
  .lightbox-prev { left: 30px; }
  .lightbox-next { right: 30px; }
  
  /* Newsletter */
  .newsletter {
    background-color: #fff;
    border: 2px solid #ceb8a7;
    padding: 20px;
    text-align: center;
    max-width: 600px;
    margin: 60px auto 50px;
    border-radius: 8px;
    color: #5e3c29;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .newsletter input {
    padding: 8px;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .newsletter button {
    padding: 8px 12px;
    background-color: #e98a1e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* Footer */
  footer {
    background-color: #f9c873;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    color: #5e3c29;
    font-weight: bold;
    flex-wrap: wrap;
    text-align: center;
  }
  
  footer a {
    color: inherit;
    text-decoration: none;
  }

  @media (max-width: 1100px) and (min-width: 769px) {
    .nav-bar a {
      font-size: 0.9rem; /* slightly smaller text */
      padding: 2px 6px;  /* slightly less padding */
    }
  
    .nav-group {
      gap: 10px;
    }
  }  
  
  /*----MOBILE-----*/
  @media (max-width: 768px) {
    .nav-bar {
      position: absolute;
      top: 20px;
      left: 0;
      right: 0;
      background-color: #f9b233;
      z-index: 999;
      height: auto;
      padding: 10px 20px;
      box-sizing: border-box;
    }

    .logo-nav {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2;
    }

    .logo {
      height: 110px;
    }

    .logo-bg {
      width: 50px;
      height: 35px;
    }

    .hero-banner {
      height: 250px;
      position: relative;
      z-index: 0;
      margin-top: 0;
    }

    .hero-banner img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      z-index: -1;
    }

    .left-nav, .right-nav {
        display: none;
    }

    .hamburger {
        display: block;
        order: -1;
        font-size: 2rem;
        cursor: pointer;
        color: white;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: #f9b233;
        padding: 10px 20px;
    }

    .mobile-menu.show {
        display: flex;
    }

    .mobile-menu a {
        padding: 10px 0;
        text-decoration: none;
        color: white;
        font-weight: bold;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }

    .newsletter {
        margin: 80px auto 60px;
        padding: 20px;
        width: 79%;
        display: flex;
        flex-direction: column;
        position: relative;
        gap: 10px;
        background-color: #fff;
        border: 2px solid #ceb8a7;
        max-width: 600px;
        color: #5e3c29;
        font-size: 1rem;
        line-height: 1.4;
        border-radius: 8px;
    }

    .newsletter input,
    .newsletter button {
        width: 100% !important;
        box-sizing: border-box;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px 10px;
        text-align: center;
    }

    footer div {
        width: 100%;
        margin-bottom: 10px;
    }

    .news-hero-text {
        position: absolute;
        top: 25%;
        left: 20px;
        transform: translateY(-50%);
        z-index: 2;
        color: #5e3c29;
        font-size: 2.5rem;
    }

    .news-hero-text h1 {
        font-size: 3rem;
        margin-left: 50px;
    }
  }