/* Editor Pages — Custom stylesheet */
/* Framework: Bulma CSS (CDN) + custom overrides */

:root {
  --ep-ink: #1a2332;
  --ep-ink-light: #3d4f66;
  --ep-slate: #2c3e55;
  --ep-teal: #1a7a6e;
  --ep-teal-light: #23a494;
  --ep-teal-hover: #15635a;
  --ep-amber: #d97706;
  --ep-bg: #f7f8fa;
  --ep-bg-alt: #eef1f5;
  --ep-white: #ffffff;
  --ep-border: #d1d9e0;
  --ep-text-muted: #6b7a8d;
  --ep-radius: 8px;
  --ep-radius-lg: 14px;
  --ep-shadow: 0 2px 12px rgba(26,35,50,0.08);
  --ep-shadow-md: 0 4px 24px rgba(26,35,50,0.12);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ep-ink);
  background: var(--ep-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ep-teal);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s, color 0.2s;
}

a:hover {
  color: var(--ep-teal-hover);
  text-decoration-color: currentColor;
}

/* ===== NAVIGATION ===== */
.ep-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ep-slate);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.ep-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ep-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ep-white);
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ep-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--ep-teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.ep-logo:hover {
  color: var(--ep-teal-light);
  text-decoration-color: transparent;
}

.ep-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ep-nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.ep-nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  text-decoration-color: transparent;
}

.ep-nav-links a.active {
  background: var(--ep-teal);
  color: white;
}

.ep-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 0.5rem;
}

/* ===== HERO ===== */
.ep-hero {
  position: relative;
  overflow: hidden;
  background: var(--ep-slate);
  color: white;
}

.ep-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.ep-hero-content {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4.5rem;
}

.ep-hero-badge {
  display: inline-block;
  background: var(--ep-teal);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.ep-hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.ep-hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin-bottom: 2rem;
}

.ep-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ep-teal);
  color: white;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--ep-radius);
  transition: background 0.2s, transform 0.15s;
}

.ep-hero-cta:hover {
  background: var(--ep-teal-hover);
  transform: translateY(-1px);
  color: white;
  text-decoration-color: transparent;
}

/* ===== MAIN LAYOUT ===== */
.ep-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.ep-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ===== CONTENT ARTICLE ===== */
.ep-article h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ep-ink);
  margin-bottom: 1.5rem;
}

.ep-article h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ep-slate);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--ep-teal);
}

.ep-article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ep-ink);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.ep-article p {
  margin-bottom: 1.25rem;
  color: var(--ep-ink);
}

.ep-article ul, .ep-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.ep-article li {
  margin-bottom: 0.5rem;
}

.ep-article strong {
  color: var(--ep-ink);
  font-weight: 600;
}

.ep-article-img {
  border-radius: var(--ep-radius-lg);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--ep-shadow-md);
}

.ep-article-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== SIDEBAR ===== */
.ep-sidebar {
  position: sticky;
  top: 80px;
}

.ep-sidebar-card {
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ep-shadow);
}

.ep-sidebar-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ep-text-muted);
  margin-bottom: 1rem;
}

.ep-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-sidebar-card li {
  border-bottom: 1px solid var(--ep-bg-alt);
  padding: 0.55rem 0;
}

.ep-sidebar-card li:last-child { border-bottom: none; }

.ep-sidebar-card a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--ep-ink);
  text-decoration: none;
  display: block;
}

.ep-sidebar-card a:hover {
  color: var(--ep-teal);
  text-decoration-color: transparent;
}

.ep-tip-box {
  background: linear-gradient(135deg, #e6f4f2 0%, #d0ede9 100%);
  border-left: 4px solid var(--ep-teal);
  border-radius: 0 var(--ep-radius) var(--ep-radius) 0;
  padding: 1.25rem;
  margin: 2rem 0;
  font-size: 0.93rem;
}

.ep-tip-box strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ep-teal);
  margin-bottom: 0.4rem;
}

/* ===== CARD GRID (home page) ===== */
.ep-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.ep-card {
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  overflow: hidden;
  box-shadow: var(--ep-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.ep-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ep-shadow-md);
}

.ep-card-body {
  padding: 1.5rem;
  flex: 1;
}

.ep-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ep-teal), var(--ep-teal-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: white;
}

.ep-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--ep-ink);
}

.ep-card p {
  font-size: 0.9rem;
  color: var(--ep-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ep-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ep-teal);
  text-decoration: none;
  margin-top: auto;
}

.ep-card-link:hover {
  color: var(--ep-teal-hover);
  text-decoration-color: transparent;
}

/* ===== INTRO SECTION ===== */
.ep-intro-section {
  background: var(--ep-white);
  border-radius: var(--ep-radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow);
}

.ep-intro-section h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ep-slate);
  margin-bottom: 1rem;
}

.ep-intro-section p {
  color: var(--ep-ink-light);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ===== CONTACT FORM ===== */
.ep-form {
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  padding: 2rem;
  box-shadow: var(--ep-shadow);
}

.ep-form label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ep-ink-light);
  margin-bottom: 0.35rem;
}

.ep-form input,
.ep-form textarea,
.ep-form select {
  width: 100%;
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ep-ink);
  background: var(--ep-bg);
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}

.ep-form input:focus,
.ep-form textarea:focus {
  outline: none;
  border-color: var(--ep-teal);
  background: var(--ep-white);
}

.ep-form textarea { min-height: 140px; resize: vertical; }

.ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--ep-teal);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--ep-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.ep-btn:hover {
  background: var(--ep-teal-hover);
  transform: translateY(-1px);
  color: white;
  text-decoration-color: transparent;
}

/* ===== TESTIMONIALS ===== */
.ep-testimonials {
  background: var(--ep-slate);
  color: white;
  padding: 4rem 1.5rem;
  margin: 3rem 0 0;
}

.ep-testimonials-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.ep-testimonials h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: white;
}

.ep-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ep-testimonial {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--ep-radius-lg);
  padding: 1.5rem;
}

.ep-testimonial blockquote {
  font-style: italic;
  line-height: 1.7;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.ep-testimonial cite {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ep-teal-light);
  font-style: normal;
}

/* ===== FOOTER ===== */
.ep-footer {
  background: var(--ep-ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
}

.ep-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.ep-footer-brand {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.ep-footer p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.ep-footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.ep-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ep-footer li { margin-bottom: 0.5rem; }

.ep-footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.ep-footer a:hover {
  color: var(--ep-teal-light);
  text-decoration-color: transparent;
}

.ep-footer-bottom {
  max-width: 1160px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== BREADCRUMB ===== */
.ep-breadcrumb {
  max-width: 1160px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--ep-text-muted);
}

.ep-breadcrumb a {
  color: var(--ep-teal);
}

/* ===== HOME SECTION HEADINGS ===== */
.ep-section-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ep-slate);
  margin-bottom: 1.5rem;
}
.ep-section-more {
  margin-top: 3rem;
}
.ep-form-spaced {
  margin-top: 2rem;
}

/* ===== 404 PAGE ===== */
.ep-404 {
  max-width: 600px;
  margin: 6rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.ep-404-code {
  font-family: 'Inter', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ep-teal);
  margin-bottom: 1rem;
}
.ep-404 h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--ep-ink);
}
.ep-404 p {
  color: var(--ep-text-muted);
  margin-bottom: 2rem;
}
.ep-404-links {
  margin-top: 3rem;
  text-align: left;
  background: var(--ep-white);
  border: 1px solid var(--ep-border);
  border-radius: var(--ep-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--ep-shadow);
}
.ep-404-links h2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ep-text-muted);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  margin-top: 0;
}
.ep-404-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ep-404-links li {
  border-bottom: 1px solid var(--ep-bg-alt);
  padding: 0.55rem 0;
}
.ep-404-links li:last-child { border-bottom: none; }
.ep-404-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--ep-ink);
  text-decoration: none;
}
.ep-404-links a:hover { color: var(--ep-teal); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .ep-two-col {
    grid-template-columns: 1fr;
  }
  .ep-sidebar {
    position: static;
  }
  .ep-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ep-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ep-slate);
    flex-direction: column;
    padding: 1rem;
    gap: 0.1rem;
    box-shadow: var(--ep-shadow-md);
  }
  .ep-nav-links.open { display: flex; }
  .ep-nav-toggle { display: block; }
  .ep-nav-links a { padding: 0.65rem 1rem; }
  .ep-hero-content { padding: 3rem 1.25rem 2.5rem; }
  .ep-hero h1 { font-size: 1.85rem; }
  .ep-footer-inner { grid-template-columns: 1fr; }
  .ep-footer-bottom { flex-direction: column; align-items: flex-start; }
  .ep-intro-section { padding: 1.5rem; }
}
