/* Desa Temesi Custom Theme - Compiled CSS */
/* Complete Total Redesign: Premium Modern Theme System */

/* GLOBAL ICON FIX */
[data-lucide] {
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

svg.lucide {
  width: 1em;
  height: 1em;
}

/* Tokens are now handled by core-tokens.css */


/* RESET & BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  margin: 1.5rem 0 1rem 0;
  line-height: 1.25;
}

h1 { font-size: 2.875rem; letter-spacing: -0.03em; }
h2 { font-size: 2.125rem; letter-spacing: -0.02em; }
h3 { font-size: 1.625rem; letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 1rem 0;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

.site-main a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.site-main a:hover {
  color: var(--accent);
}

strong, b {
  font-weight: 600;
  color: var(--dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  opacity: 1;
}

img[data-src] {
  opacity: 0;
}

img.loaded {
  opacity: 1;
}

/* LAYOUT & STRUCTURE */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }
}

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

.col-lg-8, .col-lg-4, .col-md-6, .col-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background-color: #f8fafc;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* SECTION TITLES PREMIUM */
.section-header-modern, .section-header-premium {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
  position: relative;
}

.section-tagline {
  display: inline-block;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.25rem;
  padding: 10px 24px;
  background: rgba(var(--primary-rgb), 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.section-title-premium, .section-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0 0 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-desc-premium, .section-subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-title-premium {
    font-size: 2.25rem;
  }
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* GLASSMORPHISM REFINED */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* BUTTONS PREMIUM */
.btn-premium, .btn-premium-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
}

.btn-premium {
  background: var(--white);
  color: var(--primary) !important;
  border: 1px solid var(--border-color);
}

.btn-premium:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-premium-lg {
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-premium-lg:hover {
  background: var(--accent);
  color: var(--primary) !important;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-top {
  background: var(--light);
  padding: 10px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--muted);
}

.header-top .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

@media (min-width: 768px) {
  .header-top .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

@media (min-width: 480px) {
  .header-info {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.header-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* SITE HEADER PREMIUM */
.site-header-premium {
  position: relative;
  z-index: 1000;
  width: 100%;
}

/* Sticky Logic handled by navbar specifically */

.header-top-premium {
  background: #0f172a; /* Deep Sophisticated Dark */
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 10;
}

.top-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact-info {
  display: flex;
  gap: 1.5rem;
}

.header-contact-info .tm-top-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important; /* Force high contrast white */
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-contact-info .tm-top-contact i,
.header-social-premium a i,
.header-social-premium a svg {
  width: 18px !important;
  height: 18px !important;
  color: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 2px;
}

.header-contact-info .tm-top-contact i,
.header-contact-info .tm-top-contact svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--accent) !important;
  stroke: var(--accent) !important;
  stroke-width: 2.5px;
  display: inline-block;
  vertical-align: middle;
}

.header-contact-info .tm-top-contact:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.header-social-premium {
  display: flex;
  gap: 1rem;
}

.header-social-premium a {
  color: #ffffff !important;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-social-premium a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* NAVBAR V2 REDESIGN & STICKY FIX */
.main-navbar-v2 {
  background: var(--white);
  padding: 1.4rem 0;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border-bottom: 1px solid var(--border-color);
  position: relative; /* Base state */
  z-index: 999;
  width: 100%;
}

/* Sticky State with Fixed Position for reliability */
.site-header-premium.is-sticky .main-navbar-v2 {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  animation: navSlideDown 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.site-header-premium {
  /* Remove position: fixed from here to prevent jumping */
  position: relative;
}

/* Remove the old slideDown animation as sticky handle it naturally */
.site-header-premium.is-sticky {
  animation: none;
}

.nav-v2-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-v2-brand {
  flex-shrink: 0;
}

.nav-v2-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.nav-v2-logo .logo-main {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav-v2-logo .logo-main strong {
  font-weight: 900;
  color: var(--dark);
}

.nav-v2-logo .logo-sub {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-top: 4px;
}

.nav-v2-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-v2-links > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.15rem;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
}

.nav-v2-links > li > a i {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: transform 0.3s ease;
}

.nav-v2-links > li:hover > a,
.nav-v2-links > li.current-menu-item > a {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.nav-v2-links > li:hover > a i {
  transform: rotate(180deg);
  opacity: 1;
}

/* DROPDOWN V2 */
.has-dropdown { position: relative; }

.nav-v2-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  padding: 0.75rem;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
  list-style: none;
  margin: 0.5rem 0 0 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
}

.has-dropdown:hover .nav-v2-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-v2-dropdown li a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-v2-dropdown li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 20px;
}

/* RIGHT SIDE NAV */
.nav-v2-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.3);
}

/* HAMBURGER V2 */
.nav-v2-hamburger {
  display: none;
  background: #f1f5f9;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.nav-v2-hamburger:hover { background: var(--primary-light); }

.ham-box { width: 24px; height: 18px; position: relative; }

.ham-inner, .ham-inner::before, .ham-inner::after {
  width: 24px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.ham-inner { top: 50%; transform: translateY(-50%); }
.ham-inner::before { content: ''; top: -8px; }
.ham-inner::after { content: ''; top: 8px; }

/* MOBILE SIDEBAR V2 */
.nav-v2-sidebar {
  position: fixed;
  top: 0; right: -100%;
  width: 340px; height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-v2-sidebar.is-active { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,0.1); }

.sidebar-v2-inner { display: flex; flex-direction: column; height: 100%; padding: 2rem; }

.sidebar-v2-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.sidebar-v2-brand .logo-main { font-size: 1.5rem; font-weight: 300; color: var(--primary); }
.sidebar-v2-brand .logo-main strong { font-weight: 900; }

.sidebar-v2-close {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: #f1f5f9;
  color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.mobile-nav-links { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.mobile-nav-links li { margin-bottom: 0.5rem; }
.mobile-nav-links li a {
  display: flex; align-items: center; gap: 15px; padding: 12px 16px; border-radius: 12px;
  color: var(--dark); text-decoration: none; font-weight: 700; font-size: 1rem; transition: var(--transition);
}

.mobile-nav-links li a i { width: 20px; height: 20px; color: var(--accent); }
.mobile-nav-links li a:hover { background: var(--primary-light); color: var(--primary); }

.sidebar-v2-cta { margin-bottom: auto; }

.sidebar-v2-footer { padding-top: 2rem; border-top: 1px solid #f1f5f9; }
.s-contact { display: flex; flex-direction: column; gap: 12px; }
.s-contact a { display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

@media (max-width: 1024px) {
  .nav-v2-menu-area { display: none; }
  .nav-v2-hamburger { display: flex; }
  .btn-nav-cta { display: none; }
}

@media (max-width: 576px) {
  .nav-v2-sidebar { width: 100%; }
}

/* Cleaned up old mobile menu styles */

/* FOOTER PREMIUM */
.site-footer-premium {
  background: var(--dark);
  padding: 100px 0 0;
  color: rgba(255,255,255,0.6);
  margin-top: 6rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-col-premium h4 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  position: relative;
  letter-spacing: -0.01em;
}

.footer-col-premium h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-about p {
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-list a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links-list a:hover {
  color: var(--accent);
  transform: translateX(8px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.f-contact-item {
  display: flex;
  gap: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.f-contact-item i {
  color: var(--accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom-premium {
  padding: 35px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.2);
}

/* HERO BANNER */
.hero-banner {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0 0 4rem 0;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  background-size: cover;
  background-position: center;
}

.hero-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.25rem;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-content .hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.25rem;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ARTICLE CARDS & NEWS GRID */
.news-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.article-card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.article-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-card-modern:hover .article-thumb img {
  transform: scale(1.1);
}

.article-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta-modern {
  display: flex;
  gap: 15px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item i {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.article-title-modern {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
}

.article-title-modern a {
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.article-card-modern:hover .article-title-modern a {
  color: var(--primary);
}

.article-excerpt-modern {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.article-footer-modern {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.read-more-simple {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.article-card-modern:hover .read-more-simple {
  gap: 10px;
  color: var(--accent);
}

/* HERO BUTTON VISIBILITY FIX */
.hero-content .btn-premium {
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.3);
}

.hero-content .btn-premium-lg {
  color: var(--white) !important;
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero-content .btn-premium:hover {
  background: var(--white);
  color: var(--primary) !important;
}

/* PAGINATION PREMIUM */
.desa-pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.desa-pagination .page-numbers {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.desa-pagination .page-numbers.current,
.desa-pagination .page-numbers:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* GLOBAL ICON NORMALIZATION */
[data-lucide],
.lucide,
svg.lucide,
.btn i,
.btn svg {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  width: 1em;
  height: 1em;
  color: inherit;
}


/* CARDS */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

/* Make Whole Card Clickable */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.card .card-image a,
.card .card-title a {
  position: relative;
  z-index: 2;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 58, 30, 0.15);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  color: var(--dark);
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.card-text {
  margin: 0.5rem 0 1.25rem 0;
}

/* ---------------------------------------------------------
   PREMIUM COMPONENT LIBRARY
   --------------------------------------------------------- */

/* BUTTON SYSTEM */
.btn-premium, .btn-premium-lg, .btn-premium-gold-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
}

.btn-premium {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--primary) !important;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.btn-premium:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-premium-lg {
  padding: 1.25rem 2.5rem;
  background: var(--primary);
  color: var(--white) !important;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.2);
}

.btn-premium-lg:hover {
  background: var(--primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
}

.btn-premium-gold-lg {
  padding: 1.25rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary) !important;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.2);
}

.btn-premium-gold-lg:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(var(--accent-rgb), 0.3);
  filter: brightness(1.1);
}

/* QUICK LINKS SECTION */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}

.quick-link {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2rem !important;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary);
}

.quick-link-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.quick-link-icon i { width: 28px; height: 28px; }

.quick-link:hover .quick-link-icon {
  background: var(--primary);
  color: var(--accent);
  transform: rotate(-10deg);
}

.quick-link-content { flex: 1; }

.quick-link-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.quick-link-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.quick-link-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-10px);
}

.quick-link:hover .quick-link-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--primary);
  color: var(--white);
}

/* LAYANAN MANDIRI SECTION */
.layanan-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.badge-premium-emerald {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.portal-title-premium {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.portal-desc-premium {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

.portal-feature-list-premium {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.f-icon-gold {
  width: 54px;
  height: 54px;
  background: var(--white);
  color: var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.f-icon-gold i { width: 26px; height: 26px; }

.p-feature-item-modern .f-text strong {
  display: block;
  color: var(--dark);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.portal-login-card-premium {
  background: var(--white);
  padding: 4rem !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.08) !important;
  border: 1px solid var(--border-color);
  position: relative;
}

.portal-login-card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-head-premium { text-align: center; margin-bottom: 3rem; }

.portal-lock-icon-modern {
  width: 70px; height: 70px; background: var(--primary-light);
  color: var(--primary); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}

.portal-lock-icon-modern i { width: 30px; height: 30px; }

.premium-form-layout-modern { display: flex; flex-direction: column; gap: 2rem; }

.form-group-modern label {
  display: block; font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

.input-with-icon-modern { position: relative; }

.input-icon-main {
  position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--primary); opacity: 0.5;
}

.input-with-icon-modern input {
  width: 100%; padding: 1.35rem 1.5rem 1.35rem 4rem !important;
  background: #f8fafc; border: 2px solid #edf2f7; border-radius: var(--radius-md);
  font-size: 1.05rem; font-weight: 600; transition: var(--transition);
}

.input-with-icon-modern input:focus {
  border-color: var(--primary); background: var(--white);
  box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.05); outline: none;
}

/* SERBA SERBI SECTION */
.serba-serbi-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.illustration-card {
  display: flex;
  justify-content: center;
}

.illustration-card img {
  width: 100%; max-width: 480px; height: auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.15));
}

.modern-tabs-nav {
  display: flex; gap: 1rem; background: #f1f5f9;
  padding: 8px; border-radius: var(--radius-md); width: fit-content;
  margin-bottom: 3.5rem;
}

.tab-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 32px; border: none; background: transparent;
  color: var(--muted); font-weight: 800; font-size: 1rem;
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}

.tab-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-md); }

.kategori-premium-list { display: flex; flex-direction: column; gap: 1.5rem; }

.kategori-item-premium {
  display: flex; align-items: center; gap: 2rem; padding: 2rem;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border-color); text-decoration: none;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}

.kategori-item-premium:hover { border-color: var(--primary); transform: translateX(12px); box-shadow: var(--shadow-lg); }

.kategori-item-premium .item-icon {
  width: 64px; height: 64px; background: var(--primary-light);
  color: var(--primary); border-radius: 18px; display: flex;
  align-items: center; justify-content: center;
}

.kategori-item-premium .title { font-weight: 900; color: var(--dark); font-size: 1.25rem; }

/* PROGRESS BARS STYLING (The Missing Part) */
.stats-premium-visuals {
  background: var(--white);
  padding: 3.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.stats-header-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.stats-header-info i {
  width: 54px;
  height: 54px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-header-info h4 { margin: 0; font-size: 1.5rem; font-weight: 900; }

.modern-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.progress-item-modern .progress-label-modern {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
}

.progress-item-modern .progress-label-modern .val { color: var(--primary); }

.progress-track-modern {
  height: 12px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill-modern {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.progress-fill-modern.secondary { background: #34d399; }
.progress-fill-modern.accent { background: var(--accent); }

.modern-tabs-body { position: relative; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.kategori-item-premium .item-text { flex: 1; }
.kategori-item-premium .item-text .desc { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.kategori-item-premium .arrow { color: #cbd5e1; transition: var(--transition); }
.kategori-item-premium:hover .arrow { color: var(--primary); transform: translateX(5px); }

/* LOCATION MAP SECTION */
.map-grid-premium {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.map-frame-premium {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background: var(--white);
}

.map-overlay-action {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.info-column-premium { display: flex; flex-direction: column; gap: 2rem; }

.peta-card-premium {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header-premium {
  background: var(--primary);
  padding: 2rem;
  color: var(--white);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.card-header-premium .header-icon {
  width: 54px; height: 54px; background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md); display: flex;
  align-items: center; justify-content: center; color: var(--accent);
}

.card-body-premium { padding: 2.5rem; display: flex; flex-direction: column; gap: 1.75rem; }

.detail-item-premium .label {
  display: block; font-size: 0.75rem; font-weight: 800;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}

.detail-item-premium .value { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--dark); }

.detail-row-premium {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: 1.5rem 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
}

.stats-premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.stat-premium-item {
  background: var(--white); padding: 2rem; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stat-premium-item .stat-icon {
  width: 54px; height: 54px; background: var(--primary-light);
  color: var(--primary); border-radius: 16px; display: flex;
  align-items: center; justify-content: center;
}

.stat-premium-item .stat-number { display: block; font-size: 1.5rem; font-weight: 900; color: var(--primary); }

.stat-premium-item .stat-label { font-size: 0.8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; }

/* PRAYER TIMES SECTION */
.home-prayer-times-section { padding: 2rem 0 6rem; }

.prayer-times-wrapper {
  display: flex; background: var(--white); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-premium); border: 1px solid var(--border-color);
}

.prayer-times-header {
  background: linear-gradient(135deg, var(--primary), #2d5a27);
  padding: 4rem; flex: 0 0 350px; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 2rem; color: var(--white);
}

.prayer-times-header .header-icon {
  width: 70px; height: 70px; background: rgba(255,255,255,0.1);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); backdrop-filter: blur(10px);
}

.prayer-times-header .header-text h3 { font-size: 1.85rem; font-weight: 900; line-height: 1.2; margin-bottom: 8px; color: var(--white); }
.prayer-times-header .header-text .current-date { font-size: 1rem; opacity: 0.8; font-weight: 600; display: block; }

.prayer-times-grid {
  flex: 1; display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 3rem; gap: 1.5rem; background: #f8fafc;
}

.prayer-time-item {
  background: var(--white); padding: 2rem 1rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border-color); text-align: center; transition: var(--transition);
}

.prayer-time-item:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-8px); }

.prayer-time-item .p-name {
  display: block; font-size: 0.9rem; font-weight: 800;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

.prayer-time-item .p-time { font-size: 1.65rem; font-weight: 900; color: var(--primary); }

/* APARATUR SLIDER */
.aparatur-slider-container { position: relative; padding: 1rem 0; }
.aparatur-slider-wrapper { overflow: hidden; margin: 0 -1.5rem; padding: 1.5rem; }
.aparatur-slider-track { display: flex; gap: 2.5rem; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.aparatur-item { flex: 0 0 calc(33.333% - 1.67rem); min-width: 300px; }
.aparatur-card-premium {
  padding: 0 !important; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow-md); border: 1px solid var(--border-color);
}
.aparatur-photo-wrapper { position: relative; height: 340px; overflow: hidden; }
.aparatur-photo-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.aparatur-card-premium:hover .aparatur-photo-wrapper img { transform: scale(1.1); }
.aparatur-info-premium { padding: 2rem; text-align: center; }
.aparatur-info-premium .name { font-size: 1.35rem; font-weight: 900; color: var(--primary); margin-bottom: 6px; }
.aparatur-info-premium .role { display: block; font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-bottom: 1.5rem; }

.nav-btn-premium {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--border-color); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer; z-index: 20;
}
.nav-btn-premium:hover { background: var(--primary); color: var(--white); }
.nav-btn-premium.prev { left: -32px; }
.nav-btn-premium.next { right: -32px; }

/* ARTICLE CARD MODERN */
.article-card-modern {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  transition: var(--transition); border: 1px solid var(--border-color);
  background: var(--white); border-radius: var(--radius-lg);
}

.article-card-modern:hover { transform: translateY(-12px); box-shadow: var(--shadow-premium); border-color: var(--accent); }

.article-thumb { width: 100%; height: 220px; overflow: hidden; position: relative; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.article-card-modern:hover .article-thumb img { transform: scale(1.1); }

.article-card-modern .article-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }

.article-meta-modern {
  display: flex; gap: 1.5rem; font-size: 0.75rem; font-weight: 800;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}

.article-title-modern { font-size: 1.35rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }

.read-more-simple {
  font-size: 0.9rem; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 6px; transition: var(--transition);
}

.article-card-modern:hover .read-more-simple { color: var(--accent); gap: 12px; }

/* RESPONSIVE FIXES */
@media (max-width: 1200px) {
  .layanan-portal-grid, .serba-serbi-modern-grid { gap: 3rem; }
  .prayer-times-header { padding: 3rem; flex: 0 0 300px; }
  .nav-btn-premium.prev { left: 0; }
  .nav-btn-premium.next { right: 0; }
}

@media (max-width: 992px) {
  .layanan-portal-grid, .serba-serbi-modern-grid, .map-grid-premium { grid-template-columns: 1fr; }
  .portal-info-side { text-align: center; }
  .p-feature-item-modern { justify-content: center; }
  .prayer-times-wrapper { flex-direction: column; }
  .prayer-times-header { width: 100%; align-items: center; text-align: center; padding: 3rem 2rem; }
  .prayer-times-grid { grid-template-columns: repeat(3, 1fr); padding: 2rem; }
  .stats-premium-grid { grid-template-columns: 1fr; }
  .aparatur-item { flex: 0 0 calc(50% - 1.25rem); }
}

@media (max-width: 768px) {
  .portal-title-premium { font-size: 2.5rem; }
  .portal-login-card-premium { padding: 3rem 2rem !important; }
  .prayer-times-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2.25rem; }
}

@media (max-width: 640px) {
  .aparatur-item { flex: 0 0 100%; }
}

/* ==========================================================================
   SIDEBAR PREMIUM REDESIGN - WORDPRESS STANDARD WIDGETS
   ========================================================================== */

.sidebar-v2 .widget,
.sidebar .widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sidebar-v2 .widget:hover,
.sidebar .widget:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-4px);
}

.sidebar-v2 .widget-title,
.sidebar .widget-title,
.sidebar-v2 h2.widgettitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 1.75rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.sidebar-v2 .widget-title::after,
.sidebar .widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* Lists in Widgets */
.sidebar-v2 .widget ul,
.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-v2 .widget ul li {
  position: relative;
}

.sidebar-v2 .widget ul li a,
.sidebar .widget ul li a {
  display: block;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sidebar-v2 .widget ul li a:hover,
.sidebar .widget ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.1);
  transform: translateX(8px);
}

/* Search Widget */
.sidebar .widget_search .search-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar .widget_search .search-field {
  width: 100%;
  padding: 14px 20px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.sidebar .widget_search .search-field:focus {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.sidebar .widget_search .search-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar .widget_search .search-submit:hover {
  background: var(--primary-hover);
}

/* EXTRA PREMIUM SIDEBAR POLISH */
.sidebar-v2 .widget, .sidebar .widget {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

.sidebar-v2 .widget_search .search-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
}

.sidebar-v2 .widget_recent_entries ul li a {
    background: none;
    padding: 0;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--primary);
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
}

.sidebar-v2 .widget_recent_entries ul li a:hover {
    color: var(--accent);
    transform: none;
}

.sidebar-v2 .widget_archive ul li a, 
.sidebar-v2 .widget_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-v2 .widget_archive ul li a::after, 
.sidebar-v2 .widget_categories ul li a::after {
    content: '→';
    font-size: 1.1rem;
    opacity: 0.3;
    transition: var(--transition);
}

.sidebar-v2 .widget_archive ul li a:hover::after, 
.sidebar-v2 .widget_categories ul li a:hover::after {
    opacity: 1;
    transform: translateX(5px);
}

/* ==========================================================================
   SIDEBAR TOTAL MODERNIZATION (UI/UX OVERHAUL)
   ========================================================================== */

/* The main sidebar container */
.sidebar, .sidebar-v2 {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Individual Widget as a Premium Card */
.sidebar .widget, .sidebar-v2 .widget {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.sidebar .widget::before, .sidebar-v2 .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: 0.3s;
}

.sidebar .widget:hover, .sidebar-v2 .widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(var(--primary-rgb), 0.1);
}

.sidebar .widget:hover::before, .sidebar-v2 .widget:hover::before {
    opacity: 1;
}

/* Widget Titles */
.sidebar .widget-title, .sidebar-v2 .widget-title, .widgettitle {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 2px solid #f1f5f9 !important;
    display: block !important;
    position: relative;
    letter-spacing: -0.02em;
}

.sidebar .widget-title::after, .sidebar-v2 .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

/* Universal List Styling in Sidebar */
.sidebar .widget ul, .sidebar-v2 .widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar .widget ul li, .sidebar-v2 .widget ul li {
    margin-bottom: 0.75rem !important;
    padding: 0 !important;
    border: none !important;
}

.sidebar .widget ul li a, .sidebar-v2 .widget ul li a {
    display: flex !important;
    align-items: center;
    padding: 12px 16px !important;
    background: #f8fafc;
    border-radius: 12px;
    color: #475569 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar .widget ul li a:hover, .sidebar-v2 .widget ul li a:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.15);
}

/* Special Styling for Categories & Archives with counts */
.sidebar .widget_categories ul li a, 
.sidebar .widget_archive ul li a {
    justify-content: space-between;
}

.sidebar .widget_categories ul li a::after, 
.sidebar .widget_archive ul li a::after {
    content: '→';
    font-size: 1.1rem;
    opacity: 0.3;
    transition: 0.3s;
}

.sidebar .widget_categories ul li a:hover::after, 
.sidebar .widget_archive ul li a:hover::after {
    opacity: 1;
    transform: translateX(4px);
}

/* Recent Posts Enhancement */
.sidebar .widget_recent_entries ul li {
    background: #f8fafc;
    border-radius: 14px;
    padding: 15px !important;
    margin-bottom: 1rem !important;
    transition: 0.3s;
}

.sidebar .widget_recent_entries ul li:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sidebar .widget_recent_entries ul li a {
    background: none !important;
    padding: 0 !important;
    font-size: 1rem !important;
    color: var(--primary) !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
}

.sidebar .widget_recent_entries .post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Widget Container Fix */
.sidebar .widget_search {
    background: var(--primary) !important;
}

.sidebar .widget_search .widget-title {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.sidebar .widget_search .widget-title::after {
    background: #ffffff;
}


/* FORCING SIDEBAR CONSISTENCY */
.sw-v2-card {
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-color) !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
}

.sw-v2-card:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-5px);
}

.sw-v2-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin: 0 0 1.5rem 0 !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 2px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
}

/* Styling any list inside a sidebar card (WP Default Widgets) */
.sw-v2-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sw-v2-card ul li {
    margin-bottom: 0.5rem !important;
}

.sw-v2-card ul li a {
    display: block !important;
    padding: 10px 14px !important;
    background: #f8fafc;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sw-v2-card ul li a:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateX(5px);
}

/* ==========================================================================
   SINGLE POST PREMIUM REDESIGN
   ========================================================================== */

.site-main {
    padding-top: 0;
}

/* Breadcrumb Modernization */
.breadcrumb-section {
    padding: 1.5rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .separator {
    color: #cbd5e1;
}

/* Article Container */
.article-section {
    padding: 5rem 0;
    background: #ffffff;
}

.article-single {
    background: #ffffff;
}

/* Article Header */
.article-header {
    margin-bottom: 3.5rem;
}

.article-featured-image {
    margin-bottom: 2.5rem;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.article-featured-image:hover img {
    transform: scale(1.03);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
}

.article-meta .icon-meta {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.article-category {
    background: var(--primary-light);
    color: var(--primary) !important;
    padding: 6px 16px;
    border-radius: 50px;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.03em;
}

/* Article Body Typography */
.article-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2, .article-body h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin: 3.5rem 0 1.5rem;
    font-weight: 800;
}

.article-body h2 { font-size: 2rem; }
.article-body h3 { font-size: 1.5rem; }

.article-body blockquote {
    margin: 3rem 0;
    padding: 2.5rem;
    background: #f1f7f1;
    border-left: 6px solid var(--primary);
    border-radius: 0 20px 20px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--primary);
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    opacity: 0.1;
    font-family: serif;
}

.article-body img {
    border-radius: 20px;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Share Buttons */
.article-share {
    margin: 5rem 0;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 24px;
    text-align: center;
}

.article-share h4 {
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-share {
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--white);
    transition: var(--transition);
}

.btn-facebook { background: #1877f2; }
.btn-twitter { background: #1da1f2; }
.btn-whatsapp { background: #25d366; }

.btn-share:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    filter: brightness(1.1);
}

/* Related Posts */
.related-posts {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid #edf2f7;
}

.related-posts h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .article-title { font-size: 2.25rem; }
    .related-grid { grid-template-columns: 1fr; }
}
