/* ==========================================================================
   SMOOTH SCROLL & ANCHOR NAVIGATION
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Smooth scroll via CSS (for all browsers) */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

/* Fallback for browsers without scroll-behavior support */
body {
  scroll-behavior: smooth;
}

/* ==========================================================================
   PAGE LAYOUTS (Service Detail, Promo Detail, etc.)
   ========================================================================== */

.page-wrapper {
  padding: 60px 0;
  background-color: #f9fafb;
  min-height: 60vh;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* --- SIDEBAR STYLES --- */
.page-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #0b1120; /* Dark Blue from theme */
  border-radius: 12px;
  padding: 25px;
  color: white;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  color: #9ca3af; /* Muted text */
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
  font-size: 14px;
}

.sidebar-link i.arrow-icon {
  font-size: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
}

.sidebar-link:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0) 100%);
  color: #ef4444; /* Red accent */
  border-left: 3px solid #ef4444;
  font-weight: 600;
}

.sidebar-link.active i.arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Consult Box */
.consult-box {
  text-align: center;
  padding: 30px 20px;
}
.consult-icon {
  font-size: 40px;
  color: white;
  margin-bottom: 15px;
}
.consult-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: white;
}
.consult-box p {
  color: white;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- MAIN CONTENT STYLES --- */
.page-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.content-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
}

.content-header {
  margin-bottom: 25px;
}

.content-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
}

.content-meta {
  display: flex;
  gap: 20px;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

.content-body p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
}

.content-body h3 {
  font-size: 20px;
  color: #111827;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-body ul {
  list-style: none;
  margin-bottom: 20px;
}

.content-body ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #4b5563;
}

.content-body ul li::before {
  content: "\f00c"; /* FontAwesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #0554c6; /* Primary Blue */
  font-size: 14px;
}

/* Whatsapp Button */
.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  margin-top: 20px;
}

.btn-whatsapp-large:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline-white {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn-outline-white:hover {
  background: white;
  color: #0b1120;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .page-sidebar {
    order: 2; /* Move sidebar to bottom on mobile/tablet */
    position: static;
  }
}
