
/* CSS Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #343a40;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --border-color: #dee2e6;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --nav-bg: #f5a623;
  --nav-text: #000000;
  --primary-color: #f5a623;
  --primary-hover: #e0941f;
  --accent-color: #f5a623;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --text-white: #ffffff;
  --card-bg: #ffffff;
  --input-bg: #ffffff;
  --ticker-bg: #343a40;
}


/* Header Layout - Restored */
.main-header {
  background: var(--bg-primary);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

/* Search Container */
.search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--nav-bg);
}

.search-icon {
  position: absolute;
  right: 15px;
  color: var(--text-muted);
  font-size: 16px;
}

/* Date Info */
.date-info {
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn, .social-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.action-btn:hover, .social-btn:hover {
  background: var(--nav-bg);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Header Right - Removed */

/* Main Navigation */
.main-nav {
  background: var(--nav-bg);
  padding: 15px 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  color: var(--nav-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

.nav-item:hover,
.nav-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Sticky Header */
.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sticky-header-container {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: var(--bg-primary) !important;
  }
  
  .header-content {
    flex-direction: row;
    gap: 15px;
    text-align: left;
    align-items: center;
  }
  
  .logo {
    flex-shrink: 0;
    order: 1;
  }
  
  .logo-text {
    font-size: 1.2rem; /* Slightly smaller for mobile */
  }
  
  .search-container {
    flex: 1;
    order: 2;
    max-width: none;
  margin: 0;
  }
  
  .search-input {
    font-size: 0.9rem; /* Slightly smaller for mobile */
    padding: 8px 12px;
  }
  
  .date-info {
    display: none; /* Hide date on mobile */
  }
  
  .header-actions {
    display: none; /* Hide social media icons on mobile */
  }
  
  .nav-menu {
    padding: 0 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu::-webkit-scrollbar {
    height: 4px;
  }
  
  .nav-menu::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
  border-radius: 2px;
}

  .nav-item {
    font-size: 0.9rem;
    padding: 8px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: bold;
  }
}

/* Layout Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

@media (max-width: 991.98px) {
  .col-lg-8,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Homepage Styles */
.feature-carousel {
  position: relative;
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide:not(.active) {
  display: none;
}

.feature-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.feature-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  transition: transform 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.feature-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 40px 30px 30px;
}

.feature-categories {
  margin-bottom: 10px;
}

.feature-category-tag {
  background: var(--nav-bg);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-right: 8px;
}

.feature-headline {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-headline a {
  color: white;
  text-decoration: none;
}

.feature-headline a:hover {
  color: var(--nav-bg);
}

.feature-date {
  font-size: 0.9rem;
  opacity: 0.9;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: var(--nav-bg);
}

/* Editor Choice Section */
.editor-choice-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.editor-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.editor-carousel-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
  padding: 0 20px;
}

.editor-card {
  min-width: 250px;
  max-width: 250px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.editor-card:hover {
  transform: translateY(-5px);
}

.editor-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.editor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-content {
  padding: 15px;
}

.editor-categories {
  margin-bottom: 8px;
}

.editor-category-tag {
  background: var(--nav-bg);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-right: 5px;
}

.editor-title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
}

.editor-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.editor-title a:hover {
  color: var(--nav-bg);
}

/* Topik Khusus Section */
.topik-khusus-section {
  margin-bottom: 2rem;
}

.topik-khusus-section .section-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

.title-text {
  margin-right: 15px;
}

.title-underline {
  flex: 1;
  height: 3px;
  background: var(--nav-bg);
  border-radius: 2px;
}

.topik-khusus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.topik-khusus-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.topik-khusus-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.topik-khusus-link:hover .topik-khusus-card {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topik-khusus-header {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.topik-khusus-image {
  width: 100%;
  height: 100%;
}

.topik-khusus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topik-default-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--nav-bg), #e67e22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.topik-khusus-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topik-khusus-info {
  text-align: center;
}

.topik-post-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.topik-khusus-tag {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .topik-khusus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .topik-khusus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .editor-carousel-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    overflow: visible;
  }
  
  .editor-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }
  
  /* Hide navigation arrows on mobile for editor carousel */
  .editor-carousel .carousel-nav {
    display: none;
  }
  
  .carousel-container {
    height: 300px;
  }
  
  .feature-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }
  
  .feature-image-container img {
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .feature-content {
    padding: 20px 15px 15px;
  }
  
  .feature-headline {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .topik-khusus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-container {
    height: 250px;
  }
  
  .feature-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
  }
  
  .feature-image-container img {
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .feature-headline {
    font-size: 1rem;
  }
  
  .latest-news-image {
    height: 180px;
  }
  
  .latest-news-title {
    font-size: 0.95rem;
  }
  
  .latest-news-excerpt {
    font-size: 0.8rem;
  }
}

/* Random News Section */
.random-news-section {
  margin-bottom: 2rem;
}

.random-news-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.random-news-carousel-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
  padding: 0 20px;
}

.random-news-card {
  min-width: 200px;
  max-width: 200px;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.random-news-card:hover {
  transform: translateY(-5px);
}

.random-news-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.random-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.random-news-content {
  padding: 12px;
}

.random-news-title {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
}

.random-news-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.random-news-title a:hover {
  color: var(--nav-bg);
}

.see-all-container {
  text-align: center;
  margin-top: 2rem;
}

.see-all-btn {
  display: inline-block;
  background: var(--nav-bg);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.see-all-btn:hover {
  background: #e67e22;
  color: white;
}

/* Latest News Section */
.latest-news-section {
  margin-bottom: 2rem;
}

.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-news-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.latest-news-item:hover {
  transform: translateY(-2px);
}

.latest-news-image {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: 6px;
}

.latest-news-image img,
.latest-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.latest-news-title {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.latest-news-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.latest-news-title a:hover {
  color: var(--nav-bg);
}

.latest-news-categories {
  margin-bottom: 5px;
}

.latest-news-category-tag {
  background: var(--nav-bg);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 5px;
}

.latest-news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
}

.latest-news-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: auto;
}

/* Random News Section */
.random-news-section {
  margin: 2rem 0;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.random-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.random-carousel-container {
  display: flex;
  gap: 20px;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
  padding: 0 20px;
}

.random-news-card {
  min-width: 200px;
  max-width: 200px;
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.random-news-card:hover {
  transform: translateY(-3px);
}

.random-news-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.random-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.random-news-content {
  padding: 12px;
}

.random-news-title {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
}

.random-news-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.random-news-title a:hover {
  color: var(--nav-bg);
}

/* Responsive Design for Latest News */
@media (max-width: 768px) {
  .latest-news-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .latest-news-image {
    width: 100%;
    height: 200px;
  }
  
  .latest-news-title {
    font-size: 1rem;
  }
  
  .latest-news-excerpt {
    font-size: 0.85rem;
  }
  
  .random-carousel-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  padding: 0;
    overflow: visible;
  }
  
  .random-news-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }
  
  /* Hide navigation arrows on mobile for random carousel */
  .random-carousel .carousel-nav {
    display: none;
  }
  
  /* Also apply grid layout to first random news carousel */
  .random-news-carousel-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
    overflow: visible;
  }
  
  .random-news-carousel .carousel-nav {
    display: none;
  }
}

/* Sidebar Styles */
.sidebar-section {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.sidebar-title {
  background: var(--nav-bg);
  color: white;
  padding: 15px 20px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Popular Posts */
.popular-posts-list {
  padding: 0;
}

.popular-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.popular-post-item:last-child {
  border-bottom: none;
}

.popular-post-item:hover {
  background-color: var(--bg-secondary);
}

.post-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--nav-bg);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-category {
  font-size: 0.7rem;
  color: var(--nav-bg);
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-title {
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
      -webkit-line-clamp: 2;
    line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-title a:hover {
  color: var(--nav-bg);
}

/* Reader's Choice */
.readers-choice-list {
  padding: 0;
}

.reader-choice-item {
  display: flex;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.reader-choice-item:last-child {
  border-bottom: none;
}

.reader-choice-item:hover {
  background-color: var(--bg-secondary);
}

.choice-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.choice-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.choice-title {
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 5px 0;
}

.choice-title a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
      -webkit-line-clamp: 2;
    line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.choice-title a:hover {
  color: var(--nav-bg);
}

.choice-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  padding: 30px 20px;
  text-align: center;
}

.empty-state .text-muted {
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
  .sidebar-section {
    margin-bottom: 1.5rem;
  }
  
  .popular-post-item,
  .reader-choice-item {
    padding: 12px 15px;
  }
  
  .post-title a,
  .choice-title a {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 768px) {
  .sidebar-section {
    margin-bottom: 1rem;
  }
  
  .sidebar-title {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .popular-post-item,
  .reader-choice-item {
    padding: 10px 15px;
  }
  
  .post-number {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .choice-image {
    width: 50px;
    height: 50px;
  }
}

/* Content visibility fixes */
.text-white {
  color: white !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Newsletter Styles */
.newsletter-form-container {
  padding: 20px;
}

.newsletter-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.newsletter-form .form-group {
  margin-bottom: 15px;
}

.newsletter-form .form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.newsletter-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.newsletter-form .btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.newsletter-form .btn:hover {
  background: var(--primary-hover);
}

.newsletter-form .btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.newsletter-message {
  margin-top: 15px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
}

.newsletter-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.newsletter-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Newsletter Responsive */
@media (max-width: 768px) {
  .newsletter-form-container {
    padding: 15px;
  }
  
  .newsletter-description {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  .newsletter-form .form-control {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .newsletter-form .btn {
  padding: 10px;
    font-size: 0.85rem;
  }
}

/* Related Categories Section */
.related-categories-section {
  margin-top: 40px;
}

.related-categories-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.related-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-category-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-category-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-category-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  min-height: 100%;
  min-width: 100%;
}

.related-category-item:hover .related-category-image img {
  transform: scale(1.05);
}

.related-category-content {
  padding: 15px;
  text-align: center;
}

.related-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-category-title:hover {
  color: var(--nav-bg);
}

.related-category-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive Design for Related Categories */
@media (max-width: 768px) {
  .related-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .related-category-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .related-category-image img {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
  }
  
  .related-category-content {
    padding: 12px;
  }
  
  .related-category-title {
    font-size: 0.9rem;
  }
  
  .related-category-count {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .related-categories-section {
  margin-top: 30px;
}

  .related-categories-title {
    font-size: 1.1rem;
    margin: 15px 0;
  }
  
  .related-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .related-category-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .related-category-image img {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
  }
  
  .related-category-content {
    padding: 10px;
  }
  
  .related-category-title {
    font-size: 0.85rem;
  }
  
  .related-category-count {
    font-size: 0.75rem;
  }
}

/* Related Tags Section - Same style as categories */
.related-tags-section {
  margin-bottom: 2rem;
}

.related-tags-title {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.related-tags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-tag-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-tag-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-tag-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-tag-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-tag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  min-height: 100%;
  min-width: 100%;
}

.related-tag-item:hover .related-tag-image img {
  transform: scale(1.05);
}

.related-tag-content {
  padding: 15px;
  text-align: center;
}

.related-tag-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
}

.related-tag-title:hover {
  color: var(--nav-bg);
}

/* Responsive for tags */
@media (max-width: 768px) {
  .related-tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .related-tag-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .related-tag-image img {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
  }
  
  .related-tag-content {
    padding: 12px;
  }
  
  .related-tag-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .related-tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .related-tag-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .related-tag-image img {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
  }
  
  .related-tag-content {
    padding: 10px;
  }
  
  .related-tag-title {
    font-size: 0.85rem;
  }
}


/* Related Tags Section */
.related-tags-section {
  margin-top: 40px;
}

.related-tags-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.related-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-tag-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-tag-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-tag-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-tag-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
}

.related-tag-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-tag-item:hover .related-tag-image img {
  transform: scale(1.05);
}

.related-tag-content {
  padding: 15px;
  text-align: center;
}

.related-tag-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-tag-title:hover {
  color: var(--nav-bg);
}

.related-tag-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive Design for Related Tags */
@media (max-width: 768px) {
  .related-tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .related-tag-image {
    height: 120px;
  }
  
  .related-tag-content {
    padding: 12px;
  }
  
  .related-tag-title {
    font-size: 0.9rem;
  }
  
  .related-tag-count {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .related-tags-section {
    margin-top: 30px;
  }
  
  .related-tags-title {
    font-size: 1.1rem;
    margin: 15px 0;
  }
  
  .related-tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .related-tag-image {
    height: 100px;
  }
  
  .related-tag-content {
    padding: 10px;
  }
  
  .related-tag-title {
    font-size: 0.85rem;
  }
  
  .related-tag-count {
    font-size: 0.75rem;
  }
}

/* ===== GLOBAL RESPONSIVE IMAGES FIX ===== */
/* Semua gambar menjadi responsif */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* Gambar dalam konten */
.content img,
.article-content img,
.post-content img,
.entry-content img,
.wp-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .content img,
    .article-content img,
    .post-content img,
    .entry-content img,
    .wp-content img {
        margin: 10px auto;
        border-radius: 4px;
    }
}

/* Mobile Gap Responsive - PILIHAN EDITOR Section Only */
/* Konsisten gap antara feature image dan kategori di semua breakpoint mobile */

@media (max-width: 600px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 550px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 500px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 450px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 400px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 350px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 300px) {
    .editor-card .editor-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

/* Mobile Gap Responsive - RANDOM BERITA Section */
/* Konsisten gap dan aspect ratio antara feature image dan kategori di semua breakpoint mobile */

@media (max-width: 600px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 550px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 500px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 450px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 400px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 350px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 300px) {
    .random-news-card .random-news-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

/* Mobile Gap Responsive - ARTIKEL TERKAIT Section (detail-post.php) */
/* Konsisten gap dan aspect ratio antara feature image dan kategori di semua breakpoint mobile */

@media (max-width: 600px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 550px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 500px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 450px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 400px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 350px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

@media (max-width: 300px) {
    .related-post-item .related-post-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 8px !important;  /* Gap konsisten */
    }
}

/* Mobile Gap Responsive - TOPIK KHUSUS Section (index.php) */
/* Gap 0px untuk TOPIK KHUSUS, aspect ratio konsisten di semua breakpoint mobile */

@media (max-width: 600px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

@media (max-width: 550px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

@media (max-width: 500px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

@media (max-width: 450px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

@media (max-width: 400px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

@media (max-width: 350px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

@media (max-width: 300px) {
    .topik-khusus-card .topik-khusus-image {
        aspect-ratio: 16/9 !important;  /* Rasio tetap */
        height: auto !important;  /* Tinggi mengikuti rasio */
        margin-bottom: 0px !important;  /* Gap 0px untuk TOPIK KHUSUS */
    }
    
    .topik-khusus-card .topik-khusus-content {
        padding-top: 5px !important;  /* Padding atas dikurangi */
    }
}

/* Desktop + Mobile Scrollable Nav JADI 1 BARIS GESER*/
.nav-menu {
  display: flex;
  flex-wrap: nowrap;       /* jangan bungkus ke baris baru */
  overflow-x: auto;        /* aktifkan scroll horizontal */
  overflow-y: hidden;
  gap: 10px;               /* jarak antar menu */
  padding: 0 10px;
  -webkit-overflow-scrolling: touch; /* biar smooth di iOS */
  scrollbar-width: thin;             /* firefox */
  scrollbar-color: rgba(0,0,0,0.3) transparent;
}

.nav-menu::-webkit-scrollbar {
  height: 4px; /* tinggi scrollbar */
}

.nav-menu::-webkit-scrollbar-track {
  background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 2px;
}

/* Supaya item tidak dipaksa lebar */
.nav-item {
  flex: 0 0 auto;         /* biar lebarnya sesuai konten */
  white-space: nowrap;    /* teks tidak patah ke bawah */
  padding: 6px 12px;      /* agak kecil biar hemat ruang */
}

/* Logo Link Styles */
.logo-link {
  text-decoration: none !important;
  color: inherit;
  display: inline-block;
}

.logo-link:hover {
  text-decoration: none !important;
  color: inherit;
}

.logo-link:visited {
  text-decoration: none !important;
  color: inherit;
}

.logo-link:focus {
  text-decoration: none !important;
  color: inherit;
}

