 /* =====================
   CSS RESET / BASE
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #5f5f5f;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: #d3d3d3 !important;
}

/* =====================
   LAYOUT HELPERS
===================== */
.container {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* =====================
   HEADER / NAV (MOBILE)
===================== */
header {
  border-bottom: 1px solid #5f5f5f;
  background: #5f5f5f;
}

.header-content {
  display: flex;
  flex-direction: column; /* mobile first */
  gap: .5rem;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
}

/* =====================
   HERO (MOBILE)
===================== */
.hero {
  background: #5f5f5f;
  text-align: center;
  padding: 3rem 1rem;
  
  background-image: url('/assets/you-live-here.jpg');
  background-size: cover;             /* cover entire section */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  max-width: 35ch;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: #0a5cff;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}

/* =====================
   FEATURED NEWS (MOBILE)
===================== */
.featured-news {
  padding: 1rem 1rem;
}

.featured-news h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile stack */
  gap: 1.5rem;
}

.news-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 3px 3px 8px 3px rgba(255, 255, 255, 0.2);
}

.news-card h3 {
  font-size: 1.1rem;
  padding: 0.75rem;
}

/* =====================
   FOOTER (MOBILE)
===================== */
footer {
  background: #111;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #fff;
  font-size: 0.9rem;
}


/*SN news page inprogress*/
/* ==============================
   SOCIETAL NEWS – NEWS PAGE ONLY
   ============================== */

.sn-news-page {
  padding-top: 1rem;
}

/* SECTION */
.sn-news-section {
  margin-bottom: 3rem;
}

.sn-news-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

/* GRID – MOBILE FIRST */
.sn-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);;
  gap: 0.75rem;
}

/* CARD */
.sn-news-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 3px 3px 4px 2px rgba(255, 255, 255, 0.2);
}

.sn-news-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.sn-news-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.75rem;
}

.sn-news-card a {
  text-decoration: none;
  color: #000;
}





/* =====================
   TABLET (≥ 480px)
===================== */


@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 3;   /* smaller/taller on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .content-section {
  padding: 2rem 1rem;
}

.container {
  max-width: 95%;
  padding: 1 0.75rem;
}

.content-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

 .sn-news-card h3 {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
  
.sn-news-card h3 {
    font-size: 0.9rem;
    padding: 0.5rem;
    line-height: 1.3;
  }

}

@media (min-width: 768px) {

  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    justify-content: flex-end;
  }

  .hero {
    aspect-ratio: 32 / 9;  /* more standard */
    padding: 3rem 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .sn-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* =====================
   DESKTOP (≥ 1024px)
===================== */
@media (min-width: 1024px) {

   .hero {
    padding: 6rem 2rem; /* more space on larger screens */

    /* Background settings */
    background-size: cover;       /* ensures the image always covers the hero */
    background-position: center;  /* keeps it centered */
    background-repeat: no-repeat; /* no tiling */
    
    width: 100%;
    height: auto;
    aspect-ratio: 32 / 9;             /* adjust based on your image */
    display: flex;
    align-items: center;
    justify-content: center;
   }
    
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
    .sn-news-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .sn-news-section h2 {
    font-size: 1.8rem;
  }
}
