/* ==========================================================================
   Teachers Job - Custom Design System & Stylesheet
   Color Palette & Typography specified by User:
   - Primary Blue: #133866 / #153a6b
   - Accent Orange: #f96b03 / #e05e00
   - Backgrounds: #f8fafc (Light), #ffffff (White), #10325b (Footer)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-blue: #133866;
  --header-blue: #153a6b;
  --accent-orange: #f96b03;
  --accent-orange-hover: #e05e00;
  --text-dark: #222222;
  --text-label: #1a1a1a;
  --text-muted: #666666;
  --text-light-grey: #888888;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e5e7eb;
  --footer-bg: #10325b;
  --footer-link: #a6b8d4;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Derived helpers */
  --primary-blue-glow: rgba(19, 56, 102, 0.25);
  --accent-orange-glow: rgba(249, 107, 3, 0.3);
  --star-gold: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 56, 102, 0.08);
  --shadow-lg: 0 16px 36px rgba(19, 56, 102, 0.12);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--header-blue);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Notification Bar */
.top-bar {
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--header-blue) 60%, var(--accent-orange) 100%);
  color: var(--bg-white);
  padding: 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 10px;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Main Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 60px;
  max-height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

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

.brand-text .orange {
  color: var(--accent-orange);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* background: var(--accent-orange); */
  border-radius: 2px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary-blue {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  box-shadow: 0 4px 14px var(--primary-blue-glow);
}

.btn-primary-blue:hover {
  background-color: var(--header-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 56, 102, 0.35);
}

.btn-orange {
  background-color: var(--accent-orange);
  color: var(--bg-white);
  box-shadow: 0 4px 14px var(--accent-orange-glow);
}

.btn-orange:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 107, 3, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--bg-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* Banner Hero Carousel Section (100% Width & Height) */
.hero-banner-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.hero-banner-section>.container {
  max-width: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  min-height: 580px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  background-size: 100% 100%;
  background-position: center;
  min-height: 580px;
}

.slide-1 {
  background: url('assets/banner-1.jpeg') center/100% 100% no-repeat;
}

.slide-2 {
  background: url('assets/banner-2.jpeg') center/100% 100% no-repeat;
}

.slide-3 {
  background: url('assets/banner-1.jpeg') center/100% 100% no-repeat;
}

.slide-content {
  max-width: 680px;
  z-index: 2;
  color: var(--bg-white);
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-tag.orange {
  background: rgba(249, 107, 3, 0.3);
  border-color: rgba(249, 107, 3, 0.5);
  color: #ffffff;
}

.slide-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  color: #ffffff;
}

.slide-title span.highlight-blue {
  color: #60a5fa;
}

.slide-title span.highlight-orange {
  color: #fb923c;
}

.slide-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.slide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  width: 32px;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
}

/* Floating Quick Search Bar */
.search-filter-section {
  margin-top: 40px;
  position: relative;
  z-index: 30;
}

.search-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.2fr;
  gap: 16px;
  align-items: center;
}

.search-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-input-wrap label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-field {
  width: 100%;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(249, 107, 3, 0.15);
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23133866' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.stat-number.blue {
  color: var(--primary-blue);
}

.stat-number.orange {
  color: var(--accent-orange);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-tag {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--header-blue);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Teacher Showcase Section */
.teachers-section {
  padding: 70px 0;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.filter-btn.active-orange {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--bg-white);
  box-shadow: 0 6px 18px rgba(249, 107, 3, 0.3);
}

/* Teacher Grid */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Teacher Card */
.teacher-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.teacher-card:hover {
  transform: translateY(-8px);
  border-color: rgba(19, 56, 102, 0.2);
  box-shadow: var(--shadow-lg);
}

.teacher-card-top {
  position: relative;
  height: 170px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--header-blue) 100%);
  overflow: hidden;
}

.teacher-bg-accent {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 107, 3, 0.4) 0%, transparent 70%);
}

.verified-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.teacher-avatar-wrap {
  position: absolute;
  bottom: -36px;
  left: 24px;
}

.teacher-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid var(--bg-white);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.teacher-exp-tag {
  position: absolute;
  bottom: 14px;
  right: 18px;
  background: var(--accent-orange);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

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

.teacher-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--header-blue);
  margin-bottom: 4px;
}

.teacher-role {
  color: var(--accent-orange);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.teacher-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.teacher-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.subject-tag {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.teacher-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teacher-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--star-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

/* School Banner Promo Section */
.promo-banners-section {
  padding: 60px 0;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.promo-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.promo-school {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--header-blue) 100%);
  border: 1px solid var(--primary-blue);
}

.promo-teacher {
  background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
  border: 1px solid var(--accent-orange);
}

.promo-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.promo-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Testimonial Section */
.testimonials-section {
  padding: 80px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-blue);
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--header-blue);
}

.author-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 50, 91, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(19, 56, 102, 0.3);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-orange);
}

.modal-header-banner {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-blue), var(--header-blue));
  padding: 24px;
}

.modal-body {
  padding: 24px 32px 32px;
}

.modal-teacher-info {
  display: flex;
  gap: 20px;
  margin-top: -60px;
  margin-bottom: 24px;
  align-items: flex-end;
}

.modal-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.detail-block {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.detail-block h4 {
  font-size: 0.95rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

/* Footer Section */
.footer {
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 70px 0 30px;
}





.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--footer-link);
  margin: 16px 0 24px;
  max-width: 320px;
  font-size: 0.92rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.footer-links a {
  color: var(--footer-link);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-orange);
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--footer-link);
  font-size: 0.85rem;
}

/* Mobile Responsive for Home Page Components */
@media (max-width: 1024px) {
  .hero-banner-section,
  .hero-carousel,
  .carousel-slides,
  .carousel-slide {
    min-height: 380px !important;
    height: 380px !important;
  }

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-contact {
    display: none;
  }

  .hero-banner-section,
  .hero-carousel,
  .carousel-slides,
  .carousel-slide {
    min-height: 240px !important;
    height: 240px !important;
  }

  .carousel-slide {
    padding: 0;
    background-size: 100% 100% !important;
    background-position: center !important;
  }

  .carousel-btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px;
    height: 36px;
    font-size: 14px;
    z-index: 20;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-dots {
    bottom: 8px;
    z-index: 20;
  }

  .slide-title {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .slide-subtitle {
    font-size: 0.85rem;
  }

  .search-filter-section {
    padding: 0 12px;
    margin-top: 15px;
  }

  .search-box {
    padding: 16px;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-btn-wrap {
    width: 100%;
  }

  .btn-search-primary {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .filter-pills,
  .subject-filter-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .hero-banner-section,
  .hero-carousel,
  .carousel-slides,
  .carousel-slide {
    min-height: 180px !important;
    height: 180px !important;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .carousel-btn.prev {
    left: 6px;
  }

  .carousel-btn.next {
    right: 6px;
  }

  .carousel-dots {
    bottom: 6px;
  }

  .slide-title {
    font-size: 1.2rem;
  }

  .search-box {
    padding: 14px 12px;
    border-radius: 10px;
  }
}