/* ══════════════════════════════════════════════════════════
   Talant №1 — Modern School Website Styles
   ══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  /* Primary palette */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;

  /* Accent */
  --accent: #f59e0b;
  --accent-dark: #d97706;

  /* Neutrals */
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;

  /* Gradient */
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 4px 6px rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .06);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);
  --shadow-primary: 0 10px 30px rgba(37, 99, 235, .25);

  /* Radius */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;

  /* Transitions */
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

/* ─── GLOBAL RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 72px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/* ─── NAVBAR ────────────────────────────────────────────── */
#mainNavbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
}

#mainNavbar.navbar-scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .06);
}

#mainNavbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Logo styles */
.navbar-brand {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-text strong {
  color: var(--primary);
}

/* Navbar controls wrapper */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Contact button */
.btn-nav-contact {
  background: rgba(37, 99, 235, 0.08);
  color: var(--dark);
  border-radius: 50px;
  padding: 8px 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 0.8rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-nav-contact:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Menu Toggle Button */
.btn-menu-toggle {
  background: var(--dark);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.btn-menu-toggle:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.menu-text {
  display: inline-block;
}

.hamburger-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

/* Mobile adjustments (<576px) - Екі қатарлы көрініс */
@media (max-width: 575.98px) {
  body {
    padding-top: 112px;
  }

  #mainNavbar {
    padding: 12px 0 8px;
  }

  #mainNavbar .container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .navbar-brand {
    width: auto;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .navbar-controls {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .btn-nav-contact {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .btn-menu-toggle {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .menu-text {
    font-size: 0.75rem;
  }
}

/* Small phones (≤375px) */
@media (max-width: 375px) {
  .brand-text {
    font-size: 0.9rem;
  }

  .btn-nav-contact {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .btn-nav-contact span {
    display: none;
  }

  .btn-nav-contact i {
    font-size: 1.1rem;
  }

  .btn-menu-toggle {
    padding: 5px 10px;
  }

  .menu-text {
    font-size: 0.7rem;
  }
}

/* Tablet and desktop (≥576px) */
@media (min-width: 576px) {
  body {
    padding-top: 72px;
  }

  #mainNavbar .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar-controls {
    width: auto;
    border-top: none;
    padding-top: 0;
  }
}

/* ─── SIDEBAR MENU (OFFCANVAS) ────────────────────────── */
.sidebar-offcanvas {
  background: #1e293b !important;
  color: white;
  width: 330px !important;
  max-width: 90vw !important;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
}

.sidebar-offcanvas .offcanvas-header {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-offcanvas .offcanvas-title {
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
}

.sidebar-offcanvas .btn-close-white {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.sidebar-offcanvas .btn-close-white:hover {
  opacity: 1;
}

/* Scrollbar */
.sidebar-offcanvas .offcanvas-body::-webkit-scrollbar {
  width: 4px;
}

.sidebar-offcanvas .offcanvas-body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

/* Sidebar Search */
.sidebar-search-container {
  padding: 20px 20px 10px;
}

.custom-search-group {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  transition: all 0.3s ease;
}

.custom-search-group:focus-within {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
}

.custom-search-group .form-control {
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-size: 0.9rem;
  padding-left: 15px;
  box-shadow: none !important;
}

.custom-search-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.custom-search-group .btn {
  background: var(--primary) !important;
  color: white !important;
  border-radius: 10px !important;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  transition: all 0.2s ease;
}

.custom-search-group .btn:hover {
  background: var(--primary-dark) !important;
  transform: scale(1.05);
}

/* Sidebar Links */
.sidebar-nav-list {
  padding: 8px 16px 30px;
}

.sidebar-item {
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  color: #cbd5e1 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  margin-bottom: 4px;
}

.sidebar-link i.me-2 {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: #64748b;
  transition: color 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc !important;
}

.sidebar-link:hover i.me-2,
.sidebar-link[aria-expanded="true"] i.me-2 {
  color: var(--primary);
}

.sidebar-link .arrow {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.sidebar-link[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary);
}

.sidebar-submenu {
  list-style: none;
  padding: 4px 0 10px 42px;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  margin-left: 28px;
}

.sidebar-submenu li a {
  display: block;
  padding: 9px 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.sidebar-submenu li a:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

/* Mobile sidebar adjustments */
@media (max-width: 576px) {
  .sidebar-offcanvas .offcanvas-header {
    padding: 14px 18px;
  }

  .sidebar-offcanvas .offcanvas-title {
    font-size: 1rem;
  }

  .sidebar-search-container {
    padding: 16px 16px 6px;
  }

  .sidebar-nav-list {
    padding: 6px 12px 25px;
  }

  .sidebar-link {
    padding: 11px 12px;
    font-size: 0.88rem;
  }

  .sidebar-link i.me-2 {
    width: 20px;
  }

  .sidebar-submenu {
    margin-left: 28px;
  }

  .sidebar-submenu li a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ─── HERO SECTION ──────────────────────────────────────── */
.hero-section {
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: #0f172a;
  /* Қараңғы фон түсі */
}

.hero-slide {
  height: 85vh;
  min-height: 550px;
  max-height: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #0f172a;
  /* Фон түсі - сурет жүктелмесе көрінеді */
}

/* Егер сурет болмаса, градиент фон */
.hero-slide:not([style*="background-image"]) {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

.hero-default {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  overflow: hidden;
  position: relative;
}

.hero-default::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-default::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(37, 99, 235, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  pointer-events: auto !important;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.03em;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

/* Button styles */
.btn-hero {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: var(--primary-dark);
  background: var(--white);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  text-decoration: none;
  cursor: pointer;
}

.btn-hero-outline:hover {
  background: var(--white);
  color: var(--primary) !important;
  border-color: var(--white);
  transform: translateY(-3px);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px !important;
  height: 50px !important;
  top: 50% !important;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: var(--primary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
}

.carousel-indicators {
  z-index: 15;
  bottom: 20px;
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  opacity: 0.7;
  margin: 0 6px;
}

.carousel-indicators .active {
  background: var(--white);
  border-color: var(--white);
  opacity: 1;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-slide {
    height: 70vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    padding: 0 15px;
  }

  .hero-content .d-flex {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .hero-slide {
    height: auto;
    min-height: 550px;
    padding: 80px 0;
  }

  .btn-hero,
  .btn-hero-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .hero-slide {
    min-height: 500px;
    padding: 70px 0;
  }

  .hero-title {
    font-size: 1.8rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .hero-content .d-flex.flex-wrap {
    flex-direction: column;
    gap: 12px !important;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .btn-hero,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }
}

/* ─── STATS STRIP ───────────────────────────────────────── */
.stats-strip {
  background: var(--white);
  padding: 50px 0;
  position: relative;
  z-index: 5;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .04);
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.row .col-6:last-child .stat-card,
.row .col-md-3:last-child .stat-card {
  border-right: none;
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-icon i {
  background: var(--primary-bg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: .9rem;
  color: var(--text-light);
  font-weight: 500;
  margin: 0;
}

@media (max-width: 767.98px) {
  .stat-card {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 15px 5px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

/* ─── SECTION STYLES ────────────────────────────────────── */
.section-padding {
  padding: 80px 0;
}

.section-about-preview {
  padding: 100px 0;
  background: var(--white);
}

.section-news {
  padding: 100px 0;
  background: var(--bg);
}

.bg-light-custom {
  background: var(--bg);
}

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 45px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary-custom {
  background: var(--gradient);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
  display: inline-block;
  text-decoration: none;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, .35);
  color: var(--white);
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  font-weight: 600;
  font-size: .95rem;
  background: transparent;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* ─── NEWS CARDS ────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.08);
}

.news-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-placeholder i {
  font-size: 3rem;
  color: var(--primary-light);
  opacity: .5;
}

.news-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gradient);
  color: var(--white);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--dark);
  text-decoration: none;
}

.news-card-title a:hover {
  color: var(--primary);
}

.news-card-text {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}

.news-card-link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  text-decoration: none;
}

.news-card-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

@media (max-width: 767.98px) {
  .news-card-img {
    height: 190px;
  }
}

/* ─── CTA SECTION ───────────────────────────────────────── */
.cta-section {
  padding: 40px 0 100px;
}

.cta-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 60px 50px;
  color: var(--white);
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 1.1rem;
  opacity: .9;
  margin: 0;
}

.btn-cta {
  background: var(--white);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 16px 36px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
  display: inline-block;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
  color: var(--primary-dark);
}

@media (max-width: 991.98px) {
  .cta-card {
    text-align: center;
    padding: 40px 20px;
  }

  .cta-title {
    font-size: 1.6rem;
  }
}

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
  position: relative;
}

.footer-content {
  padding: 60px 0 30px;
}

.footer-brand h5 {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.text-muted-light {
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
}

.footer-desc {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .9rem;
}

.footer-contact i {
  color: var(--primary-light);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, .1);
  margin: 30px 0 20px;
}

.footer-bottom p {
  margin: 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .4);
}

@media (max-width: 767.98px) {
  .footer-heading {
    margin-top: 25px;
  }

  .footer-heading::after {
    margin: 8px 0;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    text-align: center;
  }

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

  .footer-contact li {
    justify-content: center;
  }
}

/* ─── SCROLL TO TOP ─────────────────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, .4);
}

/* ─── FLOATING SOCIAL WIDGET ───────────────────────────── */
.floating-social-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-social-widget .social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-social-widget .social-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.floating-social-widget .instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.floating-social-widget .whatsapp {
  background: #25d366;
}

@media (max-width: 768px) {
  .floating-social-widget {
    bottom: 90px;
  }

  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
  }
}

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-card,
.teacher-card,
.album-card,
.value-card {
  animation: fadeInUp .6s ease backwards;
}

/* ─── PAGE HEADER (Common for all subpages) ─────────────── */
.page-header {
  background: var(--dark);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

/* ─── CONTACT PAGE ───────────────────────────────────────── */
.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3 {
  font-weight: 800;
  margin-bottom: 35px;
  font-size: 1.5rem;
  color: var(--dark);
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(5deg) scale(1.1);
}

.contact-info-item h6 {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--dark);
}

.contact-info-item p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-form-card h3 {
  font-weight: 800;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.contact-form-card .form-control {
  border: 1px solid #e2e8f0;
  padding: 12.5px 18px;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}

.map-section {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  line-height: 0;
}

@media (max-width: 575.98px) {
  .contact-info-card, .contact-form-card {
    padding: 30px 20px;
  }
  
  .page-header {
    padding: 60px 0 40px;
  }

  .contact-info-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}