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

:root {
  --navy:    #0D1F3C;
  --steel:   #1E4070;
  --gold:    #C8922A;
  --gold-lt: #E8B84B;
  --cream:   #F7F4EE;
  --mid:     #E2DDD3;
  --text:    #1A1A2E;
  --muted:   #5A6070;
  --white:   #FFFFFF;
  --light-bg:#F0EDE6;
  --green:   #2E7D32;
  --orange:  #E65100;
  --blue:    #1565C0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Vazirmatn', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }

/* ── TOP BAR ── */
.top-bar {
  background: #07152A;
  padding: 7px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.top-bar a { color: rgba(255,255,255,0.55); text-decoration: none; }
.top-bar a:hover { color: var(--gold-lt); }
.top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-left  { display: flex; gap: 16px; align-items: center; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
  width: 38px; height: 38px; background: var(--gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--navy);
}
.nav-logo-text { color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.2; }
.nav-logo-sub  { color: var(--gold-lt); font-size: 11px; font-weight: 400; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 6px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); background: rgba(200,146,42,0.12); }
.nav-contact {
  background: var(--gold) !important; color: var(--navy) !important;
  font-weight: 700 !important; border-radius: 6px;
}
.nav-contact:hover { background: var(--gold-lt) !important; }
.nav-cta {
  background: rgba(255,255,255,0.1) !important; color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.18) !important; }

/* ── SEARCH BAR (hero) ── */
.search-wrap {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  display: flex; align-items: center;
  max-width: 640px; width: 100%;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.search-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 14px 22px; font-family: 'Vazirmatn', sans-serif;
  font-size: 15px; color: var(--white);
  direction: rtl; text-align: right;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-wrap button {
  background: var(--gold); border: none; cursor: pointer;
  padding: 12px 26px; font-family: 'Vazirmatn', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
  border-radius: 0 50px 50px 0;
  transition: background 0.2s;
}
.search-wrap button:hover { background: var(--gold-lt); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white); padding: 56px 48px 44px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(200,146,42,0.07); pointer-events: none;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.page-hero .eyebrow {
  display: inline-block; background: rgba(200,146,42,0.18); border: 1px solid var(--gold);
  color: var(--gold-lt); font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .05em; margin-bottom: 14px;
}
.page-hero h1 { font-size: 34px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.7; max-width: 560px; }

/* ── SECTION ── */
section { padding: 64px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head  { text-align: center; margin-bottom: 44px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.section-head p  { color: var(--muted); font-size: 15px; max-width: 540px; margin: 0 auto; line-height: 1.7; }
[id] { scroll-margin-top: 80px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--navy); padding: 12px 26px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid var(--navy); color: var(--navy); padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; transition: background .2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── MODE BADGE ── */
.mode-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.mode-online    { background: #E3F2FD; color: #1565C0; }
.mode-hybrid    { background: #FFF3E0; color: #E65100; }
.mode-offline   { background: #E8F5E9; color: #2E7D32; }
.mode-presence  { background: #F3E5F5; color: #6A1B9A; }

/* ── FILTER PILLS ── */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 20px 48px; background: var(--white);
  border-bottom: 1px solid var(--mid); justify-content: center;
}
.filter-pill {
  padding: 10px 26px; border-radius: 50px; border: 2px solid var(--mid);
  font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--muted); background: var(--white); cursor: pointer; transition: all .2s;
}
.filter-pill:hover  { border-color: var(--steel); color: var(--steel); }
.filter-pill.active { border-color: var(--navy); color: var(--white); background: var(--navy); }

/* ── COURSE CARDS ── */
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.course-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--mid); transition: box-shadow .25s, transform .2s;
}
.course-card:hover { box-shadow: 0 8px 32px rgba(13,31,60,.14); transform: translateY(-3px); }
.course-card-header { background: linear-gradient(135deg, var(--navy), var(--steel)); padding: 20px 18px 16px; }
.course-tag {
  display: inline-block; background: rgba(200,146,42,.22); color: var(--gold-lt);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; margin-bottom: 7px;
}
.course-card-header h3 { color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.4; }
.course-card-body { padding: 16px 18px; }
.course-meta { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.course-meta-row { display: flex; justify-content: space-between; font-size: 12px; }
.meta-label { color: var(--muted); }
.meta-val   { font-weight: 600; color: var(--navy); }
.course-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; border-top: 1px solid var(--mid); padding-top: 10px; }
.badge-row  { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.badge { background: #EFF3FA; color: var(--steel); font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.course-footer { border-top: 1px solid var(--mid); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.course-price { font-size: 13px; font-weight: 800; color: var(--navy); }
.course-price small { font-size: 10px; font-weight: 400; color: var(--muted); display: block; }
.btn-enroll {
  background: var(--gold); color: var(--navy); padding: 7px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif; transition: background .2s;
}
.btn-enroll:hover { background: var(--gold-lt); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--mid); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: var(--navy); }
thead th { color: var(--white); font-size: 13px; font-weight: 600; padding: 13px 16px; text-align: right; white-space: nowrap; }
thead th:first-child { color: var(--gold-lt); }
tbody tr { border-bottom: 1px solid var(--mid); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #F9F7F2; }
tbody td { font-size: 13px; padding: 12px 16px; color: var(--text); }
tbody td:first-child { color: var(--muted); font-weight: 600; font-size: 12px; }
.status-done     { background:#E8F5E9; color:#2E7D32; font-size:11px; font-weight:700; padding:3px 10px; border-radius:12px; white-space:nowrap; }
.status-upcoming { background:#FFF3E0; color:#E65100; font-size:11px; font-weight:700; padding:3px 10px; border-radius:12px; white-space:nowrap; }
.status-open     { background:#E3F2FD; color:#1565C0; font-size:11px; font-weight:700; padding:3px 10px; border-radius:12px; white-space:nowrap; }
.status-full     { background:#FFEBEE; color:#C62828; font-size:11px; font-weight:700; padding:3px 10px; border-radius:12px; white-space:nowrap; }

/* ── INSTRUCTOR CARDS ── */
.instructors-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.instructor-card {
  background: var(--white); border-radius: 14px; padding: 24px 16px 18px;
  text-align: center; border: 1px solid var(--mid); transition: box-shadow .2s;
}
.instructor-card:hover { box-shadow: 0 6px 24px rgba(13,31,60,.1); }
.instructor-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px;
  object-fit: cover; border: 3px solid var(--mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: var(--white);
  overflow: hidden;
}
.instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.instructor-name  { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.instructor-title { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.instructor-tags  { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.instructor-tag { background: var(--cream); color: var(--steel); font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 12px; border: 1px solid var(--mid); }

/* ── BRANDS CAROUSEL ── */
.brands-section { background: var(--white); padding: 48px; border-top: 1px solid var(--mid); }
.brands-title { text-align: right; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 24px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.brands-track-wrap { max-width: 1100px; margin: 0 auto; position: relative; }
.brands-track {
  display: flex; gap: 36px; align-items: center; overflow: hidden;
  padding: 20px 0;
}
.brand-item {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  height: 56px; min-width: 120px; padding: 0 16px;
  filter: grayscale(1); opacity: .6; transition: all .3s;
}
.brand-item:hover { filter: grayscale(0); opacity: 1; }
.brand-item .brand-name {
  font-size: 14px; font-weight: 700; color: var(--navy);
  border: 2px solid var(--mid); border-radius: 8px; padding: 8px 16px;
  white-space: nowrap;
}
.brands-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--white); border: 1px solid var(--mid); border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); z-index: 2; font-size: 14px;
  transition: background .2s;
}
.brands-nav:hover { background: var(--navy); color: var(--white); }
.brands-prev { right: -18px; }
.brands-next { left: -18px; }

/* ── CALENDAR PAGE ── */
.cal-category-bar {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; margin-bottom: 20px;
}
.cal-cat-btn {
  padding: 8px 18px; border-radius: 20px; border: none; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif; font-size: 13px; font-weight: 600;
  background: var(--cream); color: var(--muted); transition: all .2s;
}
.cal-cat-btn.active, .cal-cat-btn:hover { background: var(--navy); color: var(--white); }
.cal-cat-btn.gold { background: var(--navy); color: var(--white); }

/* ── FORM ── */
.form-group { margin-bottom: 16px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--mid); border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif; font-size: 14px; color: var(--text);
  background: var(--cream); outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--steel); }
.form-group textarea { resize: vertical; min-height: 90px; }
.btn-submit {
  width: 100%; background: var(--navy); color: var(--white); border: none; padding: 13px;
  border-radius: 8px; font-family: 'Vazirmatn', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s; margin-top: 6px;
}
.btn-submit:hover { background: var(--steel); }

/* ── FOOTER ── */
footer { background: #070F1F; color: rgba(255,255,255,.6); padding: 52px 48px 0; }
.footer-main {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-top: 14px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a { display:block; color: rgba(255,255,255,.55); text-decoration:none; font-size:13px; margin-bottom:9px; transition:color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  max-width: 1100px; margin: 0 auto;
  font-size: 12px;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-rights {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-legal-text {
  font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.7; padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 4px;
}
.cert-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-badge {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 5px 10px; font-size: 11px; color: rgba(255,255,255,.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .top-bar { display: none; }
  section { padding: 44px 20px; }
  .page-hero { padding: 44px 20px 36px; }
  .courses-grid { grid-template-columns: 1fr; }
  .instructors-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .filter-bar { padding: 16px 20px; }
  .brands-section { padding: 36px 20px; }
}
