/* ══════════════════════════════════════════════════════════════
   Zaptodoor Premium Theme — Shared Styles
   Brand Purple: #4c0996
   ══════════════════════════════════════════════════════════════ */

:root {
  --zd-purple: #4c0996;
  --zd-purple-light: #6B21A8;
  --zd-purple-dark: #3B0764;
  --zd-purple-50: #F5F0FF;
  --zd-purple-100: #EDE9FE;
  --zd-purple-200: #DDD6FE;
  --zd-gold: #F59E0B;
  --zd-gold-light: #FCD34D;
}

/* ── Page Background ── */
.zd-page-bg {
  background: linear-gradient(180deg, var(--zd-purple-50) 0%, var(--zd-purple-100) 20%, #F8F6FF 50%, #fff 100%);
  min-height: 100vh;
}

/* ── Hero Banner ── */
.zd-hero {
  background: linear-gradient(160deg, #1e0536 0%, var(--zd-purple) 40%, #7C3AED 100%);
  margin-top: -90px;
  padding: 150px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.zd-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -30%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: zdFloat 10s ease-in-out infinite;
}
.zd-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: zdFloat 12s ease-in-out infinite reverse;
}
@keyframes zdFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}
.zd-hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: #fff;
}
.zd-hero-shape-1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.zd-hero-shape-2 { width: 200px; height: 200px; bottom: -40px; left: 10%; }
.zd-hero-shape-3 { width: 120px; height: 120px; top: 35%; left: 5%; }

.zd-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.zd-hero h1 span {
  background: linear-gradient(90deg, var(--zd-gold), var(--zd-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zd-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.zd-hero .zd-breadcrumb {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 0.9rem;
}
.zd-hero .zd-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}
.zd-hero .zd-breadcrumb a:hover { color: #fff; }
.zd-hero .zd-breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 8px; }
.zd-hero .zd-breadcrumb .current { color: var(--zd-gold-light); }

/* ── Container ── */
.zd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ── Cards ── */
.zd-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(76,9,150,0.06), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(124,58,237,0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.zd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(76,9,150,0.12), 0 4px 12px rgba(0,0,0,0.06);
}
.zd-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.zd-card-body {
  padding: 24px;
}
.zd-card-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.zd-card-body p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Grid ── */
.zd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.zd-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 992px) {
  .zd-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .zd-grid-3, .zd-grid-2 { grid-template-columns: 1fr; }
  .zd-hero h1 { font-size: 2rem; }
  .zd-hero { padding: 130px 20px 60px; }
  .zd-container { padding: 30px 16px 40px; }
}

/* ── Buttons ── */
.zd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}
.zd-btn-purple {
  background: linear-gradient(135deg, var(--zd-purple), #7C3AED);
  color: #fff;
}
.zd-btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,9,150,0.3);
  color: #fff;
}
.zd-btn-outline {
  background: transparent;
  border: 2px solid var(--zd-purple);
  color: var(--zd-purple);
}
.zd-btn-outline:hover {
  background: var(--zd-purple);
  color: #fff;
}

/* ── Section Titles ── */
.zd-section-title {
  text-align: center;
  margin-bottom: 40px;
}
.zd-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.zd-section-title h2 span {
  color: var(--zd-purple);
}
.zd-section-title p {
  color: #888;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.zd-section-title .zd-title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--zd-purple), #7C3AED);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ── Tags / Badges ── */
.zd-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.zd-tag-purple {
  background: var(--zd-purple-100);
  color: var(--zd-purple);
}
.zd-tag-gold {
  background: #FEF3C7;
  color: #92400E;
}

/* ── Content (policy/about pages) ── */
.zd-content-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(76,9,150,0.08);
  border: 1px solid rgba(124,58,237,0.06);
  padding: 48px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.zd-content-card h2 {
  color: var(--zd-purple-dark);
  font-size: 1.4rem;
  margin: 30px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--zd-purple-100);
}
.zd-content-card h2:first-child { margin-top: 0; }
.zd-content-card p { color: #555; line-height: 1.8; margin-bottom: 14px; }
.zd-content-card ul { margin-left: 18px; margin-bottom: 14px; }
.zd-content-card li { color: #555; margin-bottom: 8px; line-height: 1.7; }
.zd-content-card a { color: var(--zd-purple); text-decoration: none; }
.zd-content-card a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .zd-content-card { padding: 24px 18px; margin-top: -30px; }
}

/* ── Date badge ── */
.zd-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 6px;
}

/* ── Contact card info ── */
.zd-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.zd-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--zd-purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zd-info-icon svg { width: 20px; height: 20px; stroke: var(--zd-purple); fill: none; stroke-width: 2; }
.zd-info-text { font-size: 0.95rem; color: #444; }
.zd-info-text a { color: #444; text-decoration: none; }
.zd-info-text a:hover { color: var(--zd-purple); }

/* ── Form fields (contact) ── */
.zd-field { margin-bottom: 18px; }
.zd-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}
.zd-field input,
.zd-field select,
.zd-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E9E5F5;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #FAFAFF;
  transition: all 0.3s ease;
  outline: none;
}
.zd-field input:focus,
.zd-field select:focus,
.zd-field textarea:focus {
  border-color: var(--zd-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(76,9,150,0.08);
}

/* ── Map ── */
.zd-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-top: 20px;
}
.zd-map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* ── Certification logos ── */
.zd-cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.zd-cert-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(76,9,150,0.06);
  border: 1px solid var(--zd-purple-100);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
}
.zd-cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(76,9,150,0.12);
}
.zd-cert-item img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

/* ── Stats Row ── */
.zd-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.zd-stat {
  text-align: center;
}
.zd-stat-num {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--zd-purple), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zd-stat-label {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

/* ── Video Media Cards ── */
.zd-media-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(76,9,150,0.06);
  border: 1px solid rgba(124,58,237,0.06);
  transition: all 0.4s ease;
}
.zd-media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(76,9,150,0.12);
}
.zd-media-frame {
  position: relative;
  background: #000;
  min-height: 400px;
  display: flex;
  justify-content: center;
}
.zd-media-frame iframe {
  border: 0;
  width: 100%;
  min-height: 400px;
}
.zd-media-body {
  padding: 18px 22px;
}
.zd-media-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 6px 0;
}
.zd-media-body p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}
