@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

/* ==========================================================================
   المكتبة الرياضية الشاملة (ta4a.us) — نمط التصميم الموحد للمركز القانوني والصفحات
   Unified Stylesheet for Legal & Info Pages — v2.0
   ========================================================================== */

:root {
  --primary: #01875f;
  --primary-dark: #00694a;
  --primary-light: #e6f4ea;
  --primary-glow: rgba(1, 135, 95, 0.25);
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-dark: #090d16;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --accent-dark: #1d4ed8;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 45px rgba(0, 0, 0, 0.12);
  --font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.75;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  gap: 14px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  max-height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px var(--primary-glow);
  flex-shrink: 0;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-title strong {
  font-size: 16px;
  color: var(--text-main);
}

.brand-title span {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap !important;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link i, .nav-link svg {
  font-size: 14px;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 800;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1010;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-app-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-app-header:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.25);
}

.btn-app-header svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  flex-shrink: 0;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 16px 20px;
  max-height: 75vh;
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.mobile-nav-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-subtle);
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.legal-main {
  flex-grow: 1;
  padding: 40px 0 60px 0;
}

.legal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.legal-card-header {
  background: linear-gradient(135deg, var(--bg-surface-alt) 0%, #ffffff 100%);
  padding: 30px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
}

.legal-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.legal-card-title-group h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.legal-card-title-group p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.legal-card-body {
  padding: 35px 30px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text-muted);
}

.legal-card-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin: 28px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-card-body h2:first-child {
  margin-top: 0;
}

.legal-card-body h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin: 22px 0 10px 0;
}

.legal-card-body p {
  margin-bottom: 18px;
  text-align: justify;
}

.legal-card-body ul, .legal-card-body ol {
  margin: 0 25px 22px 0;
}

.legal-card-body li {
  margin-bottom: 8px;
}

/* Callout boxes */
.callout {
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 22px 0;
  border: 1px solid var(--border);
}

.callout-primary {
  background: var(--primary-light);
  border-color: rgba(1, 135, 95, 0.3);
  color: #064e3b;
}

.callout-info {
  background: var(--accent-light);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1e3a8a;
}

.callout-warning {
  background: var(--warning-light);
  border-color: rgba(217, 119, 6, 0.3);
  color: #78350f;
}

.callout-danger {
  background: var(--danger-light);
  border-color: rgba(220, 38, 38, 0.25);
  color: #7f1d1d;
}

.callout-success {
  background: var(--success-light);
  border-color: rgba(22, 163, 74, 0.25);
  color: #14532d;
}

/* Generic Button Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main) !important;
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.app-featured-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  margin: 20px 0;
}

.app-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* App Featured Banner inside Legal pages */
.legal-app-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #064e3b 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.legal-app-banner-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-app-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-app-banner-icon svg {
  width: 32px;
  height: 32px;
}

.legal-app-banner-text h3 {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px 0 !important;
}

.legal-app-banner-text p {
  color: #cbd5e1 !important;
  font-size: 13.5px;
  margin: 0 !important;
}

.legal-app-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(1, 135, 95, 0.4);
  white-space: nowrap;
}

.legal-app-banner-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Legal Center Hub Grid */
.legal-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.legal-hub-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.legal-hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.legal-hub-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.legal-hub-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.legal-hub-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Form Styles (For Delete Account & Contact) */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface-alt);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: #ffffff;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-submit-danger {
  background: var(--danger);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

.btn-submit-danger:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.btn-submit-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-submit-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 50px 0 25px 0;
  margin-top: auto;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-col-brand h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-col-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.footer-play-btn:hover {
  background: #000000;
  transform: translateY(-2px);
}

.footer-play-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-play-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-play-btn-text small {
  font-size: 10px;
  color: #94a3b8;
}

.footer-play-btn-text strong {
  font-size: 13.5px;
  color: #ffffff;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 6px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(-3px);
}

.footer-links a i {
  font-size: 10px;
  color: var(--border-strong);
}

.footer-bottom {
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-subtle);
  font-weight: 600;
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 16px 20px;
  z-index: 99999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(110%);
  transition: transform 0.4s ease-in-out;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-size: 13.5px;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.7;
}

.cookie-banner-text a {
  color: #38bdf8;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.btn-cookie {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #ffffff;
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1140px) {
  .nav-desktop {
    display: none;
  }
  .btn-mobile-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }
  .brand-title strong {
    font-size: 15px;
  }
  .legal-card-header {
    padding: 20px;
  }
  .legal-card-body {
    padding: 22px 18px;
    font-size: 14.5px;
  }
  .legal-card-title-group h1 {
    font-size: 21px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   About Page Custom Rich Styles (Matching +about.html)
   ========================================================================== */
.about-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: right;
  position: relative;
  z-index: 10;
}

.about-header {
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.about-header-icon {
  background: #dbeafe;
  color: #1d4ed8;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.about-header-title {
  font-size: 26px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.25;
  margin: 0;
}

.about-body {
  padding: 32px 40px;
  color: #334155;
  font-size: 17px;
  line-height: 1.85;
}

.about-intro-p {
  font-size: 17.5px;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 16px;
  text-align: justify;
}

.about-intro-p a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.about-intro-p a:hover {
  text-decoration: underline;
}

.about-intro-banner {
  background: #ecfdf5;
  color: #065f46;
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d1fae5;
  margin-top: 18px;
  margin-bottom: 30px;
  font-size: 16px;
}

.about-intro-banner i {
  font-size: 24px;
  color: #059669;
  flex-shrink: 0;
}

/* Stats 2-Grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-stat-box {
  background: #eff6ff;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #dbeafe;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.about-stat-num {
  display: block;
  font-size: 38px;
  font-weight: 900;
  color: #2563eb;
  line-height: 1.2;
  margin-bottom: 6px;
}

.about-stat-label {
  font-size: 17px;
  font-weight: 800;
  color: #1e3a8a;
}

/* Section Title */
.about-section-title {
  font-size: 22px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

/* 4 Feature Cards */
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.about-feat-card {
  background: #ffffff;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-top: 4px solid #3b82f6;
  transition: transform 0.2s;
}

.about-feat-card:hover {
  transform: translateY(-4px);
}

.about-feat-card.feat-emerald {
  border-top-color: #10b981;
}

.about-feat-card.feat-amber {
  border-top-color: #f59e0b;
}

.about-feat-card.feat-purple {
  border-top-color: #a855f7;
}

.about-feat-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: inline-block;
}

.about-feat-card .about-feat-icon.icon-blue { color: #3b82f6; }
.about-feat-card .about-feat-icon.icon-emerald { color: #10b981; }
.about-feat-card .about-feat-icon.icon-amber { color: #f59e0b; }
.about-feat-card .about-feat-icon.icon-purple { color: #a855f7; }

.about-feat-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.about-feat-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* Vision & Mission 2-Grid */
.about-vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.about-vm-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-vm-title {
  font-size: 22px;
  font-weight: 900;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.about-vm-title i {
  font-size: 28px;
}

.about-vm-text {
  font-size: 16px;
  line-height: 1.85;
  color: #475569;
  margin: 0;
  text-align: justify;
}

/* Dark Values Card with Watermark */
.about-values-card {
  background: #1e293b;
  color: #ffffff;
  padding: 32px;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.about-values-watermark {
  position: absolute;
  left: -20px;
  bottom: -20px;
  font-size: 140px;
  color: #334155;
  opacity: 0.35;
  pointer-events: none;
}

.about-values-title {
  font-size: 22px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.about-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.about-values-list li {
  font-size: 16px;
  line-height: 1.7;
  color: #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-values-list li i {
  color: #34d399;
  font-size: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}

.about-values-list strong {
  color: #ffffff;
}

/* CTA Box */
.about-cta-box {
  margin-top: 36px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-cta-title {
  font-size: 20px;
  font-weight: 900;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.about-cta-desc {
  font-size: 14.5px;
  color: #475569;
  margin-bottom: 20px;
}

.about-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-cta-blue {
  background: #2563eb;
  color: #ffffff !important;
  padding: 11px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-cta-blue:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-cta-outline {
  background: #ffffff;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe;
  padding: 11px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-cta-outline:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-2px);
}

/* Quick Nav Buttons */
.about-nav-strip {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.about-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
  text-decoration: none;
}

.about-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.about-nav-btn.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.about-nav-btn.primary:hover {
  background: #1d4ed8;
  color: #ffffff;
}

/* Responsive queries for about page */
@media (max-width: 992px) {
  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-header {
    padding: 18px 20px;
  }
  .about-header-title {
    font-size: 20px;
  }
  .about-body {
    padding: 22px 18px;
  }
  .about-stats-grid,
  .about-vm-grid,
  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-stat-num {
    font-size: 32px;
  }
  .about-values-card {
    padding: 24px 20px;
  }
  .about-vm-card {
    padding: 22px 18px;
  }
}
