/* =========================================================
   content.css — About, Contact, FAQ, Blog pages
   ========================================================= */

/* ---------------------------------------------------------
   Shared page hero (reused across content pages)
   --------------------------------------------------------- */
.ec-content-hero {
  background: linear-gradient(135deg, var(--ec-primary) 0%, #2563eb 100%);
  padding: clamp(2rem, 5vw, 4rem) 0;
  color: #fff;
  text-align: center;
}
.ec-content-hero h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .5rem; }
.ec-content-hero p { font-size: clamp(.9rem, 2.5vw, 1.125rem); opacity: .88; max-width: 520px; margin: 0 auto .75rem; }
.ec-content-hero .ec-breadcrumb { padding: 0; }
.ec-content-hero .breadcrumb-item,
.ec-content-hero .breadcrumb-item a { color: rgba(255,255,255,.8); }
.ec-content-hero .breadcrumb-item.active { color: #fff; }
.ec-content-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------
   Section headings
   --------------------------------------------------------- */
.ec-section-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ec-primary);
  display: block;
  margin-bottom: .375rem;
}
.ec-section-title {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--ec-dark);
  margin-bottom: .75rem;
}
.ec-section-lead {
  font-size: clamp(.9rem, 2.5vw, 1.0625rem);
  color: var(--ec-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   ABOUT PAGE
   --------------------------------------------------------- */
.ec-about-hero-img {
  border-radius: var(--ec-radius-lg, 1rem);
  width: 100%;
  height: clamp(220px, 40vw, 440px);
  object-fit: cover;
}

/* Stats bar */
.ec-stats-bar {
  background: var(--ec-primary);
  color: #fff;
  padding: 2.5rem 0;
}
.ec-stat-item { text-align: center; }
.ec-stat-item .ec-stat-num {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  display: block;
}
.ec-stat-item .ec-stat-text { font-size: .875rem; opacity: .85; margin-top: .25rem; }

/* Values grid */
.ec-value-card {
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow var(--ec-transition), transform var(--ec-transition);
}
.ec-value-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-4px); }
.ec-value-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ec-primary-light);
  color: var(--ec-primary);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.ec-value-card h5 { font-weight: 700; font-size: 1rem; color: var(--ec-dark); margin-bottom: .5rem; }
.ec-value-card p { font-size: .875rem; color: var(--ec-muted); margin: 0; line-height: 1.6; }

/* Team card */
.ec-team-card {
  text-align: center;
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  padding: 1.5rem 1rem;
  transition: box-shadow var(--ec-transition), transform var(--ec-transition);
}
.ec-team-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-4px); }
.ec-team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--ec-primary-light);
  margin: 0 auto 1rem;
  display: block;
}
.ec-team-name { font-weight: 700; font-size: 1rem; color: var(--ec-dark); margin-bottom: .2rem; }
.ec-team-role { font-size: .8rem; color: var(--ec-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.ec-team-bio { font-size: .85rem; color: var(--ec-muted); line-height: 1.6; margin-bottom: 1rem; }
.ec-team-socials { display: flex; justify-content: center; gap: .5rem; }
.ec-team-socials a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ec-bg); border: 1px solid var(--ec-border);
  color: var(--ec-muted); font-size: .875rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ec-transition);
}
.ec-team-socials a:hover { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }

/* Timeline */
.ec-timeline { position: relative; padding-left: 2rem; }
.ec-timeline::before { content: ''; position: absolute; left: .625rem; top: 0; bottom: 0; width: 2px; background: var(--ec-border); }
.ec-timeline-item { position: relative; padding-bottom: 2rem; }
.ec-timeline-item:last-child { padding-bottom: 0; }
.ec-timeline-dot {
  position: absolute; left: -1.75rem; top: .25rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ec-primary); border: 3px solid var(--ec-white);
  box-shadow: 0 0 0 2px var(--ec-primary);
}
.ec-timeline-year { font-size: .78rem; font-weight: 700; color: var(--ec-primary); text-transform: uppercase; letter-spacing: .06em; }
.ec-timeline-title { font-weight: 700; color: var(--ec-dark); font-size: .9375rem; margin: .2rem 0 .35rem; }
.ec-timeline-desc { font-size: .875rem; color: var(--ec-muted); line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------
   CONTACT PAGE
   --------------------------------------------------------- */
.ec-contact-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}
.ec-contact-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ec-primary-light); color: var(--ec-primary);
  font-size: 1.375rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .875rem;
}
.ec-contact-card h6 { font-weight: 700; color: var(--ec-dark); margin-bottom: .375rem; }
.ec-contact-card p,
.ec-contact-card a { font-size: .9rem; color: var(--ec-muted); text-decoration: none; line-height: 1.6; }
.ec-contact-card a:hover { color: var(--ec-primary); }

.ec-map-placeholder {
  width: 100%;
  height: clamp(220px, 35vw, 360px);
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-border);
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .75rem; color: var(--ec-muted);
}
.ec-map-placeholder i { font-size: 3rem; color: var(--ec-primary); }
.ec-map-placeholder p { font-size: .9rem; margin: 0; }

/* Contact form card */
.ec-contact-form-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------------------------------------------------------
   FAQ PAGE
   --------------------------------------------------------- */
.ec-faq-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.ec-faq-tab {
  padding: .5rem 1.125rem;
  border: 1.5px solid var(--ec-border);
  border-radius: var(--ec-radius-pill);
  background: none;
  font-size: .875rem; font-weight: 600;
  color: var(--ec-body);
  cursor: pointer;
  transition: all var(--ec-transition);
  min-height: 44px;
}
.ec-faq-tab:hover { border-color: var(--ec-primary); color: var(--ec-primary); }
.ec-faq-tab.active { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }

.ec-faq-section { margin-bottom: 2.5rem; }
.ec-faq-section-title {
  font-size: 1rem; font-weight: 700; color: var(--ec-dark);
  display: flex; align-items: center; gap: .625rem;
  padding-bottom: .75rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--ec-border);
}
.ec-faq-section-title i { color: var(--ec-primary); font-size: 1.125rem; }

/* Custom accordion */
.ec-faq-accordion .accordion-button {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ec-dark);
  background: var(--ec-white);
  box-shadow: none;
  padding: 1.125rem 1.25rem;
}
.ec-faq-accordion .accordion-button:not(.collapsed) {
  color: var(--ec-primary);
  background: var(--ec-primary-light);
}
.ec-faq-accordion .accordion-button::after {
  filter: none;
}
.ec-faq-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(30%) sepia(90%) saturate(2000%) hue-rotate(210deg);
}
.ec-faq-accordion .accordion-item {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.ec-faq-accordion .accordion-body {
  font-size: .9rem;
  color: var(--ec-body);
  line-height: 1.75;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--ec-border);
}

/* FAQ search */
.ec-faq-search { position: relative; max-width: 480px; margin: 0 auto 2rem; }
.ec-faq-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ec-muted); }
.ec-faq-search input { padding-left: 2.75rem; border-radius: var(--ec-radius-pill); height: 50px; }

/* ---------------------------------------------------------
   BLOG PAGE
   --------------------------------------------------------- */
.ec-blog-card {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow var(--ec-transition), transform var(--ec-transition);
}
.ec-blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-4px); }

.ec-blog-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ec-bg);
}
.ec-blog-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ec-blog-card:hover .ec-blog-card__img { transform: scale(1.06); }

.ec-blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.ec-blog-card__cat {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ec-primary);
  margin-bottom: .5rem; display: block;
}
.ec-blog-card__title {
  font-size: 1rem; font-weight: 700; color: var(--ec-dark);
  margin-bottom: .5rem; line-height: 1.4;
}
.ec-blog-card__title a { color: inherit; text-decoration: none; }
.ec-blog-card__title a:hover { color: var(--ec-primary); }
.ec-blog-card__excerpt { font-size: .875rem; color: var(--ec-muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.ec-blog-card__meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--ec-muted); flex-wrap: wrap; }
.ec-blog-card__meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ec-blog-card__read-more { font-size: .875rem; font-weight: 600; color: var(--ec-primary); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; }
.ec-blog-card__read-more:hover { gap: .6rem; }

/* Featured post (large) */
.ec-blog-featured {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.ec-blog-featured__img-wrap { aspect-ratio: 21/9; overflow: hidden; background: var(--ec-bg); }
@media (max-width: 767.98px) { .ec-blog-featured__img-wrap { aspect-ratio: 16/9; } }
.ec-blog-featured__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ec-blog-featured:hover .ec-blog-featured__img { transform: scale(1.04); }
.ec-blog-featured__body { padding: 1.75rem; }

/* Blog sidebar */
.ec-blog-sidebar { position: sticky; top: calc(var(--ec-total-header-h, 102px) + 1rem); }
.ec-sidebar-widget {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.ec-sidebar-widget h6 {
  font-weight: 700; font-size: .9375rem; color: var(--ec-dark);
  padding-bottom: .75rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--ec-border);
}
.ec-sidebar-search { position: relative; }
.ec-sidebar-search i { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--ec-muted); }
.ec-sidebar-search input { padding-left: 2.5rem; }

.ec-sidebar-cat-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--ec-border);
  color: var(--ec-body); text-decoration: none; font-size: .9rem;
  transition: color var(--ec-transition);
}
.ec-sidebar-cat-link:last-child { border-bottom: none; }
.ec-sidebar-cat-link:hover { color: var(--ec-primary); }
.ec-sidebar-cat-link .badge { font-size: .7rem; }

.ec-sidebar-recent { display: flex; gap: .75rem; padding: .625rem 0; border-bottom: 1px solid var(--ec-border); }
.ec-sidebar-recent:last-child { border-bottom: none; }
.ec-sidebar-recent img { width: 60px; height: 60px; border-radius: var(--ec-radius-sm); object-fit: cover; flex-shrink: 0; }
.ec-sidebar-recent-title { font-size: .85rem; font-weight: 600; color: var(--ec-dark); line-height: 1.4; }
.ec-sidebar-recent-title a { color: inherit; text-decoration: none; }
.ec-sidebar-recent-title a:hover { color: var(--ec-primary); }
.ec-sidebar-recent-date { font-size: .75rem; color: var(--ec-muted); margin-top: .2rem; }

.ec-tag-cloud { display: flex; flex-wrap: wrap; gap: .375rem; }
.ec-tag {
  padding: .3rem .75rem;
  border: 1.5px solid var(--ec-border);
  border-radius: var(--ec-radius-pill);
  font-size: .78rem; font-weight: 600;
  color: var(--ec-body);
  text-decoration: none;
  transition: all var(--ec-transition);
}
.ec-tag:hover { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }

/* Blog pagination */
.ec-blog-pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.ec-blog-page-btn {
  width: 40px; height: 40px; border-radius: var(--ec-radius-sm);
  border: 1.5px solid var(--ec-border);
  background: var(--ec-white); color: var(--ec-body);
  font-size: .875rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--ec-transition); text-decoration: none;
}
.ec-blog-page-btn:hover,
.ec-blog-page-btn.active { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }
.ec-blog-page-btn.wide { width: auto; padding: 0 .875rem; }

/* ---------------------------------------------------------
   BLOG SINGLE PAGE
   --------------------------------------------------------- */
.ec-post-hero {
  aspect-ratio: 21/9;
  width: 100%;
  border-radius: var(--ec-radius);
  object-fit: cover;
  margin-bottom: 2rem;
}
@media (max-width: 767.98px) { .ec-post-hero { aspect-ratio: 16/9; } }

.ec-post-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--ec-muted); margin-bottom: 1.25rem; }
.ec-post-meta img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.ec-post-content { font-size: clamp(.9rem, 2.5vw, 1.0625rem); line-height: 1.85; color: var(--ec-body); }
.ec-post-content h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); font-weight: 800; color: var(--ec-dark); margin: 2rem 0 .875rem; }
.ec-post-content h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); font-weight: 700; color: var(--ec-dark); margin: 1.5rem 0 .75rem; }
.ec-post-content p { margin-bottom: 1.25rem; }
.ec-post-content ul, .ec-post-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.ec-post-content li { margin-bottom: .375rem; }
.ec-post-content blockquote {
  border-left: 4px solid var(--ec-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--ec-primary-light);
  border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0;
  font-style: italic;
  color: var(--ec-dark);
  font-size: 1.0625rem;
}
.ec-post-content img { border-radius: var(--ec-radius); width: 100%; height: auto; margin: 1rem 0; }

/* Author box */
.ec-author-box {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.ec-author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ec-author-box h6 { font-weight: 700; color: var(--ec-dark); margin-bottom: .25rem; }
.ec-author-box .ec-author-role { font-size: .8rem; color: var(--ec-primary); font-weight: 600; margin-bottom: .5rem; }
.ec-author-box p { font-size: .875rem; color: var(--ec-muted); line-height: 1.65; margin: 0; }
@media (max-width: 575.98px) { .ec-author-box { flex-direction: column; } }

/* Comments */
.ec-comment {
  display: flex; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ec-border);
}
.ec-comment:last-child { border-bottom: none; }
.ec-comment img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ec-comment-name { font-weight: 700; font-size: .9375rem; color: var(--ec-dark); }
.ec-comment-date { font-size: .78rem; color: var(--ec-muted); }
.ec-comment-text { font-size: .9rem; color: var(--ec-body); line-height: 1.65; margin: .5rem 0 .25rem; }
.ec-comment-reply { font-size: .8rem; font-weight: 600; color: var(--ec-primary); cursor: pointer; background: none; border: none; padding: 0; }
.ec-comment.ec-comment--reply { padding-left: 2rem; background: var(--ec-bg); border-radius: var(--ec-radius-sm); margin-top: .5rem; padding: .875rem 1rem .875rem 1rem; border-bottom: none; }

/* Share bar */
.ec-post-share { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid var(--ec-border); border-bottom: 1px solid var(--ec-border); margin: 1.5rem 0; }
.ec-post-share span { font-weight: 700; font-size: .875rem; color: var(--ec-dark); }
.ec-post-share a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ec-bg); border: 1px solid var(--ec-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ec-body); font-size: .875rem;
  transition: all var(--ec-transition); text-decoration: none;
}
.ec-post-share a:hover { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; }

/* Related posts */
.ec-related-post {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
}
.ec-related-post img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ec-related-post__body { padding: 1rem; flex: 1; }
.ec-related-post__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ec-primary); margin-bottom: .35rem; }
.ec-related-post__title { font-size: .9375rem; font-weight: 700; color: var(--ec-dark); line-height: 1.4; }
.ec-related-post__title a { color: inherit; text-decoration: none; }
.ec-related-post__title a:hover { color: var(--ec-primary); }
.ec-related-post__date { font-size: .78rem; color: var(--ec-muted); margin-top: .35rem; }
