main {
  position: relative;
  z-index: 2;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  padding: 0 20px;
  gap: 12px;
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1f2937;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.nav-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-brand-title {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.5px;
  color: #1e293b;
  white-space: nowrap;
  line-height: 1.25;
}

.nav-brand-subtitle {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.3;
}

.nav-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 22px);
  flex: 1;
  min-width: 0;
}

.nav-link {
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  font-weight: 600;
  color: #4b5563;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

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

.navbar .btn.nav-auth-btn,
.nav-auth-btn {
  padding: 8px 14px;
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  min-height: 38px;
}

.navbar .btn.nav-admission-btn,
.nav-admission-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
  min-height: 38px;
}

#hero,
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 28px) !important;
  padding-bottom: 40px !important;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(254, 243, 199, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.38;
  letter-spacing: -0.5px;
  color: #111827;
  text-wrap: balance;
  max-width: 100%;
}

.hero-title-accent {
  display: inline-block;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.16rem);
  color: #4b5563;
  max-width: 680px;
  line-height: 1.88;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-cta-btn,
.hero-secondary-btn {
  padding: 13px 26px;
  font-size: 0.95rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hero-trust-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-trust-item svg {
  flex-shrink: 0;
}

footer,
.footer {
  position: relative;
  z-index: 2;
  background: #fffaf5;
  border-top: 1px solid rgba(249, 115, 22, 0.18);
  padding-top: 80px !important;
  padding-bottom: 40px !important;
  margin-top: 80px !important;
  box-sizing: border-box;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr 1.05fr 1.25fr;
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-trust-strip {
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 18px;
  padding: 14px 22px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.06);
}

.footer-trust-pillars {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1;
}

.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.footer-trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enamad-trust-badge {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(249, 115, 22, 0.24);
  border-radius: 16px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -6px rgba(249, 115, 22, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.enamad-trust-badge img {
  width: 78px !important;
  height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
  object-fit: contain;
  display: block;
}

.enamad-trust-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 12px 24px -8px rgba(249, 115, 22, 0.22);
}

.footer-col-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #1f2937;
  position: relative;
  padding-bottom: 8px;
  white-space: nowrap;
}

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

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

.footer-link-item {
  color: #4b5563;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-link-item:hover {
  color: var(--accent-primary);
  transform: translateX(-4px);
}

.footer-bottom-bar {
  padding-top: 25px;
  border-top: 1px solid rgba(249, 115, 22, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.86rem;
  color: #6b7280;
}

@media (max-width: 1180px) {
  .nav-container {
    padding: 0 16px;
    gap: 8px;
  }

  .nav-brand {
    gap: 8px;
  }

  .nav-brand-logo {
    height: 38px;
  }

  .nav-brand-title {
    font-size: 1rem;
  }

  .nav-brand-subtitle {
    font-size: 0.58rem;
  }

  .nav-links {
    gap: 11px;
  }

  .nav-link {
    font-size: 0.79rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .navbar .btn.nav-auth-btn,
  .nav-auth-btn {
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .navbar .btn.nav-admission-btn,
  .nav-admission-btn {
    padding: 7px 13px;
    font-size: 0.8rem;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  .container {
    padding: 0 14px;
  }

  .nav-container {
    gap: 8px;
    padding: 0 12px;
    flex-wrap: nowrap;
  }

  .nav-brand {
    gap: 8px;
  }

  .nav-brand-logo {
    height: 36px;
    width: 36px;
  }

  .nav-brand-title {
    font-size: 0.95rem;
  }

  .nav-brand-subtitle {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-outline,
  .nav-auth-btn {
    display: inline-flex !important;
    padding: 7px 10px !important;
    font-size: 0.76rem !important;
    border-radius: 9px !important;
    gap: 4px !important;
    min-height: 36px;
  }

  .nav-auth-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .nav-admission-btn {
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 9px !important;
    min-height: 36px;
  }

  #hero,
  .hero-section {
    padding-top: calc(var(--header-height) + 18px) !important;
    padding-bottom: 32px !important;
    min-height: auto;
  }

  .hero-content {
    gap: 14px;
  }

  .hero-title {
    font-size: clamp(1.36rem, 5.4vw, 1.9rem);
    line-height: 1.45;
  }

  .hero-title-accent {
    display: block;
    white-space: nowrap;
    margin-top: 2px;
  }

  .hero-desc {
    font-size: 0.86rem;
    line-height: 1.78;
    padding: 0 4px;
    text-wrap: pretty;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
  }

  .hero-actions > :first-child {
    grid-column: 1 / -1;
  }

  .hero-actions .btn,
  .hero-cta-btn,
  .hero-secondary-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 10px;
    font-size: clamp(0.74rem, 3.1vw, 0.88rem);
    border-radius: 12px;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero-actions > :first-child.btn,
  .hero-cta-btn {
    min-height: 48px;
    font-size: 0.94rem;
  }

  .hero-trust-bar {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-top: 6px;
    background: #fffaf5;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 14px;
    padding: 11px 14px;
    box-sizing: border-box;
  }

  .hero-trust-item {
    font-size: 0.78rem;
    color: #475569;
    white-space: nowrap;
    text-align: right;
    line-height: 1.45;
    width: 100%;
  }

  footer,
  .footer {
    padding-top: 48px !important;
    padding-bottom: 84px !important;
    margin-top: 36px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    margin-bottom: 32px;
  }

  .footer-col {
    align-items: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-about-text {
    max-width: 100% !important;
    text-align: center;
  }

  .footer-badge-row {
    justify-content: center;
  }

  .footer-col-title::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-link-item {
    justify-content: center;
  }

  .enamad-trust-badge {
    margin: 4px auto 0 !important;
  }

  .footer-trust-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px;
    gap: 14px;
  }

  .footer-trust-pillars {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-trust-item {
    font-size: 0.8rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    font-size: 0.8rem;
    gap: 10px;
  }
}

@media (max-width: 370px) {
  .nav-brand-logo {
    height: 32px;
    width: 32px;
  }

  .nav-brand-title {
    font-size: 0.86rem;
  }

  .nav-actions .btn-outline,
  .nav-auth-btn {
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
  }

  .nav-admission-btn {
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }

  .hero-title {
    font-size: 1.26rem;
  }
}