* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
}

header {
  width: 100%;
  padding: 12px 100px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.4s ease;
}

header.hidden {
  opacity: 0;
  pointer-events: none;
}

header.show {
  opacity: 1;
  z-index: 9999;
  background: #000;
}


header img {
  height: 45px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1.8px;
}

.menu-icon {
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px;
  margin-left: 10px;
}

.fa-bars {
  cursor: pointer;
}

header.scrolled .menu-icon {
  color: white;
}


.hero {
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url('../../assets/images/banner.jpeg') center / cover no-repeat;
  background-position: top;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 20px;
  position: relative;
  padding-top: 120px;
}

.hero h1 {
  color: #fff;
  font-size: 64px;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero p {
  color: #fff;
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 700px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.categories a {
  padding: 0 20px;
  min-width: 160px;
  height: 42px;
  background: transparent;
  border: 1.5px solid #fff;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.3s ease;
}

.categories a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.categories i {
  font-size: 11px;
}

.latest-stories {
  background: #fff;
  width: 85%;
  max-width: 1200px;
  margin: -80px auto 80px;
  /* increased overlap for better look */
  padding: 80px 165px;
  box-shadow: 0 75px 150px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  z-index: 10;
}

.section-heading {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.heading-line {
  width: 45px;
  height: 2px;
  background: #dcdcdc;
  margin: 0 auto 50px;
}

/* ============= GRID ============= */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 110px;
  width: 90%;
  margin: 0 auto;
}

.story-card {
  display: none;
  /* hidden by default; JS will show as needed */
}

.story-card img {
  width: 100%;
  display: block;
}

.story-title {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.story-title:hover {
  text-decoration: underline;
}

.story-meta {
  margin-top: 8px;
  font-size: 14px;
  color: #888;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.story-meta a:hover {
  text-decoration: underline;
}

.story-meta p,
.story-meta a,
.story-meta span {
  margin: 0;
  color: #888;
  text-decoration: none;
}

.load-wrapper {
  text-align: center;
  margin-top: 50px;
}

#loadMoreBtn {
  padding: 12px 35px;
  background: #222;
  color: white;
  font-size: 12px;
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: 0.3s ease;
}

#loadMoreBtn:hover {
  background: #444;
}

footer {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(#ffffff, #f4f4f4);
  color: gray;
  font-size: 14px;
}

.side-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 2000;
  overflow-y: auto;
}

.side-panel.open {
  right: 0;
}

/* ---------- Header ---------- */
.side-header {
  background: #b01730;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-logo {
  height: 45px;
}

.close-btn {
  font-size: 20px;
  cursor: pointer;
  color: #e0e0e0;
  font-weight: bold;
}

/* ---------- Content ---------- */
.side-content {
  padding: 25px;
  text-align: left;
}

.profile-img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.quote-hi,
.quote-en {
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 900px) {

  header,
  header.scrolled {
    padding: 15px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .latest-stories {
    width: 92%;
    padding: 50px 20px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 15px 40px;
  }

  .latest-stories {
    padding: 60px 50px;
  }
}

/* ---------------- TABLETS (768px) ---------------- */
@media (max-width: 768px) {
  header {
    padding: 15px 25px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero p {
    font-size: 16px;
    max-width: 600px;
  }

  .latest-stories {
    width: 93%;
    padding: 50px 60px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .side-panel {
    width: 320px;
    right: -320px;
  }

  .side-content {
    padding: 20px;
  }

  .profile-img {
    width: 75px;
    height: 75px;
  }
}

/* ---------------- SMALL PHONES (480px) ---------------- */
@media (max-width: 480px) {
  header img {
    height: 36px;
  }

  nav ul {
    gap: 12px;
    /* reduced from 30px */
  }

  nav a {
    font-size: 10px;
    /* smaller text */
    letter-spacing: 1px;
    /* tighter letters */
  }

  header {
    padding: 10px 15px;
    /* less horizontal space */
  }

  .hero {
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h1::first-letter {
    font-size: 1.4em;
  }

  .hero p {
    font-size: 14px;
  }

  .categories a {
    min-width: 130px;
    height: 38px;
    font-size: 10px;
  }

  .latest-stories {
    padding: 40px 40px;
  }

  .side-panel {
    width: 100%;
    right: -100%;
  }

  .side-panel.open {
    right: 0;
  }

  .side-header {
    padding: 18px;
  }

  .side-content {
    padding: 18px;
  }

  .profile-img {
    width: 70px;
    height: 70px;
  }

  .close-btn {
    font-size: 18px;
  }
}

/* ---------------- VERY SMALL PHONES (360px & below) ---------------- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 13px;
  }

  .categories a {
    min-width: 115px;
    height: 36px;
    font-size: 9px;
  }
}