/* ==============================
   MAIN HEADER BAR
============================== */
.top-header {
  background: #A80101;
  padding: 12px 0;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;

}

.logo {
  height: 85px;
}

/* RIGHT SIDE */
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contactlink {
  color: #fff !important;
  text-decoration: none;
  font-size: 16px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons i,
.header-right i {
  color: #fff;
  font-size: 20px;
}


/* ==============================
   TABLET (≤ 768px)
============================== */
@media (max-width: 768px) {
  .logo {
    height: 70px;
  }

  .header-right {
    gap: 18px;
  }

  .contactlink {
    font-size: 14px;
  }

  .social-icons i {
    font-size: 18px;
  }
}


/* ==============================
   MOBILE (≤ 450px)
   Logo left + content right (vertical)
============================== */
@media (max-width: 450px) {

  .header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 10px;
  }

  /* Logo */
  .logo {
    height: 80px;
    margin-left: 5px;
  }

  /* Right side becomes vertical */
  .header-right {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }

  .contact-item {
    justify-content: start;
  }

  .social-icons {
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
  }
}


/* ==============================
   SMALL MOBILE (≤ 375px)
============================== */
@media (max-width: 375px) {
  .contactlink {
    font-size: 12px;
  }

  .header-right {
    gap: 8px;
  }

  .social-icons i {
    font-size: 17px;
  }
}


/* ==============================
   ULTRA SMALL (≤ 320px)
============================== */
@media (max-width: 320px) {
  .logo {
    height: 62px;
  }

  .contactlink {
    font-size: 11px;
  }

  .header-right {
    gap: 6px;
  }

  .social-icons {
    padding-right: 4.5px;
  }
}


/* ======================================
   FIX OVERLAP (750px down to 470px)
   Logo left + items vertical right
====================================== */
@media (max-width: 768px) and (min-width: 452px) {

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 25px;
  }

  /* Reduce logo so it fits */
  .logo {
    height: 75px !important;
  }

  /* STACK RIGHT SIDE VERTICALLY */
  .header-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 10px !important;
  }

  /* Each contact item goes RIGHT */
  .contact-item {
    justify-content: flex-start !important;
    width: 100%;
  }

  .contactlink {
    font-size: 14px !important;
  }

  /* Social icons right */
  .social-icons {
    justify-content: flex-start !important;
    width: 100%;
    gap: 10px;
  }

  .social-icons i {
    font-size: 18px !important;
  }
}

/* ----------------------------
   ROOT COLORS
----------------------------- */
:root {
  --maroon: #6a0b38;
  --dark-blue: #083b63;
  --teal: #0d83ad;
  --gold: #c7a217;
  --orange: #d45e1a;
  --red: #A80101;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
}


.top-announcement {
  background: #FFD200;
  /* bright yellow */
  color: #000;
  /* black text */
  font-weight: 700;
  /* bold */
  text-align: center;
  padding: 10px 20px;
  font-size: 18px;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;

}

/* Mobile Responsive */
@media (max-width: 768px) {
  .top-announcement {
    font-size: 16px;
    padding: 8px 15px;
  }
}

@media (max-width: 480px) {
  .top-announcement {
    font-size: 14px;
    padding: 6px 10px;
  }
}

@media (max-width: 425px) {
  .top-announcement {
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* 390px */
@media (max-width: 390px) {
  .top-announcement {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* 375px */
@media (max-width: 375px) {
  .top-announcement {
    font-size: 11.5px;
    padding: 5px 8px;
  }
}

/* 360px */
@media (max-width: 360px) {
  .top-announcement {
    font-size: 11px;
    padding: 4px 7px;
  }
}

/* 320px */
@media (max-width: 320px) {
  .top-announcement {
    font-size: 10px;
    padding: 4px 6px;
  }
}

.contactlink {
  padding: 5px 8px;
  /* increases hover area */
  display: inline-block;
  border-radius: 4px;
  /* optional */
  text-decoration: none;
}

.contactlink:hover {
  text-decoration: underline;
  text-decoration-color: #fff;
  text-underline-offset: 8px;
}

/* ----------------------------
   HERO IMAGE
----------------------------- */

/* =====================================================
   HERO IMAGE
   (Visible ONLY on tablet + mobile)
===================================================== */

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}



/* =====================================================
   FORM CARD (WOW Academy Red Theme)
===================================================== */

.form-card {
  background: #fff;
  border-radius: 15px;
  border-bottom: 3px solid #A80101;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.form-header {
  background: #A80101;
  color: #fff;
  padding: 15px 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

.form-body {
  padding: 22px;
}



/* =====================================================
   INPUT + SELECT (WOW Academy light red pastel style)
===================================================== */

.form-control,
.form-select {
  background: #FFF4F4;
  /* light red box */
  border: 2px solid #FFC6C6;
  /* light-red border */
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.25s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #FF4B4B;
  /* darker red focus */
  background: #FFECEC;
  box-shadow: 0 0 8px rgba(255, 75, 75, 0.3);
}



/* =====================================================
   REGISTER BUTTON
===================================================== */

.register-btn {
  background: #A80101;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  width: fit-content;
  display: block;
  margin: 0 auto 25px auto;
  transition: 0.25s;
}

.register-btn:hover {
  background: #7e0101;
}



/* =====================================================
   RESPONSIVE SETTINGS
   TABLET + MOBILE (max-width: 1000px)
===================================================== */

@media (max-width: 1000px) {

  /* SHOW IMAGE on tablet + mobile */
  .col-lg-7 {
    display: block !important;
  }

  /* FORM full-width */
  .col-lg-5 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-header {
    font-size: 20px;
  }

  .form-control,
  .form-select {
    font-size: 15px;
    padding: 10px 12px;
  }

  .register-btn {
    font-size: 16px;
    padding: 9px 22px;
  }
}



/* =====================================================
   DESKTOP MODE (min-width: 1000px)
   - Image hidden
   - Form centered
   - Perfect 480px width
===================================================== */

@media (min-width: 1000px) {

  /* HIDE IMAGE ON DESKTOP */
  .col-lg-7 {
    display: none !important;
  }

  /* Form column becomes centered full-width wrapper */
  .col-lg-5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Center the actual form */
  .form-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .form-header {
    font-size: 24px;
  }
}



/* =====================================================
   SMALL MOBILE FIXES (max-width: 480px)
===================================================== */

@media (max-width: 480px) {

  .form-header {
    font-size: 18px;
    padding: 12px;
  }

  .form-control,
  .form-select {
    font-size: 14px;
    padding: 9px 12px;
  }

  label {
    font-size: 14px;
  }

  .register-btn {
    font-size: 15px;
    padding: 8px 18px;
  }
}

/* Fix: Inputs showing white background while typing */
.form-control {
  background-color: #FFF4F4 !important;
}

/* Fix autofill (Chrome, Edge, Brave) */
.form-control:-webkit-autofill {
  background-color: #FFF4F4 !important;
  -webkit-box-shadow: 0 0 0 50px #FFF4F4 inset !important;
  -webkit-text-fill-color: #000 !important;
}

/* Keep focus state consistent */
.form-control:focus {
  background-color: #FFECEC !important;
}



/* =====================================================
   OPTION TEXT (Standard & Campus Location)
   Make options responsive & readable on all devices
===================================================== */

/* Base option size for desktop */
.form-select option {
  font-size: 16px;
  padding: 8px;
}

/* Tablet size */
@media (max-width: 1000px) {
  .form-select option {
    font-size: 15px;
    padding: 7px;
  }
}

/* Mobile size */
@media (max-width: 480px) {
  .form-select option {
    font-size: 14px;
    padding: 6px;
    line-height: 1.2;
  }
}

/* Prevent long text overflow inside dropdown */
.form-select {
  white-space: normal !important;
}




/* ============================
   RESPONSIVE DROPDOWN FIX
============================ */

/* Base styling for all devices */
#subOptions {
  max-height: 220px;
  /* more height for desktop */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #A80101 #FFF4F4;
}

/* Chrome Scrollbar */
#subOptions::-webkit-scrollbar {
  width: 6px;
}

#subOptions::-webkit-scrollbar-thumb {
  background: #A80101;
  border-radius: 5px;
}

#subOptions::-webkit-scrollbar-track {
  background: #FFECEC;
}

/* ======================================================
   OPTIMIZED DROPDOWN FOR <700px DEVICES
====================================================== */
/* ======================================================
   OPTIMIZED DROPDOWN FOR <700px DEVICES
   (Standardized Font Size)
====================================================== */
@media (max-width: 600px) {

  #options,
  #subOptions {
    /* Kept compatible padding, but standardized font size */
    padding: 8px 10px !important;
    width: 100% !important;
  }

  #subOptions {
    max-height: 150px !important;
    overflow-y: auto !important;
  }

  /* Unified font sizes */
  #options option,
  #subOptions option {
    font-size: 14px !important;
    /* Standardized Mobile Size */
    padding: 6px 8px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  #subOptions::-webkit-scrollbar {
    width: 4px;
  }

  #subOptions::-webkit-scrollbar-thumb {
    background: #A80101;
    border-radius: 4px;
  }
}

/* ======================================================
   GLOBAL COMPACT DROPDOWN STYLE (ALL DEVICES)
====================================================== */

/* ======================================================
   GLOBAL COMPACT DROPDOWN STYLE (ALL DEVICES)
====================================================== */

/* Main select box size - Unified */
#options,
#subOptions {
  /* Inherit main form-control size or explicit standard */
  /* font-size: 16px;  <-- Handled by general .form-select rule now */
  padding: 8px 10px !important;
  width: 100% !important;
  border-radius: 10px !important;
}

/* Dropdown list (inside) */
#subOptions {
  max-height: 180px !important;
  overflow-y: auto !important;
}

/* Option items - Unified */
#options option,
#subOptions option {
  /* font-size: 16px; <-- Handled by general option rule */
  padding: 8px 10px !important;
  /* increased padding for clickability */
  white-space: normal !important;
  line-height: 1.3 !important;
}

/* Scrollbar clean */
#subOptions::-webkit-scrollbar {
  width: 4px;
}

#subOptions::-webkit-scrollbar-thumb {
  background: #A80101;
  border-radius: 4px;
}

/* ======================================================
   EXTRA SMALL DEVICES (Below 380px)
====================================================== */
/* ======================================================
   EXTRA SMALL DEVICES (Below 380px)
   (Standardized Font Size)
====================================================== */
@media (max-width: 380px) {

  /* Keep padding consistent but don't shrink font too much */
  #options,
  #subOptions {
    /* font-size: 14px !important; <-- Handled by mobile rule */
    padding: 8px 10px !important;
  }

  /* Reduce dropdown height */
  #subOptions {
    max-height: 130px !important;
  }

  /* Option text */
  #options option,
  #subOptions option {
    font-size: 14px !important;
    /* Consistent with other mobile inputs */
    padding: 8px 10px !important;
    line-height: 1.2 !important;
  }

  /* Scrollbar smaller */
  #subOptions::-webkit-scrollbar {
    width: 3px;
  }

  #subOptions::-webkit-scrollbar-thumb {
    background: #A80101;
    border-radius: 4px;
  }
}

/* ============================
   Reduce dropdown size < 400px
=============================== */
@media (max-width: 400px) {

  #grade,
  #options,
  #subOptions {
    /* font-size: 14px !important; <-- Unified */
    padding: 10px !important;
    /* Standard mobile padding */
    /* height auto-sized by padding/content */
  }

  label.fw-semibold {
    font-size: 14px !important;
    /* Consistent label size */
  }
}

@media (max-width: 400px) {

  /* Reduce the visible select box - UNIFIED SIZE */
  #grade,
  #options,
  #subOptions {
    width: 100% !important;
    max-width: 100% !important;
    /* Allow full width */
    font-size: 14px !important;
    /* Unified Mobile Size */
    padding: 10px 12px !important;
    /* Good touch target */
  }

  /* Reduce dropdown (opened list) width */
  select.form-select {
    max-width: 100% !important;
    white-space: normal !important;
    /* Ensure wrapping */
  }
}

/* Stronger mobile select rules */
@media (max-width: 400px) {
  .select-wrapper {
    width: 100%;
    max-width: 300px;
    /* set desired max width */
    box-sizing: border-box;
  }

  .select-wrapper select,
  .select-wrapper .form-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    /* remove browser min */
    box-sizing: border-box !important;
    display: block !important;
    font-size: 14px !important;
    /* Unified Mobile Size */
    padding: 10px 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Try to allow wrapping inside options (browser dependent) */
  .select-wrapper select option {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}

/* Fix select width ONLY on mobile */
@media (max-width: 400px) {

  select.form-select {
    width: 100% !important;
    max-width: 100% !important;
    /* Allow full width */
    font-size: 14px !important;
    /* Unified Mobile Size */
    padding: 10px 12px !important;
    white-space: normal !important;
  }

  /* This controls the dropdown popup width */
  select.form-select:focus {
    max-width: 100% !important;
  }

  select.form-select option {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 400px) {
  .location-wrapper {
    width: 230px !important;
    /* reduce size as you want */
    margin: 0 auto;
    /* center on mobile */
  }

  .location-wrapper select {
    width: 100% !important;
    /* select follows wrapper width */
    max-width: 100% !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
}

/* ----------------------------
   RIBBONS
----------------------------- */
.ribbon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
}

.ribbon {
  width: 170px;
  min-height: 170px;
  color: #fff;
  padding: 20px 14px 30px;
  border-radius: 10px;
  position: relative;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: .35s;
  font-family: 'Poppins', sans-serif;

}

.ribbon:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

/* Ribbon top bar */
.ribbon::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -8px;
  right: -8px;
  height: 12px;
  /* background:linear-gradient(90deg,#bbb,#8b8b8b,#e5e5e5); */
  border-radius: 6px;
}

/* Ribbon bottom tail */
.ribbon::after {
  content: "";
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 28px solid rgba(0, 0, 0, 0.08);
}

.ribbon .tail {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 28px solid currentColor;
}

/* Ribbon colors */
.c1 {
  background: var(--dark-blue);
}

.c1 .tail {
  color: #062f4d;
}

.c2 {
  background: var(--teal);
}

.c2 .tail {
  color: #0a6a85;
}

.c3 {
  background: var(--gold);
}

.c3 .tail {
  color: #a88d0e;
}

.c4 {
  background: var(--orange);
}

.c4 .tail {
  color: #b34914;
}

.c5 {
  background: var(--red);
}

.c5 .tail {
  color: #7f1515;
}

/* Responsive ribbons */
@media (max-width: 768px) {
  .ribbon {
    width: 140px;
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .ribbon {
    width: 120px;
    min-height: 140px;
    padding: 15px 10px 25px;
  }
}

/* ----------------------------
   SCROLL REVEAL
----------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: all .8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Button style */
.learn-btn {
  background: #ffc500;
  color: #000;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: bold;
  transition: 0.3s ease;
}

.learn-btn:hover {
  background: #e0b100;
}

/* Responsive text sizes */
@media (max-width: 768px) {
  .main-title {
    font-size: 30px;
  }

  .content-text {
    font-size: 15px;
  }
}


/* Main wrapper */
.stats-wrapper {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Base Card */
.stat-card {
  flex: 1;
  text-align: center;
  padding: 30px 20px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  cursor: pointer;
  border: 3px solid transparent;
  animation: float 6s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Icon Circle */
.icon-circle {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: 0.4s ease;
}

.icon {
  font-size: 34px;
  color: #333;
  transition: 0.4s ease;
}

/* Title + Text */
.stat-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.stat-card p {
  font-size: 15px;
  color: #333;
  margin: 0;
  transition: 0.4s ease;
}

/* ==========================================================
   GRADIENT BACKGROUNDS (DEFAULT)
========================================================== */

.card-1 {
  background: linear-gradient(135deg, #FDEB71, #F8D800);
}

.card-2 {
  background: linear-gradient(135deg, #A18CD1, #FBC2EB);
}

.card-3 {
  background: linear-gradient(135deg, #96F7D2, #1FC5A8);
}

.card-4 {
  background: linear-gradient(135deg, #FECFEF, #FF9ACF);
}

/* ==========================================================
   HOVER EFFECTS — GLOW + BORDER + BOUNCE ICON
========================================================== */

.stat-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Glow per card */
.card-1:hover {
  box-shadow: 0 20px 45px rgba(248, 195, 0, 0.55);
}

.card-2:hover {
  box-shadow: 0 20px 45px rgba(142, 45, 226, 0.55);
}

.card-3:hover {
  box-shadow: 0 20px 45px rgba(15, 191, 160, 0.55);
}

.card-4:hover {
  box-shadow: 0 20px 45px rgba(255, 79, 165, 0.55);
}

/* Icon Bounce */
.stat-card:hover .icon {
  transform: scale(1.25) translateY(-4px);
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0% {
    transform: scale(1) translateY(0);
  }

  50% {
    transform: scale(1.3) translateY(-6px);
  }

  100% {
    transform: scale(1.25) translateY(-4px);
  }
}

/* Icon Circle becomes white */
.stat-card:hover .icon-circle {
  background: white;
}

/* Change text to white on hover */
.stat-card:hover h3,
.stat-card:hover p {
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .stat-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .stat-card {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .icon {
    font-size: 28px;
  }
}


.footer-bottom {
  background: #A80101;
  /* Same red theme */
  color: #ffffff;
  text-align: center;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tablet */
@media (max-width: 768px) {
  .footer-bottom {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* Mobile (small screens 320px) */
@media (max-width: 480px) {
  .footer-bottom {
    font-size: 13px;
    padding: 8px 10px;
    line-height: 1.4;
  }
}