/* ============================================================
   25-maktab — Educenter shabloniga qo'shimcha uslublar
   ============================================================ */

/* Matnli logotip */
.navbar-brand .brand-text {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.navbar-brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* Tadbirlar taqvimi */
.calendar-card { border: 1px solid #eee; background: #fff; }
.calendar-card .calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #1f3a5f; color: #fff;
}
.calendar-card .calendar-head h4 { color: #fff; margin: 0; font-size: 20px; }
.cal-nav button {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.4);
  background: transparent; color: #fff; cursor: pointer;
}
.cal-nav button:hover { background: rgba(255,255,255,0.15); }
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; padding: 16px;
}
.cal-dow {
  text-align: center; font-size: 11px; font-weight: 700;
  text-transform: uppercase; color: #888; padding: 6px 0;
}
.cal-day {
  position: relative; aspect-ratio: 1; display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #555;
}
.cal-day.mute { color: #ccc; }
.cal-day.today { outline: 2px solid #e5b13a; outline-offset: -2px; }
.cal-day.has-event { cursor: pointer; background: #e9edf5; color: #1f3a5f; font-weight: 700; }
.cal-day.has-event::after {
  content: ""; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%); width: 5px; height: 5px;
  border-radius: 50%; background: #e5b13a;
}
.cal-day.has-event:hover, .cal-day.selected { background: #1f3a5f; color: #fff; }
.calendar-events { padding: 16px 20px; border-top: 1px dashed #ddd; }

/* O'qituvchilar filtri (notice/filter-controls uslubida) */
.filter-controls li { cursor: pointer; }
.filter-controls li a { color: #555; font-weight: 600; padding: 6px 14px; display: inline-block; }
.filter-controls li.active a { color: #fff; background: #1f3a5f; }

/* Forma natijasi */
.form-success .success-circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: #eaf6ee; color: #28a745;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; margin: 0 auto 20px;
}
.app-number {
  display: inline-block; margin-top: 14px; padding: 12px 26px;
  border: 2px dashed #1f3a5f; color: #1f3a5f;
  font-size: 22px; font-weight: 700; letter-spacing: 1px;
}

/* Umumiy mayda tuzatishlar */
.badge-primary { background: #1f3a5f; }
.hover-shadow { transition: box-shadow 0.3s, transform 0.3s; }
.vertical-align-middle { vertical-align: middle; }
.gallery-item a { color: inherit; }
.gallery-item img { height: 240px; object-fit: cover; }
.table thead th { background: #1f3a5f; color: #fff; border: none; white-space: nowrap; }

/* ============ PIIMA brendi: logo va oltin aksentlar ============ */
.logo-box {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 5px;
  width: 52px; height: 52px; flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-footer .logo-box { width: 46px; height: 46px; }
.text-primary { color: #b8860b !important; }
.custom-breadcrumb .text-primary { color: #e5b13a !important; }
.feature-icon { color: #1f3a5f; }

/* ============ CTA va Footer ranglarini ajratish ============ */
/* Brend yozuvi hamma joyda oq bo'lsin (footerda ko'k havola bo'lib qolmasin) */
.brand-text { color: #fff !important; }
.logo-footer:hover .brand-text { color: #e5b13a !important; }

/* Footer — CTA'dan quyuqroq navy, tepasida oltin chiziq */
.bg-footer { background: #152a44 !important; }
.footer.bg-footer { border-top: 3px solid #e5b13a; }

/* Footer matn va havolalari aniq ko'rinsin */
.bg-footer .text-color,
.bg-footer a.text-color,
.bg-footer li { color: #b9c5d8 !important; }
.bg-footer a.text-color:hover { color: #e5b13a !important; }
.bg-footer .list-inline-item a i { color: #b9c5d8; transition: color .2s; }
.bg-footer .list-inline-item a:hover i { color: #e5b13a; }
.copyright.bg-footer { border-top: 1px solid rgba(255,255,255,0.12); }
.copyright .text-muted { color: #8fa0b8 !important; }

/* CTA blokidagi tugma — oltin, ko'zga tashlanadigan */
.section.bg-primary .btn-light {
  background: #e5b13a; color: #1f3a5f; border: none; font-weight: 700;
}
.section.bg-primary .btn-light:hover { background: #b8860b; color: #fff; }

/* ============ CTA: krem fon + oltin karta ============ */
.cta-band { background: #faf7f3; }
.cta-card {
  position: relative; overflow: hidden;
  max-width: 860px; margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e8e4dc;
  border-radius: 18px;
  padding: 56px 40px;
  box-shadow: 0 16px 44px rgba(31, 58, 95, 0.10);
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 2px solid rgba(31, 58, 95, 0.07);
}
.cta-card::before { width: 210px; height: 210px; top: -80px; right: -60px; }
.cta-card::after { width: 150px; height: 150px; bottom: -60px; left: -40px; }
.cta-kicker {
  display: inline-block; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: #7c8aa0;
}
.cta-title { color: #1f3a5f; font-weight: 700; margin-bottom: 14px; }
.cta-text { max-width: 520px; margin: 0 auto 26px; color: #5b6478; }
.cta-btn {
  position: relative; z-index: 2;
  background: #1f3a5f; color: #fff !important;
  padding: 14px 38px; font-weight: 700; border: none;
}
.cta-btn:hover { background: #152a44; color: #fff !important; }

/* ============ MOBIL MOSLASHUV ============ */
@media (max-width: 991px) {
  .feature-blocks { padding-left: 20px; padding-right: 20px; margin-top: 0; }
}

@media (max-width: 767px) {
  /* Yuqori panel ixcham */
  .top-header { font-size: 11px; }
  .top-header .p-2 { padding: 4px !important; }

  /* Logo va brend kichikroq */
  .logo-box { width: 40px; height: 40px; padding: 4px; }
  .navbar-brand .brand-text { font-size: 21px; }
  .navbar-brand small { font-size: 9px; letter-spacing: 1px; }

  /* Hero — balandlik va shrift */
  .hero-section { padding: 130px 0 150px; }
  .hero-slider h1 { font-size: 29px; line-height: 1.25; }
  .hero-slider p { font-size: 14px; }
  .hero-slider .slick-dots { bottom: -74px; }
  .hero-slider .prevArrow, .hero-slider .nextArrow { bottom: -95px; font-size: 24px; }

  /* Ichki sahifa sarlavhasi */
  .page-title-section { padding: 130px 0 46px; }
  .custom-breadcrumb .h2 { font-size: 20px; }
  .custom-breadcrumb .h3 { font-size: 17px; }

  /* Seksiyalar zichroq */
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .section-title { font-size: 26px; margin-bottom: 24px; }

  /* CTA karta */
  .cta-card { padding: 34px 20px; border-radius: 14px; }
  .cta-title { font-size: 25px; }
  .cta-btn { display: block; width: 100%; }

  /* Taqvim */
  .calendar-card .calendar-head { padding: 12px 14px; }
  .calendar-card .calendar-head h4 { font-size: 17px; }
  .calendar-grid { padding: 10px; gap: 2px; }
  .cal-day { font-size: 12.5px; }
  .calendar-events { padding: 12px 14px; }

  /* Filtr tugmalari */
  .filter-controls { display: flex; flex-wrap: wrap; gap: 4px; }
  .filter-controls li { margin: 0 !important; }
  .filter-controls li a { padding: 6px 11px; font-size: 13px; }

  /* Galereya va kartalar */
  .gallery-item img { height: 210px; }
  .card-date { padding: 6px 10px; font-size: 13px; }

  /* Jadvallar silliq scroll */
  .table-responsive { -webkit-overflow-scrolling: touch; }

  /* Footer markazlashgan */
  .footer h4 { margin-bottom: 16px !important; font-size: 15px; }
  .footer .mb-5 { margin-bottom: 26px !important; }
  .copyright p { font-size: 12.5px; }
}

@media (max-width: 420px) {
  .hero-section { padding: 115px 0 140px; }
  .hero-slider h1 { font-size: 24px; }
  .navbar-brand small { display: none; }
  .top-header .col-lg-7 .list-inline-item:first-child { display: none; }
}
