/* ═══════════════════════════════════════════
   UDRUS ACADEMY — pages.css
   Shared inner-page styles
   ═══════════════════════════════════════════ */

/* ── PAGE HERO ── */
.page-hero {
  min-height: 52vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 80px 5% 80px;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(30,125,90,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(201,168,76,0.07) 0%, transparent 60%),
    var(--bg);
}
.page-hero-bg + * { position: relative; z-index: 1; }
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500;
  line-height: 1.08; color: var(--emerald);
  margin-bottom: 16px; letter-spacing: -0.01em;
}
[data-theme="dark"] .page-title { color: var(--gold-light); }
.page-title em { font-style: italic; color: var(--emerald-light); }

.page-subtitle { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; line-height: 1.7; max-width: 540px; }

/* ── COURSE FULL CARDS ── */
.course-full-card {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 0; border-radius: 24px; overflow: hidden;
  margin-bottom: 40px;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.course-full-thumb {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 320px;
}
.course-full-body { padding: 48px 52px; }

.course-details-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 28px;
}
.course-detail-item {
  background: var(--bg, #faf8f3); border-radius: 12px; padding: 14px 18px;
  border: 1px solid var(--border);
}
.course-detail-item strong { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.course-detail-item span { font-size: 0.92rem; color: var(--text); font-weight: 500; }

.course-topics { background: var(--bg, #faf8f3); border-radius: 14px; padding: 20px 22px; border: 1px solid var(--border); }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.topic-tags span {
  font-size: 0.78rem; font-weight: 500;
  background: rgba(13,74,58,0.08); color: var(--emerald);
  padding: 5px 13px; border-radius: 20px;
  border: 1px solid rgba(13,74,58,0.1);
}
[data-theme="dark"] .topic-tags span { background: rgba(201,168,76,0.1); color: var(--gold-light); border-color: rgba(201,168,76,0.15); }

/* ── TEACHER PROFILES ── */
.teacher-profile {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 0; border-radius: 28px; overflow: hidden;
  margin-bottom: 32px;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.teacher-profile-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 380px; flex-direction: column;
}
.teacher-big-avatar {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 5rem; font-weight: 500; color: rgba(255,255,255,0.9);
  position: relative; z-index: 2;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.teacher-geo-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.teacher-geo-bg svg { width: 100%; height: 100%; }
.teacher-visual-bottom { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; }
.online-badge { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); color: rgba(255,255,255,0.8); font-size: 0.78rem; font-weight: 500; padding: 6px 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.15); white-space: nowrap; }
.teacher-profile-text { padding: 48px 52px; }

.teacher-stats { display: flex; gap: 32px; margin-top: 28px; }
.t-stat { display: flex; flex-direction: column; }
.t-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--emerald); line-height: 1; }
[data-theme="dark"] .t-stat-num { color: var(--gold-light); }
.t-stat-lbl { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.teacher-badge { font-size: 0.72rem; font-weight: 500; background: rgba(13,74,58,0.08); color: var(--emerald); padding: 4px 12px; border-radius: 20px; }
[data-theme="dark"] .teacher-badge { background: rgba(201,168,76,0.1); color: var(--gold-light); }

/* ── VALUE CARDS ── */
.value-card {
  background: var(--surface, #fff); border-radius: 20px;
  padding: 32px 28px; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(13,74,58,0.12); }
.value-icon { font-size: 2.4rem; margin-bottom: 16px; }
.value-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--emerald); margin-bottom: 10px; }
[data-theme="dark"] .value-card h3 { color: var(--gold-light); }
.value-card p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.65; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1)); }
.tl-item { position: relative; margin-bottom: 44px; display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: flex-start; }
.tl-dot { position: absolute; left: -40px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(201,168,76,0.5); border: 2.5px solid var(--bg, #faf8f3); }
.tl-year { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); line-height: 1.3; padding-top: 2px; }
.tl-content h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.tl-content p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; }

/* ── FAQ ── */
.faq-item { background: var(--surface, #fff); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; transition: box-shadow 0.3s; margin-bottom: 12px; }
.faq-item.open { box-shadow: 0 8px 32px rgba(13,74,58,0.08); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; cursor: pointer; font-weight: 500; font-size: 0.97rem; color: var(--text); user-select: none; }
.faq-q:hover { color: var(--emerald); }
.faq-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(13,74,58,0.06); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: transform 0.35s, background 0.3s; font-size: 0.85rem; color: var(--emerald); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--emerald); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(.2,.8,.3,1), padding 0.3s; padding: 0 28px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 28px 22px; }

/* ── CONTACT CARDS ── */
a.contact-card, .contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface, #fff); border-radius: 22px; padding: 32px 28px;
  border: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(13,74,58,0.12); }
.contact-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.contact-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--emerald); margin-bottom: 8px; }
[data-theme="dark"] .contact-card h3 { color: var(--gold-light); }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.contact-link { margin-top: 16px; font-size: 0.82rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; }

/* ── TELEGRAM BLOCK (reuse from home) ── */
.tg-block {
  max-width: 860px; margin: 0 auto;
  background: linear-gradient(135deg, var(--emerald) 0%, #0a2d22 100%);
  border-radius: 32px; padding: 72px 60px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(13,74,58,0.3);
}
.tg-block::before { content:''; position:absolute; inset:0; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'%3E%3Cpolygon points='60,5 95,30 95,90 60,115 25,90 25,30'/%3E%3Ccircle cx='60' cy='60' r='15'/%3E%3C/g%3E%3C/svg%3E"); background-size:120px 120px; }
.tg-glow { position:absolute; top:-80px; right:-80px; width:320px; height:320px; background:radial-gradient(ellipse,rgba(201,168,76,0.15),transparent 70%); pointer-events:none; }

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .course-full-card, .teacher-profile { grid-template-columns: 1fr; }
  .course-full-thumb, .teacher-profile-visual { min-height: 220px; }
  .course-full-body, .teacher-profile-text { padding: 32px 28px; }
  .teacher-stats { gap: 20px; }
}
@media(max-width:640px){
  .tl-item { grid-template-columns: 56px 1fr; }
  .tg-block { padding: 48px 24px; }
}
