/* =========================
   PRELOADER
========================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #e0e0e0;
  border-top-color: #0066ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   TOP BAR
========================= */
.topbar-el {
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-left {
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .topbar-left {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .topbar-text {
    display: none;
  }

  .topbar-left::-webkit-scrollbar {
    display: none;
  }
}

/* =========================
   FONTS & NAVBAR
========================= */
.ff {
  font-family: roboto;
}

.nav_heading {
  font-family: roboto;
}

@media (min-width: 576px) {
  .nav_heading {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .nav_heading {
    font-size: 25px;
  }
}

@media (min-width: 992px) {
  .nav_heading {
    font-size: 35px;
  }
}

.nav_pic {
  max-height: 70px;
  max-width: 70px;
}

.dropdown-menu {
  padding: 13px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #e9ecef !important;
}

.nav_hover {
  padding: 13px;
  transition: 0.25s ease;
}

.nav_hover:hover {
  transform: scale(1.03);
  color: rgb(3, 1, 100);
}

.login-dropdown .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

/* =========================
   NEWS TICKER
========================= */
.news-ticker {
  width: 100%;
  background: gold;
  overflow: hidden;
  white-space: nowrap;
  padding: 3px;
  font-size: 16px;
  font-weight: bold;
  height: 30px;
}

.news-ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 12s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .news-ticker-content {
    animation: ticker 20s linear infinite;
  }
}

/* =========================
   GENERAL
========================= */
.bg-container {
  background-color: rgb(236, 236, 236);
}

.tc-blue {
  color: rgb(0, 88, 129);
}

.vds_img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}




.font_size {
  font-size: 14px;
}


/* =========================
   FOOTER (DESKTOP)
========================= */
.footer-section {
  background: linear-gradient(to right, #003087, #0055c9);
  overflow: visible;
}

.fade-in {
  opacity: 1;
}


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.footer-col {
  min-height: 260px;
}

.divider {
  border-left: 2px solid rgba(255, 255, 255, 0.4);
  height: 90%;
  margin-top: 10px;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: 0.2s;
}

.footer-link:hover {
  color: #ffc107;
  padding-left: 4px;
}

.logo-round {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================
   FOOTER – MOBILE SMALL VERSION
========================= */
@media (max-width: 768px) {

  footer.footer-section {
    padding-top: 12px;
    text-align: center;
  }

  .footer-col {
    min-height: auto !important;
    margin-bottom: 16px;
  }

  footer h3 {
    font-size: 16px;
  }

  footer h5 {
    font-size: 14px;
  }

  footer h6 {
    font-size: 13px;
  }

  footer p,
  footer a,
  footer li {
    font-size: 12px;
    line-height: 1.4;
  }

  .logo-round {
    max-width: 80px;
    margin: 0 auto 10px;
    display: block;
  }

  footer .topbar-el {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  footer .d-flex.gap-3 {
    justify-content: center;
  }

  .divider {
    display: none !important;
  }

  footer input.form-control {
    font-size: 12px;
    padding: 6px 8px;
  }

  footer button {
    font-size: 12px;
    padding: 6px;
  }

  footer .bg-black {
    font-size: 11px;
    padding: 8px 6px;
    line-height: 1.4;
  }
}

/* Ensure footer is always visible */
footer {
  position: relative;
  z-index: 1;
}

/* Preloader must never block scrolling */
#preloader {
  pointer-events: none;
}

@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  html,
  body {
    overflow-x: hidden;
  }

  /* Navbar height & padding */
  .navbar {
    padding: 6px 10px;
  }

  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    background-attachment: scroll !important;
  }

  /* Disable hover styles on touch devices */
  @media (hover: none) {

    .btn:hover,
    .card:hover,
    a:hover {
      background: inherit !important;
      color: inherit !important;
      box-shadow: none !important;
      transform: none !important;
    }
  }


  /* Logo size */
  .navbar-brand img {
    width: 42px;
    height: auto;
  }

  /* School name text */
  .nav_heading {
    font-size: 19px;
    line-height: 1.2;
    margin-top: 6px;

  }

  /* Toggle button spacing */
  .navbar-toggler {
    padding: 4px 6px;
    font-size: 14px;
  }

  /* Offcanvas menu width */
  .offcanvas {
    width: 80%;
  }

  /* Menu links */
  .offcanvas-body .nav-link {
    font-size: 15px;
    padding: 10px 0;
  }

  /* Dropdown items */
  .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* Top bar text */
  .top-bar {
    font-size: 13px;
    padding: 4px 8px;
  }

  .topbar-text {
    font-size: 13px;
  }

  /* Hide desktop icons if needed */
  .topbar-right {
    gap: 10px;
  }
}



@media (max-width: 768px) {

  /* Center everything on mobile */
  .footer-section {
    text-align: center;
  }

  .footer-col {
    margin-bottom: 24px;
  }

  /* Logo size */
  .footer-section img {
    width: 90px;
    margin-bottom: 10px;
  }

  /* Headings */
  .footer-col h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  .footer-col h5,
  .footer-col h6 {
    font-size: 15px;
  }

  /* Paragraph & links */
  .footer-col p,
  .footer-link {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Phone & email links */
  .footer-section .topbar-el {
    font-size: 14px;
    justify-content: center;
    text-align: center;
  }

  /* Newsletter */
  @media (max-width: 768px) {

    /* Newsletter input */
    .footer-section input.form-control {
      width: 85%;
      margin-left: auto;
      margin-right: auto;
    }

    /* Newsletter button – override w-100 on mobile */
    .footer-section button.btn {
      width: 85% !important;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }
  }


  /* Social icons */
  .footer-section .bi {
    font-size: 18px;
  }

  /* Remove vertical dividers */
  .divider {
    display: none !important;
  }

  /* Bottom copyright */
  .footer-section .bg-black {
    font-size: 13px;
    padding: 8px 10px;
  }
}


/*navbar dropdown size*/
/* Make dropdown take full width on mobile */
@media (max-width: 768px) {
  .navbar .dropdown-menu {
    width: 100vw;
    /* full viewport width */
    left: 0 !important;
    /* align with screen edge */
    right: 0 !important;
    /* ensure full width */
    box-sizing: border-box;
    /* include padding */
  }

  .navbar .dropdown-item {
    white-space: normal;
    /* allow text wrap */
    word-break: break-word;
    /* break long words */
    padding-left: 1rem;
    /* optional: spacing */
    padding-right: 1rem;
    /* optional: spacing */
  }
}

/* desktop dropdown list hovwe effect*/
/* Desktop dropdown hover effect */
@media (min-width: 768px) {
  .navbar .dropdown-menu .dropdown-item {
    transition: background-color 0.3s ease, color 0.3s ease;
    /* smooth transition */
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background-color: #ffffff;
    /* white background */
    color: rgb(0, 88, 129);
    /* mild blue text */
  }
}


/* Desktop dropdown hover effect (min-width: 992px) */
@media (min-width: 992px) {

  /* Make dropdown open on hover */
  .navbar .dropdown:hover>.dropdown-menu {
    display: block;
    /* show menu */
    visibility: visible;
    /* make it visible */
    opacity: 1;
    /* full opacity */
    position: absolute;
    /* proper positioning */
    top: 100%;
    /* align below parent */
    left: 0;
    /* align left edge */
    z-index: 1050;
    /* above other elements */
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Keep arrow pointing down */
  .navbar .dropdown-toggle::after {
    transform: rotate(0deg);
  }

  /* Smooth hover effect for items */
  .navbar .dropdown-menu .dropdown-item {
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background-color: #ffffff;
    color: rgb(0, 88, 129);
  }
}

/* Ensure navbar dropdown doesn't get cut off */
.navbar {
  overflow: visible;
}