/* ======================================================
   KHTC Professional Website
   Colors inspired by the KHTC logo:
   Yellow: #FDBF00
   Blue:   #5B9BD5
   Dark:   #11243D
   ====================================================== */

:root {
  --yellow: #FDBF00;
  --yellow-dark: #E4A900;
  --blue: #5B9BD5;
  --blue-dark: #2F6EA7;
  --dark: #11243D;
  --text: #26364A;
  --muted: #6D7D90;
  --light: #F6F9FD;
  --white: #FFFFFF;
  --border: #DCE6F2;
  --shadow: 0 24px 70px rgba(17, 36, 61, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 20px;
  background: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--dark);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  margin-bottom: 22px;
  font-weight: 900;
}

h2 {
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 900;
}

h3 {
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--dark);
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(253, 191, 0, 0.25);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(253, 191, 0, 0.32);
}

.btn-outline {
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-light {
  background: var(--white);
  color: var(--dark);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.full-width {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 230, 242, 0.85);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 210px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: var(--text);
  font-weight: 800;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 20px;
  background: var(--yellow);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--dark);
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 110px;
  background:
    radial-gradient(circle at 12% 25%, rgba(91, 155, 213, 0.17), transparent 32%),
    radial-gradient(circle at 88% 15%, rgba(253, 191, 0, 0.20), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F9FD 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-start: -120px;
  top: 140px;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(91, 155, 213, 0.16), rgba(253, 191, 0, 0.16));
  transform: rotate(28deg);
  border-radius: 60px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 54px;
}

.hero-lead {
  max-width: 690px;
  font-size: 1.2rem;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 14px;
  max-width: 620px;
}

.hero-metrics div {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  color: var(--dark);
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 2px dashed rgba(91, 155, 213, 0.22);
  pointer-events: none;
}

.hero-card-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 900;
  color: var(--blue-dark);
}

.pulse {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(253, 191, 0, 0.15);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.check-list li {
  position: relative;
  padding: 12px 38px 12px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 155, 213, 0.13);
  color: var(--blue-dark);
  font-size: 0.85rem;
}

.card-link {
  display: inline-flex;
  color: var(--blue-dark);
  font-weight: 900;
}

/* About */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.value-card {
  background: var(--light);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.value-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--yellow-dark);
  font-weight: 900;
  font-size: 1.3rem;
}

/* Programs */
.programs {
  background: var(--light);
}

.section-head {
  text-align: center;
  max-width: 850px;
}

.section-head .eyebrow::before {
  display: none;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(17, 36, 61, 0.12);
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(253, 191, 0, 0.18), rgba(91, 155, 213, 0.16));
  margin-bottom: 16px;
  font-size: 1.45rem;
}

.program-card ul {
  margin: 16px 0 0;
  padding: 0 20px 0 0;
  color: var(--text);
  font-weight: 700;
}

.program-card li {
  margin-bottom: 6px;
}


/* Contact */
.contact {
  background:
    linear-gradient(135deg, rgba(17, 36, 61, 0.96), rgba(47, 110, 167, 0.96)),
    radial-gradient(circle at top left, rgba(253, 191, 0, 0.25), transparent 36%);
  color: var(--white);
}

.contact h2,
.contact h3,
.contact .eyebrow {
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact .eyebrow::before {
  background: var(--yellow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
}

.contact-card strong {
  display: block;
  color: var(--yellow);
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--white);
  font-weight: 800;
  direction: ltr;
  display: inline-block;
}

.contact-form {
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 155, 213, 0.12);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted) !important;
  font-size: 0.92rem;
  text-align: center;
}

/* Footer */
.footer {
  padding: 54px 0 26px;
  background: #09182A;
  color: var(--white);
}

.footer p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-logo {
  max-width: 220px;
  background: var(--white);
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 16px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
}

/* Responsive */
@media (max-width: 980px) {
  .desktop-only {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 84px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--border);
  }

  .nav-menu li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: block;
    padding: 14px;
  }

  .hero-grid,
  .split,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand img {
    width: 180px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 68px 0;
  }

  .navbar {
    min-height: 76px;
  }

  .nav-menu {
    top: 76px;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    padding: 70px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-metrics,
  .programs-grid,
  .value-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .contact-form {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Language switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  min-width: 48px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-dark);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-toggle:hover {
  background: rgba(91, 155, 213, 0.1);
  border-color: var(--blue);
}

html[dir="ltr"] body {
  font-family: "Inter", "Cairo", Arial, sans-serif;
}

html[dir="ltr"] .eyebrow::before {
  order: -1;
}

html[dir="ltr"] .nav-link::after {
  left: 0;
  right: auto;
}

html[dir="ltr"] .check-list li {
  padding: 12px 0 12px 38px;
}

html[dir="ltr"] .check-list li::before {
  left: 0;
  right: auto;
}

html[dir="ltr"] .program-card ul {
  padding: 0 0 0 20px;
}

html[dir="ltr"] .contact-card a {
  direction: ltr;
}

@media (max-width: 980px) {
  .header-actions {
    margin-inline-start: auto;
  }
}
