/* ============================================
   Xidmətlər səhifəsi — yalnız bu səhifə üçün
   ============================================ */

/* ===== Services overview grid (4 cards) ===== */
.services-overview {
  background: var(--inner);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  background: #fff;
  border-radius: 28px;
  padding: 36px 36px 32px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  box-shadow: 0 4px 14px rgba(26, 26, 77, 0.06);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  display: block;
  border-top: 4px solid var(--brand);
  overflow: hidden;
}

/* Glass icon — kartın sağ-yuxarı küncündə yumşaq glassmorphism effekt.
   Rəqəmlə yan-yana dayanır, böyüklük olaraq ona uyğun görünür. */
.service-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 76px;
  height: 76px;
  pointer-events: none;
  user-select: none;
  /* Yüngül "lift" — kartın hover-ində icon da bir az yuxarı qalxır */
  transition: transform 320ms var(--ease-out);
}
.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.04);
}
/* Icon h3 ilə üst-üstə düşməsin — kart başlığının yuxarı sağ küncünü qoru */
.service-card:has(.service-icon) h3 {
  padding-right: 80px;       /* icon ölçüsü qədər boşluq */
}
/* Mobil ekranda icon kiçik — paddinq lazım deyil */
@media (max-width: 600px) {
  .service-icon { width: 56px; height: 56px; top: 20px; right: 20px; }
  .service-card:has(.service-icon) h3 { padding-right: 60px; }
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(26, 26, 77, 0.14);
}
.service-card.sc-2 { border-top-color: #FB923C; }
.service-card.sc-3 { border-top-color: #14B8A6; }
.service-card.sc-4 { border-top-color: #22C55E; }

.service-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--brand);
  opacity: 0.18;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.sc-2 .service-num { color: #FB923C; }
.sc-3 .service-num { color: #14B8A6; }
.sc-4 .service-num { color: #22C55E; }

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.service-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.7;
  margin: 0 0 16px;
}
.service-card-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 600;
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
.sc-2 .service-card-arrow { color: #FB923C; }
.sc-3 .service-card-arrow { color: #14B8A6; }
.sc-4 .service-card-arrow { color: #22C55E; }
.service-card:hover .service-card-arrow { transform: translateX(6px); }

/* ===== Service detail panels (alternating layouts) ===== */
.service-detail {
  background: var(--inner);
}
.service-detail.sd-2 { background: var(--inner-2); }
.service-detail.sd-3 { background: var(--inner); }
.service-detail.sd-4 { background: var(--inner-2); }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.service-detail-grid.reverse .service-detail-text { order: 2; }
.service-detail-grid.reverse .service-detail-visual { order: 1; }

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.service-tag.tag-orange { color: #FB923C; background: rgba(251, 146, 60, 0.12); }
.service-tag.tag-teal { color: #14B8A6; background: rgba(20, 184, 166, 0.12); }
.service-tag.tag-green { color: #22C55E; background: rgba(34, 197, 94, 0.12); }

.service-detail-text h2 {
  margin-bottom: 24px;
}
.service-detail-text h2 .ink,
.service-detail-text h2 .mute {
  display: block;
}

.service-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.82;
  margin-bottom: 32px;
}

.service-included {
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 4px 14px rgba(26, 26, 77, 0.05);
}
.service-included h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.service-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-included li {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.8;
  padding-left: 22px;
  position: relative;
}
.service-included li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.sd-2 .service-included li::before { background: #FB923C; }
.sd-3 .service-included li::before { background: #14B8A6; }
.sd-4 .service-included li::before { background: #22C55E; }

.service-included strong {
  font-weight: 600;
  color: var(--ink);
  opacity: 1;
}

/* ===== Visual cards (right-side mockups) ===== */
.service-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(26, 26, 77, 0.12);
  padding: 24px;
  width: 100%;
  max-width: 420px;
}

/* Visual #1 — Universities list */
.visual-uni .visual-card-head,
.visual-teq .visual-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.visual-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--inner);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.visual-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.visual-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--ink);
  opacity: 0.55;
  font-weight: 500;
}
.visual-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.visual-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.visual-list li:last-child { border-bottom: none; }
.vl-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vl-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.vl-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.55;
  background: var(--inner);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.visual-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.visual-foot-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.visual-foot-action {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

/* Visual #2 — Scholarship deadlines */
.visual-deadline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--inner);
  border-radius: 14px;
  transition: background 200ms;
}
.dl-item:hover { background: var(--inner-2); }
.dl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dl-item > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.dl-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.dl-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--ink);
  opacity: 0.65;
}

/* Visual #3 — Document mockup with comments */
.visual-doc {
  padding: 32px 28px;
}
.doc-mockup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.doc-line {
  background: var(--inner-2);
  border-radius: 4px;
  height: 12px;
}
.doc-line.dl-title {
  height: 16px;
  width: 60%;
  background: var(--ink);
  opacity: 0.85;
}
.doc-line.dl-sub {
  height: 8px;
  width: 35%;
  background: var(--mute-2);
  margin-bottom: 8px;
}
.doc-paragraph {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-paragraph span {
  height: 10px;
  background: var(--inner-2);
  border-radius: 3px;
}
.doc-paragraph span:nth-child(1) { width: 60px; }
.doc-paragraph span:nth-child(2) { width: 80px; }
.doc-paragraph span:nth-child(3) { width: 50px; }
.doc-paragraph span:nth-child(4) { width: 90px; }
.doc-paragraph span:nth-child(5) { width: 70px; }
.doc-paragraph span:nth-child(6) { width: 65px; }
.doc-paragraph span:nth-child(7) { width: 50px; }
.doc-paragraph span.highlight {
  background: rgba(91, 79, 207, 0.25);
  position: relative;
}
.doc-paragraph span.highlight-teal {
  background: rgba(20, 184, 166, 0.3);
  width: 110px !important;
}
.doc-comment {
  margin-left: auto;
  margin-top: -4px;
  margin-bottom: 4px;
}
.doc-comment-bubble {
  background: var(--brand-soft);
  border: 1px solid rgba(91, 79, 207, 0.25);
  border-radius: 14px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
}
.dc-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dc-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Visual #4 — Visa stamp + checklist */
.visual-viza {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 28px;
}
.visa-stamp {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.stamp-ring {
  width: 100%;
  height: 100%;
  border: 3px solid #22C55E;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.3);
  position: relative;
}
.stamp-ring::before,
.stamp-ring::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: rgba(34, 197, 94, 0.4);
}
.stamp-ring::before { top: 22%; }
.stamp-ring::after  { bottom: 22%; }
.stamp-text-top,
.stamp-text-bot {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  color: #22C55E;
  letter-spacing: 0.2em;
}
.stamp-check {
  font-size: 2.5rem;
  font-weight: 700;
  color: #22C55E;
  line-height: 1;
}
.visa-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--inner);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--ink);
}
.vc-item.done { opacity: 0.7; }
.vc-item.done span:last-child { text-decoration: line-through; }
.vc-item.current { background: rgba(34, 197, 94, 0.1); font-weight: 600; }
.vc-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #22C55E;
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.vc-item.current .vc-icon {
  background: #FB923C;
}

/* ===== Start panel (3 steps with arrows) ===== */
.start-panel {
  background: var(--inner-2);
}
.start-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
}
.start-step {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 4px 14px rgba(26, 26, 77, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ss-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--brand);
  opacity: 0.2;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.start-step h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.start-step p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.78;
  margin: 0 0 16px;
  flex: 1;
}
.ss-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: opacity 200ms;
}
.ss-link:hover { opacity: 0.7; }
.start-arrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  color: var(--brand);
  font-weight: 400;
  opacity: 0.45;
}

/* ===== FAQ ===== */
.faq-panel {
  background: var(--inner);
}
.faq-list {
  margin-top: 40px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(26, 26, 77, 0.05);
  overflow: hidden;
  transition: box-shadow 200ms;
}
.faq-item[open] {
  box-shadow: 0 10px 24px rgba(26, 26, 77, 0.1);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: background 180ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--inner); }
.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  flex-shrink: 0;
  position: relative;
  transition: background 200ms, transform 250ms var(--ease-out);
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--brand);
  top: 50%; left: 50%;
}
.faq-toggle::before {
  width: 12px; height: 2px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 2px; height: 12px;
  transform: translate(-50%, -50%);
  transition: transform 250ms var(--ease-out);
}
.faq-item[open] .faq-toggle { background: var(--brand); }
.faq-item[open] .faq-toggle::before { background: #fff; }
.faq-item[open] .faq-toggle::after  { transform: translate(-50%, -50%) scaleY(0); background: #fff; }

.faq-body {
  padding: 0 28px 24px;
}
.faq-body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.78;
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }

  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-grid.reverse .service-detail-text { order: 1; }
  .service-detail-grid.reverse .service-detail-visual { order: 2; }
  .visual-card { max-width: 480px; margin: 0 auto; }

  .start-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Mobile arrows sit BETWEEN cards in the gap, not overlapping them.
     The downward-pointing rotation reads as "next step ↓" naturally. */
  .start-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
    text-align: center;
    font-size: 1.5rem;
    opacity: 0.4;
  }
}

@media (max-width: 700px) {
  .service-card { padding: 28px 26px 26px; border-radius: 22px; }
  .service-card h3 { font-size: 1.25rem; }
  .service-num { font-size: 2rem; }

  .service-tag { font-size: 0.75rem; padding: 6px 12px; }
  .service-included { padding: 22px 22px; border-radius: 18px; }
  .service-included li { font-size: 0.9375rem; }

  .visual-card { padding: 20px; border-radius: 22px; }
  .visa-stamp { width: 110px; height: 110px; }
  .stamp-text-top, .stamp-text-bot { font-size: 0.75rem; }
  .stamp-check { font-size: 2rem; }

  .start-step { padding: 26px 22px; border-radius: 20px; }

  .faq-item summary { padding: 18px 22px; font-size: 0.9375rem; gap: 12px; }
  .faq-toggle { width: 24px; height: 24px; }
  .faq-toggle::before { width: 10px; }
  .faq-toggle::after { height: 10px; }
  .faq-body { padding: 0 22px 20px; }
}
