/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

/* Loader */
/* Loader Wrapper */
/* Loader Wrapper */

#loader-wrapper {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Glowing Ring Loader */
.ring-loader {
  width: 70px;
  height: 70px;
  border: 6px solid transparent;
  border-top: 6px solid #00c3ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px #00c3ff;
}

.loader-text {
  color: #00c3ff;
  font-family: "Segoe UI", sans-serif;
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: 1px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Top Bar */
/* .top-bar {
  background: linear-gradient(to right, #e60039, #6a0030);
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  z-index: 1000;
  overflow: hidden;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar .top-left,
.top-bar .top-center,
.top-bar .top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.top-bar i {
  color: #fffdd0;
  font-size: 16px;
}

.top-bar a {
  color: #fffdd0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: #ffdede;
  text-decoration: underline;
}

/* Animation */
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
*/


/* schoole logo */

/* Header Info */
/* Loader */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-image {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  animation: pop-in 1s ease-out forwards;
  opacity: 0;
}

.ring-loader {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loader-text {
  font-size: 16px;
  color: #1e3a8a;
  font-weight: bold;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Header Styles */
.school-header-animated {
  background: linear-gradient(90deg, #f9f9f9, #eef5ff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  overflow: hidden;
  transform: scale(0.98);
  filter: blur(2px) brightness(1.2);
  opacity: 0.5;
  transition: all 2.5s ease;
}

/* After loader */
.school-header-animated.reveal {
  transform: scale(1);
  filter: blur(0) brightness(1);
  opacity: 1;
}

.school-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  height: 100px;
  width: 100px;
}

.school-details {
  text-align: center;
  flex: 1;
  padding: 10px 20px;
}

.school-details h1 {
  font-size: 30px;
  color: #1e3a8a;
  font-weight: bold;
  margin-bottom: 5px;
}

.school-details p {
  font-size: 20px;
  color: #444;
  font-style: italic;
}

.school-details strong {
  font-size: 15px;
  color: #d97706;
}

.contact {
  text-align: right;
  min-width: 180px;
}

.contact span {
  font-weight: bold;
  color: #0f766e;
}

.contact p {
  font-size: 15px;
  color: #111;
}

/* 📱 Small devices (up to 576px) */
@media (max-width: 576px) {
  .school-flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .logo img {
    height: 130px;
    width: 130px;
  }

  .school-details h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .school-details p,
  .school-details strong {
    font-size: 18px;
  }

  .hanging-phone {
    margin-top: 10px;
    text-align: center;
  }

  .hanging-phone p {
    font-size: 16px;
  }
}

/* 📲 Tablets (577px - 991px) */
@media (min-width: 577px) and (max-width: 991px) {
  .school-flex {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .logo img {
    height: 100px;
    width: 100px;
  }

  .school-details h1 {
    font-size: 28px;
  }

  .school-details p {
    font-size: 18px;
  }

  .school-details strong {
    font-size: 15px;
  }

  .hanging-phone p {
    font-size: 17px;
  }
}

/* Navbar */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #004e92, #000428);
  padding: 12px 0;
  border-top: 3px solid #d50032;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  margin-top: 5px;
  display: none;
  position: absolute;
  background-color: #ffffffff;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 999;
}

.dropdown-content a {
  color: black;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  border-radius: 8px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.animate-navbar.loaded {
  opacity: 1;
  transform: translateY(0);
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 25px;
  overflow-x: auto;
  padding: 0 15px;
}

.navbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding: 6px 4px;
  transition: color 0.3s ease-in-out;
  white-space: nowrap;
}

.navbar a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #ff4d4d;
  transition: width 0.3s;
}

.navbar a:hover {
  color: #ff4d4d;
}

.navbar a:hover::after {
  width: 100%;
}

/* Extra Large Devices: Desktops (1200px and up) */
@media (min-width: 1200px) {
  .nav-container {
    display: flex;
    gap: 30px;
    overflow-x: visible;
  }
}

/* Large Devices: Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-container {
    display: flex;
    gap: 25px;
    overflow-x: visible;
  }
}

/* Medium Devices: Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-container {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* allow scrolling if needed */
  }
  .navbar {
    padding: 30px 0px !important;
  }
}

/* Small Devices: Small tablets / large phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .nav-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
  }
  .navbar {
    padding: 30px 0px !important;
  }

  .nav-flex .dropdown-content a {
    color: white; /* white text on mobile */
  }

  /* Optional: change hover color on mobile */
  .nav-flex .dropdown-content a:hover {
    color: #ffd700; /* golden hover for contrast */
  }

  /* Optional: background of dropdown on mobile */
  .nav-flex .dropdown-content {
    background-color: #004e92; /* matches navbar gradient or solid dark */
  }
}

/* Extra Small Devices: Phones (<576px) */
@media (max-width: 575px) {
  .nav-container {
    display: flex;
    gap: 10px;
    overflow-x: scroll; /* horizontal scroll for very small screens */
  }
  .navbar {
    padding: 30px 0px !important;
  }

  .nav-flex .dropdown-content a {
    color: white; /* white text on mobile */
  }

  /* Optional: change hover color on mobile */
  .nav-flex .dropdown-content a:hover {
    color: #ffd700; /* golden hover for contrast */
  }

  /* Optional: background of dropdown on mobile */
  .nav-flex .dropdown-content {
    background-color: #004e92; /* matches navbar gradient or solid dark */
  }
}

/* Carousel image size */

.carousel-img {
  height: 60vh;
  object-fit: cover;
}

.carousel-caption {
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.hanging-poster {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.25); /* Transparent background */
  backdrop-filter: blur(6px); /* Glass effect */
  padding: 20px 30px;
  border: 4px solid #ffcc00; /* Updated to yellow border */
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  color: #512222;
  text-align: center;
  animation: floatDown 1.2s ease-out forwards;
  max-width: 90%;
  width: 500px;
}

.hanging-poster h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
  color: black;
}

.hanging-poster p {
  font-size: 16px;
  color: black;
  margin: 0;
}

/* Twisted yellow rope */
.hanging-poster::before,
.hanging-poster::after {
  content: "";
  position: absolute;
  top: -50px;
  width: 10px;
  height: 50px;
  background: repeating-linear-gradient(
    45deg,
    #f7c948,
    #f7c948 4px,
    #e0a800 4px,
    #e0a800 8px
  );
  border-radius: 2px;
}

.hanging-poster::before {
  left: 20%;
}

.hanging-poster::after {
  right: 20%;
}

/* Animation */
@keyframes floatDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* News Strip Animation */
.news-strip {
  overflow: hidden;
  white-space: nowrap;
}

.news-ticker {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: scrollNews 20s linear infinite;
}

@keyframes scrollNews {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Corner lines */
/* .corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border: 10px solid #d4af37; 
  z-index: 1;
}

.corner-frame::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

.corner-frame::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}
 */

/*hanging phone */
.hanging-phone {
  position: relative;
  width: 90px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swing 2s infinite ease-in-out;
}

.spiral-wire {
  margin-bottom: -8px; /* tight spacing between spiral and phone */
}

.phone-icon {
  font-size: 28px;
  transform-origin: top center;
}

/* Swing effect */
@keyframes swing {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* about us */

.animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.animate-fade,
.animate-line {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

/* Active states */
.visible.animate-left {
  opacity: 1;
  transform: translateX(0);
}

.visible.animate-right {
  opacity: 1;
  transform: translateX(0);
}

.visible.animate-fade,
.visible.animate-line {
  opacity: 1;
  transform: translateY(0);
}

/* Delays */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}
.delay-4 {
  transition-delay: 0.8s;
}
.delay-5 {
  transition-delay: 1s;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2c3e50;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin: 0 auto;
}

.about-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #007bff;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.corner-frame {
  position: relative;
  display: inline-block;
}

.corner-frame img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-origin: center;
}

.corner-frame img:hover {
  transform: scale(1.05) rotate(1.5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* about background */
#about {
  background: linear-gradient(180deg, #eef5ff, #ffffff);
  position: relative;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  opacity: 0.05;
  font-size: 80px;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-200%);
  }
}

/* about paragraph */
.school-about {
  background: linear-gradient(to bottom right, #fff9e6, #f0faff);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  color: #333;
  height: 450px;
}

.section-title {
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.para-card {
  padding: 10px;
  margin-bottom: 0.5rem;
  border-radius: 16px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-align: justify;
  background: linear-gradient(to right, #ff758c, #ff7eb3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  height: 95px;
}

@keyframes bounce-scale {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.03) translateY(-6px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.para-card:hover {
  animation: bounce-scale 0.6s ease;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.vibrant-1 {
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
}

.vibrant-2 {
  background: linear-gradient(to right, #a18cd1, #fbc2eb);
}

.vibrant-3 {
  background: linear-gradient(to right, #f6d365, #fda085);
}

.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.visible.animate-right {
  opacity: 1;
  transform: translateX(0);
}

/* welcome about */
.hanging-title-container {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 1rem;
  text-align: center;
}

.wires {
  position: absolute;
  top: -25px;
  left: 50%;
  width: 100px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
}

.left-wire,
.right-wire {
  width: 2px;
  height: 20px;
  background-color: #444;
  animation: wireBounce 2s infinite ease-in-out;
}

.left-wire {
  transform: rotate(-5deg);
}
.right-wire {
  transform: rotate(5deg);
}

.highlight-box {
  background: linear-gradient(45deg, #ff8a00, #e52e71);
  color: white;
  padding: 1rem 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  position: relative;
  z-index: 2;
}

/* Swing animation */
.swing-animate {
  animation: swingBoard 3s infinite ease-in-out;
  transform-origin: top center;
}

@keyframes swingBoard {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(1deg);
  }
}

@keyframes wireBounce {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.1);
  }
}

/* -------------------- Responsive Font Sizes -------------------- */

/* Large devices (desktops ≤1200px) */
@media (max-width: 1200px) {
  .about-title {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .para-card {
    font-size: 0.95rem;
  }
}

/* Medium devices (tablets ≤992px) */
@media (max-width: 992px) {
  .about-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .para-card {
    font-size: 0.8rem;
  }
  .school-about {
    height: auto;
    padding: 1rem;
  }
}

/* Small devices (phones ≤768px) */
@media (max-width: 768px) {
  .about-title {
    font-size: 1.9rem;
  }
  .section-title {
    font-size: 1.2rem;
  }
  .para-card {
    font-size: 0.8rem;
  }
}

/* Extra small devices (≤576px) */
@media (max-width: 576px) {
  .about-title {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .para-card {
    font-size: 0.81rem;
  }
}

/* Very small phones (≤400px) */
@media (max-width: 400px) {
  .about-title {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 0.95rem;
  }
  .para-card {
    font-size: 0.72rem;
  }
}

/* principle message */

.hero-section {
  min-height: 500px;
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(to bottom right, #fff9e6, #f0faff);
}

.principal-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #28a745;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Oval Speech Bubble */
.speech-bubble {
  position: relative;
  background: #e6f9ef;
  border: 2px solid #28a745;
  padding: 40px 50px;
  max-width: 800px;
  border-radius: 100px / 70px; /* true oval */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-family: cursive;

  color: #333;
  line-height: 1.3;
}

/* Curved Tail */
.speech-bubble::after {
  content: "";
  position: absolute;
  left: -35px;
  top: 80px;
  width: 70px;
  height: 70px;
  background: #e6f9ef;
  border: 2px solid #28a745;
  border-right: none;
  border-bottom: none;
  border-radius: 0 0 0 70px;
  transform: rotate(45deg);
  box-shadow: -6px -6px 5px rgba(0, 0, 0, 0.05);
}

.me-4.text-center:hover .principal-img {
  transform: scale(1.05);
}

/* Make it smooth */
.principal-img {
  transition: transform 0.4s ease-in-out;
}

.speech-bubble p:hover {
  background-color: #64e6a5; /* soft green background */
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Smooth transition for all p tags */
.speech-bubble p {
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 12px;
}

/* Bubbles inside speech bubble */
.bubble-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: -10px;
}

/* Individual dots */
.bubble-dot {
  width: 10px;
  height: 10px;
  background-color: #28a745;
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* -------------------- Tablets / Small Devices -------------------- */
@media only screen and (max-width: 768px) {
  /* Vision Section */
  #vision-para {
    font-size: 15px;
  }
  .row.align-items-center {
    flex-direction: column !important;
  }
  .row.align-items-center .col-lg-5,
  .row.align-items-center .col-lg-7 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .row.align-items-center img {
    max-height: 200px;
    width: 100%;
    margin-bottom: 15px;
  }
  .row.align-items-center .p-4 {
    height: auto !important;
    border-left: 6px solid #004e92;
  }

  /* Leadership Section */
  .leader-section .row.g-4 {
    flex-direction: column;
  }

  .leader-section .col-md-6 {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .card-leader {
    flex-direction: column !important;
    text-align: center;
  }

  /* Principal card fix */
  .card-leader.flex-row-reverse {
    flex-direction: column !important;
  }

  .card-leader .leader-img {
    width: 100%;
    height: 490px;
    margin-bottom: 15px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
  }

  .card-leader .leader-content {
    padding: 20px;
  }

  .card-leader .leader-title {
    font-size: 1.2rem;
  }

  .card-leader p {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: justify;
  }

  .card-leader a.btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .leader-banner {
    font-size: 16px;
    padding: 8px 12px;
  }

  /* Speech Bubble */
  .speech-bubble {
    padding: 20px 25px;
    font-size: 0.9rem;
    max-width: 100%;
  }

  .speech-bubble::after {
    left: 10px;
    top: 50px;
    width: 50px;
    height: 50px;
  }

  /* Principal Image */
  .principal-img {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }

  /* Bubble Dots */
  .bubble-dot {
    width: 8px;
    height: 8px;
  }
}

/* -------------------- Extra Small Devices / Phones -------------------- */
@media only screen and (max-width: 480px) {
  /* Vision Section */
  #vision-para {
    font-size: 14px;
  }
  .row.align-items-center img {
    max-height: 214px;
  }
  .row.align-items-center .p-4 {
    padding: 15px;
  }

  /* Leadership Section */
  .card-leader .leader-banner {
    font-size: 14px;
    padding: 6px 35px;
  }

  .card-leader .leader-title {
    font-size: 1rem;
  }

  .card-leader p {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .card-leader a.btn {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .card-leader .leader-img {
    height: 450px;
  }

  /* Speech Bubble */
  .speech-bubble {
    padding: 15px 20px;
    font-size: 0.85rem;
  }

  .speech-bubble::after {
    left: 5px;
    top: 40px;
    width: 40px;
    height: 40px;
  }

  /* Principal Image */
  .principal-img {
    width: 100px;
    height: 100px;
  }

  /* Bubble Dots */
  .bubble-dot {
    width: 6px;
    height: 6px;
  }
}

/* counter section */

/* ============================= */
/* 📱 Responsive Media Queries  */
/* ============================= */

/* For tablets and medium devices */
@media (max-width: 992px) {
  .counter-area .row {
    gap: 21px;
  }

  .single-counter {
    margin: 0 auto;
    width: 90%;
  }
}

/* For mobile devices */
@media (max-width: 768px) {
  .counter-area {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .counter-area .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
  }

  .single-counter {
    width: 100%;
    margin-bottom: 7px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .single-counter {
    width: 95%;
    padding: 25px 10px;
  }

  .odometer {
    font-size: 2.2rem;
  }

  .counter-icon i {
    font-size: 32px;
  }

  .cate {
    font-size: 0.8rem;
  }
}

.float-img-1 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.08;
  max-width: 300px;
}

/* Counter Section */
.counter-area {
  position: relative;
  background: #f7f7f7;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Card Base */
.single-counter {
  background: linear-gradient(135deg, #007c5a, #024f38);
  border-radius: 30px;
  padding: 30px 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: white;
  opacity: 0;
  transition: all 0.6s ease;
}

/* Animate from Left */
.single-counter.left {
  transform: translateX(-40px);
}

/* Animate from Right */
.single-counter.right {
  transform: translateX(40px);
}

/* Animate In */
.single-counter.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered Delay */
.single-counter.visible:nth-child(1) {
  transition-delay: 0.2s;
}
.single-counter.visible:nth-child(2) {
  transition-delay: 0.4s;
}
.single-counter.visible:nth-child(3) {
  transition-delay: 0.6s;
}
.single-counter.visible:nth-child(4) {
  transition-delay: 0.8s;
}

/* Hover Effect */
.single-counter:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Icon */
.counter-icon i {
  font-size: 40px;
  color: white;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
.single-counter:hover {
  transform: translateY(-10px) rotate(-1deg) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* dvd */
@keyframes springRotate {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(15deg);
  }
  60% {
    transform: rotate(-10deg);
  }
  80% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.single-counter:hover .counter-icon i {
  animation: springRotate 0.6s ease-in-out;
}

/* scsc */

/* Odometer Number */
.odometer {
  font-size: 2.8rem;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

/* Label */
.cate {
  font-size: 0.9rem;
  color: #e0e0e0;
  letter-spacing: 1px;
  margin-top: 10px;
  text-transform: uppercase;
}

/* back counter */
.counter-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.1) 10%,
      transparent 11%
    )
    center/30px 30px repeat;
  animation: moveBg 30s linear infinite;
  z-index: -2;
  opacity: 0.3;
}

@keyframes moveBg {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-30px, -30px);
  }
}

/* news section */
.card {
  flex: 1;
  background-color: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.card-header {
  position: absolute;
  top: -24px;
  left: 0;
  background-color: #051110;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 24px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  width: 100%;
  max-width: 320px;
}

.card-body {
  margin-top: 40px;
  max-height: 320px;
  overflow-y: auto;
  padding: 20px;
}

.card-body::-webkit-scrollbar {
  width: 6px;
}

.card-body::-webkit-scrollbar-track {
  background: transparent;
}

.card-body::-webkit-scrollbar-thumb {
  background-color: #0f766e;
  border-radius: 10px;
}

.card-item {
  margin-bottom: 20px;
}

.card-item p {
  margin-left: 20px;
  font-size: 13px;
  color: #666;
}

.card-item strong {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.new-tag {
  display: inline-block;
  background-color: #facc15;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 20px;
  margin-top: 5px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 12px;
}

.notice-title {
  top: -24px;
  left: 0;
  background: linear-gradient(135deg, #007c5a, #024f38);
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 24px;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  width: 100%;
  max-width: 350px;
}
.news-strip {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.news-ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 25s linear infinite;
  font-weight: 500;
  color: #222;
}

@keyframes ticker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.notice-box {
  background-color: #e6f9ef;
  border-radius: 10px;
  padding: 15px;
  height: 400px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* .notice-title {
  background-color: #0077b6;
  color: #fff;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 12px;
} */

.notice-scroller {
  height: 400px;
  overflow: hidden;
  position: relative;
}

.notice-scroller ul {
  animation: scroll-up 15s linear infinite;
  padding-left: 0;
  margin: 0;
}

.notice-scroller ul:hover {
  animation-play-state: paused;
}

@keyframes scroll-up {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.notice-scroller li {
  margin-bottom: 12px;
  font-size: 15px;
  color: #003049;
}

.notice-scroller li a {
  text-decoration: none;
  color: #003049;
}

.notice-scroller li a:hover {
  text-decoration: underline;
}

.icon {
  width: 16px;
  margin-left: 4px;
}

.new-badge {
  width: 45px;
  margin-left: 5px;
}

.dot {
  font-size: 12px;
  margin-right: 6px;
  color: red;
}

/* footer section */
* {
  font-family: "Roboto";
}
.footer-section {
  position: relative;
  width: 100%;
  padding: 60px 0 20px;
  background: url("../image/Rectangle 166 (1).png") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

/* OVERLAY WITH BLEND MODE */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: url("../image/Pngtreehigh definition abstract texture background_15158369 1.png")
    center/cover no-repeat;

  mix-blend-mode: overlay;   /* ✨ This blends the two images */
  opacity: 0.8;              /* Adjust strength */
  pointer-events: none;
}


/* MAIN FOOTER CONTAINER */
.footer-container {
  position: relative;
  z-index: 2;

  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: nowrap;
}

/* COLUMNS */
.footer-col {
  min-width: 200px;
}

.footer-info {
  max-width: 280px;
}

/* LOGO */
.footer-logo {
  width: 70px;
  margin-bottom: 15px;
}

/* HEADINGS */
.footer-col h4 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-info h3 {
  line-height: 1.4;
  margin-bottom: 15px;

  font-size: 18px;
  font-weight: 500;
}

/* TEXT */
.footer-address,
.footer-phone,
.footer-email {
  margin: 8px 0;

  font-size: 16px;
}

/* SOCIAL */
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

/* LISTS */
.footer-col ul {
  list-style: none;
  padding-left: 0;

  font-family: Roboto;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
}
.footer-col ul li {
  margin-bottom: 17px;

  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.footer-col ul a {
  text-decoration: none;
  color: inherit;
}

/* MAP */
.footer-map h4 {
  margin-bottom: 15px;

  font-weight: 700;
  font-size: 20px;
}

.map-card {
  position: relative;
  width: 200px;
  height: 127px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* MAP BUTTON */
.map-card button {
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 2px;
  background: #00000087;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  width: 122px;
}

/* COPYRIGHT */
.footer-bottom {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  opacity: 0.9;

  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
   display: flex;
  justify-content: space-around;
  align-items: baseline;

}
.footer-bottom span {
  display: block;
  margin-top: 5px;
}

.logo-div {
  display: flex;
  gap: 8px;
}

/* =============================
   RESPONSIVE BREAKPOINTS
============================= */

/* BELOW 1200px — Give breathing space */
@media (max-width: 1200px) {
  .footer-container {
    padding: 0 20px;
    gap: 30px;
  }
}

/* BELOW 1000px — Two-column layout */
@media (max-width: 1000px) {
  .footer-container {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-col {
    flex: 0 0 45%;
  }

  .footer-info {
    margin-bottom: 20px;
  }

  .footer-info h3 {
    text-align: left;
  }

  .footer-social {
    justify-content: center;
  }
}

/* BELOW 768px — Full width stacking */
@media (max-width: 1000px) {
  .footer-col {
    flex: 0 0 100%;
  }

  .map-card {
    margin: 0 auto;
  }
  .logo-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .map-card {
    width: 80%;
    height: 250px;
  }

  .footer-info h3 {
    text-align: center;
  }
}

/* BELOW 480px — Perfect mobile layout */
@media (max-width: 480px) {
  .footer-container {
    padding: 0 15px;
  }

  .footer-info h3 {
    font-size: 15px;
    text-align: center;
  }

  .footer-col h4 {
    font-size: 18px;
  }

  .footer-address,
  .footer-phone,
  .footer-email {
    font-size: 14px;
  }

  .footer-col ul li {
    font-size: 14px;
  }

  .map-card {
    width: 100%;
    height: 160px;
  }
  .logo-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-align: center;
  }
}

/* galary section */
/* Modal Styles */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.img-modal-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.img-modal-close:hover {
  color: #ff5b5b;
}

.gallery-img img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.modal-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.modal-overlay .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
}

.gallery-section {
  background: linear-gradient(to bottom right, #f8faff, #ffffff);
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.section-header .cate {
  font-weight: bold;
  font-size: 16px;
  color: #007bff;
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header .title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
}

.gallery-item {
  margin-bottom: 30px;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.gallery-item.visible {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item:nth-child(odd).visible {
  animation: slideInLeft 1s ease forwards;
}

.gallery-item:nth-child(even).visible {
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* notice and galary */

.gallery-thumb img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumb:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.view-all-btn {
  display: inline-block;
  margin: 40px auto 0;
  padding: 10px 25px;
  background-color: #007bff;
  color: #fff;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.view-all-btn:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

/* Animate image cards from left */
.gallery-card {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.8s ease-in-out;
}

.gallery-card.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Image hover effect */
.img-hover {
  width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
}

.img-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Optional styling for card */
.img-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

/* Image Hover Effect */
.img-hover {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.img-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Animate from left */
.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s ease-in-out;
}
.visible.animate-left {
  opacity: 1;
  transform: translateX(0);
}

/* Optional fade/line animation for headings */
.animate-line {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.visible.animate-line {
  opacity: 1;
  transform: translateY(0);
}

/* video section */
/* Ensure both sections stretch equally */
.video-container,
.notice-board {
  height: 100%;
  min-height: 225px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Notice board style */
.notice-board {
  padding: 20px;
  background: #fefefe;
  border-left: 4px solid #007bff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Animation base */
.animate-left,
.animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease-out;
}

.animate-left {
  transform: translateX(-50px);
}

.visible.animate-left,
.visible.animate-right {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}

/* Smooth lift on hover */
.event-card-stable,
.notice-board {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card-stable:hover,
.notice-board:hover {
  transform: translateY(-8px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Ripple play button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  animation: pulse 1.5s infinite ease-in-out;
}

.play-button::before,
.play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: red;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: ripple 1.5s infinite ease-in-out;
}

.play-button::after {
  animation-delay: 0.75s;
}

/* Play button pulse animation */
@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

/* Ripple effect around play button */
@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* galary section */
/* Base gallery image container */
.gallery-img {
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  padding: 5px;
  background: linear-gradient(135deg, #ff6ec4, #7873f5); /* Gradient Frame */
}

.gallery-img img {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #fff; /* Keeps inner area clean */
  transition: transform 0.5s ease;
  transform-origin: center center;
}

/* Hover effect */
.gallery-img:hover img {
  transform: rotate(5deg) scale(1.05);
}

/* Animation base state */
.animate-left,
.animate-top,
.animate-right {
  opacity: 0;
  transition: all 0.8s ease-out;
  position: relative;
}
.animate-left {
  transform: translateX(-50px);
}
.animate-right {
  transform: translateX(50px);
}
.animate-top {
  transform: translateY(-50px);
}

/* Visible state after scroll trigger */
.visible.animate-left,
.visible.animate-top,
.visible.animate-right {
  opacity: 1;
  transform: translate(0);
}

/* Delay classes */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}

/* Facilities Section */
.facility-card {
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #f4f6f9,
    #e9edf3
  ); /* soft neutral gradient */
  color: #2c2c2c;
  transition: all 0.5s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid #d0d7de;
}

.facility-card:hover {
  transform: translateY(-10px) scale(1.03);
  background: linear-gradient(
    135deg,
    #e0ecf8,
    #f9f9f9
  ); /* light steel blue tone */
  border-color: #90caf9; /* soft blue */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Icon Style */
.facility-card i {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
  color: #1565c0; /* deep blue */
  transition: transform 0.4s ease, color 0.3s ease;
}

.facility-card:hover i {
  transform: rotate(360deg);
  color: #0d47a1; /* darker blue on hover */
}

/* Title and Text */
.facility-card h5 {
  font-size: 20px;
  margin-top: 10px;
  font-weight: 700;
  color: #1a1a1a;
}

.facility-card p {
  font-size: 15px;
  margin-top: 8px;
  line-height: 1.6;
  color: #444;
}

/* founder section */
/* Reuse event-section banner style for consistency */
.leader-banner {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #8e24aa; /* matching your purple */
  color: #fff;
  font-weight: bold;
  padding: 8px 24px 8px 16px; /* Added right padding */
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  z-index: 2;
}

.leader-banner.right {
  left: auto;
  right: 0;
  clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0% 100%);
}

/* Card Styling */
.card-leader {
  background: #fff;
  display: flex;
  align-items: stretch;
  min-height: 300px;
  position: relative;
}

.leader-img {
  width: 45%;
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.leader-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-title {
  color: #004085;
  font-weight: 600;
  font-size: 1.5rem;
}

/* Leader Content with Attractive Background and Hover Effect */
.leader-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: linear-gradient(135deg, #f3e5f5, #e1f5fe); /* soft pastel */
  border-radius: 0 10px 10px 0;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* transition base */
}

.card-leader:hover .leader-content {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #e3f2fd, #fce4ec); /* change on hover */
}

/* Optional: text inside the content */
.leader-title {
  color: #4a148c;
  font-weight: 600;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.leader-content p {
  color: #333;
  line-height: 1.6;
  font-size: 1.1rem;
}

.card-leader:hover .leader-img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
  filter: brightness(1.1);
}
.leader-img.animate-left,
.leader-img.animate-right,
.leader-content.animate-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.leader-img.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
  transform: translateX(0);
}

.leader-img.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s;
  transform: translateX(0);
}

.leader-content.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* ===================== Responsive CSS for All Devices ===================== */

/* ===================== Responsive Navbar & Header ===================== */

/* Default hidden toggle button */
/* =================== RESPONSIVE DESIGN =================== */

/* 📱 Mobile devices (up to 576px) */
/* ✅ General toggle button styling */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
  z-index: 1001;
}

/* ✅ Show toggle button only on mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 31px 0px;
  }
  .nav-toggle {
    display: block;
  }

  /* hide navbar links initially */
  .nav-flex {
    display: none !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: linear-gradient(90deg, #004e92, #000428);
    text-align: center;
  }

  /* when active, show the menu */
  .nav-flex.active {
    display: flex !important;
  }

  /* links style in mobile */
  .nav-flex a,
  .dropdown > a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .dropdown-content {
    position: static;
    background: none;
    box-shadow: none;
  }

  .dropdown-content a {
    color: #fff;
    padding-left: 30px;
  }
}

/* Extend toggle functionality to tablets (768px - 992px) */
@media (max-width: 992px) {
  .navbar {
    padding: 31px 0px;
  }

  .nav-toggle {
    display: block;
  }

  /* hide navbar links initially */
  .nav-flex {
    display: none !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: linear-gradient(90deg, #004e92, #000428);
    text-align: center;
  }

  /* when active, show the menu */
  .nav-flex.active {
    display: flex !important;
  }

  /* links style for tablet */
  .nav-flex a,
  .dropdown > a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .dropdown-content {
    position: static;
    background: none;
    box-shadow: none;
  }

  .dropdown-content a {
    color: #fff;
    padding-left: 30px;
  }
}
