/**
 * Enertime Custom FAQ Page Stylesheet
 * Brand: Enertime Sdn Bhd
 * Design Style: Dark dramatic sport meets lifestyle
 * Fully Responsive, Gutenberg Compatible
 */

.enertime-faq-page {
  background-color: var(--ener-black, #0D0D0D);
  color: var(--ener-white, #FFFFFF);
  font-family: var(--font-body, "Inter", sans-serif);
  min-height: 100vh;
  padding-bottom: 80px;
}

.enertime-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 1. HERO SECTION */
.enertime-faq-hero {
  position: relative;
  background-color: var(--ener-black, #0D0D0D);
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.enertime-faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='93' viewBox='0 0 80 93'%3E%3Cpath d='M40 0 L80 23.3 L80 70 L40 93.3 L0 70 L0 23.3 Z' fill='none' stroke='%23C0392B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 80px 93px;
}

.enertime-faq-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 3.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.enertime-faq-subtitle {
  font-size: 1.125rem;
  color: #95A5A6;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 2. CATEGORY NAVIGATION TABS */
.enertime-faq-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.enertime-faq-tab-btn {
  background: rgba(26, 26, 46, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 10px 24px;
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast, 150ms ease-out);
}

.enertime-faq-tab-btn:hover {
  border-color: var(--ener-red, #C0392B);
  background: rgba(192, 57, 43, 0.08);
  color: var(--ener-white, #FFFFFF);
}

/* 3. CATEGORY BLOCKS */
.enertime-faq-body {
  padding: 80px 0;
}

.enertime-faq-category-block {
  max-width: 900px;
  margin: 0 auto 60px;
  scroll-margin-top: 100px; /* Offset for sticky menu scrolling */
}

.enertime-faq-category-block:last-child {
  margin-bottom: 80px;
}

.enertime-faq-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.enertime-faq-cat-icon {
  width: 24px;
  height: 24px;
  color: var(--ener-red, #C0392B);
}

.enertime-faq-cat-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin: 0;
  letter-spacing: 0.02em;
}

/* 4. FAQ ACCORDIONS */
.enertime-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enertime-faq-item {
  background: rgba(26, 26, 46, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-std, 250ms ease-in-out);
}

.enertime-faq-item[open] {
  border-color: rgba(192, 57, 43, 0.4);
}

.enertime-faq-summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ener-white, #FFFFFF);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.enertime-faq-summary::-webkit-details-marker {
  display: none;
}

.enertime-faq-summary-icon {
  width: 18px;
  height: 18px;
  color: var(--ener-red, #C0392B);
  transition: transform var(--transition-std, 250ms ease-in-out);
  flex-shrink: 0;
  margin-left: 15px;
}

.enertime-faq-item[open] .enertime-faq-summary-icon {
  transform: rotate(180deg);
}

.enertime-faq-content {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #95A5A6;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 12px;
}

.enertime-faq-content p {
  margin: 0 0 12px 0;
}

.enertime-faq-content p:last-child {
  margin-bottom: 0;
}

.enertime-faq-content ul {
  margin: 0 0 12px 0;
  padding-left: 20px;
}

.enertime-faq-content li {
  margin-bottom: 6px;
}

/* 5. CALL TO ACTION */
.enertime-faq-cta {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.1) 0%, rgba(26, 26, 46, 0.4) 100%);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 16px;
  padding: 50px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  max-width: 900px;
  margin: 0 auto;
}

.enertime-faq-cta-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ener-white, #FFFFFF);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.enertime-faq-cta-desc {
  font-size: 1.05rem;
  color: #95A5A6;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .enertime-faq-title {
    font-size: 2.75rem;
  }
  
  .enertime-faq-tabs {
    gap: 8px;
    margin-bottom: 40px;
  }
  
  .enertime-faq-tab-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .enertime-faq-body {
    padding: 50px 0;
  }
  
  .enertime-faq-cat-title {
    font-size: 1.5rem;
  }
  
  .enertime-faq-summary {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .enertime-faq-content {
    padding: 0 20px 16px;
  }
}

/* ==========================================================================
   WORDPRESS GENERATEPRESS COMPATIBILITY OVERRIDES FOR FAQ PAGE
   ========================================================================== */
body.page-id-46 #content,
body.page-id-46 #page,
body.page-id-46 .site-content,
body.page-template-page-faq-php #content,
body.page-template-page-faq-php #page,
body.page-template-page-faq-php .site-content,
body.page-template-page-faq #content,
body.page-template-page-faq #page,
body.page-template-page-faq .site-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--ener-black, #0D0D0D) !important;
}

body.page-id-46 #primary,
body.page-template-page-faq-php #primary,
body.page-template-page-faq #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-46 .site-header,
body.page-id-46 .main-navigation,
body.page-id-46 .footer-widgets,
body.page-id-46 #right-sidebar,
body.page-id-46 #left-sidebar,
body.page-template-page-faq-php .site-header,
body.page-template-page-faq-php .main-navigation,
body.page-template-page-faq-php .footer-widgets,
body.page-template-page-faq-php #right-sidebar,
body.page-template-page-faq-php #left-sidebar,
body.page-template-page-faq .site-header,
body.page-template-page-faq .main-navigation,
body.page-template-page-faq .footer-widgets,
body.page-template-page-faq #right-sidebar,
body.page-template-page-faq #left-sidebar {
  display: none !important;
}
