/*
 * Wedding Article Styles - FULLY RESPONSIVE
 * Brand Colors: Primary #FF4C60, Secondary #F078A0, Text #1A1A1A
 * Mobile First + Tablet + Desktop + Large Screens
 */

/* ===================================
   CSS VARIABLES - Wedding Colors
   =================================== */
:root {
  --primary: #FF4C60;
  --primary-light: #FF7A8F;
  --primary-dark: #E63850;
  --primary-subtle: rgba(255, 76, 96, 0.05);
  
  --secondary: #F078A0;
  --secondary-light: #FFB3CD;
  --secondary-dark: #D85E88;
  
  --text: #1A1A1A;
  --text-light: #555555;
  --text-lighter: #777777;
  
  --success: #28a745;
  --warning: #ffc107;
  --danger: #FF4C60;
  
  --bg-white: #ffffff;
  --bg-gray: #f9f9f9;
  --border-gray: #e0e0e0;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===================================
   KEY TAKEAWAYS BOX - Fully Responsive
   =================================== */
.key-takeaways-box {
  background: var(--bg-white);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.key-takeaways-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.takeaways-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

.takeaways-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

/* Mobile */
@media (max-width: 480px) {
  .key-takeaways-box {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
  }
  
  .key-takeaways-box h3 {
    font-size: 1.125rem;
  }
  
  .takeaways-list li {
    font-size: 0.9375rem;
    padding-left: 1.5rem;
  }
}

/* ===================================
   PRICE INFO BADGE - Fully Responsive
   =================================== */
.price-info {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0.75rem 0 1rem 0;
  box-shadow: var(--shadow-sm);
}

.price-info strong {
  font-weight: 700;
  margin-right: 0.25rem;
}

/* Tablet */
@media (max-width: 768px) {
  .price-info {
    font-size: 0.875rem;
    padding: 0.45rem 0.875rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .price-info {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    display: block;
    text-align: center;
  }
}

/* ===================================
   PRICE COMPARISON TABLE - Fully Responsive
   =================================== */
.table-wrapper {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.price-table {
  width: 100%;
  min-width: 500px; /* Prevents too much squishing */
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.9375rem;
}

.price-table thead {
  background: var(--primary);
  color: white;
}

.price-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.025em;
  border-bottom: 2px solid var(--primary-dark);
}

.price-table tbody tr {
  border-bottom: 1px solid var(--border-gray);
  transition: background-color 0.2s ease;
}

.price-table tbody tr:nth-child(even) {
  background: var(--bg-gray);
}

.price-table tbody tr:hover {
  background: var(--primary-subtle);
}

.price-table td {
  padding: 0.875rem 1rem;
  color: var(--text);
}

.price-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

/* Tablet */
@media (max-width: 768px) {
  .table-wrapper {
    margin: 1.5rem -1rem; /* Extend to screen edges */
    border-radius: 0;
  }
  
  .price-table {
    font-size: 0.875rem;
    min-width: 450px;
  }
  
  .price-table th,
  .price-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .table-wrapper {
    margin: 1.5rem -0.875rem;
  }
  
  .price-table {
    font-size: 0.8125rem;
    min-width: 400px;
  }
  
  .price-table th,
  .price-table td {
    padding: 0.625rem 0.375rem;
  }
  
  .price-table th {
    font-size: 0.8125rem;
  }
}

/* ===================================
   FAQ SECTION - Fully Responsive
   =================================== */
.faq-section {
  margin: 3rem 0;
  padding: 0;
  background: transparent;
  border: none;
}

.faq-section > h2 {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  border-left: 4px solid var(--primary);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: 16px !important;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  padding: 1.125rem 2.5rem 1.125rem 1.25rem; /* FIXED: Added consistent vertical padding */
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  display: block; /* FIXED: Changed from flex to block */
  line-height: 1.5; /* FIXED: Better line height for text */
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item:hover .faq-question {
  color: var(--primary);
}

/* FIXED: Target the p tag directly as faq-answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-white);
  padding: 0 1.25rem 0 2rem; /* FIXED: Added left padding directly */
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1rem 2rem; /* FIXED: Add bottom padding when active */
}

/* Tablet */
@media (max-width: 768px) {
  .faq-section {
    margin: 2.5rem 0;
  }
  
  .faq-section > h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .faq-question {
    font-size: 15px !important;
    padding: 1rem 2.25rem 1rem 1rem; /* FIXED: Consistent vertical padding */
    line-height: 1.5;
  }
  
  .faq-question::after {
    right: 1rem;
    font-size: 1.4rem;
  }
  
  .faq-answer {
    padding: 0 1rem 0 1.5rem; /* FIXED: Left padding */
    font-size: 0.875rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 1rem 0.875rem 1.5rem; /* FIXED: Bottom padding when active */
  }
}

/* Mobile */
@media (max-width: 480px) {
  .faq-section {
    margin: 2rem 0;
  }
  
  .faq-section > h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
  }
  
  .faq-item {
    margin-bottom: 15px;
  }
  
  .faq-question {
    font-size: 14px !important;
    padding: 0.875rem 2rem 0.875rem 0.875rem; /* FIXED: Consistent vertical padding */
    line-height: 1.5;
  }
  
  .faq-question::after {
    right: 0.875rem;
    font-size: 1.3rem;
  }
  
  .faq-answer {
    padding: 0 0.875rem 0 1.25rem; /* FIXED: Left padding */
    font-size: 0.8125rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 0.875rem 0.75rem 1.25rem; /* FIXED: Bottom padding when active */
  }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .price-table {
    box-shadow: none;
    border: 1px solid var(--border-gray);
  }
  
  .faq-answer {
    max-height: none !important;
  }
  
  .price-info {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.faq-question:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch devices */
  .faq-question {
    min-height: 44px; /* iOS recommended minimum */
  }
}






/* ===================================
   HIDE SCHEMA SCRIPTS IN CONTENT AREA
   =================================== */
/* Hide JSON-LD schemas if they appear in post content */
script[type="application/ld+json"] {
  display: none !important;
}

/* Hide paragraphs containing only schemas */
p:has(> script[type="application/ld+json"]) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Alternative: Hide empty paragraphs after conclusion */
.conclusion ~ p:empty,
.conclusion ~ p:has(> br:only-child) {
  display: none !important;
}




/* ===================================
   CENTER SECTION IMAGES & CAPTIONS
   =================================== */
.section-image {
  text-align: center;
  margin: 2rem auto;
  max-width: 100%;
  margin-bottom: 2.5rem; /* ADDED: Extra spacing after figure */
}

.section-image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.section-image figcaption {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem; /* ADDED: Space below caption */
  color: var(--text-lighter);
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.5;
  padding: 0 1rem;
}

/* Tablet */
@media (max-width: 768px) {
  .section-image {
    margin: 1.5rem auto;
    margin-bottom: 2rem; /* ADDED: Tablet spacing */
  }
  
  .section-image figcaption {
    font-size: 0.8125rem;
    padding: 0 0.5rem;
    margin-bottom: 1.25rem; /* ADDED: Tablet spacing */
  }
}

/* Mobile */
@media (max-width: 480px) {
  .section-image {
    margin: 1.25rem auto;
    margin-bottom: 1.75rem; /* ADDED: Mobile spacing */
  }
  
  .section-image figcaption {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem; /* ADDED: Mobile spacing */
  }
}