/* =========================================
   ТЖКАК — Туркестанский аграрный колледж
   Styles: Bootstrap 5.3 + custom
   Primary (green) #2E7D32 | Secondary (blue) #1565C0
   ========================================= */

:root {
  --green: #2e7d32;
  --green-600: #276c2b;
  --green-700: #1f5723;
  --green-50: #e8f3e9;
  --green-100: #d2e7d4;

  --blue: #1565c0;
  --blue-600: #0f56ab;
  --blue-50: #e7f0fb;

  --accent: #f6a623;
  --accent-50: #fff4e0;

  --ink: #1a2130;
  --ink-soft: #465063;
  --muted: #6b7280;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(18,32,52,.06);
  --shadow: 0 8px 24px rgba(18,32,52,.08);
  --shadow-lg: 0 20px 48px rgba(18,32,52,.12);

  --ease: cubic-bezier(.4,0,.2,1);

  --header-h: 84px;
  --bottomnav-h: 68px;
}

/* ----- Base ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 991.98px) {
  body { padding-bottom: var(--bottomnav-h); }
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  letter-spacing: -.01em;
}
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green); }

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

.section-padding { padding: 72px 0; }
@media (max-width: 767.98px) { .section-padding { padding: 48px 0; } }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin: 0 0 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.text-start.section-title { text-align: left; }
.text-start.section-sub { text-align: left; }
.eyebrow {
  display: inline-block; padding: 6px 14px; background: var(--green-50);
  color: var(--green); border-radius: 999px; font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px;
}

/* ----- Buttons ----- */
.btn-primary-green {
  background: var(--green); color: #fff; border: none; border-radius: 999px;
  padding: 12px 26px; font-weight: 600; letter-spacing: .01em;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 6px 16px rgba(46,125,50,.25);
}
.btn-primary-green:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46,125,50,.35); }
.btn-primary-green:active { transform: translateY(0); }

.btn-outline-blue {
  background: transparent; color: var(--blue); border: 2px solid var(--blue);
  border-radius: 999px; padding: 10px 24px; font-weight: 600;
  transition: all .25s var(--ease);
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ===============================================
   TOP LINE
   =============================================== */
.topline {
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.topline-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}
.topline-contacts {
  display: flex; align-items: center; gap: 22px;
  flex: 0 0 auto;
}
.topline-contacts a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-weight: 500;
}
.topline-contacts a i { color: var(--green); }
.topline-contacts a:hover { color: var(--green); }

.topline-search {
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  display: flex; align-items: center;
}
.topline-search i {
  position: absolute; left: 16px; color: var(--muted);
}
.topline-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.topline-search input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-50);
}

.topline-langs {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.flag-btn {
  background: transparent; border: 2px solid transparent; padding: 2px;
  border-radius: 6px; cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.flag-btn .fi {
  display: block; width: 28px; height: 20px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.flag-btn:hover { transform: translateY(-1px); }
.flag-btn.active { border-color: var(--green); }

/* ===============================================
   DESKTOP NAVBAR
   =============================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 1px 0 rgba(18,32,52,.03);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  flex: 0 0 auto;
}
.brand-logo {
  width: 54px; border-radius: 50%;
  object-fit: cover; background: #fff;
  border: 2px solid var(--green-100);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem; color: var(--green); letter-spacing: .02em;
}
.brand-text small { color: var(--muted); font-size: .78rem; font-weight: 500; }

.main-nav { flex: 1 1 auto; }
.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.nav-link {
  display: inline-flex; align-items: center;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600; font-size: .95rem;
  border-radius: 10px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-50); }

.nav-item.has-dropdown { position: relative; }
.dropdown-toggle-custom::after {
  content: "\f078"; /* fa chevron-down */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-left: 8px; font-size: .7rem;
  transition: transform .25s var(--ease);
}
.nav-item.has-dropdown:hover > .dropdown-toggle-custom::after { transform: rotate(-180deg); }
.nav-item.has-dropdown:hover > .nav-link { color: var(--green); background: var(--green-50); }

/* Desktop dropdown with intent delay via padding buffer */
.dropdown-menu-custom {
  position: absolute;
  top: 100%; left: 0;
  min-width: 260px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  /* Buffer for "safe hover" zone */
  margin-top: 12px;
}
.dropdown-menu-custom::before {
  content: ""; position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
  /* invisible bridge so cursor can travel without losing hover */
}
.nav-item.has-dropdown:hover > .dropdown-menu-custom,
.nav-item.has-dropdown:focus-within > .dropdown-menu-custom {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: .08s; /* small intent delay */
}

.dropdown-menu-custom li { position: relative; }
.dropdown-menu-custom li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 500; font-size: .93rem;
}
.dropdown-menu-custom li a:hover { background: var(--green-50); color: var(--green); }

/* Submenu (2nd level) */
.dropdown-menu-custom .has-sub > a::after {
  content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: .7rem; color: var(--muted);
  transition: transform .2s var(--ease);
}
.dropdown-menu-custom .has-sub:hover > a::after { transform: translateX(3px); color: var(--green); }
.submenu {
  position: absolute;
  top: -10px; left: calc(100% + 8px);
  min-width: 240px;
  padding: 10px; margin: 0; list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateX(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.submenu::before {
  content: ""; position: absolute;
  top: 0; left: -10px; width: 10px; height: 100%;
}
.dropdown-menu-custom .has-sub:hover > .submenu,
.dropdown-menu-custom .has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateX(0);
  transition-delay: .08s;
}
.submenu li a::after { content: none; }


.header-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.badge-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    transition: all .25s var(--ease);
    height: 50px;
}

.badge-logo img {
    height: 100%;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    /*opacity: .7;*/
    transition: all .25s var(--ease);
}

.badge-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: #fff;
    border-color: var(--green);
}

.badge-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* ===============================================
   MOBILE TOP BAR + BOTTOM NAV
   =============================================== */
.mobile-topbar {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mobile-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Unbounded', sans-serif;
  color: var(--green); font-weight: 700; font-size: .95rem;
}
.mobile-brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--green-100); }
.mobile-search { flex: 1; position: relative; display: flex; align-items: center; }
.mobile-search i { position: absolute; left: 12px; color: var(--muted); font-size: .85rem; }
.mobile-search input {
  width: 100%; padding: 8px 12px 8px 34px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); font-size: .88rem;
}
.mobile-search input:focus { outline: none; border-color: var(--green); background: #fff; }
.mobile-langs .fi { width: 24px; height: 18px; border-radius: 3px; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1030;
  height: var(--bottomnav-h);
  display: flex; align-items: stretch; justify-content: space-around;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(18,32,52,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 4px;
  color: var(--muted); font-size: .7rem; font-weight: 600;
  background: transparent; border: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.bottom-item i { font-size: 1.15rem; }
.bottom-item.active, .bottom-item:hover { color: var(--green); }
.bottom-item.active { transform: translateY(-2px); }
.bottom-item:active { color: var(--green-600); }

/* Mobile offcanvas menu (side drawer, full height) */
.mobile-offcanvas {
  width: min(88vw, 360px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mobile-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 20px;
}
.mobile-offcanvas .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-offcanvas .offcanvas-title {
  font-family: 'Unbounded', sans-serif; color: var(--green);
}
.mobile-menu-list {
  list-style: none; margin: 0; padding: 8px 0;
}
.mobile-menu-list .mm-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 1rem; font-weight: 600;
  background: transparent; border: none;
  border-radius: 12px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mobile-menu-list .mm-link:hover,
.mobile-menu-list .mm-link[aria-expanded="true"] {
  background: var(--green-50); color: var(--green);
}
.mm-chevron {
  font-size: .8rem;
  transition: transform .3s var(--ease);
  color: var(--muted);
}
.mm-toggle[aria-expanded="true"] .mm-chevron {
  transform: rotate(180deg);
  color: var(--green);
}
.mm-sub {
  list-style: none; margin: 0; padding: 6px 0 6px 14px;
  border-left: 2px solid var(--green-100);
  margin-left: 18px;
}
.mm-sub li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  border-radius: 8px;
}
.mm-sub li a:hover { background: var(--green-50); color: var(--green); }

/* Language selector inside mobile offcanvas */
.mm-langs {
  margin-top: auto;
  padding: 18px 4px 4px;
  border-top: 1px solid var(--line);
}
.mm-langs-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px; padding-left: 6px;
}
.mm-langs-row {
  display: flex; flex-direction: column; gap: 6px;
}
.mm-langs-row .flag-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.mm-langs-row .flag-btn .fi {
  width: 28px; height: 20px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  flex: 0 0 auto;
}
.mm-langs-row .flag-label {
  font-weight: 600; color: var(--ink); font-size: .95rem;
}
.mm-langs-row .flag-btn:hover {
  border-color: var(--green);
  background: var(--green-50);
}
.mm-langs-row .flag-btn.active {
  border-color: var(--green);
  background: var(--green-50);
}
.mm-langs-row .flag-btn.active .flag-label { color: var(--green); }

/* ===============================================
   HERO SLIDER
   =============================================== */
.hero { position: relative; }
.heroSwiper { width: 100%; height: clamp(420px, 70vh, 640px); }
.hero-slide {
  position: relative;
  display: flex; align-items: center;
  color: #fff;
  background-size: cover; background-position: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(31,87,35,.88) 0%, rgba(21,101,192,.62) 55%, rgba(0,0,0,.35) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 60px 16px;
}
.hero-tag {
  display: inline-block; padding: 6px 14px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.08;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: -.015em;
}
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,.92);
  max-width: 600px; margin: 0 0 28px;
}

.heroSwiper .swiper-pagination-bullet { background: #fff; opacity: .55; }
.heroSwiper .swiper-pagination-bullet-active { background: #fff; opacity: 1; width: 28px; border-radius: 4px; }
.heroSwiper .swiper-button-prev, .heroSwiper .swiper-button-next {
  color: #fff; background: rgba(0,0,0,.25); width: 48px; height: 48px; border-radius: 50%;
  backdrop-filter: blur(8px);
}
.heroSwiper .swiper-button-prev::after, .heroSwiper .swiper-button-next::after { font-size: 1rem; font-weight: 800; }
@media (max-width: 767.98px) {
  .heroSwiper .swiper-button-prev, .heroSwiper .swiper-button-next { display: none; }
}

/* ===============================================
   QUICK ACCESS
   =============================================== */
.qa-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  height: 100%;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.qa-card::before {
  content: ""; position: absolute;
  inset: auto -40px -40px auto; width: 180px; height: 180px;
  background: var(--green-50); border-radius: 50%;
  transition: transform .4s var(--ease);
}
.qa-card--blue::before { background: var(--blue-50); }
.qa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--green-100);
  color: var(--ink);
}
.qa-card:hover::before { transform: scale(1.15); }
.qa-card--blue:hover { border-color: #cfe0f6; }

.qa-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  font-size: 1.35rem; margin-bottom: 6px;
}
.qa-card--blue .qa-icon { background: var(--blue); }
.qa-card h3 { position: relative; z-index: 1; font-size: 1.35rem; margin: 0; }
.qa-card p { position: relative; z-index: 1; color: var(--muted); margin: 0; font-size: .95rem; }
.qa-arrow {
  position: relative; z-index: 1;
  margin-top: auto; display: inline-flex; align-items: center;
  color: var(--green); font-weight: 600; font-size: .9rem;
  transition: gap .2s var(--ease), transform .2s var(--ease);
}
.qa-card--blue .qa-arrow { color: var(--blue); }
.qa-card:hover .qa-arrow { transform: translateX(6px); }

/* ===============================================
   COUNTERS
   =============================================== */
.counters {
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.counters-head { text-align: center; margin-bottom: 48px; }
.counter-card {
    height: 100%;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.counter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.counter-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-50); color: var(--green);
  font-size: 1.4rem; margin-bottom: 16px;
}
.counter-num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--ink);
  line-height: 1;
}
.counter-label { color: var(--muted); font-weight: 600; margin-top: 8px; font-size: .95rem; }

/* ===============================================
   PROGRAMS
   =============================================== */
.program-card {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.program-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--green);
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-100); }
.program-card:hover::after { transform: scaleY(1); }
.program-ico {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--green-50); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.program-card:hover .program-ico { background: var(--green); color: #fff; transform: rotate(-5deg) scale(1.05); }
.program-card h3 { font-size: 1.3rem; margin: 0 0 10px; }
.program-card p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.program-meta {
  display: flex; gap: 16px; font-size: .85rem; color: var(--ink-soft); font-weight: 600;
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.program-meta i { color: var(--blue); margin-right: 4px; }

/* ===============================================
   GALLERY
   =============================================== */
.gallery-section { background: var(--bg-soft); }
.gallerySwiper {
  width: 100%; padding: 20px 0 60px;
}
.gallery-slide {
  width: 560px; height: 380px;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
  opacity: .55;
}
.gallerySwiper .swiper-slide-active { opacity: 1; transform: scale(1.02); }
.gallerySwiper .swiper-pagination { bottom: 14px; }
.gallerySwiper .swiper-pagination-bullet { background: var(--green); opacity: .4; }
.gallerySwiper .swiper-pagination-bullet-active { opacity: 1; width: 28px; border-radius: 4px; }
.gallerySwiper .swiper-button-prev, .gallerySwiper .swiper-button-next {
  color: var(--green); background: #fff; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: var(--shadow);
}
.gallerySwiper .swiper-button-prev::after, .gallerySwiper .swiper-button-next::after { font-size: 1rem; font-weight: 800; }

@media (max-width: 767.98px) {
  .gallery-slide { width: 88vw; height: 260px; }
}

/* ===============================================
   FEEDBACK
   =============================================== */
.feedback { background: #fff; }
.feedback-benefits {
  list-style: none; padding: 0; margin: 22px 0 0;
}
.feedback-benefits li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: var(--ink-soft); font-weight: 500;
}
.feedback-benefits li i {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-50); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem;
}
.feedback-form {
  background: var(--bg-soft);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.feedback-form .form-label { font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .9rem; }
.feedback-form .form-control {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 16px;
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.feedback-form .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-50);
  outline: none;
}

/* ===============================================
   MAP
   =============================================== */
.map-section { background: var(--bg-soft); }
.map-wrapper {
  width: 100%; height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}
.map-wrapper iframe { display: block; border: 0; width: 100%; height: 100%; }

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
  background: #0f2016;
  color: rgba(255,255,255,.82);
  padding: 60px 0 24px;
  margin-top: 40px;
}
.site-footer h5 {
  color: #fff; font-family: 'Unbounded', sans-serif;
  font-size: 1rem; margin-bottom: 18px; letter-spacing: .02em;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.footer-brand img {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); background: #fff;
}
.footer-brand strong {
  display: block; font-family: 'Unbounded', sans-serif;
  color: #fff; font-size: 1.1rem;
}
.footer-brand p { margin: 4px 0 0; color: rgba(255,255,255,.7); font-size: .85rem; }
.footer-about { color: rgba(255,255,255,.65); font-size: .9rem; line-height: 1.6; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li {
  padding: 6px 0; color: rgba(255,255,255,.8); font-size: .92rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.footer-list li i { color: var(--green); margin-top: 4px; }
.footer-links li a { color: rgba(255,255,255,.82); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-links li a:hover { color: #fff; padding-left: 4px; }
.socials { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--green); transform: translateY(-3px); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,.6); font-size: .85rem; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }

/* ===============================================
   SCROLL TO TOP BUTTON
   =============================================== */
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottomnav-h) + 16px);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(46,125,50,.35);
  cursor: pointer;
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .35s var(--ease), visibility .35s, transform .35s var(--ease), background-color .25s var(--ease);
}
.scroll-top:hover { background: var(--green-600); transform: translateY(0) scale(1.08); }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 992px) {
  .scroll-top { bottom: 28px; right: 28px; }
}

/* ===============================================
   SCHEDULE PAGE
   =============================================== */
.page-hero {
  padding: 56px 0 36px;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--muted);
  margin-bottom: 14px;
}
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.breadcrumbs i { font-size: .6rem; }
.page-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; margin: 0 0 10px;
}
.page-sub { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* Filters */
.schedule-filters {
  padding: 32px 0 20px;
  background: #fff;
}
.filters-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: -60px;
  position: relative; z-index: 2;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label {
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .05em;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-field label i { color: var(--green); }
.filter-field .form-select {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 600; font-size: .95rem;
  padding: 10px 36px 10px 14px;
  background-color: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.filter-field .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-50);
}
.filter-actions { display: flex; align-items: flex-end; gap: 10px; }
.filter-actions .btn { align-self: stretch; white-space: nowrap; }

@media (max-width: 991.98px) {
  .filters-bar { grid-template-columns: 1fr 1fr; margin-top: 20px; padding: 18px; }
  .filter-actions { grid-column: 1 / -1; }
  .filter-actions .btn { flex: 1; }
}
@media (max-width: 575.98px) {
  .filters-bar { grid-template-columns: 1fr; }
}

.schedule-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  padding: 20px 4px 0; font-size: .92rem;
}
.meta-item { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.meta-item i { color: var(--green); }

/* Desktop grid */
.schedule-grid-section { padding: 32px 0 60px; }
.schedule-grid {
  display: grid;
  grid-template-columns: 120px repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sg-cell {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 110px;
  background: #fff;
  display: flex; align-items: stretch;
}
.sg-cell:nth-child(7n) { border-right: none; }
.sg-corner, .sg-day, .sg-time {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: 'Unbounded', sans-serif;
  min-height: auto;
}
.sg-corner { background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; }
.sg-day {
  background: var(--bg-soft); color: var(--ink);
  font-weight: 700; font-size: 1rem;
  padding: 18px 8px;
}
.sg-day span {
  display: block; font-family: 'Manrope', sans-serif;
  color: var(--muted); font-weight: 500; font-size: .8rem; margin-top: 2px;
}
.sg-time {
  background: var(--bg-soft);
  font-weight: 700; color: var(--green); font-size: 1.4rem;
  text-align: center; padding: 12px 8px;
}
.sg-time small {
  display: block; font-family: 'Manrope', sans-serif;
  color: var(--muted); font-weight: 500; font-size: .72rem; margin-top: 4px;
}
.sg-empty { color: var(--line); font-size: 1.4rem; justify-content: center; align-items: center; }

.sg-lesson {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--green-50);
  border-left: 3px solid var(--green);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sg-lesson:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sg-sub { font-weight: 700; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.sg-tchr, .sg-room { font-size: .78rem; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.sg-tchr i, .sg-room i { color: var(--muted); font-size: .7rem; }

.sg-lesson.sg-blue { background: var(--blue-50); border-left-color: var(--blue); }
.sg-lesson.sg-accent { background: var(--accent-50); border-left-color: var(--accent); }

/* Mobile schedule */
.schedule-mobile { padding: 20px 0 40px; }
.day-block {
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 18px;
  background: var(--green);
  color: #fff;
}
.day-head h3 {
  margin: 0; color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem; font-weight: 700;
}
.day-head span { font-size: .88rem; opacity: .9; }
.day-lessons { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.lesson-card {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  border-left: 4px solid var(--green);
}
.lesson-card.lc-blue { border-left-color: var(--blue); }
.lesson-card.lc-accent { border-left-color: var(--accent); }
.lc-time {
  flex: 0 0 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 6px;
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  color: var(--green); font-size: 1.3rem;
}
.lc-blue .lc-time { color: var(--blue); }
.lc-accent .lc-time { color: var(--accent); }
.lc-time small {
  display: block; font-family: 'Manrope', sans-serif;
  color: var(--muted); font-weight: 500; font-size: .65rem; margin-top: 2px;
}
.lc-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.lc-sub { font-weight: 700; color: var(--ink); font-size: .95rem; }
.lc-meta { color: var(--ink-soft); font-size: .78rem; }
.lc-meta i { color: var(--muted); margin-right: 2px; }

/* Legend */
.schedule-legend { padding: 10px 0 60px; }
.legend-row {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: .9rem; color: var(--ink-soft); font-weight: 600;
}
.lg-item { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-dot.lg-green { background: var(--green); }
.lg-dot.lg-blue { background: var(--blue); }
.lg-dot.lg-accent { background: var(--accent); }

/* Utility — container gutters on mobile */
@media (max-width: 767.98px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-content { padding: 40px 16px; }
  .feedback-form { padding: 24px; }
}
