/* Minimal shared styles for header/footer across all pages */
:root {
  --primary: #4A306D;
  --secondary: #FF9A8B;
  --accent: #8FD8D2;
  --light: #F5F5F5;
  --dark: #333333;
  --text: #444444;
}
* { box-sizing: border-box; }
body { background-color: var(--light); color: var(--text); margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.site-header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo i { color: var(--primary); font-size: 28px; }
.logo h1 { color: var(--primary); font-size: 24px; }
nav ul { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--dark); font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--secondary); }
.mobile-menu { display: none; font-size: 24px; cursor: pointer; }

/* Footer overrides to ensure consistency across pages */
footer.site-footer, .site-footer {
  background-color: var(--dark) !important;
  color: white !important;
  padding: 0 0 30px !important;
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 999 !important;
  width: 100% !important;
  min-height: 200px !important;
  margin: 0 !important;
  border: none !important;
}
.footer-top-bar { background-color: var(--secondary) !important; height: 50px !important; width: 100% !important; }
.footer-main { padding: 60px 0 30px !important; }
.footer-content { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; gap: 40px !important; margin-bottom: 40px !important; }
/* Ensure Contact stays on the same row with other link groups on wider screens */
@media (min-width: 768px) {
  .footer-content { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 992px) {
  .footer-content { grid-template-columns: 1.4fr 1fr 1fr 1fr !important; }
}
.footer-column h3 { color: var(--accent) !important; margin-bottom: 20px !important; font-size: 1.2rem !important; }
.footer-links { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.footer-links li { margin-bottom: 10px !important; }
.footer-links a { color: #fff !important; text-decoration: none !important; transition: color 0.3s !important; }
.footer-links a:hover { color: #fff !important; opacity: 0.85 !important; }
footer a:link, footer a:visited, footer a:hover, footer a:active { color: #fff !important; }
.site-footer a:link, .site-footer a:visited, .site-footer a:hover, .site-footer a:active { color: #fff !important; }
.site-footer .footer-column p,
footer.site-footer p {
  color: #fff !important;
  opacity: 0.9 !important;
  margin: 8px 0 0 !important;
  line-height: 1.6 !important;
}
.social-icons { display: flex !important; gap: 15px !important; margin-top: 20px !important; }
.social-icons a { display: flex !important; align-items: center !important; justify-content: center !important; width: 40px !important; height: 40px !important; background-color: rgba(255,255,255,0.1) !important; border-radius: 50% !important; color: white !important; text-decoration: none !important; transition: background-color 0.3s !important; }
.social-icons a:hover { background-color: var(--accent) !important; }
.copyright { text-align: center !important; padding-top: 30px !important; border-top: 1px solid rgba(255,255,255,0.1) !important; color: #aaa !important; font-size: 0.9rem !important; }

/* Hide legacy per-article footers to avoid duplicates */
.legacy-article-footer { display: none !important; }

@media (max-width: 576px) {
  .mobile-menu { display: block; }
  nav { display: none; width: 100%; margin-top: 20px; }
  nav.active { display: block; }
  nav ul { flex-direction: column; gap: 10px; }
}

/* Simple Footer buttons (used on Articles pages) */
footer { background-color: #000 !important; padding: 30px 0 !important; margin-top: 50px !important; }
.footer-buttons { display: flex !important; justify-content: center !important; align-items: center !important; gap: 30px !important; flex-wrap: wrap !important; }
.footer-buttons a { color: white !important; text-decoration: none !important; font-size: 16px !important; font-weight: 500 !important; transition: opacity 0.3s ease !important; }
.footer-buttons a:hover { opacity: 0.7 !important; }

/* Article footer brand */
.article-footer .footer-inner { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 15px !important; }
.footer-logo { display: inline-flex !important; align-items: center !important; gap: 10px !important; text-decoration: none !important; font-weight: 600 !important; color: #fff !important; }
.footer-logo i { color: white !important; }
.footer-logo span { color: #fff !important; font-size: 18px !important; }
.article-footer .footer-helper { color: #fff !important; opacity: 0.9 !important; line-height: 1.6 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-buttons { gap: 20px !important; }
  .footer-buttons a { font-size: 14px !important; }
}
@media (max-width: 480px) {
  .footer-buttons { gap: 15px !important; }
}
@media (min-width: 768px) {
  .article-footer .footer-inner { flex-direction: row !important; justify-content: center !important; gap: 30px !important; }
}
/* Ad slots */
.ad-slot { display: block !important; width: 100% !important; margin: 20px auto !important; text-align: center !important; min-height: 90px !important; }
.ad-slot[data-ad-size="banner"] { min-height: 90px !important; }
.ad-slot[data-ad-size="rectangle"] { min-height: 250px !important; max-width: 336px !important; }
.ad-slot[data-ad-size="vertical"] { min-height: 600px !important; max-width: 300px !important; }
.ad-slot .ad-placeholder { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; min-height: inherit !important; border: 1px dashed #ccc !important; background: #f9f9f9 !important; color: #888 !important; font-size: 14px !important; padding: 12px !important; border-radius: 8px !important; }
@media (max-width: 600px) { .ad-slot[data-ad-size="rectangle"] { max-width: 100% !important; } }
/* End ad slots */

/* Coming Soon Popup Modal */
.coming-soon-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.coming-soon-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.coming-soon-content h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
  font-weight: 600;
}

.coming-soon-content p {
  margin: 0 0 25px 0;
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.5;
}

.coming-soon-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.coming-soon-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .coming-soon-content {
    padding: 30px 25px;
    margin: 20px;
  }
  
  .coming-soon-content h3 {
    font-size: 20px;
  }
  
  .coming-soon-content p {
    font-size: 14px;
  }
}

/* FAQ Section Styles */
.section-faq .section-icon {
  font-size: 28px;
}
.section-faq .section-title {
  margin-bottom: 6px;
}

.faq {
  margin-top: 20px;
}
.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #f8f9fa;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.faq-question:hover {
  background: #f1f3f5;
}
.faq-answer {
  padding: 14px 16px;
  line-height: 1.6;
}

/* Accordion state */
.faq-item[aria-expanded="true"],
.faq-item.open .faq-question {
  background: #eef3ff;
}

@media (max-width: 600px) {
  .faq-question {
    padding: 12px 14px;
  }
  .faq-answer {
    padding: 12px 14px;
  }
}