/* ============================================
   RUMAH DEKRA - Dekranasda Kabupaten Magelang
   Design System & Global Styles
   ============================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  overflow-x: hidden;
  /* Brand Colors */
  --clr-primary: #B22234;
  --clr-primary-dark: #8B1A28;
  --clr-primary-light: #D4434F;
  --clr-secondary: #1A1A2E;
  --clr-accent-gold: #D4A853;
  --clr-accent-gold-light: #E8C97A;

  /* Neutral Colors */
  --clr-white: #FFFFFF;
  --clr-off-white: #FAF8F5;
  --clr-gray-100: #F5F2EE;
  --clr-gray-200: #E8E4DF;
  --clr-gray-300: #D1CCC5;
  --clr-gray-400: #A09A92;
  --clr-gray-500: #6B6560;
  --clr-gray-600: #4A4540;
  --clr-gray-700: #333333;
  --clr-gray-800: #222222;
  --clr-gray-900: #111111;

  /* Typography */
  --ff-brand: 'Libre Baskerville', 'Georgia', serif;
  --ff-heading: 'Playfair Display', 'Georgia', serif;
  --ff-body: 'Poppins', 'Segoe UI', sans-serif;
  --ff-hero: 'Cinzel', 'Georgia', serif;

  /* Spacing */
  --section-py: 80px;
  --section-px: 5%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-gray-700);
  background-color: var(--clr-off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-gray-800);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.05rem, 2vw, 1.4rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.brand-font {
  font-family: var(--ff-brand);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-family: var(--ff-heading);
  color: var(--clr-gray-800);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-gold));
  border-radius: 2px;
}

.section-title p {
  color: var(--clr-gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 20px;
}

/* ---------- Batik Pattern Divider ---------- */
.batik-divider {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--clr-primary) 0,
    var(--clr-primary) 8px,
    var(--clr-accent-gold) 8px,
    var(--clr-accent-gold) 16px,
    var(--clr-primary-dark) 16px,
    var(--clr-primary-dark) 24px
  );
  opacity: 0.7;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-dekra {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
  padding: 12px 0;
  transition: all var(--transition-base);
  z-index: 1050;
  border-bottom: 1px solid transparent;
}

.navbar-dekra.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  border-bottom: 1px solid var(--clr-gray-200);
}

.navbar-brand-dekra {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand-dekra img {
  height: 50px;
  width: auto;
  transition: var(--transition-base);
}

.navbar-dekra.scrolled .navbar-brand-dekra img {
  height: 42px;
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand-text .brand-name {
  font-family: var(--ff-brand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-primary);
}

.navbar-brand-text .brand-sub {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--clr-gray-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar-dekra .nav-link {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--clr-gray-700) !important;
  padding: 8px 18px !important;
  position: relative;
  transition: color var(--transition-fast);
  letter-spacing: 0.3px;
}

.navbar-dekra .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  border-radius: 1px;
}

.navbar-dekra .nav-link:hover,
.navbar-dekra .nav-link.active {
  color: var(--clr-primary) !important;
}

.navbar-dekra .nav-link:hover::after,
.navbar-dekra .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23B22234' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ============================================
   HERO BANNER (Single Image + Text Overlay)
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 17, 17, 0.70) 0%,
    rgba(17, 17, 17, 0.45) 40%,
    rgba(17, 17, 17, 0.55) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 80px 20px 40px;
}

.hero-text-block {
  max-width: 800px;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--clr-accent-gold);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 7.5vw, 5rem);
  font-weight: 400;
  color: var(--clr-white);
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: none;
  margin-bottom: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-title span {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 1.15em;
  color: var(--clr-accent-gold);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.hero-divider span {
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-accent-gold));
}

.hero-divider span:last-child {
  background: linear-gradient(90deg, var(--clr-accent-gold), transparent);
}

.hero-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-desc {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  font-style: italic;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .hero-banner {
    height: 75vh;
    min-height: 480px;
  }

  .hero-subtitle {
    font-size: 0.78rem;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .hero-title span {
    letter-spacing: 2px;
  }

  .hero-divider span {
    width: 50px;
  }

  .hero-logo-icon {
    width: 28px;
    height: 28px;
  }

  .hero-desc {
    font-size: 0.82rem;
    padding: 0 10px;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-dekra {
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  padding: 12px 32px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-primary-dekra::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary-dekra:hover {
  background: var(--clr-primary-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 52, 0.4);
}

.btn-primary-dekra:hover::before {
  left: 100%;
}

.btn-outline-dekra {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  padding: 10px 28px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-outline-dekra:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 52, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--clr-accent-gold), var(--clr-accent-gold-light));
  color: var(--clr-gray-800);
  border: none;
  padding: 12px 32px;
  font-family: var(--ff-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
  color: var(--clr-gray-900);
}

/* ============================================
   CARDS
   ============================================ */
.card-dekra {
  background: var(--clr-white);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card-dekra:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-dekra .card-img-top {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.card-dekra:hover .card-img-top {
  transform: scale(1.05);
}

.card-dekra .card-img-wrapper {
  overflow: hidden;
  position: relative;
  height: 240px;
}

.card-dekra .card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.05));
  pointer-events: none;
}

.card-dekra .card-body {
  padding: 22px;
}

.card-dekra .card-title {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--clr-gray-800);
}

.card-dekra .card-text {
  font-size: 0.92rem;
  color: var(--clr-gray-500);
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION (Home)
   ============================================ */
.about-section {
  padding: var(--section-py) 0;
  background: var(--clr-white);
}

.about-section .about-text h2 {
  font-family: var(--ff-heading);
  color: var(--clr-gray-800);
  margin-bottom: 20px;
}

.about-section .about-text p {
  color: var(--clr-gray-500);
  margin-bottom: 25px;
  font-size: 1.02rem;
}

.about-section .about-text .highlight-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent-gold));
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ============================================
   FEATURED PRODUCTS / KARYA UNGGULAN
   ============================================ */
.featured-section {
  padding: var(--section-py) 0;
  background: var(--clr-gray-100);
}

/* ============================================
   SOCIAL MEDIA SECTION (Unified)
   ============================================ */
.social-media-section {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.socmed-label {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-accent-gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.socmed-main-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0;
}

.socmed-block {
  margin-bottom: 50px;
}

.socmed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.socmed-platform-title {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.socmed-platform-title i {
  opacity: 0.8;
}

.socmed-follow-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-base);
  background: transparent;
}

.socmed-follow-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.ig-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ig-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.88) 0%, rgb(26 26 46 / 60%) 100%);
  z-index: 2;
}

.ig-post-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.ig-post-card:hover {
  transform: translateY(-4px);
}

.ig-post-card iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

@media (max-width: 991.98px) {
  .ig-post-card iframe {
    height: 420px;
  }
}

@media (max-width: 575.98px) {
  .ig-post-card iframe {
    height: 380px;
  }
}

/* ============================================
   YOUTUBE SECTION
   ============================================ */
.yt-section-new {
  position: relative;
  padding: var(--section-py) 0;
  overflow: hidden;
}

.yt-embed-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.yt-embed-card:hover {
  transform: translateY(-4px);
}

.yt-embed-card iframe {
  border: none;
  display: block;
}

/* ============================================
   TIKTOK SECTION
   ============================================ */
.tiktok-section-new {
  padding: var(--section-py) 0;
  background: var(--clr-gray-100);
}

.tiktok-embed-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: transform var(--transition-base);
}

.tiktok-embed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tiktok-embed-card iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

@media (max-width: 767.98px) {
  .tiktok-embed-card iframe {
    height: 500px;
  }
}

/* ============================================
   LATEST NEWS SECTION
   ============================================ */
.news-section {
  padding: var(--section-py) 0;
  background: var(--clr-gray-100);
}

.news-date {
  font-size: 0.82rem;
  color: var(--clr-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-more {
  color: var(--clr-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-base);
}

.read-more:hover {
  color: var(--clr-primary-dark);
  gap: 10px;
}

/* ---------- News Featured + List Layout (dekranas.co.id style) ---------- */
.news-featured-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  height: 100%;
  min-height: 420px;
}

.news-featured-img-wrapper {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.news-featured-img-wrapper img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.news-featured-card:hover .news-featured-img-wrapper img {
  transform: scale(1.03);
}

.news-list-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--clr-gray-200);
  align-items: flex-start;
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.news-list-thumb:hover img {
  transform: scale(1.05);
}

.news-list-content {
  flex: 1;
  min-width: 0;
}

.news-list-date {
  font-size: 0.8rem;
  color: var(--clr-gray-400);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}

.news-list-title {
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--clr-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-title a {
  color: var(--clr-gray-800);
}

.news-list-title a:hover {
  color: var(--clr-primary);
}

@media (max-width: 767.98px) {
  .news-featured-card,
  .news-featured-img-wrapper,
  .news-featured-img-wrapper img {
    min-height: 280px;
  }

  .news-list-thumb {
    width: 120px;
    height: 85px;
  }

  .news-list-title {
    font-size: 0.9rem;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer-dekra {
  background: var(--clr-gray-900);
  color: var(--clr-gray-300);
  padding: 60px 0 0;
}

.footer-dekra h5 {
  font-family: var(--ff-heading);
  color: var(--clr-white);
  font-size: 1.15rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-dekra h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
}

.footer-dekra p,
.footer-dekra a {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-dekra a {
  color: var(--clr-gray-400);
  transition: color var(--transition-fast);
}

.footer-dekra a:hover {
  color: var(--clr-accent-gold);
}

.footer-dekra .footer-brand img {
  height: 55px;
  margin-bottom: 15px;
}

.footer-dekra .footer-brand .brand-name {
  font-family: var(--ff-brand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-white);
}

.footer-dekra .footer-links li {
  margin-bottom: 8px;
}

.footer-dekra .footer-links a::before {
  content: '›';
  margin-right: 8px;
  color: var(--clr-primary);
  font-weight: 700;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--clr-primary);
  margin-top: 4px;
  font-size: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--clr-gray-400);
  font-size: 1rem;
  margin-right: 8px;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--clr-gray-500);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary), var(--clr-primary-light));
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath fill='%23FAF8F5' d='M0,40 C280,100 560,0 720,50 C880,100 1160,0 1440,40 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
}

.page-header h1 {
  font-family: var(--ff-heading);
  color: var(--clr-white);
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.page-header .breadcrumb-dekra {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-dekra a {
  color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb-dekra a:hover {
  color: var(--clr-white);
}

/* ============================================
   PROFIL PAGE
   ============================================ */
.profil-section {
  padding: var(--section-py) 0;
}

/* Image Collage */
.profil-img-collage {
  position: relative;
  padding: 20px;
}

.profil-img-collage .collage-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.profil-img-collage .collage-secondary {
  position: absolute;
  bottom: -10px;
  left: -20px;
  width: 200px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 5px solid var(--clr-white);
  box-shadow: var(--shadow-md);
}

.collage-badge {
  position: absolute;
  bottom: 30px;
  right: 0;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 2;
}

.collage-badge-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--clr-accent-gold);
}

.collage-badge-text {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.3;
  display: block;
  margin-top: 4px;
}

@media (max-width: 767.98px) {
  .profil-img-collage .collage-main {
    height: 280px;
  }
  .profil-img-collage .collage-secondary {
    width: 140px;
    height: 110px;
    left: -5px;
    bottom: -5px;
  }
  .collage-badge {
    padding: 14px 18px;
    right: -5px;
  }
  .collage-badge-number {
    font-size: 1.6rem;
  }
}

/* Misi Cards New */
.misi-card-new {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 30px 25px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--clr-gray-200);
}

.misi-card-new:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary);
}

.misi-card-new .misi-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: var(--ff-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--clr-gray-100);
  line-height: 1;
  transition: color var(--transition-base);
}

.misi-card-new:hover .misi-number {
  color: rgba(178, 34, 52, 0.1);
}

.misi-icon-new {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.misi-icon-new i {
  color: var(--clr-white);
  font-size: 1.4rem;
}

.misi-card-new h4 {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--clr-gray-800);
}

.misi-card-new p {
  font-size: 0.9rem;
  color: var(--clr-gray-500);
  line-height: 1.7;
  margin: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  color: var(--clr-white);
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
  font-weight: 500;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.gallery-lightbox img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 60px rgba(0,0,0,0.5);
  object-fit: contain;
  animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================
   ARTIKEL PAGE
   ============================================ */
.artikel-section {
  padding: var(--section-py) 0;
}

.featured-article {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 50px;
  cursor: pointer;
}

.featured-article img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-article:hover img {
  transform: scale(1.03);
}

.featured-article .featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--clr-white);
}

.featured-article .featured-overlay .badge-category {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
}

.featured-article .featured-overlay h2 {
  color: var(--clr-white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.featured-article .featured-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
  justify-content: center;
}

.filter-tabs .filter-btn {
  background: var(--clr-white);
  border: 1px solid var(--clr-gray-200);
  color: var(--clr-gray-600);
  padding: 8px 24px;
  border-radius: var(--radius-xl);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-tabs .filter-btn:hover,
.filter-tabs .filter-btn.active {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.3);
}

/* Pagination */
.pagination-dekra {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-dekra .page-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-gray-200);
  background: var(--clr-white);
  color: var(--clr-gray-600);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.pagination-dekra .page-btn:hover,
.pagination-dekra .page-btn.active {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
}

/* ============================================
   KATALOG PAGE
   ============================================ */
.katalog-section {
  padding: var(--section-py) 0;
}

.search-filter-bar {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 20px 25px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.search-filter-bar .search-input {
  flex: 1;
  min-width: 250px;
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 42px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
  background: var(--clr-gray-100);
  position: relative;
}

.search-filter-bar .search-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: var(--clr-white);
}

.search-filter-bar .filter-select {
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  background: var(--clr-gray-100);
  min-width: 180px;
  cursor: pointer;
}

.search-filter-bar .filter-select:focus {
  outline: none;
  border-color: var(--clr-primary);
}

/* Perajin Row */
.perajin-row {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.perajin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--clr-gray-200);
}

.perajin-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.perajin-header h4 {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.perajin-header p {
  font-size: 0.82rem;
  color: var(--clr-gray-400);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--clr-gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.product-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card .product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-card .product-img-wrapper {
  overflow: hidden;
  height: 180px;
}

.product-card .product-info {
  padding: 14px;
}

.product-card .product-name {
  font-family: var(--ff-heading);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--clr-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .product-price {
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 0.95rem;
}

/* Product Detail Page */
.detail-produk-section {
  padding: var(--section-py) 0;
  background: var(--clr-white);
}

.detail-produk-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-gray-100);
}

.detail-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-detail-info h2 {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--clr-gray-800);
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 25px;
  font-family: var(--ff-heading);
}

.perajin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-gray-100);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  color: var(--clr-gray-600);
  margin-bottom: 20px;
}

.perajin-badge i {
  color: var(--clr-primary);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--clr-gray-200);
}

.spec-table td {
  padding: 12px 0;
  font-size: 0.95rem;
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--clr-gray-600);
  width: 40%;
}

.spec-table td:last-child {
  color: var(--clr-gray-800);
}

.product-hashtags {
  margin-top: 20px;
}

.product-hashtags .hashtag {
  display: inline-block;
  background: var(--clr-gray-100);
  color: var(--clr-primary);
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px 4px;
  transition: all var(--transition-fast);
}

.product-hashtags .hashtag:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* ============================================
   BUKU TAMU PAGE
   ============================================ */
.bukutamu-section {
  padding: var(--section-py) 0;
}

.guestbook-form {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.guestbook-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-gray-700);
  margin-bottom: 6px;
}

.guestbook-form .form-control {
  border: 1px solid var(--clr-gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  background: var(--clr-gray-100);
  transition: all var(--transition-fast);
}

.guestbook-form .form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(178, 34, 52, 0.1);
  background: var(--clr-white);
}

.guestbook-form .email-note {
  font-size: 0.78rem;
  color: var(--clr-gray-400);
  font-style: italic;
  margin-top: 4px;
}

.comment-wall {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.comment-wall::-webkit-scrollbar {
  width: 5px;
}

.comment-wall::-webkit-scrollbar-track {
  background: var(--clr-gray-100);
  border-radius: 3px;
}

.comment-wall::-webkit-scrollbar-thumb {
  background: var(--clr-gray-300);
  border-radius: 3px;
}

.comment-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--clr-primary);
  transition: all var(--transition-base);
  animation: fadeInUp 0.4s ease;
}

.comment-card:hover {
  box-shadow: var(--shadow-md);
}

.comment-card .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.comment-card .comment-name {
  font-weight: 700;
  color: var(--clr-gray-800);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-card .comment-name .avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 0.8rem;
  font-weight: 700;
}

.comment-card .comment-date {
  font-size: 0.78rem;
  color: var(--clr-gray-400);
}

.comment-card .comment-text {
  font-size: 0.92rem;
  color: var(--clr-gray-600);
  line-height: 1.6;
  padding-left: 42px;
}

.empty-comments {
  text-align: center;
  padding: 50px 20px;
  color: var(--clr-gray-400);
}

.empty-comments i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.4;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(178, 34, 52, 0.4);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Counter */
.stat-item {
  text-align: center;
  padding: 25px;
}

.stat-item .stat-number {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--clr-gray-500);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
  :root {
    --section-py: 60px;
  }

  .hero-carousel .carousel-item {
    height: 60vh;
    min-height: 350px;
  }

  .navbar-dekra .navbar-collapse {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-top: 10px;
    box-shadow: var(--shadow-md);
  }

  .featured-article img {
    height: 300px;
  }

  .search-filter-bar {
    flex-direction: column;
  }

  .search-filter-bar .search-input,
  .search-filter-bar .filter-select {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    height: 45vh;
    min-height: 280px;
  }

  .navbar-brand-text .brand-name {
    font-size: 1.1rem;
  }

  .navbar-brand-text .brand-sub {
    font-size: 0.55rem;
  }

  .page-header {
    padding: 100px 0 60px;
  }

  .visi-card {
    padding: 30px 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-modal .modal-dialog {
    margin: 10px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .comment-card .comment-text {
    padding-left: 0;
    margin-top: 8px;
  }

  .perajin-row {
    padding: 20px;
  }
}

@media (max-width: 575.98px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-pattern {
  position: relative;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23B22234' fill-opacity='0.03'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20V9.5a2.5 2.5 0 015 0V12h15v2H25v2h15v2H25v2.5a2.5 2.5 0 01-5 0z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.text-primary-dekra {
  color: var(--clr-primary) !important;
}

.text-gold {
  color: var(--clr-accent-gold) !important;
}

.bg-cream {
  background-color: var(--clr-gray-100);
}

/* Loading animation for smooth page entry */
.page-loaded .fade-in-up {
  opacity: 1;
  transform: translateY(0);
}
