/* listnews.css - Redesigned with refined typography and layout */

/* Reset dan base style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: #ffffff;
  background-color: #0a0a0a;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero section dengan image background */
.hero {
  position: relative;
  height: 50vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Image background styling */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.5)
  );
}

/* Hero content styling */
.hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(125, 95, 255, 0.8);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(125, 95, 255, 0.8);
  }
  to {
    text-shadow: 0 0 20px rgba(125, 95, 255, 1),
      0 0 30px rgba(125, 95, 255, 0.7);
  }
}

.tagline {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Container untuk semua konten */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* News section styling */
.news-section {
  padding: 60px 0;
  background-color: #0c0c14;
  position: relative;
}

/* Ambient background elements */
.news-section::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.03);
  filter: blur(100px);
  z-index: 0;
  top: -100px;
  right: 10%;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #7d5fff;
  margin-bottom: 15px;
  letter-spacing: 3px;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #7d5fff;
}

.section-description {
  font-size: 18px;
  color: #b3b3cc;
  max-width: 600px;
  margin: 0 auto;
}

/* News container */
.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* News item cards */
.news-item {
  flex: 0 0 calc(33.33% - 20px);
  max-width: 380px;
  background: rgba(15, 15, 25, 0.5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(125, 95, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover,
.news-item.active {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(125, 95, 255, 0.4);
}

/* News image */
.news-image {
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

/* News info */
.news-info {
  padding: 24px;
}

/* News date - refined typography */
.news-date {
  font-family: "Raleway", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #7d5fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* News title - refined typography */
.news-title {
  font-family: "Orbitron", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
  transition: color 0.3s ease;
  height: 45px; /* Fixed height for consistency */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-item:hover .news-title {
  color: #7d5fff;
}

/* News excerpt - refined typography */
.news-excerpt {
  height: 60px; /* Fixed height for consistency */
  overflow: hidden;
  margin-bottom: 16px;
}

.news-excerpt p {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #b3b3cc;
  font-weight: 300;
}

/* Read more button - refined typography */
.read-more {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #7d5fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.read-more::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #7d5fff;
  transition: width 0.3s ease;
}

.news-item:hover .read-more::after {
  width: 100%;
}

/* Button container */
.button-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.show-more-btn {
  background: rgba(125, 95, 255, 0.2);
  border: 1px solid #7d5fff;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1.5px;
}

.show-more-btn:hover {
  background: rgba(125, 95, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(125, 95, 255, 0.3);
}

/* News info section */
.news-info {
  padding: 60px 0;
  background-color: #0a0a12;
  position: relative;
}

.news-info::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.03);
  filter: blur(100px);
  z-index: 0;
  bottom: -100px;
  left: 10%;
}

.info-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.info-card {
  flex: 1;
  background: rgba(15, 15, 25, 0.5);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(125, 95, 255, 0.2);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  color: #7d5fff;
}

.info-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.info-card p {
  font-size: 14px;
  color: #b3b3cc;
  line-height: 1.6;
  font-weight: 300;
}

/* Hide news items after the first 12 */
.news-item:nth-child(n + 13) {
  display: none;
}

/* ====== MEDIA QUERIES UNTUK RESPONSIVITAS ====== */

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  h1 {
    font-size: 48px;
    letter-spacing: 3px;
  }

  .tagline {
    font-size: 20px;
  }

  .news-item {
    flex: 0 0 calc(50% - 15px);
  }

  .info-container {
    flex-wrap: wrap;
  }

  .info-card {
    flex: 0 0 calc(50% - 15px);
    margin-bottom: 30px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media screen and (max-width: 767px) {
  .hero {
    height: 40vh;
  }

  h1 {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .tagline {
    font-size: 18px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-description {
    font-size: 16px;
  }

  .news-item {
    flex: 0 0 100%;
    max-width: 450px;
  }

  .info-container {
    flex-direction: column;
  }

  .info-card {
    flex: 0 0 100%;
  }
}

/* Mobile Portrait (until 575px) */
@media screen and (max-width: 575px) {
  .hero {
    height: 35vh;
  }

  h1 {
    font-size: 30px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }

  .tagline {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .section-description {
    font-size: 15px;
  }

  .news-image {
    height: 180px;
  }

  .news-info {
    padding: 20px;
  }

  .news-title {
    font-size: 16px;
    height: 40px;
  }

  .news-excerpt {
    height: 55px;
  }
}

/* Untuk layar sangat kecil (< 360px) */
@media screen and (max-width: 359px) {
  h1 {
    font-size: 24px;
  }

  .tagline {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .news-image {
    height: 160px;
  }

  .news-title {
    font-size: 15px;
  }

  .show-more-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}
