/*
Theme Name: BISP 8171 Ehsaas Guide
Theme URI: https://toolvix.io
Author: Toolvix
Author URI: https://toolvix.io
Description: BISP Ehsaas Program beneficiaries ke liye professional Urdu guide theme - Jameel Noori Nastaleeq font ke saath
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: bisp-guide
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
  --green-dark: #0d4a1e;
  --green-main: #1a6b2f;
  --green-light: #2d8a45;
  --green-pale: #e8f5e9;
  --green-border: #a5d6a7;
  --gold: #c8a84b;
  --gold-light: #fdf6e3;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-medium: #3d3d3d;
  --text-muted: #666666;
  --border-light: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Arial Unicode MS', serif;
  direction: rtl;
  text-align: right;
  background: #f5f7f5;
  color: var(--text-dark);
  line-height: 2;
  font-size: 17px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
#site-header {
  background: var(--green-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  font-family: 'Arial', sans-serif;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 18px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.4;
}

.logo-text span {
  font-size: 12px;
  color: var(--gold);
  display: block;
}

.header-sms {
  background: var(--gold);
  color: var(--green-dark);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-main) 60%, var(--green-light) 100%);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-inner {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-gov-tag {
  display: inline-block;
  background: rgba(200, 168, 75, 0.25);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 20px;
}

#hero h2 {
  font-size: 36px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}

#hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 2;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,168,75,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  text-align: center;
}

.stat-item {
  padding: 12px;
}

.stat-item .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--green-main);
  font-family: 'Arial', sans-serif;
  display: block;
}

.stat-item .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  border-right: 1px solid var(--border-light);
}

/* ===== MAIN CONTENT ===== */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ===== SECTION HEADING ===== */
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading .tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-main);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section-heading p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== STEPS ===== */
#steps { margin-bottom: 56px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--green-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Arial', sans-serif;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ===== CTA BOX ===== */
#cta-section {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

#cta-section::before {
  content: '8171';
  position: absolute;
  font-size: 180px;
  font-family: 'Arial', sans-serif;
  color: rgba(255,255,255,0.03);
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 900;
  pointer-events: none;
}

#cta-section h2 {
  font-size: 30px;
  color: var(--white);
  margin-bottom: 12px;
}

#cta-section p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.official-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--green-dark);
  padding: 16px 36px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.official-link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.5);
}

.official-link-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== SMS GUIDE ===== */
#sms-guide {
  margin-bottom: 56px;
}

.sms-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 640px) {
  .sms-box { grid-template-columns: 1fr; }
}

.sms-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.sms-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 12px;
}

.sms-code-box {
  background: var(--green-dark);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.sms-number {
  font-size: 64px;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Arial Black', sans-serif;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.sms-code-box p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* ===== FAQ ===== */
#faq { margin-bottom: 56px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: right;
  font-family: inherit;
  direction: rtl;
}

.faq-question:hover { background: var(--green-pale); }

.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--green-main);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-style: normal;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 2;
  border-top: 1px solid var(--border-light);
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 16px 24px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ===== WARNING ===== */
.warning-section {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 56px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.warning-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.warning-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #7b4f00;
  margin-bottom: 10px;
}

.warning-section p {
  font-size: 15px;
  color: #5d3900;
  line-height: 2;
}

/* ===== CONTACT CARDS ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.contact-card .icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; color: var(--text-muted); margin-bottom: 8px; }
.contact-card .value { font-size: 22px; font-weight: 700; color: var(--green-main); font-family: 'Arial', sans-serif; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--green-dark);
  padding: 40px 24px 24px;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

#site-footer p {
  font-size: 13px;
  line-height: 2;
  max-width: 600px;
  margin: 0 auto 8px;
}

.footer-disclaimer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #hero h2 { font-size: 26px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .sms-number { font-size: 48px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 12px 16px; }
  .main-container { padding: 32px 16px; }
  #hero { padding: 40px 16px; }
  .logo-text h1 { font-size: 15px; }
  .warning-section { flex-direction: column; }
}
