/* ============================================
   PAGE-SPECIFIC STYLES - PARENT GUIDES
   Only unique styles not in shared-common.css
   ============================================ */

/* === Additional CSS Variables === */
:root {
  --radius: 16px;
  --shadow-sm: 0 8px 20px rgba(0,0,0,0.06);
  --shadow-md: 0 14px 40px rgba(0,0,0,0.10);
  --border: 1px solid #e5e7eb;
}

/* === Body Enhancement === */
body {
  background: #fff;
}

/* === Section Responsive Override === */
@media (max-width: 991px) {
  section {
    padding: 56px 0;
  }
}

/* ============================================
   PAGE HERO SECTION
   ============================================ */
.pg-hero {
  position: relative;
  padding: 86px 0 44px;
  background: #f8f9fa;
  border-bottom: var(--border);
  overflow: hidden;
}

.pg-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .65rem;
  border: var(--border);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}

.pg-breadcrumb i {
  color: var(--primary-green);
}

.pg-hero h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 12px;
}

.pg-hero p.lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 22px;
  font-size: 1.05rem;
}

/* ============================================
   HERO CARD COMPONENT
   ============================================ */
.pg-hero-card {
  background: #fff;
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pg-hero-card .card-top {
  padding: 18px 18px 0;
}

.pg-hero-card .mini-stat {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8f9fa;
  border: 1px solid rgba(16,185,129,0.25);
}

.mini-stat .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--dark-green);
  flex: 0 0 auto;
}

.mini-stat strong {
  display: block;
  font-size: .95rem;
}

.mini-stat span {
  display: block;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */
.pg-search {
  padding: 18px;
}

.pg-search .input-group {
  border: var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.pg-search .input-group-text {
  background: #fff;
  border: none;
  color: var(--text-muted);
}

.pg-search .form-control {
  border: none;
  padding: 0.9rem 0.9rem;
  font-weight: 500;
}

.pg-search .form-control:focus {
  box-shadow: none;
}

.filters-bar {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 992px) {
  .filters-bar {
    grid-template-columns: 1.25fr 1fr 1fr auto;
    align-items: center;
  }
}

.filters-bar .form-select,
.filters-bar .form-control {
  border-radius: 14px;
  border: var(--border);
  padding: 0.75rem 0.9rem;
  font-weight: 500;
}

/* ============================================
   PILL COMPONENTS
   ============================================ */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pg-pill {
  border: var(--border);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  background: #fff;
  color: var(--text-main);
  transition: var(--transition);
  user-select: none;
  cursor: pointer;
}

.pg-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(16,185,129,0.5);
}

.pg-pill.active {
  background: #f8f9fa;
  border-color: rgba(16,185,129,0.5);
  color: var(--dark-green);
}

/* ============================================
   SECTION ENHANCEMENTS
   ============================================ */
.section-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 70ch;
}

/* ============================================
   GUIDE CARD COMPONENTS - ENHANCED
   ============================================ */
.guide-card {
  background: #fff;
  border: var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  overflow: hidden;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border-color: rgba(16,185,129,0.45);
}

.guide-cover {
  padding: 16px 16px 0;
}

.guide-cover .cover-inner {
  border-radius: 16px;
  border: 1px solid #eef2f7;
  /* ENHANCED: Add gradient backgrounds */
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(6,95,70,0.05) 100%),
              linear-gradient(45deg, #f8f9fa 0%, #ffffff 100%);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add decorative pattern */
.cover-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Center icon in cover */
.cover-inner .center-icon {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  color: rgba(16,185,129,0.15);
  transition: all 0.3s ease;
}

.guide-card:hover .cover-inner .center-icon {
  color: rgba(16,185,129,0.25);
  transform: scale(1.1);
}

.cover-inner .badge-float {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--dark-green);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.cover-inner .icon-float {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16,185,129,0.35);
  color: var(--dark-green);
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: all 0.3s ease;
}

.guide-card:hover .cover-inner .icon-float {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}

/* Add variety with different gradient colors per card */
.guide-item:nth-child(6n+1) .cover-inner {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(6,95,70,0.05) 100%),
              linear-gradient(45deg, #f0fdf4 0%, #ffffff 100%);
}

.guide-item:nth-child(6n+2) .cover-inner {
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(29,78,216,0.05) 100%),
              linear-gradient(45deg, #eff6ff 0%, #ffffff 100%);
}

.guide-item:nth-child(6n+3) .cover-inner {
  background: linear-gradient(135deg, rgba(168,85,247,0.08) 0%, rgba(126,34,206,0.05) 100%),
              linear-gradient(45deg, #faf5ff 0%, #ffffff 100%);
}

.guide-item:nth-child(6n+4) .cover-inner {
  background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(217,119,6,0.05) 100%),
              linear-gradient(45deg, #fffbeb 0%, #ffffff 100%);
}

.guide-item:nth-child(6n+5) .cover-inner {
  background: linear-gradient(135deg, rgba(236,72,153,0.08) 0%, rgba(219,39,119,0.05) 100%),
              linear-gradient(45deg, #fdf2f8 0%, #ffffff 100%);
}

.guide-item:nth-child(6n+6) .cover-inner {
  background: linear-gradient(135deg, rgba(20,184,166,0.08) 0%, rgba(13,148,136,0.05) 100%),
              linear-gradient(45deg, #f0fdfa 0%, #ffffff 100%);
}

.guide-body {
  padding: 16px 18px 14px;
  flex: 1 1 auto;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: .86rem;
  margin-bottom: 10px;
}

.guide-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
}

.guide-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.guide-desc {
  color: var(--text-muted);
  font-size: .95rem;
  margin: 0;
}

.guide-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: .78rem;
  color: var(--text-main);
  background: #fff;
}

.tag i {
  color: var(--primary-green);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  border: var(--border);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  display: none;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: #f8f9fa;
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.cta-band h3 {
  font-weight: 800;
  margin: 0 0 10px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-wrap .accordion-item {
  border: var(--border);
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.faq-wrap .accordion-button {
  font-weight: 700;
  padding: 1rem 1.1rem;
}

.faq-wrap .accordion-button:not(.collapsed) {
  background: #f8f9fa;
  color: var(--dark-green);
  box-shadow: none;
}

.faq-wrap .accordion-body {
  color: var(--text-muted);
  padding: 1rem 1.1rem 1.2rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-success-strong {
  color: var(--dark-green) !important;
}