:root {
  --green-dark: #123f2d;
  --green-mid: #176b4b;
  --green-light: #289766;
  --gold-main: #edb521;
  --gold-light: #ffd45b;
  --gold-pale: #fff1c7;
  --off-white: #f5f7f4;
  --text-dark: #182720;
  --text-muted: #52645b;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
  letter-spacing: 0;
}

button, input, select, textarea { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-main); outline-offset: 3px; }

.container { max-width: 1220px; }
.navbar {
  min-height: 76px;
  padding: 0.65rem 0;
  background: #fff !important;
  border-bottom: 1px solid #e2e9e2;
  box-shadow: none;
}
.navbar.scrolled { padding: 0.55rem 0; box-shadow: 0 6px 24px rgba(19, 47, 33, 0.07); }
.navbar-brand { margin: 0; }
.brand-with-logo { gap: 0.65rem; }
.nav-logo-container {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: #fff;
  border: 1px solid #e5e9df;
  border-radius: 6px;
}
.nav-logo { border-radius: 3px; }
.brand-text { color: var(--green-dark); font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.navbar .nav-link {
  color: #31463a !important;
  padding: 0.5rem 0.75rem !important;
  margin: 0 0.1rem;
  border-radius: 4px;
  font-size: 0.94rem;
  font-weight: 700;
}
.navbar .nav-link:hover, .navbar .nav-link:focus-visible { color: var(--green-mid) !important; background: #edf4ee; }
.about-team-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 36px 0 18px;
  padding: 28px 0;
  border-top: 1px solid #cddfd1;
  border-bottom: 1px solid #cddfd1;
}
.about-team-cta span { color: var(--green-mid); font-size: .8rem; font-weight: 800; }
.about-team-cta h3 { margin: 4px 0 7px; color: var(--green-dark); font-size: 1.45rem; font-weight: 800; }
.about-team-cta p { margin: 0; color: var(--text-muted); }
.about-team-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--green-dark); border-radius: 5px; color: var(--green-dark); text-decoration: none; font-weight: 800; white-space: nowrap; }
.about-team-cta a:hover { background: var(--green-dark); color: #fff; }
@media (min-width: 992px) {
  .navbar > .container { position: relative; }
  .navbar-collapse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max-content;
    flex-grow: 0;
    transform: translate(-50%, -50%);
  }
  .navbar-nav { margin: 0 !important; gap: 0.35rem; }
}
.navbar-toggler { border: 1px solid #d5e0d6; border-radius: 5px; padding: 0.35rem 0.55rem; }
.user-menu { padding: 0.2rem !important; }
.user-avatar { width: 36px; height: 36px; border: 0; background: #e9f3ec; color: var(--green-dark); box-shadow: none; }
.dropdown-menu { border: 1px solid #e1e7df; border-radius: 6px; border-top: 2px solid var(--gold-main); box-shadow: 0 12px 30px rgba(14, 37, 25, 0.12); }
.dropdown-item { border-radius: 4px; }
.dropdown-item:hover { background: #edf4ee; color: var(--green-dark) !important; transform: none; }

.hero-section {
  height: min(78svh, 680px);
  min-height: 510px;
  background: #19392e;
  isolation: isolate;
}
.hero-section::before { content: none; }
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: linear-gradient(270deg, rgba(9, 29, 21, 0.89) 0%, rgba(9, 29, 21, 0.75) 32%, rgba(9, 29, 21, 0.29) 66%, rgba(9, 29, 21, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-content-overlay { z-index: 2; padding: 2.5rem 0; }
.hero-text-block { max-width: 640px; animation: heroFadeIn 0.65s ease both; }
.hero-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.8rem;
  padding: 0.45rem 0.75rem;
  background: rgba(237, 181, 33, 0.12);
  border: 1px solid rgba(255, 212, 91, 0.5);
  border-radius: 3px;
  color: #ffdc73;
  font-size: 0.86rem;
}
.hero-intro { margin: 0 0 0.2rem; color: #f2f5ef; font-size: 1.12rem; font-weight: 600; }
.hero-title-new {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: 4.3rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
  text-shadow: none;
}
.hero-subtitle-new { max-width: 590px; color: #eef2ec; font-size: 1.17rem; line-height: 1.85; margin-bottom: 2rem; }
.hero-actions { gap: 0.75rem; }
.hero-btn-primary, .hero-btn-secondary, .category-btn {
  min-height: 52px;
  padding: 0.7rem 1.55rem;
  border-radius: 5px;
  font-size: 0.96rem;
  font-weight: 800;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-btn-primary { color: #143e2c; background: var(--gold-main); }
.hero-btn-primary:hover { color: #102b1f; background: var(--gold-light); transform: translateY(-2px); box-shadow: none; }
.hero-btn-secondary { color: #fff; border: 1px solid rgba(255,255,255,0.75); background: rgba(255,255,255,0.06); }
.hero-btn-secondary:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.stats-section { padding: 0; background: #fff; border: 0; border-bottom: 1px solid #e4eae3; }
.hero-stats-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 auto; padding: 1.25rem 0; border: 0; }
.hero-stat-item { padding: 0.35rem 1.5rem; text-align: center; border-inline-end: 1px solid #e3e9e3; }
.hero-stat-item:last-child { border-inline-end: 0; }
.hero-stat-num { margin-bottom: 0.1rem; color: var(--green-dark); font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.hero-stat-label { color: var(--text-muted); font-size: 0.85rem; }

.about-section, .features-section, .categories-section { padding: 6rem 0; }
.about-section { background: var(--off-white); }
.features-section { background: #fff; }
.categories-section { background: #edf2ed; }
.section-header { margin-bottom: 3.2rem !important; }
.section-title { color: var(--green-dark); font-size: 2.55rem; line-height: 1.35; font-weight: 800; }
.section-title::after { width: 44px; height: 4px; right: calc(50% - 22px); bottom: -13px; background: var(--gold-main); border-radius: 0; }
.section-subtitle { margin-bottom: 0; color: var(--text-muted); font-size: 1rem; }
.about-content h3 { font-size: 1.55rem; }
.about-content .lead { font-size: 1.04rem; line-height: 2; }
.feature-item { margin-bottom: 0.35rem !important; padding: 0.45rem 0; border-radius: 0; }
.feature-item:hover { transform: none; background: transparent; }
.feature-item i { color: var(--green-mid) !important; }
.locations-section { padding-top: 1rem; border-top: 1px solid #dbe4dc; }
.location-card { background: #fff; border: 1px solid #e1e8e0 !important; border-inline-start: 4px solid var(--green-mid) !important; border-radius: 4px !important; }
.location-card + .location-card { border-inline-start-color: var(--gold-main) !important; }
.location-card:hover { background: #fff !important; transform: none; }
.about-section .icon-card {
  height: 100%;
  padding: 1.45rem 1.15rem;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #cddbd0 !important;
  border-radius: 0;
  text-align: right;
  box-shadow: none !important;
}
.about-section .icon-card:hover { transform: none; border-color: var(--green-mid) !important; box-shadow: none !important; }
.about-section .icon-wrapper { margin-bottom: 0.65rem !important; }
.about-section .icon-card:hover .icon-wrapper { transform: none; }
.about-section .feature-icon {
  width: 46px; height: 46px; margin: 0 0 0.8rem;
  border-radius: 5px; background: #e3efe6; color: var(--green-dark);
  font-size: 1.35rem; box-shadow: none;
}
.about-section .icon-card p { font-size: 0.9rem; }
.about-section .icon-card .badge { padding: 0.27rem 0.45rem; border-radius: 3px; font-size: 0.72rem; font-weight: 600; }
.contact-band { background: #e5eee6; border-top: 2px solid var(--gold-main); border-radius: 0; box-shadow: none; scroll-margin-top: 100px; }
.contact-band h4 { font-size: 1.35rem; }
.contact-item { padding: 0.55rem 0.8rem; border-radius: 3px; background: rgba(255,255,255,0.68); }
.contact-item:hover { transform: none; box-shadow: none; background: #fff; }

.features-section .row.g-4 { row-gap: 2.1rem !important; }
.feature-card {
  height: 100%; padding: 1.35rem 1rem 0.8rem;
  border: 0; border-top: 2px solid #dae4dc;
  border-radius: 0; background: transparent;
  box-shadow: none; text-align: right;
}
.feature-card::before { content: none; }
.feature-card:hover { transform: none; box-shadow: none; border-top-color: var(--green-mid); }
.feature-card .feature-icon {
  width: 52px; height: 52px; margin: 0 0 1rem;
  background: #e6f0e7; color: var(--green-dark);
  border-radius: 5px; box-shadow: none; font-size: 1.45rem;
}
.feature-card:hover .feature-icon { transform: none; }
.feature-title { margin-bottom: 0.6rem; font-size: 1.2rem; }
.feature-text { font-size: 0.96rem; line-height: 1.9; }

.category-card { display: flex; flex-direction: column; height: 100%; margin: 0; border: 1px solid #dbe5db; border-radius: 6px; box-shadow: none; text-align: right; }
.category-card__media { position: relative; display: block; overflow: hidden; color: #fff; }
.category-card__media:focus-visible { outline: 3px solid var(--gold-main); outline-offset: -3px; }
.category-card::before { content: none; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(19, 54, 34, 0.09); }
.category-img { height: 280px; object-fit: cover; }
.category-card:hover .category-img { transform: none; }
.category-img-overlay {
  align-items: flex-end; justify-content: flex-start;
  padding: 1.2rem 1.45rem;
  background: linear-gradient(to top, rgba(10, 34, 24, 0.8), transparent 55%);
  font-size: 1.5rem; text-shadow: none;
}
.category-content { display: flex; flex: 1; flex-direction: column; padding: 1.6rem; }
.category-title { margin-bottom: 0.7rem; font-size: 1.45rem; }
.category-title a { color: inherit; text-decoration: none; }
.category-title a:hover { color: var(--green-mid); }
.category-places { padding: 0; margin-bottom: 0.8rem; color: #856214; border: 0; background: transparent; border-radius: 0; font-size: 0.89rem; }
.category-card:hover .category-places { color: #856214; background: transparent; border-color: transparent; }
.category-description { margin-bottom: 1.35rem; font-size: 0.95rem; }
.category-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--green-dark); color: #fff; }
.category-btn::after { content: none; }
.category-btn:hover { background: var(--green-mid); color: #fff; transform: translateY(-2px); box-shadow: none; }
.category-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: auto; }
.category-actions .category-btn { gap: .5rem; padding-inline: 1.2rem; }
.category-register { min-height: 52px; padding: .7rem 1.2rem; border: 1px solid var(--green-dark); border-radius: 5px; color: var(--green-dark); background: transparent; font-size: .96rem; font-weight: 800; cursor: pointer; }
.category-register:hover { color: #fff; background: var(--green-dark); }

.modal-content { border: 1px solid #e1e8e1; border-radius: 8px; box-shadow: 0 24px 60px rgba(11, 35, 23, 0.2); }
.modal-header { padding: 1.25rem 1.6rem; background: var(--green-dark); border: 0; border-radius: 7px 7px 0 0; }
.modal-title { font-size: 1.28rem; }
.modal-body { padding: 1.6rem; }
.modal-footer { padding: 1rem 1.6rem 1.5rem; }
.modal .card, .modal .rounded-4 { border-radius: 7px !important; }
.modal .card { border: 1px solid #e2e9e1 !important; box-shadow: none !important; }
.form-control, .form-select, .input-group-text { border-radius: 5px; border-color: #d6e0d6; }
.form-control:focus, .form-select:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(23, 107, 75, 0.14); }
.training-program-preview { background: #f4f8f4; border-color: #d7e5d8; border-radius: 5px; }
.training-preview-item { border-radius: 4px; }
.btn-register, .btn-primary, .btn-success { background: var(--green-dark); border-color: var(--green-dark); color: #fff; border-radius: 5px; box-shadow: none; }
.btn-register:hover, .btn-primary:hover, .btn-success:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; box-shadow: none; transform: none; }

footer { padding: 4rem 0 1.4rem; background: #101e1b; border: 0; }
footer h5 { color: #f2c34f; font-size: 1rem; }
footer a:hover { color: #fff; transform: none; }
.social-link:hover { transform: none; }
.copyright { border-color: #354a3e; }

@media (max-width: 991px) {
  .navbar-collapse { padding: 0.7rem 0 0.25rem; border-top: 1px solid #e6ece5; margin-top: 0.7rem; }
  .navbar-nav { align-items: stretch; }
  .navbar .nav-link { margin: 0.1rem 0; }
  .hero-section { min-height: 500px; }
}

@media (max-width: 767px) {
  .about-team-cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .about-team-cta a { align-self: flex-start; }
  .navbar { min-height: 66px; }
  .brand-text { font-size: 1.08rem; }
  .nav-logo-container { width: 41px; height: 41px; }
  .hero-section { height: min(74svh, 570px); min-height: 490px; padding: 0; }
  .hero-photo { object-position: 31% center; }
  .hero-section::after { background: linear-gradient(180deg, rgba(6,25,17,0.60), rgba(6,25,17,0.78)); }
  .hero-content-overlay { padding: 2rem 0; }
  .hero-text-block { max-width: 100%; text-align: right; }
  .hero-badge { margin-bottom: 1.1rem; }
  .hero-intro { font-size: 1rem; }
  .hero-title-new { font-size: 2.65rem; margin-bottom: 0.7rem; }
  .hero-subtitle-new { max-width: 100%; margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.8; }
  .hero-actions { justify-content: flex-start; }
  .hero-btn-primary, .hero-btn-secondary { width: auto; padding: 0.65rem 1rem; }
  .hero-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.8rem 0; row-gap: 0.4rem; }
  .hero-stat-item:nth-child(2) { border-inline-end: 0; }
  .hero-stat-num { font-size: 1.45rem; }
  .hero-stat-label { font-size: 0.76rem; }
  .about-section, .features-section, .categories-section { padding: 4.4rem 0; }
  .section-title { font-size: 1.95rem; }
  .section-header { margin-bottom: 2.5rem !important; }
  .about-section .row.g-4 { gap: 0 !important; }
  .about-section .icon-card { padding: 1.1rem 0.5rem; }
  .category-img { height: 220px; }
}

@media (max-width: 420px) {
  .hero-title-new { font-size: 2.3rem; }
  .hero-actions { gap: 0.5rem; }
  .hero-btn-primary, .hero-btn-secondary { font-size: 0.88rem; min-height: 47px; }
  .hero-stat-item { padding: 0.3rem 0.55rem; }
  .contact-item { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text-block { animation: none; }
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}
