/* Extracted styles from index.html */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap");

:root {
  --logo-primary: #ad2920;
  --logo-secondary: #962924;
  --logo-light: #fee2e2;
  --logo-accent: #fca5a5;
}

/* Custom hero title styling requested by user */
.hero-title {
  padding: 5px;
  background-color: #b91c1c; /* red-700 */
  border-radius: 5px;
  display: inline-block;
}

* {
  font-family: "Inter", sans-serif;
}

/* School name designer styling */
.school-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  margin-top: 0; /* Remove gap between parent and dropdown */
}

/* Add smooth padding area to prevent dropdown from disappearing */
.dropdown {
  position: relative;
}

.dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px; /* Invisible bridge between menu item and dropdown */
  display: block;
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Full-bleed (edge-to-edge) slider used below the navbar */
.full-bleed-slider {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}
.full-bleed-slider .slider-track {
  display: flex;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.full-bleed-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.full-bleed-slide img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
  transform: scale(1);
  opacity: 1;
}

/* Different transition effects for each slide */
.slide-fade.active img {
  animation: fadeIn 1.2s ease-in-out;
}

.slide-zoom.active img {
  animation: zoomIn 1.5s ease-out;
}

.slide-slide.active img {
  animation: slideInRight 1s ease-out;
}

.slide-rotate.active img {
  animation: rotateIn 1.3s ease-out;
}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.3);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-5deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.slider-control:hover {
  background: rgba(0, 0, 0, 0.6);
}
.slider-control.prev {
  left: 1rem;
}
.slider-control.next {
  right: 1rem;
}

.news-card {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  border-radius: 15px;
  padding: 1.5rem;
  margin: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.leadership-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.leadership-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pattern-bg {
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(185, 28, 28, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(251, 191, 36, 0.1) 0%,
      transparent 50%
    );
}

.gradient-bg {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
}

/* Logo styling to ensure good fit */
.site-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  display: block;
}

/* Simple lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lb-overlay img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 8px;
}
.lb-overlay.show {
  display: flex;
}

/* Leadership / management photos */
.leadership-photo {
  /* Let the wrapper control sizing so image always fills the circular container */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit; /* inherit the rounded-full from wrapper for a perfect circle */
  display: block; /* remove inline gap and ensure proper sizing */
}

/* School header styling */
.school-main-title {
  font-size: 2.5rem;
}

.school-location {
  font-size: 1.25rem;
}

.school-tagline {
  font-size: 1rem;
}

/* Animation keyframes for slider content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

/* Swiper custom styling */
.hero-slider {
  width: 100%;
  height: 70vh;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: #dc2626 !important;
}

.swiper-button-next,
.swiper-button-prev {
  transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  transform: scale(1.1) !important;
}

/* Touch Device Enhancements */
.touch-device .dropdown-menu {
  position: static !important;
  display: none;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.touch-device .dropdown.active .dropdown-menu {
  display: block;
}

.touch-device button.touched,
.touch-device .btn.touched {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Responsive Image Enhancements */
.responsive-img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.responsive-img.loaded {
  opacity: 1;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #b91c1c;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

/* Custom hero title styling requested by user */
.hero-title {
  padding: 5px;
  background-color: #b91c1c; /* red-700 */
  border-radius: 5px;
  display: inline-block;
}

.mobile-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fef08a;
}

.mobile-dropdown {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-item {
  padding-left: 2rem;
  font-size: 0.9rem;
}

/* Desktop navigation display controls */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  nav .flex.justify-center {
    display: flex !important;
  }
}

/* Tablet and mobile navigation */
@media (max-width: 768px) {
  nav .flex.justify-center {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block !important;
  }
}

/* Better spacing for small screens */
@media (max-width: 640px) {
  .space-x-8 > * + * {
    margin-left: 1rem !important;
  }

  .space-y-8 > * + * {
    margin-top: 1rem !important;
  }

  .gap-8 {
    gap: 1rem !important;
  }

  .gap-12 {
    gap: 1.5rem !important;
  }
}

/* Improved button sizing for mobile */
@media (max-width: 640px) {
  .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Enhanced marquee for mobile */
@media (max-width: 640px) {
  .marquee {
    font-size: 0.8rem;
    animation-duration: 25s;
  }
}

/* Mobile-optimized modal */
@media (max-width: 640px) {
  .modal-content {
    max-height: 90vh !important;
    overflow-y: auto;
  }
}

/* Custom logo-inspired theme classes */
.bg-logo-primary {
  background-color: var(--logo-primary);
}
.bg-logo-secondary {
  background-color: var(--logo-secondary);
}
.text-logo-primary {
  color: var(--logo-primary);
}
.text-logo-secondary {
  color: var(--logo-secondary);
}
.border-logo-primary {
  border-color: var(--logo-primary);
}

/* About Us Section Styles */
.about-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.about-image-container {
  position: relative;
  transition: transform 0.3s ease;
}

.about-image-container:hover {
  transform: translateY(-5px);
}

.about-decorative-bg {
  background: linear-gradient(45deg, #fee2e2, #fecaca);
  animation: float 6s ease-in-out infinite;
}

.about-decorative-bg:nth-child(2) {
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.about-highlight-text {
  background: linear-gradient(120deg, #dc2626 0%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-feature-dot {
  background: linear-gradient(45deg, #dc2626, #b91c1c);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Contact Section Styles */
.contact-section {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #fef2f2 100%);
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper {
  background: linear-gradient(
    135deg,
    var(--color-start) 0%,
    var(--color-end) 100%
  );
  transition: transform 0.3s ease;
}

.contact-icon-wrapper:hover {
  transform: scale(1.1) rotate(5deg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: #fca5a5;
}

.contact-decorative {
  animation: float 6s ease-in-out infinite;
}

.contact-decorative:nth-child(2) {
  animation-delay: -2s;
}

.contact-decorative:nth-child(3) {
  animation-delay: -4s;
}

/* News & Events Section Styles */
.news-card {
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.news-date-badge {
  background: linear-gradient(
    135deg,
    var(--badge-start) 0%,
    var(--badge-end) 100%
  );
  transition: transform 0.3s ease;
}

.news-date-badge:hover {
  transform: scale(1.1);
}

/* Vision & Mission Section Styles */
.vision-mission-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.vision-mission-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
}

/* Facilities Section Styles */
.facility-card {
  transition: all 0.3s ease;
}

.facility-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.facility-icon {
  transition: all 0.3s ease;
}

.facility-card:hover .facility-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Global Animation Classes */
.section-fade-in {
  animation: sectionFadeIn 1s ease-out;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Glow Effects */
.glow-on-hover {
  transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.3);
}

/* Gallery Styles */
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 1rem;
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(220, 38, 38, 0.1),
    rgba(139, 69, 19, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Activities Section Enhancement */
.activity-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.activity-card:hover::before {
  left: 100%;
}

/* Testimonials Enhancement */
.testimonial-card {
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ==========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================== */

/* Mobile First Responsive Breakpoints */

/* Small devices (phones, 0px to 640px) */
@media (max-width: 640px) {
  /* Header Responsive */
  .school-main-title {
    font-size: 1.8rem !important;
    line-height: 1.2;
    text-align: center;
  }

  .school-location {
    font-size: 0.9rem !important;
    text-align: center;
    line-height: 1.3;
  }

  .school-tagline {
    font-size: 0.85rem !important;
    text-align: center;
  }

  /* Mobile logo styling */
  .site-logo {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
  }

  /* Logo container centering */
  .rounded-full.overflow-hidden {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
  }

  /* Navigation Mobile */
  .dropdown-menu {
    position: static !important;
    display: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    width: 100% !important;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  /* Hide desktop navigation on mobile */
  nav .flex.justify-center {
    display: none !important;
  }

  /* Show mobile menu toggle on mobile */
  .mobile-menu-toggle {
    display: block !important;
  }

  /* Make top bar responsive */
  .flex.justify-between.items-center.py-2 {
    flex-direction: column !important;
    gap: 0.5rem;
  }

  .flex.justify-between.items-center.py-2 > div:first-child {
    flex-direction: column !important;
    gap: 0.25rem;
  }

  /* Hide social links on very small screens */
  .flex.space-x-3 {
    display: none !important;
  }

  /* Make header main section responsive */
  .flex.justify-between.items-center.py-4 {
    flex-direction: column !important;
    text-align: center;
    gap: 1rem;
  }

  /* Center align logo and text content on mobile */
  .flex.items-center.space-x-4 {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  /* Remove side margins for logo container */
  .flex.items-center.space-x-4 > div:first-child {
    margin: 0 auto !important;
  }

  /* Center align all text content */
  .flex.items-center.space-x-4 > div:last-child {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  /* Hide admission banner on mobile */
  .hidden.md\\:block {
    display: none !important;
  }

  /* Slider Mobile */
  .hero-slider {
    height: 50vh !important;
  }

  /* Fix slide height on mobile - override Tailwind classes */
  .swiper-slide .relative[class*="h-[70vh]"] {
    height: 50vh !important;
  }

  /* Fix slide height on mobile */
  .swiper-slide .relative {
    height: 50vh !important;
  }

  /* Ensure images fit properly on mobile */
  .swiper-slide img {
    height: 50vh !important;
    object-fit: cover;
  }

  .swiper-slide h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  .swiper-slide p {
    font-size: 0.9rem !important;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px !important;
  }

  /* Section Titles Mobile */
  .text-4xl,
  .text-5xl {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .text-3xl {
    font-size: 1.5rem !important;
  }

  .text-2xl {
    font-size: 1.3rem !important;
  }

  .text-xl {
    font-size: 1rem !important;
  }

  /* Cards Mobile */
  .bg-white.rounded-2xl,
  .bg-white.rounded-3xl {
    margin: 0 10px;
    padding: 1rem !important;
  }

  /* Grid Mobile - using universal approach */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Re-enable 2-column for small cards */
  .grid.sm-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Container Padding Mobile */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Modal Mobile */
  .modal-content {
    margin: 2% auto !important;
    width: 95% !important;
    padding: 1rem !important;
  }

  /* Form Mobile - handled by universal grid rule above */

  /* Gallery Mobile */
  .gallery-item {
    aspect-ratio: 1/1 !important;
  }

  /* Contact Icons Mobile */
  .w-16.h-16 {
    width: 3rem !important;
    height: 3rem !important;
  }

  /* Spacing Mobile */
  .py-20 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-16 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .mb-16 {
    margin-bottom: 2rem !important;
  }

  .mb-12 {
    margin-bottom: 1.5rem !important;
  }

  /* Hide decorative elements on mobile */
  .absolute.top-20,
  .absolute.bottom-32 {
    display: none !important;
  }

  /* Additional mobile-specific hiding */
  .absolute[class*="top-1/2"] {
    display: none !important;
  }
}

/* Medium devices (tablets, 641px to 768px) */
@media (min-width: 641px) and (max-width: 768px) {
  .school-main-title {
    font-size: 2.2rem !important;
  }

  .school-location {
    font-size: 1.1rem !important;
  }

  .hero-slider {
    height: 60vh !important;
  }

  .text-4xl,
  .text-5xl {
    font-size: 2.2rem !important;
  }

  .py-20 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  /* Tablet grid adjustments */
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Large devices (desktops, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .school-main-title {
    font-size: 2.3rem !important;
  }

  .hero-slider {
    height: 65vh !important;
  }

  .container {
    max-width: 1024px !important;
  }
}

/* Extra large devices (large desktops, 1025px and up) */
@media (min-width: 1025px) {
  .container {
    max-width: 1200px !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .hover\\:shadow-2xl:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  }

  .hover\\:-translate-y-3:hover {
    transform: translateY(0) !important;
  }

  .hover\\:scale-110:hover {
    transform: scale(1) !important;
  }

  /* Increase touch targets */
  button,
  .swiper-button-next,
  .swiper-button-prev {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  /* Dropdown behavior for touch */
  .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .site-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Phone Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slider {
    height: 80vh !important;
  }

  .py-20 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .swiper-slide h1 {
    font-size: 1.8rem !important;
  }
}

/* Print Styles */
@media print {
  .no-print,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination,
  .dropdown-menu,
  .modal {
    display: none !important;
  }

  .container {
    max-width: none !important;
    padding: 0 !important;
  }

  .py-20,
  .py-16 {
    padding: 1rem 0 !important;
  }

  .grid {
    page-break-inside: avoid;
  }

  .bg-gradient-to-br,
  .bg-gradient-to-r,
  .bg-gradient-to-l,
  .bg-gradient-to-t {
    background: #f9fafb !important;
  }

  .text-white {
    color: #000 !important;
  }
}

/* Focus Accessibility */
@media (prefers-reduced-motion: no-preference) {
  *:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee {
    animation: none !important;
  }

  .animate-pulse {
    animation: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .bg-red-600,
  .bg-red-700 {
    background-color: #000 !important;
  }

  .text-red-600 {
    color: #000 !important;
  }

  .border-red-500 {
    border-color: #000 !important;
  }
}

/* Dark Mode Support - Maintaining School Theme */
@media (prefers-color-scheme: dark) {
  /* Keep school theme colors even in dark mode */
  .bg-gray-50,
  .bg-white {
    background-color: #ffffff !important;
  }

  .text-gray-800,
  .text-gray-700 {
    color: #374151 !important;
  }

  .text-gray-600 {
    color: #6b7280 !important;
  }

  .bg-gray-800 {
    background-color: #1f2937 !important;
  }
}

/* Custom Responsive Utilities */
.responsive-text {
  font-size: clamp(1rem, 2.5vw, 2rem);
}

.responsive-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.responsive-subtitle {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
}

.responsive-padding {
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 3vw, 3rem);
}

.responsive-gap {
  gap: clamp(1rem, 3vw, 2rem);
}

/* Flexible Image Containers */
.responsive-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.responsive-icon {
  width: clamp(2rem, 4vw, 4rem);
  height: clamp(2rem, 4vw, 4rem);
}

@media print {
  .no-print {
    display: none !important;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Auto-scrolling News CSS */
.news-scroll-container {
  position: relative;
}

.news-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.news-scroll-content {
  animation: scrollNews 30s linear infinite;
}

.news-scroll-content:hover {
  animation-play-state: paused;
}

@keyframes scrollNews {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.news-item {
  min-height: auto;
  display: block;
}

.date-badge {
  flex-shrink: 0;
  min-width: 80px;
}

/* Responsive News Section */
@media (max-width: 1024px) {
  .news-scroll-wrapper {
    height: 400px !important;
  }

  .news-scroll-content {
    animation-duration: 25s;
  }
}

@media (max-width: 768px) {
  .news-scroll-wrapper {
    height: 350px !important;
  }

  .news-item {
    margin-bottom: 1.5rem !important;
    padding: 1rem !important;
  }

  .date-badge {
    padding: 0.75rem !important;
    margin-right: 1rem !important;
  }

  .date-badge .text-2xl {
    font-size: 1.5rem !important;
  }

  .news-scroll-content {
    animation-duration: 20s;
  }
}

/* Infrastructure Image Cards */
.facility-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

.facility-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.facility-image {
  height: 192px; /* h-48 equivalent */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.facility-card:hover .facility-image {
  transform: scale(1.05);
}

.facility-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.facility-card:hover .facility-overlay {
  opacity: 1;
}

/* Responsive adjustments for facility cards */
@media (max-width: 768px) {
  .facility-image {
    height: 160px; /* Smaller on mobile */
  }

  .facility-card {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .facility-image {
    height: 200px; /* Slightly taller on desktop */
  }
} /* Home Banner Image Fixes */
.homebanner-container {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.homebanner-img {
  width: 100% !important;
  height: 500px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 1rem !important;
  transition: transform 0.5s ease !important;
}

.homebanner-img:hover {
  transform: scale(1.05) !important;
}

/* Responsive Banner */
@media (max-width: 768px) {
  .homebanner-container {
    min-height: 350px;
  }

  .homebanner-img {
    height: 350px !important;
  }
}

/* Achievement Section Styles */
.achievements {
  position: relative;
}

.achievement-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.achievement-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px) scale(1.02);
}

.achievement-card img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.achievement-card .achievement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-card:hover .achievement-overlay {
  opacity: 1;
}

.achievement-icon {
  font-size: 3rem;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.achievement-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.highlight {
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.achievement-stats {
  font-size: 1.25rem;
  font-weight: 700;
  color: #6366f1;
  margin: 0.5rem 0;
}

/* Achievement Stats Banner */
.achievement-stats-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2rem;
  padding: 3rem 2rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  box-shadow: 0 20px 40px -12px rgba(102, 126, 234, 0.4);
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animation for achievement cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.achievement-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.achievement-card:nth-child(1) {
  animation-delay: 0.1s;
}

/* Force hero banner height to 14rem (224px) on desktop (>=1024px) */
@media (min-width: 1024px) {
  .hero-bg {
    height: 14rem !important; /* 14rem = 224px */
  }
}
.achievement-card:nth-child(2) {
  animation-delay: 0.2s;
}
.achievement-card:nth-child(3) {
  animation-delay: 0.3s;
}
.achievement-card:nth-child(4) {
  animation-delay: 0.4s;
}
.achievement-card:nth-child(5) {
  animation-delay: 0.5s;
}
.achievement-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .achievements .container {
    padding: 0 1rem;
  }

  .achievement-card {
    margin-bottom: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .achievement-stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem 1rem;
  }
}
