/* ============================================
   HUME PUBLIC SCHOOL - MAIN STYLESHEET
   Color Scheme: Blue + White (Professional)
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary Colors */
  --primary-dark: #1e3a8a;
  --primary-bright: #3b82f6;
  --primary-light: #60a5fa;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;

  /* Accent Colors */
  --accent-yellow: #facc15;
  --accent-yellow-dark: #eab308;
  --accent-orange: #f97316;

  /* Text Colors */
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;

  /* Additional Colors */
  --success: #22c55e;
  --error: #ef4444;
  --border: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.125rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

/* ========== UTILITY CLASSES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-yellow),
    var(--primary-bright)
  );
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 20px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-bright)
  );
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--accent-yellow);
  color: var(--primary-dark);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--accent-yellow-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--accent-yellow);
  border: 2px solid var(--primary-bright);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-bright);
  color: var(--bg-white);
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 25px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bg-light);
}

.top-bar-item i {
  color: var(--accent-yellow);
  font-size: 0.9rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--bg-white);
  font-size: 0.85rem;
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--accent-yellow);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ========== HEADER ========== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 70px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .school-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-text .school-tagline {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-style: italic;
}

/* ========== NAVIGATION ========== */
.navbar {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-bright)
  );
  position: relative;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 18px 20px;
  color: var(--bg-white);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-yellow);
  transition: var(--transition-normal);
}

.nav-link:hover::before,
.nav-item.active .nav-link::before {
  width: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link i.fa-chevron-down {
  font-size: 0.7rem;
  transition: var(--transition-normal);
}

.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--bg-white);
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  z-index: 1000;
  border-top: 3px solid var(--accent-yellow);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.dropdown-link i {
  color: var(--primary-bright);
  font-size: 0.8rem;
  width: 20px;
  text-align: center;
}

.dropdown-link:hover {
  background: var(--bg-light);
  color: var(--primary-bright);
  padding-left: 25px;
}

.dropdown-link:hover i {
  color: var(--accent-yellow);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--bg-white);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.7)); */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content {
  text-align: center;
  color: var(--bg-white);
  max-width: 800px;
  padding: 0 20px;
}

.slide-content h1 {
  font-size: 3rem;
  color: var(--bg-white);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.slide-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--bg-white);
  border-radius: var(--radius-full);
  color: var(--bg-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 10;
}

.slider-nav:hover {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  color: var(--primary-dark);
}

.slider-nav.prev {
  left: 30px;
}

.slider-nav.next {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
}

.slider-dot.active {
  background: var(--accent-yellow);
  transform: scale(1.2);
}

/* ========== MARQUEE / NOTICE ========== */
.notice-bar {
  background: var(--accent-yellow);
  padding: 12px 0;
  overflow: hidden;
}

.notice-content {
  display: flex;
  padding: 20px;
  align-items: center;
  gap: 15px;
}

.notice-label {
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.marquee-container {
  flex: 1;
  overflow: hidden;
}

.marquee-text {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-text span {
  white-space: nowrap;
  padding-right: 100px;
  color: var(--primary-dark);
  font-weight: 500;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========== QUICK STATS ========== */
.quick-stats {
  background: var(--bg-light);
  padding: 40px 0;
  /* margin-top: -50px; */
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border-bottom: 4px solid transparent;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent-yellow);
}

.stat-card:nth-child(1) {
  border-bottom-color: var(--primary-bright);
}
.stat-card:nth-child(2) {
  border-bottom-color: var(--accent-yellow);
}
.stat-card:nth-child(3) {
  border-bottom-color: var(--success);
}
.stat-card:nth-child(4) {
  border-bottom-color: var(--accent-orange);
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.8rem;
}

.stat-card:nth-child(1) .stat-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-bright);
}

.stat-card:nth-child(2) .stat-icon {
  background: rgba(250, 204, 21, 0.2);
  color: var(--accent-yellow-dark);
}

.stat-card:nth-child(3) .stat-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.stat-card:nth-child(4) .stat-icon {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent-yellow);
  padding: 20px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
}

.about-badge span {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-bright);
  border-radius: var(--radius-full);
  font-size: 1rem;
}

.feature-item span {
  font-weight: 500;
  color: var(--text-dark);
}

/* ========== PROGRAMS SECTION ========== */
.programs-section {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-bright)
  );
  position: relative;
}

.programs-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 20px 20px;
}

.programs-section .section-title h2,
.programs-section .section-title p {
  color: var(--bg-white);
}

.programs-section .section-title h2::after {
  background: var(--accent-yellow);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.program-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.program-card:hover {
  transform: translateY(-10px);
}

.program-image {
  height: 200px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.program-card:hover .program-image img {
  transform: scale(1.1);
}

.program-content {
  padding: 25px;
}

.program-content h3 {
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.program-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ========== PRINCIPAL MESSAGE ========== */
.principal-section {
  background: var(--bg-light);
}

.principal-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
}

.principal-image {
  text-align: center;
}

.principal-image img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-full);
  border: 5px solid var(--primary-bright);
  box-shadow: var(--shadow-xl);
  margin-bottom: 20px;
}

.principal-name {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.principal-title {
  color: var(--text-gray);
  font-style: italic;
}

.principal-message {
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--primary-bright);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -20px;
}

.principal-message h2 {
  margin-bottom: 25px;
}

.principal-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.principal-signature {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed var(--border);
}

.principal-signature img {
  height: 60px;
}

/* ========== NEWS & EVENTS ========== */
.news-section {
  background: var(--bg-white);
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.news-main h3,
.news-sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-bright);
}

.news-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.news-date {
  min-width: 70px;
  text-align: center;
  background: var(--primary-dark);
  color: var(--bg-white);
  padding: 15px 10px;
  border-radius: var(--radius-md);
}

.news-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
}

.news-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
}

.news-info h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.news-info h4 a:hover {
  color: var(--primary-bright);
}

.news-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Events Sidebar */
.event-list {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.event-item:last-child {
  border-bottom: none;
}

.event-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bright);
  color: var(--bg-white);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
}

.event-details h5 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.event-details span {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
  background: var(--bg-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.8)); */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--bg-white);
  transform: scale(0);
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
  background: var(--bg-white);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  text-align: center;
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.testimonial-content {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 30px;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-bright);
  opacity: 0.3;
  position: absolute;
  top: -20px;
  left: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary-bright);
}

.author-info h5 {
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.author-info span {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ========== CONTACT CTA ========== */
.contact-cta {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-bright)
  );
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  font-size: 2rem;
  color: var(--bg-white);
  margin-bottom: 10px;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin: 0;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: var(--bg-white);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
  margin-bottom: 20px;
}

.footer-about .logo img {
  height: 60px;
  /* filter: brightness(0) invert(1); */
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--bg-white);
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background: var(--accent-yellow);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.25rem;
  color: var(--bg-white);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-yellow);
  display: inline-block;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-links a::before {
  content: "›";
  color: var(--accent-yellow);
  font-weight: bold;
}

.footer-links a:hover {
  color: var(--accent-yellow);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--accent-yellow);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-yellow);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-bright);
  color: var(--bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-yellow);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-bright)
  );
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 30px 30px;
}

.page-header h1 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
  color: var(--accent-yellow);
}

.breadcrumb span {
  color: var(--accent-yellow);
}

.breadcrumb i {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ========== CONTENT PAGES ========== */
.content-section {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.content-main {
  height: fit-content;

  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.content-main h2 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-bright);
}

.content-main h3 {
  margin: 30px 0 15px;
  color: var(--primary-dark);
}

.content-main p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.content-main ul {
  margin: 20px 0;
  padding-left: 20px;
}

.content-main ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-gray);
}

.content-main ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-bright);
  font-weight: bold;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-white);
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-yellow);
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-normal);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--primary-bright);
  color: var(--bg-white);
}

.sidebar-menu a i {
  color: var(--primary-bright);
  width: 20px;
  text-align: center;
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
  color: var(--accent-yellow);
}

/* Downloads Widget */
.download-list li {
  margin-bottom: 10px;
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  transition: var(--transition-normal);
}

.download-list a:hover {
  background: var(--primary-dark);
  color: var(--bg-white);
}

.download-list a i {
  color: var(--primary-bright);
  font-size: 1.2rem;
}

.download-list a:hover i {
  color: var(--accent-yellow);
}

/* ========== CONTACT PAGE ========== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.contact-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-bright)
  );
  border-radius: var(--radius-full);
  color: var(--bg-white);
  font-size: 1.8rem;
}

.contact-card h4 {
  margin-bottom: 10px;
}

.contact-card p {
  margin: 0;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== TABLES ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.data-table th,
.data-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--primary-dark);
  color: var(--bg-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: var(--bg-light);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ========== FACULTY GRID ========== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.faculty-card {
  text-align: center;
  background: var(--bg-white);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.faculty-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--primary-bright);
}

.faculty-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.faculty-card .designation {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.faculty-card .qualification {
  color: var(--primary-bright);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ========== LOADER ========== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: var(--transition-slow);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--primary-bright);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* ========== LARGE TABLETS & SMALL DESKTOPS ========== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== TABLETS ========== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 0 30px;
    overflow-y: auto;
    transition: var(--transition-normal);
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 15px 25px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link::before {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: none;
  }

  .nav-item.dropdown-active .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-link {
    color: var(--bg-white);
    padding-left: 40px;
  }

  .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 45px;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1002;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hero-slider {
    height: 500px;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .principal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .quote-icon {
    left: 50%;
    transform: translateX(-50%);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== MOBILE LANDSCAPE ========== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 60px 0;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-left {
    flex-direction: column;
    gap: 10px;
  }

  .header-main {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .logo img {
    height: 60px;
  }

  .logo-text .school-name {
    font-size: 1.3rem;
  }

  .hero-slider {
    height: 450px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .slider-nav.prev {
    left: 15px;
  }

  .slider-nav.next {
    right: 15px;
  }

  .quick-stats {
    margin-top: -30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-about .logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 60px 0;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .content-main {
    padding: 25px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

/* ========== MOBILE PORTRAIT (Continued) ========== */
@media (max-width: 576px) {
  .news-date {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
  }

  .news-date .day,
  .news-date .month {
    display: inline;
    font-size: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .testimonial-card {
    padding: 25px 20px;
  }

  .testimonial-content {
    font-size: 1rem;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .contact-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 15px;
  }

  .faculty-grid {
    grid-template-columns: 1fr;
  }

  .faculty-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    padding: 20px;
  }

  .faculty-image {
    width: 100px;
    height: 100px;
    margin: 0;
    flex-shrink: 0;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========== EXTRA SMALL DEVICES ========== */
@media (max-width: 400px) {
  .logo-text .school-name {
    font-size: 1.1rem;
  }

  .logo img {
    height: 50px;
  }

  .hero-slider {
    height: 350px;
  }

  .slide-content h1 {
    font-size: 1.3rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .top-bar,
  .navbar,
  .hero-slider,
  .back-to-top,
  .footer {
    display: none !important;
  }

  .content-main {
    box-shadow: none;
    padding: 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
