/* ==========================================================================
   City Page Template stylesheet - CertifyMyHealth
   Extracted from the Delhi city page so every city page shares one
   cacheable stylesheet instead of ~700 duplicated inline lines each.
   Used by: views/templates/city-page.php
   ========================================================================== */

/* ══════════════════════════════════
       DESIGN SYSTEM
    ══════════════════════════════════ */
    :root {
      --navy:     #2F3589;
      --navy-dk:  #1e2266;
      --sky:      #2FBEF6;
      --sky-lt:   #e8f7fe;
      --red:      #ef4444;
      --green:    #16a34a;
      --white:    #ffffff;
      --gray-50:  #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-400: #9ca3af;
      --gray-600: #4b5563;
      --gray-800: #1f2937;
      --font-h:   'Plus Jakarta Sans', sans-serif;
      --font-b:   'Nunito', sans-serif;
      --radius:   10px;
      --shadow:   0 4px 16px rgba(47,53,137,0.12);
      --shadow-lg:0 12px 36px rgba(47,53,137,0.18);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: var(--font-b);
      color: var(--gray-800);
      background: var(--white);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    .container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
    .sp { padding: 72px 0; }
    .sp-sm { padding: 48px 0; }

    h1,h2,h3,h4,h5,h6 { font-family: var(--font-h); line-height: 1.2; }

    .lbl {
      display: inline-block;
      background: var(--sky-lt);
      color: var(--navy);
      font-family: var(--font-h);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 5px 14px;
      border-radius: 50px;
      margin-bottom: 14px;
    }

    .sec-title {
      font-size: clamp(1.5rem, 3vw, 2.1rem);
      font-weight: 800;
      color: var(--navy);
      margin-bottom: 14px;
    }

    .sec-sub {
      color: var(--gray-600);
      font-size: 1rem;
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.75;
    }

    /* ══════════════════════════════════
       HERO
       SEO: H1 = "Medical Certificate in
       Delhi" — exact match local query.
       Body includes: "sick leave in Delhi",
       "IT companies", "NMC guidelines",
       "MBBS doctors Delhi", "90 minutes".
    ══════════════════════════════════ */
    .hero {
      position: relative;
      min-height: 540px;
      display: flex;
      align-items: center;
      background: url('../images/bg2.jpg') center/cover no-repeat;
      overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, rgba(23,27,90,0.91) 40%, rgba(47,190,246,0.2) 100%);
    }
    .hero .container { position: relative; z-index: 2; }
    .hero-wrap { max-width: 620px; }

    /* Delhi city pill */
    .city-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(47,190,246,0.2);
      border: 1px solid rgba(47,190,246,0.5);
      color: var(--sky);
      font-family: var(--font-h);
      font-size: 0.82rem;
      font-weight: 700;
      padding: 6px 16px;
      border-radius: 50px;
      margin-bottom: 20px;
      letter-spacing: 0.04em;
    }
    .city-pill::before { content: '📍'; font-size: 1rem; }

    .hero h1 {
      font-size: clamp(1.9rem, 4vw, 2.85rem);
      font-weight: 800;
      color: #fff;
      margin-bottom: 18px;
      line-height: 1.15;
    }
    .hero h1 em { font-style: normal; color: var(--sky); }

    .hero p {
      color: rgba(255,255,255,0.88);
      font-size: 1.03rem;
      line-height: 1.78;
      margin-bottom: 90px;
      max-width: 540px;
    }

    .hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

    .btn-pri {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--sky);
      color: var(--navy-dk);
      font-family: var(--font-h);
      font-size: 0.95rem;
      font-weight: 700;
      padding: 14px 28px;
      border-radius: 8px;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .btn-pri:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(47,190,246,0.45); }

    .btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: transparent;
      color: #fff;
      font-family: var(--font-h);
      font-size: 0.92rem;
      font-weight: 600;
      padding: 13px 24px;
      border-radius: 8px;
      text-decoration: none;
      border: 2px solid rgba(255,255,255,0.45);
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

    /* Delivery badge inside hero */
    .hero-badge-row {
      display: flex;
      gap: 20px;
      margin-top: 36px;
      flex-wrap: wrap;
    }
    .h-badge {
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.9);
      font-family: var(--font-h);
      font-size: 0.83rem;
      font-weight: 500;
    }
    .h-badge-dot {
      width: 8px; height: 8px;
      background: var(--sky);
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* ══════════════════════════════════
       TRUST BAR
    ══════════════════════════════════ */
    .trust-bar { background: var(--navy); padding: 14px 0; }
    .trust-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; }
    .ti {
      display: flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.9);
      font-family: var(--font-h);
      font-size: 0.85rem;
      font-weight: 500;
    }
    .ti-dot { color: var(--sky); font-size: 1rem; }

    /* ══════════════════════════════════
       LOCAL INTRO — DELHI SPECIFIC
       SEO: This is the keyword density
       block for Delhi local signals.
       Targets: "medical certificate in
       Delhi", "Delhi IT companies",
       "DU students", "NCR offices".
    ══════════════════════════════════ */
    .intro { background: var(--white); }
    .intro-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 52px;
      align-items: start;
    }
    .intro-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--navy); margin-bottom: 14px; }
    .intro-content p { color: var(--gray-600); font-size: 0.97rem; line-height: 1.82; margin-bottom: 14px; }
    .intro-content p:last-child { margin-bottom: 0; }

    /* Delhi stats card */
    .city-stats,
    .delhi-stats {
      background: linear-gradient(135deg, var(--navy) 0%, #1a1f6b 100%);
      border-radius: 16px;
      padding: 32px;
      color: #fff;
    }
    .city-stats h4,
    .delhi-stats h4 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--sky);
      margin-bottom: 20px;
      font-family: var(--font-h);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .stat-row {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .stat-row:last-child { border-bottom: none; }
    .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
    .stat-val {
      font-family: var(--font-h);
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
    }
    .stat-val .tag {
      background: rgba(47,190,246,0.2);
      color: var(--sky);
      font-size: 0.72rem;
      padding: 2px 8px;
      border-radius: 50px;
      margin-left: 6px;
    }

    /* ══════════════════════════════════
       CERTIFICATE TYPES — DELHI
    ══════════════════════════════════ */
    .certs { background: var(--gray-50); }
    .cert-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 36px;
    }
    .cert-card {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 24px 20px;
      transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
      position: relative;
    }
    .cert-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--sky);
    }
    .cert-icon { font-size: 1.8rem; margin-bottom: 12px; }
    .cert-card h3 {
      font-size: 0.97rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 6px;
    }
    .cert-card p {
      font-size: 0.85rem;
      color: var(--gray-600);
      line-height: 1.65;
      margin-bottom: 14px;
    }
    .cert-tag {
      display: inline-block;
      background: var(--sky-lt);
      color: var(--navy);
      font-family: var(--font-h);
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 50px;
      margin-bottom: 12px;
    }
    .cert-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-h);
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--navy);
      text-decoration: none;
      transition: gap 0.2s, color 0.2s;
    }
    .cert-link:hover { gap: 8px; color: var(--sky); }

    /* ══════════════════════════════════
       WHO NEEDS THIS — DELHI AUDIENCES
       SEO: Adds hyper-local content depth.
       Targets "medical certificate for DU
       students", "medical certificate for
       IT company Delhi", "certificate for
       corporate employees Delhi NCR".
    ══════════════════════════════════ */
    .audiences { background: var(--white); }
    .audience-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-top: 36px;
    }
    .audience-card {
      background: var(--gray-50);
      border-radius: var(--radius);
      padding: 22px 18px;
      border: 1px solid var(--gray-200);
      text-align: center;
      transition: all 0.25s;
    }
    .audience-card:hover { background: var(--navy); border-color: var(--navy); }
    .audience-card:hover h4, .audience-card:hover p { color: #fff; }
    .audience-card:hover .audience-icon { background: rgba(255,255,255,0.15); }
    .audience-icon {
      width: 52px; height: 52px;
      background: var(--sky-lt);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
      margin: 0 auto 14px;
      transition: background 0.25s;
    }
    .audience-card h4 {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 8px;
      transition: color 0.25s;
    }
    .audience-card p {
      font-size: 0.82rem;
      color: var(--gray-600);
      line-height: 1.6;
      transition: color 0.25s;
    }

    /* ══════════════════════════════════
       HOW IT WORKS
    ══════════════════════════════════ */
    .how { background: var(--gray-50); }
    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin-top: 44px;
      position: relative;
    }
    .steps::before {
      content: '';
      position: absolute;
      top: 35px;
      left: calc(16.7% + 16px);
      width: calc(66.6% - 32px);
      height: 2px;
      background: linear-gradient(90deg, var(--sky), var(--navy));
    }
    .step { text-align: center; }
    .step-n {
      width: 70px; height: 70px;
      background: var(--navy);
      color: #fff;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-h);
      font-size: 1.4rem;
      font-weight: 800;
      margin: 0 auto 18px;
      border: 4px solid #fff;
      box-shadow: var(--shadow);
      position: relative; z-index: 2;
    }
    .step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
    .step p { font-size: 0.87rem; color: var(--gray-600); line-height: 1.65; }

    /* ══════════════════════════════════
       WHY CHOOSE — DELHI CONTEXT
    ══════════════════════════════════ */
    .why { background: var(--white); }
    .why-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 36px;
    }
    .why-card {
      background: var(--gray-50);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 26px 22px;
      text-align: center;
      transition: transform 0.25s, box-shadow 0.25s;
    }
    .why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
    .why-card.featured { background: var(--navy); border-color: var(--navy); }
    .why-icon { font-size: 1.9rem; margin-bottom: 12px; }
    .why-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
    .why-card.featured h3 { color: #fff; }
    .why-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; }
    .why-card.featured p { color: rgba(255,255,255,0.8); }

    /* ══════════════════════════════════
       DELHI CONTENT BLOCK
       SEO: Keyword-rich prose for topical
       authority. This section is what
       separates thin city pages (which
       Google ignores) from authoritative
       local pages (which Google ranks).
       Targets "medical certificate for
       sick leave Delhi" and local LSI.
    ══════════════════════════════════ */
    .content-block { background: var(--gray-50); }
    .content-grid {
      display: grid;
      grid-template-columns: 3fr 1fr;
      gap: 48px;
    }
    .prose h2 { font-size: 1.4rem; color: var(--navy); margin: 28px 0 10px; }
    .prose h2:first-child { margin-top: 0; }
    .prose h3 { font-size: 1.1rem; color: var(--navy); margin: 20px 0 8px; }
    .prose p { color: var(--gray-600); font-size: 0.96rem; line-height: 1.85; margin-bottom: 14px; }
    .prose ul { margin: 0 0 14px 20px; color: var(--gray-600); font-size: 0.96rem; line-height: 1.85; }
    .prose ul li { margin-bottom: 5px; }
    .prose a { color: var(--navy); font-weight: 600; }

    /* Sidebar */
    .sidebar { position: sticky; top: 24px; }
    .s-cta {
      background: linear-gradient(135deg, var(--navy), #1a1f6b);
      border-radius: var(--radius);
      padding: 26px;
      text-align: center;
      color: #fff;
      margin-bottom: 18px;
    }
    .s-cta h4 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
    .s-cta p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 16px; font-family: var(--font-h); }
    .s-cta .btn-pri { width: 100%; justify-content: center; }

    .s-card {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 20px;
      margin-bottom: 16px;
    }
    .s-card h4 {
      font-size: 0.9rem;
      color: var(--navy);
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--gray-200);
    }
    .s-link {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 8px 0;
      border-bottom: 1px solid var(--gray-100);
      text-decoration: none;
      color: var(--gray-800);
      font-family: var(--font-h);
      font-size: 0.85rem;
      font-weight: 500;
      transition: color 0.2s, padding-left 0.2s;
    }
    .s-link:last-child { border-bottom: none; }
    .s-link:hover { color: var(--navy); padding-left: 4px; }
    .s-link::before { content: '→'; color: var(--sky); font-size: 0.78rem; }

    /* ══════════════════════════════════
       FAQ
    ══════════════════════════════════ */
    .faq { background: var(--white); }
    .faq-wrap { max-width: 820px; margin: 36px auto 0; }
    .faq-item {
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      margin-bottom: 10px;
      overflow: hidden;
    }
    .faq-btn {
      width: 100%;
      background: none;
      border: none;
      padding: 17px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      cursor: pointer;
      text-align: left;
      font-family: var(--font-h);
      font-size: 0.93rem;
      font-weight: 700;
      color: var(--navy);
      transition: background 0.2s;
    }
    .faq-btn:hover { background: var(--gray-50); }
    .faq-arr {
      flex-shrink: 0;
      width: 26px; height: 26px;
      background: var(--sky-lt);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: transform 0.3s, background 0.2s;
      font-size: 0.78rem;
      color: var(--navy);
    }
    .faq-item.open .faq-btn { background: var(--sky-lt); }
    .faq-item.open .faq-arr { transform: rotate(180deg); background: var(--navy); color: #fff; }
    .faq-ans {
      display: none;
      padding: 0 22px 18px;
      font-size: 0.92rem;
      color: var(--gray-600);
      line-height: 1.8;
      background: var(--sky-lt);
    }
    .faq-item.open .faq-ans { display: block; }

    /* ══════════════════════════════════
       CITY LINKS — INTERNAL LINKING
    ══════════════════════════════════ */
    .city-links-sec { background: var(--gray-50); }
    .city-links-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 32px;
    }
    .cl-group h4 {
      font-family: var(--font-h);
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--gray-200);
    }
    .cl-group ul { list-style: none; padding: 0; }
    .cl-group ul li { margin-bottom: 6px; }
    .cl-group a {
      font-size: 0.85rem;
      color: var(--gray-600);
      text-decoration: none;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .cl-group a:hover { color: var(--navy); }
    .cl-group a::before { content: '›'; color: var(--sky); font-weight: 700; }

    /* ══════════════════════════════════
       STEP GUIDE
    ══════════════════════════════════ */
    .guide { background: var(--white); }
    .guide-inner { max-width: 740px; margin: 32px auto 0; }
    .guide-step {
      display: flex;
      gap: 18px;
      margin-bottom: 16px;
      background: var(--gray-50);
      border-radius: var(--radius);
      padding: 18px 22px;
      border: 1px solid var(--gray-200);
      align-items: flex-start;
    }
    .g-num {
      width: 34px; height: 34px;
      background: var(--navy);
      color: #fff;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-h);
      font-weight: 800;
      font-size: 0.88rem;
      flex-shrink: 0;
    }
    .guide-step h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 3px; }
    .guide-step p { font-size: 0.87rem; color: var(--gray-600); }
    .guide-step a { color: var(--navy); font-weight: 600; }

    /* ══════════════════════════════════
       TESTIMONIALS
    ══════════════════════════════════ */
    .reviews { background: var(--gray-50); }
    .review-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 26px;
      border: 1px solid var(--gray-200);
      margin: 8px;
    }
    .stars { color: #f59e0b; font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 12px; }
    .review-text { font-size: 0.92rem; color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; font-style: italic; }
    .reviewer { display: flex; align-items: center; gap: 10px; }
    .rv-av {
      width: 38px; height: 38px;
      background: var(--navy);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: #fff;
      font-family: var(--font-h);
      font-size: 0.88rem;
      font-weight: 700;
    }
    .rv-name { font-family: var(--font-h); font-size: 0.88rem; font-weight: 700; color: var(--navy); }
    .rv-loc { font-size: 0.76rem; color: var(--gray-400); font-family: var(--font-h); }

    /* ══════════════════════════════════
       CAUSE
    ══════════════════════════════════ */
    .cause { background: var(--white); }
    .cause-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
    }
    .cause-text h2 { color: var(--sky); font-size: 1.65rem; margin-bottom: 6px; }
    .cause-text h2 strong { color: var(--navy); }
    .cause-text p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 14px; }
    .cause-list { list-style: none; padding: 0; }
    .cause-list li {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 7px 0;
      font-family: var(--font-h);
      font-size: 0.88rem;
      color: var(--gray-800);
    }
    .cause-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
    .cause-img img { width: 100%; border-radius: 12px; }

    /* ══════════════════════════════════
       BOTTOM CTA
    ══════════════════════════════════ */
    .cta-bottom {
      background: linear-gradient(120deg, var(--navy) 0%, #1a1f6b 100%);
      padding: 70px 0;
      text-align: center;
    }
    .cta-bottom h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-bottom: 14px; }
    .cta-bottom p { color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 28px; font-size: 1rem; }

    /* ══════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════ */
    @media (max-width: 900px) {
      .intro-grid, .content-grid, .cause-wrap { grid-template-columns: 1fr; }
      .cert-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
      .audience-grid { grid-template-columns: repeat(2, 1fr); }
      .city-links-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 640px) {
      .cert-grid, .why-grid, .steps, .audience-grid { grid-template-columns: 1fr; }
      .steps::before { display: none; }
      .city-links-grid { grid-template-columns: 1fr; }
      .hero-btns { flex-direction: column; }
      .btn-pri, .btn-ghost { width: 100%; justify-content: center; }
    }
