@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --primary: #f9fafb;
  --secondary: #008236;
  --tertiary: #009966;
  --light-green: #ecfdf5;
  --dark: #0a1f0e;
  --dark-green: #005a24;
  --gold: #c9a84c;
  --gold-light: #f0d98a;
  --text: #1a2e1e;
  --text-muted: #4a6b52;
  --border: #d1fae5;
  --shadow: rgba(0, 130, 54, 0.12);
  --shadow-deep: rgba(0, 130, 54, 0.25);
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── GEOMETRIC PATTERN ─── */
.geo-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,130,54,0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0,153,102,0.05) 0%, transparent 50%);
}

/* ─── TOUCH & MOBILE GLOBALS ─── */
button, a, .filter-tab, .nav-links a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, .btn-primary, .btn-outline, .filter-tab {
  min-height: 44px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--secondary);
  box-shadow: 0 2px 20px var(--shadow);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.nav-top {
  background: var(--dark);
  padding: 6px 0;
}

.nav-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.nav-top a {
  color: var(--gold-light);
  text-decoration: none;
  margin-left: 16px;
}

.nav-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo img {
  width: 56px;
  height: 56px;
}

.nav-brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.nav-brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--light-green);
  color: var(--secondary);
}

.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 8px 30px var(--shadow-deep);
  padding: 8px;
  z-index: 100;
}

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
  font-size: 22px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 80, 40, 0.8)),
    url("/images/bakwata_hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 520px;
  min-height: max(520px, -webkit-fill-available);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px),
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px);
}

.hero-arabic-bg {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Amiri', serif;
  font-size: 300px;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--gold-light);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hero h2 {
  font-family: 'Amiri', serif;
  font-size: 48px;
  color: white;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero h3 {
  font-size: 20px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  color: white;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,130,54,0.4);
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,130,54,0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
  cursor: pointer;
  min-height: 44px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

.stat-card .number {
  font-family: 'Amiri', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ─── SECTIONS ─── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light-green);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--light-green);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-tag.white {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.section-title {
  font-family: 'Amiri', serif;
  font-size: 38px;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

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

/* ─── CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px var(--shadow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-deep);
  border-color: var(--tertiary);
}

.card-icon-wrap {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.card-body .card-link:hover {
  text-decoration: underline;
}

/* ─── NEWS CARD ─── */
.news-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-deep);
}

.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark-green), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.news-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
}

.news-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--gold);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}

.news-card-content {
  padding: 20px;
}

.news-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.news-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── INSTITUTION CARD ─── */
.inst-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.inst-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), var(--tertiary));
}

.inst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px var(--shadow-deep);
}

.inst-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.inst-icon {
  width: 48px;
  height: 48px;
  background: var(--light-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.inst-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.inst-badge {
  display: inline-block;
  font-size: 11px;
  background: var(--light-green);
  color: var(--secondary);
  padding: 3px 9px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 3px;
}

.inst-info {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inst-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inst-info a {
  color: var(--secondary);
  text-decoration: none;
}

/* ─── LEADER CARD ─── */
.leader-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow-deep);
}

.leader-avatar img {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px var(--shadow-deep);
}

.leader-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.leader-card .role {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
}

/* ─── SERVICES LIST ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
}

.service-item:hover {
  background: var(--light-green);
  border-color: var(--secondary);
  transform: translateX(4px);
}

.service-item .icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: var(--light-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-item:hover .icon {
  background: white;
}

.service-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.service-item p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── INFO BOX ─── */
.info-box {
  background: linear-gradient(135deg, var(--dark), var(--dark-green));
  border-radius: 20px;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: 'ب';
  position: absolute;
  right: -10px;
  top: -30px;
  font-family: 'Amiri', serif;
  font-size: 200px;
  color: rgba(255,255,255,0.04);
}

.info-box h3 {
  font-family: 'Amiri', serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.info-box p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ─── CONTACT SECTION ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--light-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--secondary);
}

/* ─── FORM ─── */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--primary);
  transition: all 0.2s;
  outline: none;
  /* Prevent zoom on focus in iOS */
  font-size: max(16px, 14px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0,130,54,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ─── TABLE ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.data-table th {
  background: var(--dark);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.data-table td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--light-green);
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: linear-gradient(135deg, var(--dark), var(--dark-green));
  padding: 40px 0 20px;
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--gold-light);
}

.breadcrumb-nav .sep {
  color: rgba(255,255,255,0.3);
}

.breadcrumb-nav .current {
  color: var(--gold-light);
  font-weight: 600;
}

.breadcrumb h1 {
  font-family: 'Amiri', serif;
  font-size: 36px;
  color: white;
  margin-bottom: 6px;
}

.breadcrumb p {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand h2 {
  font-family: 'Amiri', serif;
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.footer-brand .tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

.footer-col h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold-light);
  margin-bottom: 18px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ─── BADGES & TAGS ─── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: var(--light-green);
  color: var(--secondary);
}

.badge-gold {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.badge-dark {
  background: rgba(0,0,0,0.08);
  color: var(--text-muted);
}

/* ─── SEARCH BAR ─── */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 40px;
}

.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  outline: none;
  min-height: 44px;
}

.search-bar input:focus {
  border-color: var(--secondary);
}

.search-bar button {
  padding: 12px 22px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  transition: background 0.2s;
  min-height: 44px;
}

.search-bar button:hover {
  background: var(--dark-green);
}

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* ─── ADVANTAGES LIST ─── */
.advantage-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.advantage-item:last-child {
  border-bottom: none;
}

.advantage-check {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.advantage-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.advantage-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 40px 0;
}

/* ─── ALERT BOX ─── */
.alert {
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.alert-success {
  background: var(--light-green);
  border: 1px solid var(--border);
}

.alert .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.alert p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── PAGE SPECIFIC ─── */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.sidebar-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-card-head {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  padding: 18px 22px;
  color: white;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-card-body {
  padding: 20px 22px;
}

.sidebar-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
  min-height: 44px;
}

.sidebar-link-list a:hover {
  background: var(--light-green);
  color: var(--secondary);
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════ */

/* ─── 1280px — Large tablet / small desktop ─── */
@media (max-width: 1280px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-inner .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

/* ─── 1024px — Tablet landscape ─── */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-inner { gap: 36px; }
}

/* ─── 768px — Tablet portrait / large phone ─── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-links.open .dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: unset;
  }
  .nav-links.open .dropdown.open .dropdown-menu {
    display: block;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }
  .hero-stats { display: none; }
  .hero h2 { font-size: 32px; }
  .hero h3 { font-size: 17px; }

  /* Grids */
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  /* Spacing & typography */
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }

  /* Components */
  .info-box { padding: 28px 22px; }
  .info-box h3 { font-size: 22px; }
  .breadcrumb h1 { font-size: 26px; }

  /* Scrollable filter tabs */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab {
    scroll-snap-align: start;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Scrollable table */
  .data-table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ─── 600px — Mid mobile ─── */
@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .contact-card { padding: 20px; }
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }

  .info-box::before { display: none; }

  .search-bar {
    flex-direction: column;
  }
  .search-bar input,
  .search-bar button {
    width: 100%;
  }
}

/* ─── 480px — Small mobile (iPhone SE, budget Android) ─── */
@media (max-width: 480px) {
  /* Nav */
  .nav-logo img { width: 40px; height: 40px; }
  .nav-brand-text h1 { font-size: 13px; }
  .nav-brand-text span { display: none; }
  .nav-main { padding: 10px 16px; }

  /* Hero */
  .hero h2 { font-size: 24px; }
  .hero h3 { font-size: 15px; }
  .hero p { font-size: 14px; }
  .hero-inner { padding: 48px 16px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-tag { font-size: 11px; }
  .section-header { margin-bottom: 36px; }

  /* Cards */
  .stat-card .number { font-size: 30px; }
  .card-icon-wrap { padding: 20px; font-size: 28px; }
  .leader-avatar img { width: 110px; height: 110px; }

  /* Info box */
  .info-box { padding: 22px 18px; }

  /* Breadcrumb */
  .breadcrumb h1 { font-size: 22px; }
  .breadcrumb-inner { padding: 0 16px; }

  /* Footer */
  .footer-inner { padding: 0 16px 40px; }

  /* Layout */
  .container { padding: 0 16px; }
}