:root {
  scroll-padding-top: 80px; /* adjust if your navbar height is different */
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f8f9fa;
}

.section-title {
  color: #002147;
  position: relative;
  font-weight: bold;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: #ffc107;
  display: block;
  margin: 10px auto;
  border-radius: 2px;
}

.core-value-icon {
  font-size: 2rem;
  color: #002147;
  margin-bottom: 0.5rem;
}

.core-value-card {
  background: #ffffff;
  border-left: 4px solid #002147;
  transition: 0.3s;
}

.core-value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Header styles */
.about-header {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-header .overlay,
.parallax-header .overlay {
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.about-header .container,
.parallax-header .container {
  z-index: 2;
}

.parallax-header {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .parallax-header {
    background-attachment: scroll;
  }
}


/* Base Flip Card Setup */
.flip-card {
  perspective: 1000px;
  height: 100%;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 12px;
}

/* Desktop Flip */
@media (min-width: 768px) {
  .flip-card-inner {
    height: 200px;
  }

  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .flip-card-back {
    transform: rotateY(180deg);
  }
}

/* Mobile: Stack both sides without flipping */
@media (max-width: 767.98px) {
  .flip-card-inner {
    height: auto;
    transform: none !important;
  }

  .flip-card-front,
  .flip-card-back {
    position: relative !important;
    transform: none !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    padding: 1rem;
    border-radius: 12px;
    display: block;
    text-align: center;
  }

  .flip-card-back {
    margin-top: 1rem;
  }
}

/* Shared Card Face Styling */
.flip-card-front,
.flip-card-back {
  color: #fff;
}

/* Unique Background Colors (Front/Back distinct shades) */
.core-color-kindness-front { background-color: #17a2b8; }   /* Teal */
.core-color-kindness-back  { background-color: #138496; }   /* Darker Teal */

.core-color-commitment-front { background-color: #ffc107; } /* Yellow */
.core-color-commitment-back  { background-color: #e0a800; } /* Darker Yellow */

.core-color-discipline-front { background-color: #6c757d; } /* Gray */
.core-color-discipline-back  { background-color: #495057; } /* Darker Gray */

.core-color-integrity-front { background-color: #20c997; }  /* Green-Teal */
.core-color-integrity-back  { background-color: #198754; }  /* Darker Green */

.core-color-collaboration-front { background-color: #007bff; } /* Blue */
.core-color-collaboration-back  { background-color: #0056b3; } /* Darker Blue */

.core-color-excellence-front { background-color: #6610f2; } /* Purple */
.core-color-excellence-back  { background-color: #4b0ca6; } /* Darker Purple */

.core-color-resilience-front { background-color: #fd7e14; } /* Orange */
.core-color-resilience-back  { background-color: #b45309; } /* Darker Orange */

.core-color-diligence-front { background-color: #28a745; }  /* Green */
.core-color-diligence-back  { background-color: #1e7e34; }  /* Darker Green */

/* Anthem styles */
.anthem-section {
  background-color: #f9f9ff;
}

.anthem-box {
  border-left: 6px solid #002147;
  background: #fff;
}

.anthem-verse p,
.anthem-chorus p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.anthem-btn {
  background-color: #002147;
  color: #fff;
  transition: all 0.3s ease;
}

.anthem-btn:hover {
  background-color: #001730;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

audio {
  border-radius: 6px;
  outline: none;
}

/* Underline styles */
.heading-underline {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: #002147;
}

.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 70%;
  height: 4px;
  background-color: #0d6efd;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Motto Section */
.motto-badge {
  background: linear-gradient(to right, #002147, #ffc107);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 33, 71, 0.4);
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motto-highlight {
  margin-top: 2rem;
  animation: glowPulse 3s ease-in-out infinite;
}

.motto-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 33, 71, 0.6);
}

.motto-line::after {
  content: '';
  display: block;
  height: 4px;
  width: 80%;
  background-color: #ffc107;
  margin: 10px auto 0;
  border-radius: 2px;
}

.school-intro-section h4 {
  font-size: 1.5rem;
  background-color: #f5f5f5;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 33, 71, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.7);
  }
}

.motto-box {
  background-color: #f1f9ff;
  border-left: 5px solid #0d6efd;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.cursor {
  display: inline-block;
  width: 1px;
  background-color: #0d6efd;
  animation: blink 0.8s steps(1) infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
