/*
Theme Name: Mocaf Theme
Author: Boss Muda
Description: Custom Mocaf Theme
Version: 1.0
*/

body {
    margin: 0;
}

.hero {
  position: relative;
  height: 100vh;
}

.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide1 {
  background-image: url('https://mocaf.pringsewukab.go.id/wp-content/uploads/2026/04/slide1.jpeg');
}

.slide2 {
  background-image: url('https://mocaf.pringsewukab.go.id/wp-content/uploads/2026/04/slide2.jpeg');
}

.slide3 {
  background-image: url('https://mocaf.pringsewukab.go.id/wp-content/uploads/2026/04/slide3.jpeg');
}

/* NAVBAR MENU */
nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    font-weight: 500;
    color: #374151; /* gray-700 */
    transition: all 0.3s ease;
    padding: 6px 0;
}

/* HOVER EFFECT */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #1e40af; /* biru */
    transition: 0.3s;
}

nav ul li a:hover {
    color: #1e40af;
}

nav ul li a:hover::after {
    width: 100%;
}

/* ACTIVE MENU */
nav ul li.current-menu-item a {
    color: #1e40af;
    font-weight: 600;
}

nav ul li.current-menu-item a::after {
    width: 100%;
}

/* MOBILE MENU FIX */
#mobileMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mobileMenu ul li a {
    font-size: 20px;
    color: #374151;
    text-decoration: none;
}

#mobileMenu ul li a:hover {
    color: #1e40af;
}

.product-section {
  padding: 80px 20px;
  font-family: sans-serif;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #666;
  max-width: 800px;
  margin: auto;
  margin-bottom: 40px;
}

/* TABS */
.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab {
  background: none;
  border: none;
  padding: 10px 20px;
  border-bottom: 2px solid #ccc;
  cursor: pointer;
}

.tab.active {
  background: #1e40af;
  color: white;
  border-bottom: none;
}

/* CONTENT */
.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* IMAGE */
.product-image img {
  width: 100%;
  max-width: 350px;
}

.thumbs {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.thumbs img {
  width: 100px;
  border-radius: 10px;
}

/* INFO */
.product-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.product-info p {
  color: #555;
  line-height: 1.6;
}

/* ICON */
.icons {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}

.icon {
  text-align: center;
}

.circle {
  width: 60px;
  height: 60px;
  border: 2px solid #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  font-size: 24px;
  margin-bottom: 5px;
}

/* AVAILABLE */
.available {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.line {
  flex: 1;
  height: 1px;
  background: #ccc;
}

/* BUTTON */
.sizes {
  display: flex;
  gap: 15px;
}

.sizes button {
  background: #1e40af;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.sizes button:hover {
  background: #1e3a8a;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .product-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .icons {
    justify-content: center;
  }

  .sizes {
    justify-content: center;
  }
}

/* ===== FORCE NAVBAR JADI BIRU (OVERRIDE TAILWIND) ===== */

/* override text hijau */
nav ul li a[class*="green"] {
    color: #1e40af !important;
}

/* override hover hijau */
nav ul li a:hover,
nav ul li a.hover\:text-green-700:hover,
nav ul li a.hover\:text-green-800:hover,
nav ul li a.hover\:text-green-600:hover {
    color: #1e40af !important;
}

/* override underline */
nav ul li a::after {
    background: #1e40af !important;
}

/* active menu */
nav ul li.current-menu-item a {
    color: #1e40af !important;
}

/* kalau ada bg hijau */
nav ul li a[class*="bg-green"] {
    background-color: transparent !important;
}

/*CSS ARTIKEL*/
/* WRAPPER */
.article-wrapper {
  background: #f5f7fb;
  padding: 60px 20px;
}

/* CONTAINER */
.article-container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* TITLE */
.article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #1f2937;
}

/* META */
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 25px;
}

/* IMAGE */
.article-image img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* CONTENT */
.article-content {
  font-size: 17px;
  line-height: 1.9;
  color: #374151;
}

/* PARAGRAPH */
.article-content p {
  margin-bottom: 20px;
}

/* IMAGE DALAM CONTENT */
.article-content img {
  width: 100%;
  border-radius: 10px;
  margin: 25px 0;
}

/* HEADING DALAM ARTIKEL */
.article-content h2,
.article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* RESPONSIVE */
@media(max-width:768px){
  .article-container {
    padding: 25px;
  }

  .article-title {
    font-size: 26px;
  }
}

