:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --background-color: #f8f9fa;
  --text-color: #333;
  --white: #fff;
  --dark: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =================== HEADER =================== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
}

.transparent-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background-color: transparent;
}

.transparent-header .nav-links a {
  color: var(--white) !important;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
}

.logo img {
  height: 70px;
  width: auto;
  max-width: 180px;
}

.nav-links a {
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* =================== HERO =================== */
.hero-section {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../../../img/fashion.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 2.5rem;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 4rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin: 0 auto;
  max-width: 700px;
}

/* =================== TOMBOL BACA SELENGKAPNYA =================== */
.button-container {
  margin-top: auto;
}

.read-more-button {
  display: inline-block;
  padding: 0.7rem 2.2rem;
  background-color: #1976d2;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.read-more-button:hover {
  background-color: #125ea2;
}

/* =================== FOOTER =================== */
.dark-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  height: 50px;
}

.footer-left p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-section a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section a:hover {
  color: var(--white);
}

.contact-info p {
  color: #999;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-info i {
  margin-top: 0.3rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 4rem;
  border-top: 1px solid #333333;
}

.footer-bottom p {
  color: #999;
  font-size: 0.9rem;
}

/* =================== CATEGORY & SEARCH =================== */
.category-nav-container {
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.category-nav {
  padding: 2.2rem 0 0.7rem 0;
}

.category-buttons-wrapper {
  margin-bottom: 1.1rem;
}

.category-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #444;
  text-decoration: none;
  transition: all 0.2s;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.search-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 320px;
  border: 1px solid #ccc;
  border-radius: 999px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
}

.search-box button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: #0056b3;
}

/* =================== NEWS GRID =================== */
.section-title {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1976d2;
  text-align: center;
  letter-spacing: 0.5px;
}

#news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.news-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

 .news-content {
  padding: 1.2rem 1rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.news-content p {
  font-size: 0.95rem;
  color: #444;
  flex: 1; /* agar paragraf menyesuaikan ruang */
  margin-bottom: 1rem;
}

.button-container {
  text-align: left; /* opsional */
}

.read-more-button {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background-color: #1976d2;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
}

.read-more-button:hover {
  background-color: #125ea2;
}

@media (max-width: 1200px) {
  .main-nav {
    padding: 1.5rem 2rem;
  }

  .footer-content {
    padding: 0 2rem;
  }
}

@media (max-width: 1100px) {
  #news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .logo img {
    height: 50px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 1rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .footer-logos {
    justify-content: center;
    gap: 1rem;
  }
  .footer-logo {
    height: 40px;
    max-width: 120px;
  }
  .category-nav {
    padding: 1.2rem 0 0.5rem 0;
  }
  .section-title {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
}

@media (max-width: 700px) {
  #news-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .nav-links {
    display: none;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
}
