/*
 * Epic IT — Agent Content Styles v2.0
 * Full CSS component library for agent-generated content via REST API.
 * Covers: blogs, suburb pages, pillar content, author bios, landing pages.
 * Zero plugin dependencies. Matches existing Epic IT design language.
 *
 * COMPONENTS:
 * .epic-content          — Base wrapper (typography, links, lists, tables)
 * .epic-hero             — Hero section with H1 + subtitle + CTA
 * .epic-two-col          — Two-column image + text (reversible)
 * .epic-stats            — Stat/highlight bar (2-4 columns)
 * .epic-section-heading  — Centered section title with red accent
 * .epic-cards            — Card grid (2-4 columns, with optional images/icons)
 * .epic-icon-grid        — Icon + heading + text grid
 * .epic-accordion        — Native HTML5 accordion (details/summary)
 * .epic-testimonials     — Testimonial cards with star ratings
 * .epic-cta              — Dark CTA block (inline)
 * .epic-cta-banner       — Full-width red gradient CTA banner
 * .epic-logo-bar         — Partner/certification logo row
 * .epic-faq              — FAQ section (dt/dd based)
 * .epic-steps            — Numbered action steps
 */

/* ========================================
   BASE LAYOUT & TYPOGRAPHY
   ======================================== */
.epic-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: Montserrat, arial, helvetica, sans-serif;
  color: #222;
  font-size: 18px;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.epic-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  margin: 50px 0 20px;
}

.epic-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 40px 0 15px;
}

.epic-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 30px 0 10px;
}

.epic-content p { margin: 0 0 20px; }

.epic-content strong { font-weight: 700; color: #000; }

.epic-content a {
  color: #e90000;
  text-decoration: none;
  transition: opacity 0.2s;
}
.epic-content a:hover { opacity: 0.8; text-decoration: underline; }

.epic-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
}

.epic-content figure { margin: 30px 0; }
.epic-content figcaption { font-size: 14px; color: #777; margin-top: 8px; text-align: center; }

.epic-content ul, .epic-content ol { margin: 0 0 20px 30px; padding: 0; }
.epic-content li { margin-bottom: 10px; }

.epic-content table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 16px; }
.epic-content th { background: #1a1a1a; color: #fff; font-weight: 700; text-align: left; padding: 12px 16px; }
.epic-content td { padding: 12px 16px; border-bottom: 1px solid #e5e5e5; }
.epic-content tr:nth-child(even) td { background: #f9f9f9; }

.epic-content blockquote {
  border-left: 4px solid #e90000;
  margin: 30px 0;
  padding: 15px 25px;
  background: #f9f9f9;
  font-style: italic;
  color: #444;
}
.epic-content blockquote p:last-child { margin-bottom: 0; }

/* Red accent text helper */
.epic-content .red { color: #e90000; }

/* ========================================
   FULL-WIDTH WRAPPER (breaks out of .epic-content)
   ======================================== */
.epic-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 60px 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.epic-hero {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px 0 60px;
}

.epic-hero-text { flex: 1; }

.epic-hero-text h1 {
  font-size: 42px;
  font-weight: 700;
  color: #000;
  line-height: 1.15;
  margin: 0 0 20px;
}

.epic-hero-text h1 .red { color: #e90000; }

.epic-hero-text .subtitle {
  font-size: 20px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.epic-hero-image {
  flex: 1;
  max-width: 50%;
}

.epic-hero-image img {
  width: 100%;
  border-radius: 8px;
  margin: 0;
}

/* ========================================
   TWO-COLUMN (IMAGE + TEXT)
   ======================================== */
.epic-two-col {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px 0;
}

.epic-two-col.reverse { flex-direction: row-reverse; }

.epic-two-col-image {
  flex: 1;
  max-width: 50%;
}

.epic-two-col-image img {
  width: 100%;
  border-radius: 8px;
  margin: 0;
}

.epic-two-col-text { flex: 1; }

.epic-two-col-text h2 { margin-top: 0; }

/* ========================================
   STATS / HIGHLIGHTS BAR
   ======================================== */
.epic-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 0;
  text-align: center;
}

.epic-stat h3 {
  color: #e90000;
  font-size: 22px;
  margin: 0 0 8px;
}

.epic-stat p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* ========================================
   SECTION HEADING (centered)
   ======================================== */
.epic-section-heading {
  text-align: center;
  padding: 50px 0 30px;
}

.epic-section-heading h2 {
  font-size: 36px;
  margin: 0 0 15px;
}

.epic-section-heading p {
  font-size: 18px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   CARD GRID
   ======================================== */
.epic-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px 0 40px;
}

.epic-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.epic-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.epic-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.epic-card:hover { transform: translateY(-3px); }

.epic-card img {
  width: 100%;
  border-radius: 8px 8px 0 0;
  margin: -30px -25px 20px;
  width: calc(100% + 50px);
  max-width: calc(100% + 50px);
}

.epic-card h3 {
  color: #e90000;
  font-size: 20px;
  margin: 0 0 10px;
}

.epic-card p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

/* ========================================
   ICON GRID
   ======================================== */
.epic-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 20px 0 40px;
  text-align: center;
}

.epic-icon-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.epic-icon-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.epic-icon-item img {
  width: 64px;
  height: 64px;
  margin: 0 auto 15px;
}

.epic-icon-item h4 {
  font-size: 18px;
  margin: 0 0 8px;
}

.epic-icon-item p {
  font-size: 15px;
  color: #555;
  margin: 0;
}

/* ========================================
   ACCORDION (native HTML5 details/summary)
   ======================================== */
.epic-accordion { padding: 20px 0; }

.epic-accordion details {
  border-bottom: 1px solid #eee;
  padding: 0;
}

.epic-accordion summary {
  font-weight: 700;
  font-size: 18px;
  color: #000;
  padding: 18px 40px 18px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.epic-accordion summary::-webkit-details-marker { display: none; }

.epic-accordion summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #999;
  transition: transform 0.2s;
}

.epic-accordion details[open] summary::after {
  content: '\2212';
}

.epic-accordion details .accordion-body {
  padding: 0 0 20px;
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.epic-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px 0 40px;
}

.epic-testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.epic-testimonial .stars {
  color: #f5a623;
  font-size: 20px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.epic-testimonial blockquote {
  border: none;
  padding: 0;
  margin: 0 0 15px;
  background: none;
  font-style: normal;
  font-size: 16px;
  color: #333;
}

.epic-testimonial .author {
  font-weight: 700;
  color: #e90000;
  font-size: 16px;
}

/* ========================================
   CTA — INLINE (dark)
   ======================================== */
.epic-cta {
  background: #1a1a1a;
  color: #fff;
  padding: 40px;
  margin: 40px 0;
  border-radius: 4px;
  text-align: center;
}

.epic-cta h3 { color: #fff; margin-top: 0; }
.epic-cta p { color: #ccc; }

.epic-btn {
  display: inline-block;
  background: #e90000;
  color: #fff;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.epic-btn:hover { background: #c00; opacity: 1; text-decoration: none; color: #fff; }

.epic-btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.epic-btn-outline:hover { background: #fff !important; color: #e90000 !important; text-decoration: none; }

/* ========================================
   CTA BANNER — FULL WIDTH (red gradient)
   ======================================== */
.epic-cta-banner {
  background: linear-gradient(135deg, #e90000 0%, #ff4444 100%);
  color: #fff;
  padding: 50px 40px;
  margin: 50px 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.epic-cta-banner h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 30px;
}
.epic-cta-banner h2 .red,
.epic-cta-banner .red { color: #ffffff !important; }

.epic-cta-banner p { color: rgba(255,255,255,0.9); margin: 0; }

.epic-cta-banner a { color: #ffffff; text-decoration: underline; }
.epic-cta-banner a:hover { color: rgba(255,255,255,0.8); }
.epic-cta-banner .epic-btn-outline:hover { background: #ffffff !important; color: #e90000 !important; border-color: #e90000 !important; }

/* ========================================
   LOGO BAR
   ======================================== */
.epic-logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.epic-logo-bar img {
  max-height: 60px;
  width: auto;
  margin: 0;
  filter: grayscale(0);
}

/* ========================================
   FAQ (dt/dd)
   ======================================== */
.epic-faq { padding: 20px 0; }
.epic-faq h3 { margin-bottom: 25px; }

.epic-faq dt {
  font-weight: 700;
  color: #000;
  font-size: 18px;
  margin: 25px 0 8px;
}

.epic-faq dd {
  margin: 0 0 20px;
  padding: 0;
  color: #444;
}

/* ========================================
   NUMBERED STEPS
   ======================================== */
.epic-steps ol {
  counter-reset: step-counter;
  list-style: none;
  margin-left: 0;
}

.epic-steps ol li {
  counter-increment: step-counter;
  padding-left: 50px;
  position: relative;
  margin-bottom: 25px;
}

.epic-steps ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: #e90000;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  font-weight: 700;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .epic-content { font-size: 16px; padding: 0 15px 40px; }
  .epic-content h2 { font-size: 26px; }
  .epic-content h3 { font-size: 20px; }

  .epic-hero { flex-direction: column; gap: 30px; }
  .epic-hero-image { max-width: 100%; }
  .epic-hero-text h1 { font-size: 32px; }

  .epic-two-col, .epic-two-col.reverse { flex-direction: column; gap: 25px; }
  .epic-two-col-image { max-width: 100%; }

  .epic-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .epic-cards { grid-template-columns: 1fr; }
  .epic-cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .epic-icon-grid { grid-template-columns: repeat(2, 1fr); }
  .epic-testimonials { grid-template-columns: 1fr; }

  .epic-cta-banner { flex-direction: column; text-align: center; padding: 30px 20px; }
  .epic-section-heading h2 { font-size: 28px; }

  .epic-content table { font-size: 14px; }
  .epic-content th, .epic-content td { padding: 8px 10px; }
}


#page-heading-wrapper { padding: 20px 0 0; min-height: 0; background: transparent; }
#page-heading-wrapper h1, #page-heading-wrapper h6, #page-heading-wrapper img { display: none; }