/* =====================================================
   EXPERTLYEDU — YÖNETİLEBİLİR SAYFA ŞABLONLARI
   Genel sayfa, Elementor içerikleri, program, SSS ve iletişim şablonları
===================================================== */

body:not(.home) .site-main,
.expertly-page-main {
  min-height: 70vh;
  background:
    radial-gradient(circle at top left, rgba(23,212,232,0.10), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(30,111,187,0.12), transparent 34rem),
    var(--color-bg);
  color: var(--color-text);
}

body:not(.home) .site-main {
  padding-top: 0;
}

.expertly-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 12vw, 150px) 0 clamp(42px, 6vw, 76px);
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(135deg, rgba(6,13,31,0.92), rgba(10,30,64,0.88)),
    var(--gradient-hero);
}

.expertly-page-hero::before,
.expertly-page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.expertly-page-hero::before {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -120px;
  background: rgba(23,212,232,0.14);
}

.expertly-page-hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -120px;
  background: rgba(30,111,187,0.18);
}

.expertly-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.expertly-page-title {
  max-width: 900px;
  margin: 0 auto var(--space-5);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: var(--leading-tight);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.04em;
  color: var(--color-white);
}

.expertly-page-summary {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-light);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: var(--leading-relaxed);
}

.expertly-page-section {
  padding: clamp(44px, 7vw, 90px) 0;
}

.expertly-page-card,
.expertly-content-card,
.expertly-template-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 980px);
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(13,27,53,0.94), rgba(10,20,40,0.94));
  box-shadow: var(--shadow-card);
}

.expertly-page-card::before,
.expertly-content-card::before,
.expertly-template-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23,212,232,0.55), transparent);
}

.expertly-page-body,
.expertly-content-card__body,
.expertly-template-card__body {
  padding: clamp(26px, 5vw, 56px);
  color: var(--color-text);
  font-size: clamp(1rem, 1.5vw, 1.085rem);
  line-height: 1.85;
}

.expertly-page-body > *:first-child,
.expertly-content-card__body > *:first-child,
.expertly-template-card__body > *:first-child {
  margin-top: 0;
}

.expertly-page-body > *:last-child,
.expertly-content-card__body > *:last-child,
.expertly-template-card__body > *:last-child {
  margin-bottom: 0;
}

.expertly-page-body p,
.expertly-content-card__body p,
.expertly-template-card__body p {
  margin: 0 0 1.35em;
  color: var(--color-text-light);
}

.expertly-page-body h2,
.expertly-content-card__body h2,
.expertly-template-card__body h2 {
  margin: 2em 0 0.7em;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.expertly-page-body h3,
.expertly-content-card__body h3,
.expertly-template-card__body h3 {
  margin: 1.7em 0 0.55em;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.25;
}

.expertly-page-body h4,
.expertly-content-card__body h4,
.expertly-template-card__body h4 {
  margin: 1.3em 0 0.45em;
  color: var(--color-secondary);
  font-size: 1.08rem;
  font-weight: var(--font-bold);
}

.expertly-page-body a,
.expertly-content-card__body a,
.expertly-template-card__body a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.expertly-page-body a:hover,
.expertly-content-card__body a:hover,
.expertly-template-card__body a:hover {
  color: var(--color-white);
}

.expertly-page-body ul,
.expertly-page-body ol,
.expertly-content-card__body ul,
.expertly-content-card__body ol,
.expertly-template-card__body ul,
.expertly-template-card__body ol {
  margin: 0 0 1.5em 1.2em;
  padding-left: 1.2em;
  color: var(--color-text-light);
}

.expertly-page-body ul,
.expertly-content-card__body ul,
.expertly-template-card__body ul { list-style: disc; }
.expertly-page-body ol,
.expertly-content-card__body ol,
.expertly-template-card__body ol { list-style: decimal; }

.expertly-page-body li,
.expertly-content-card__body li,
.expertly-template-card__body li {
  margin-bottom: 0.55em;
}

.expertly-page-body blockquote,
.expertly-content-card__body blockquote,
.expertly-template-card__body blockquote {
  margin: 1.8em 0;
  padding: 22px 26px;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: rgba(23,212,232,0.08);
  color: var(--color-text);
}

.expertly-page-body img,
.expertly-content-card__body img,
.expertly-template-card__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.expertly-page-body table,
.expertly-content-card__body table,
.expertly-template-card__body table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.expertly-page-body th,
.expertly-page-body td,
.expertly-content-card__body th,
.expertly-content-card__body td,
.expertly-template-card__body th,
.expertly-template-card__body td {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
}

.expertly-page-body th,
.expertly-content-card__body th,
.expertly-template-card__body th {
  color: var(--color-white);
  background: rgba(30,111,187,0.18);
}

.expertly-page-body hr,
.expertly-content-card__body hr,
.expertly-template-card__body hr {
  border: 0;
  height: 1px;
  margin: 2.2em 0;
  background: var(--color-border);
}

.expertly-page-body .wp-block-button .wp-block-button__link,
.expertly-content-card__body .wp-block-button .wp-block-button__link,
.expertly-template-card__body .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--font-bold);
  box-shadow: var(--shadow-btn);
}

.expertly-page-body .wp-block-button .wp-block-button__link:hover,
.expertly-content-card__body .wp-block-button .wp-block-button__link:hover,
.expertly-template-card__body .wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px);
}

.expertly-elementor-content {
  width: 100%;
}

.expertly-elementor-content .elementor-section-wrap,
.expertly-elementor-content .elementor {
  color: var(--color-text);
}

.expertly-page-comments {
  width: min(100%, 980px);
  margin: var(--space-10) auto 0;
}

/* =====================================================
   Template shared components
===================================================== */
.expertly-template-section {
  padding: clamp(44px, 7vw, 92px) 0;
}

.expertly-template-section--tight {
  padding: clamp(30px, 5vw, 62px) 0;
}

.expertly-template-heading {
  max-width: 760px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.expertly-template-heading h2 {
  margin: 0 0 var(--space-4);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: var(--leading-tight);
}

.expertly-template-heading p {
  margin: 0;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.expertly-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.expertly-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expertly-feature-card,
.expertly-step-card,
.expertly-contact-card,
.expertly-faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13,27,53,0.86), rgba(10,20,40,0.86));
  box-shadow: var(--shadow-card);
}

.expertly-feature-card,
.expertly-step-card,
.expertly-contact-card {
  padding: var(--space-6);
}

.expertly-feature-card__icon,
.expertly-step-card__number,
.expertly-contact-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(23,212,232,0.12);
  border: 1px solid rgba(23,212,232,0.25);
  color: var(--color-secondary);
  font-weight: var(--font-extrabold);
}

.expertly-feature-card h3,
.expertly-step-card h3,
.expertly-contact-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.expertly-feature-card p,
.expertly-step-card p,
.expertly-contact-card p {
  margin: 0;
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.expertly-contact-card a {
  color: var(--color-secondary);
  word-break: break-word;
}

.expertly-cta-band {
  position: relative;
  overflow: hidden;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(23,212,232,0.28);
  background:
    radial-gradient(circle at top right, rgba(23,212,232,0.22), transparent 24rem),
    linear-gradient(135deg, rgba(30,111,187,0.40), rgba(10,20,40,0.96));
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.expertly-cta-band h2 {
  margin: 0 0 var(--space-3);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: var(--leading-tight);
}

.expertly-cta-band p {
  max-width: 680px;
  margin: 0 auto var(--space-6);
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

/* Program template */
.expertly-program-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-7, 28px);
}

.expertly-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(23,212,232,0.24);
  border-radius: var(--radius-full);
  background: rgba(23,212,232,0.08);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

/* FAQ template */
.expertly-faq-list {
  width: min(100%, 960px);
  margin: 0 auto;
  display: grid;
  gap: var(--space-4);
}

.expertly-faq-item {
  padding: 0;
}

.expertly-faq-item summary,
.expertly-page-body details summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  color: var(--color-white);
  font-weight: var(--font-bold);
}

.expertly-faq-item summary::-webkit-details-marker,
.expertly-page-body details summary::-webkit-details-marker {
  display: none;
}

.expertly-faq-item summary::after,
.expertly-page-body details summary::after {
  content: "+";
  float: right;
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.expertly-faq-item[open] summary::after,
.expertly-page-body details[open] summary::after {
  content: "−";
}

.expertly-faq-item__answer,
.expertly-page-body details > *:not(summary) {
  padding: 0 26px 24px;
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.expertly-page-body details {
  margin: 0 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(13,27,53,0.72);
}

/* Contact template */
.expertly-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-8);
  align-items: start;
}

.expertly-contact-stack {
  display: grid;
  gap: var(--space-4);
}

.expertly-contact-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(13,27,53,0.92), rgba(10,20,40,0.92));
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 42px);
}

.expertly-contact-panel .expertly-page-body {
  padding: 0;
}

/* Elementor full-width template */
.expertly-elementor-shell {
  padding: 0;
}

/* Old class compatibility */
.page-content-wrapper,
.page-header,
.page-body {
  color: var(--color-text);
}

@media (max-width: 1024px) {
  .expertly-card-grid,
  .expertly-card-grid--2,
  .expertly-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .expertly-page-hero {
    padding-top: 74px;
  }

  .expertly-page-body,
  .expertly-content-card__body,
  .expertly-template-card__body,
  .expertly-feature-card,
  .expertly-step-card,
  .expertly-contact-card,
  .expertly-contact-panel {
    padding: 22px;
  }

  .expertly-faq-item summary,
  .expertly-page-body details summary {
    padding: 18px 20px;
  }

  .expertly-faq-item__answer,
  .expertly-page-body details > *:not(summary) {
    padding: 0 20px 20px;
  }
}


/* Phone number is revealed only after user interaction. */
.expertly-phone-obfuscated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.expertly-phone-reveal,
.expertly-phone-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(23,212,232,0.28);
  border-radius: var(--radius-full);
  background: rgba(23,212,232,0.10);
  color: var(--color-secondary);
  font-weight: var(--font-bold);
  text-decoration: none;
  cursor: pointer;
}

.expertly-phone-reveal:hover,
.expertly-phone-call:hover {
  transform: translateY(-1px);
}

.expertly-phone-value {
  color: var(--color-white);
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
}

.expertly-phone-call[hidden] {
  display: none;
}

/* About template */
.expertly-about-intro h2 {
  margin-top: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.expertly-about-intro p {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
}

.expertly-about-card,
.expertly-about-program-card {
  min-height: 100%;
}

.expertly-about-program-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.expertly-about-program-card a {
  display: inline-flex;
  margin-top: var(--space-4);
  color: var(--color-secondary);
  font-weight: var(--font-bold);
  text-decoration: none;
}

.expertly-about-program-card a:hover {
  color: var(--color-white);
}

@media (max-width: 1180px) {
  .expertly-about-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .expertly-about-program-grid {
    grid-template-columns: 1fr;
  }
}
