/* DRAMATIC VISUAL IMPACT STYLES */

:root {
  --dramatic-gradient-1: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
  --dramatic-gradient-2: linear-gradient(135deg, #0061ff, #60efff);
  --dramatic-gradient-3: linear-gradient(135deg, #7303c0, #ec38bc, #fdeff9);
  --dramatic-gradient-4: linear-gradient(135deg, #38ef7d, #11998e);
  --dramatic-gradient-5: linear-gradient(135deg, #f953c6, #b91d73);
  --glow-color-1: rgba(255, 175, 123, 0.8);
  --glow-color-2: rgba(96, 239, 255, 0.8);
  --glow-color-3: rgba(236, 56, 188, 0.8);
  --glow-color-4: rgba(56, 239, 125, 0.8);
}

/* Global impacts */
body {
  overflow-x: hidden;
}

/* Dynamic text treatments */
.hero-title .title-main {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.5rem;
  background-clip: text;
  -webkit-background-clip: text;
  color: white; /* Fallback color if gradient doesn't work */
  background-image: var(--dramatic-gradient-1);
  text-shadow: 
    0 0 2px rgba(0, 0, 0, 0.9), 
    0 5px 30px rgba(0, 0, 0, 0.7); /* Stronger shadow for better visibility */
}

.hero-title .title-accent {
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-clip: text;
  -webkit-background-clip: text;
  color: white; /* Fallback color if gradient doesn't work */
  background-image: var(--dramatic-gradient-2);
  text-shadow: 
    0 0 2px rgba(0, 0, 0, 0.9), 
    0 5px 30px rgba(0, 0, 0, 0.7); /* Stronger shadow for better visibility */
}

/* Enhanced section headers */
.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: var(--dramatic-gradient-1);
  text-shadow: 
    0 0 1px rgba(0, 0, 0, 0.7), 
    0 5px 30px rgba(0, 0, 0, 0.3); /* Add outline shadow for better visibility */
}

.section-subtitle {
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 3rem;
}

/* Immersive hero */
.immersive-hero {
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 20px;
}

@media (min-width: 992px) {
  .immersive-hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 100px 50px;
  }

  .hero-content {
    width: 50%;
    margin-right: 30px;
  }

  .hero-image {
    width: 45%;
    margin-left: 30px;
  }
}

.hero-content {
  background: rgba(0, 0, 0, 0.6) !important; /* Darker background for better contrast */
  backdrop-filter: blur(20px) !important;
  border-radius: var(--border-radius);
  padding: 30px !important;
  margin: 20px;
  z-index: 10;
  position: relative;
  max-width: 600px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow */
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0), rgba(255,255,255,0.2));
  z-index: -1;
  border-radius: 40px;
  pointer-events: none;
  animation: rotate-gradient 10s infinite linear;
}

@keyframes rotate-gradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 650px;
}

/* Enhanced hero badge */
.hero-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dramatic-gradient-1);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.badge-text {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

/* Stats section */
.hero-stats {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.hero-stat {
  text-align: center;
  position: relative;
}

.hero-stat::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  transform: translateY(-50%);
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
}

.hero-stat:first-child::before {
  display: none;
}

.stat-number {
  font-size: 3rem !important;
  font-weight: 800;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: var(--dramatic-gradient-2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* Dramatic buttons */
.dramatic-btn {
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}

.dramatic-btn.primary {
  background-image: var(--dramatic-gradient-1);
  color: white;
}

.dramatic-btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.dramatic-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.dramatic-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dramatic-btn:hover::before {
  transform: translateX(100%);
}

.btn-icon {
  font-size: 1.2rem;
}

/* Floating Elements */
.mega-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(80px);
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: #3a1c71;
  top: -200px;
  left: -200px;
  animation: float-shape 25s infinite alternate ease-in-out;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: #ec38bc;
  bottom: -200px;
  right: -100px;
  animation: float-shape 20s infinite alternate-reverse ease-in-out;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: #0061ff;
  top: 50%;
  left: 60%;
  animation: float-shape 15s infinite alternate ease-in-out 2s;
}

@keyframes float-shape {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(100px, 50px) rotate(30deg); }
}

/* Enhanced card styles */
.achievement-card, .testimonial-card, .program-card, .facility-card, 
.alumni-card, .news-card {
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.achievement-card::before, .testimonial-card::before, .program-card::before,
.facility-card::before, .alumni-card::before, .news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.achievement-card:hover, .testimonial-card:hover, .program-card:hover,
.facility-card:hover, .alumni-card:hover, .news-card:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.achievement-card:hover::before, .testimonial-card:hover::before, .program-card:hover::before,
.facility-card:hover::before, .alumni-card:hover::before, .news-card:hover::before {
  opacity: 1;
}

/* Achievement cards */
.achievement-card {
  position: relative;
  background: white;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.achievement-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dramatic-gradient-3);
  font-size: 2.5rem;
  color: white;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.achievement-icon::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(236,56,188,0.2), rgba(236,56,188,0));
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.achievement-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--dramatic-gradient-3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  border-radius: 30px;
}

.testimonial-content {
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-content::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: var(--dramatic-gradient-4);
  border-radius: 50%;
  opacity: 0.1;
}

.quote-icon {
  font-size: 5rem;
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.1;
  font-family: Georgia, serif;
  color: #38ef7d;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  color: #333 !important;
  font-weight: 500;
}

.testimonial-author {
  margin-top: 2rem;
  display: flex;
  align-items: center;
}

.author-info h5 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 5px;
  background: var(--dramatic-gradient-4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Program cards */
.program-card {
  background: white;
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #333;
}

.program-card.featured {
  background: var(--dramatic-gradient-2);
  color: white;
  transform: translateY(-10px) scale(1.05);
}

.program-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--dramatic-gradient-5);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(249, 83, 198, 0.3);
}

.program-icon {
  margin-bottom: 2rem;
}

.program-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.program-card:not(.featured) h3 {
  background: var(--dramatic-gradient-3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.program-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(0, 0, 0, 0.1);
}

.program-card.featured .program-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.program-highlight {
  font-weight: 700;
  letter-spacing: 1px;
  font-style: italic;
}

/* Magical cursor */
.magical-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}

.magical-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.magical-cursor.hover {
  transform: scale(2.5);
}

/* Reveal animations */
.reveal-element {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), 
              transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Section titles special reveal */
.section-title.reveal-element {
  transform: translateY(50px) scale(0.95);
}

.section-title.revealed {
  transform: translateY(0) scale(1);
}

/* Card reveal animations */
.program-card.reveal-element,
.facility-card.reveal-element,
.achievement-card.reveal-element,
.testimonial-card.reveal-element {
  transform: translateY(80px) scale(0.9);
}

.program-card.revealed,
.facility-card.revealed,
.achievement-card.revealed,
.testimonial-card.revealed {
  transform: translateY(0) scale(1);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  background: var(--dramatic-gradient-1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  padding: 0 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Form styling fixes */
.form-group input, 
.form-group select, 
.form-group textarea {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.form-group input::placeholder, 
.form-group select::placeholder, 
.form-group textarea::placeholder {
  color: #777;
}

/* Inquiry form container styling */
.admission-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancement */
.hero {
  position: relative;
  min-height: 100vh;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/school-building.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.65));
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title .title-main {
    font-size: 3.5rem;
  }
  
  .hero-title .title-accent {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
    padding: 2rem !important;
  }
  
  .hero-stats {
    flex-wrap: wrap;
  }
  
  .hero-stat {
    flex: 1 1 100%;
    margin: 1rem 0;
  }
  
  .hero-stat::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-title .title-main {
    font-size: 2.5rem;
  }
  
  .hero-title .title-accent {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .dramatic-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .achievement-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .magical-cursor {
    display: none !important; /* Disable magical cursor on mobile devices */
  }
  
  .floating-shape {
    opacity: 0.2; /* Reduce opacity of floating shapes on mobile */
  }
}

/* Hero section layout improvements for better image visibility */
.immersive-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 20px;
}

@media (min-width: 992px) {
  .immersive-hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 100px 50px;
  }

  .hero-content {
    width: 50%;
    margin-right: 30px;
  }

  .hero-image {
    width: 45%;
    margin-left: 30px;
  }
}

/* Background elements should not interfere with image visibility */
.hero-background,
.mega-floating-elements,
.glow-overlay {
  pointer-events: none;
  z-index: 1; /* Keep these behind the content */
}

/* Make sure the hero content doesn't overlap with the image */
.hero-content {
  position: relative;
  z-index: 10;
}

/* Further prevent any image display issues */
img.hero-img {
  background-color: #fff; /* White background fallback if image fails to load */
  min-height: 300px; /* Minimum height to ensure visibility */
  object-position: center; /* Center the image */
  object-fit: cover; /* Ensure the image covers the container appropriately */
  border-radius: 12px; /* Consistent with design language */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Add depth */
  display: block; /* Ensure block display */
  width: 100%; /* Full width of container */
  opacity: 1 !important; /* Force opacity */
  max-height: 500px; /* Control maximum height */
}

/* Hero overlay glow */
.glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--glow-color-1);
  top: 20%;
  left: -10%;
}

.glow-2 {
  width: 350px;
  height: 350px;
  background: var(--glow-color-2);
  bottom: 10%;
  right: -5%;
}

.glow-3 {
  width: 300px;
  height: 300px;
  background: var(--glow-color-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Text Visibility Fixes */

/* Fix hero content background for better text visibility */
.hero-content {
  background: rgba(0, 0, 0, 0.75) !important; /* Even darker background for better contrast */
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
  padding: 3.5rem !important;
  border-radius: 30px !important;
  color: white !important; /* Ensure text is white for contrast */
}

/* Fix gradient text visibility */
.hero-title .title-main {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff; /* Solid white fallback */
  text-shadow: 
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(0, 0, 0, 0.3); /* Strong shadow for readability */
}

.hero-title .title-accent {
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: var(--dramatic-gradient-2);
  text-shadow: 
    0 0 1px rgba(255, 255, 255, 0.7), 
    0 5px 30px rgba(0, 0, 0, 0.5); /* Add white outline shadow for better visibility */
}

/* Fix section titles visibility */
.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-color); /* Solid color as fallback */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add a subtle background to all section headers for better text visibility */
.section-header {
  position: relative;
  z-index: 2;
}

/* Ensure standard text is visible */
p, li, h3, h4, h5, h6 {
  color: inherit; /* Inherit from parent */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); /* Add subtle shadow for readability */
}

/* Fix testimonial text */
.testimonial-text {
  color: #333 !important;
  font-weight: 500;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95) !important; /* More opaque background */
}

/* Fix program card text */
.program-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.program-card.featured {
  color: white;
}

/* Fix facility card content */
.facility-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  color: white;
}

/* Fix Alumni card text */
.alumni-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* Fix news card text */
.news-content {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* Fix achievement card text */
.achievement-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

/* Fix glow overlays to not interfere with text */
.glow-overlay {
  pointer-events: none;
  z-index: 0; /* Ensure it's behind content */
}

/* Fix section backgrounds for better contrast */
section {
  position: relative;
  z-index: 1;
}

/* Section background fixes */
.about, .academics, .facilities, .admissions, .testimonials, .virtual-tour,
.alumni, .news-events, .contact {
  position: relative;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Dark sections with light text */
.hero, .achievements, .virtual-tour {
  color: white;
}

/* Light sections with dark text */
.about, .testimonials, .academics, .facilities, .admissions, .alumni, .news-events, .contact {
  color: #333;
}

/* Fix footer text */
.footer {
  background: linear-gradient(to right, #003366, #004c99);
  color: white;
}

.footer a, .footer h4 {
  color: white;
}

/* Fix hero-subtitle and description */
.hero-subtitle, .hero-description {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Fix nav links */
.nav-link {
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Fix dramatic buttons text */
.dramatic-btn {
  color: white !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Additional text visibility fixes */

/* Achievement stats visibility */
.stat-number {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Achievement card icon visibility */
.achievement-icon {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Fix the nav menu on mobile */
.nav-menu {
  background: rgba(0, 0, 0, 0.85);
}

/* Fix map placeholder text */
.map-placeholder {
  background: rgba(0, 51, 102, 0.1);
  border: 1px dashed rgba(0, 51, 102, 0.3);
  color: #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

/* Fix news links */
.news-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

/* Fix tour content */
.tour-content {
  position: relative;
  z-index: 2;
}

.tour-card .tour-overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
}

.tour-title, .tour-overlay p {
  color: white;
}

/* Fix footer links */
.footer-links a, .social-link {
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-links a:hover, .social-link:hover {
  opacity: 1;
}

/* Critical text fixes - these will override previous styles */
.hero-title .title-main {
  color: white !important;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7) !important;
}

.hero-title .title-accent {
  color: #88ccff !important;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7) !important;
}

/* Make sure all section titles have solid colors */
.section-title {
  color: #003366 !important;
  background: none !important;
  text-shadow: none !important;
}

/* Fix hero stats */
.hero-stat .stat-number {
  color: white !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
}

.hero-stat .stat-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Enhanced hero image styling for new school campus image */
.hero-image .image-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  max-width: 600px;
  height: auto;
  z-index: 10; /* Ensure image is above other elements */
}

.hero-image .hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
  filter: brightness(1.1) contrast(1.05); /* Slightly enhance brightness and contrast */
  max-height: 500px; /* Control maximum height */
}

/* Ensure hero image overlay doesn't obscure the image too much */
.hero-image .image-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
  backdrop-filter: none; /* Remove any blur effect */
  opacity: 0.8; /* Make overlay more transparent */
}

/* Ensure the hero-image section is properly displayed */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  position: relative;
  margin: 0 auto;
  max-width: 90%;
  padding: 20px;
}

/* Virtual tour image enhancements */
.tour-card {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: white; /* Fallback background */
  position: relative;
}

.tour-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
  filter: brightness(1.1) contrast(1.05);
  max-height: 450px;
  min-height: 300px; /* Ensure minimum height */
}

/* Tour card overlay to improve text visibility */
.tour-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  padding: 30px 20px 20px;
  color: white;
}

/* Enhanced image container */
.solid-container {
  border: 3px solid var(--primary-color);
  background-color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 12px;
  position: relative;
  overflow: visible;
  margin: 20px auto;
  max-width: 600px;
}

/* Make overlay less intense */
.reduced-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)) !important;
  opacity: 0.6 !important;
}

/* Enhanced hero image styles with !important to override any conflicting styles */
.hero-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 400px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 5 !important;
  position: relative !important;
}
