/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #0050b3;
  /* Regal blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Reset and fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

/* Main Header */
.main-header {
  background-color: #0050b3;
  color: white;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
}

.logo span {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
}

/* Navigation */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #ffd700;
}

/* Hamburger for small screens */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* Responsive Menu */
@media (max-width: 1060px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    background-color: #0050b3;
    position: absolute;
    top: 70px;
    right: 15px;
    width: 200px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
  }

  .navbar ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}


/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown menu (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #007BFF;
  /* Changed to dark blue for better text visibility */
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  margin-top: 5px;
  border-radius: 5px;
  z-index: 1000;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  left: 0;
  /* Align dropdown to left edge of parent */
  right: auto;
  width: max-content;
  /* Adjust width to content */
  white-space: nowrap;
  /* Prevent wrapping */
  transform: translateX(5px);
  /* Slight horizontal offset */
  max-width: calc(100vw - 20px);
  /* Prevent overflow on right */
  box-sizing: border-box;
  pointer-events: none;
  /* Disable pointer events by default */
}

/* Show dropdown when hovering on .dropdown or when active */
.dropdown:hover .dropdown-content,
.dropdown .dropdown-content.active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Enable pointer events on hover */
}

/* Responsive adjustments for dropdown */
@media (max-width: 1060px) {
  .dropdown-content {
    position: static;
    margin-top: 0;
    box-shadow: none;
    width: 100%;
    white-space: normal;
    border-radius: 0;
    padding: 0;
  }

  .dropdown-content li a {
    padding: 12px 15px;
  }
}

/* Dropdown items */
.dropdown-content li {
  display: block;
}

.dropdown-content li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

/* Hover effect on items */
.dropdown-content li a:hover {
  background-color: #0056b3;
  color: #fff;
  transition: background-color 0.3s ease;
}





/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInUp 1.5s ease;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  padding: 12px 25px;
  margin: 0 10px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background: #004aad;
  color: #fff;
  border: 2px solid transparent;
}

.hero-buttons .btn:hover {
  background: #fff;
  color: #004aad;
  border: 2px solid #004aad;
}

.hero-buttons .btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

.hero-buttons .btn-outline:hover {
  background: #004aad;
  border-color: #004aad;
  color: #fff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Info Strip */
.info-strip {
  display: flex;
  justify-content: space-around;
  background-color: #dbeeff;
  padding: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

/* Courses Preview */
.programs {
  background: #f9fbfe;
  padding: 60px 20px;
  text-align: center;
}

.programs h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #001f3f;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.program-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.program-card i {
  font-size: 2.5rem;
  color: #0074cc;
  margin-bottom: 15px;
}

.program-card h3 {
  font-size: 1.4em;
  color: #001f3f;
  margin-bottom: 10px;
}

.program-card p {
  font-size: 0.95em;
  color: #444;
  line-height: 1.6;
}


/* Why Choose Regal */
.why-regal-modern {
  background: linear-gradient(135deg, #e8f0fc, #ffffff);
  padding: 70px 20px;
  text-align: center;
}

.why-regal-modern h2 {
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: #003366;
}

.why-item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto 50px;
  gap: 30px;
  flex-wrap: wrap;
}

.why-item.reverse {
  flex-direction: row-reverse;
}

.why-icon {
  background: #0074cc;
  color: white;
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s;
}

.why-icon:hover {
  background: #005999;
}

.why-text {
  flex: 1;
  min-width: 260px;
  text-align: left;
}

.why-item .right {
  flex: 1;
  min-width: 260px;
  text-align: right;
}

.why-text h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #003366;
}

.why-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .why-item {
    flex-direction: column !important;
    text-align: center;
  }

  .why-text {
    text-align: center;
  }

  .why-item .right {
    text-align: center;
  }
}



/* Chairman's Message Section */
.chairman-message {
  padding: 60px 20px;
  background-color: #f8faff;
  color: #002244;
}

.chairman-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.chairman-text {
  flex: 1 1 500px;
}

.chairman-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #0074cc;
}

.chairman-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.chairman-text h4 {
  margin-top: 20px;
  font-weight: bold;
  color: #005a9c;
}

.chairman-image {
  flex: 1 1 300px;
  text-align: center;
}

.chairman-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .chairman-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .chairman-text h2 {
    font-size: 2rem;
  }
}


/* Director Message */
.director-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
}

.director-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.director-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #007BFF;
}

.director-info h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: #007BFF;
}

.director-info .designation {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
}

.director-info .message {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

@media (min-width: 768px) {
  .director-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .director-photo {
    margin-bottom: 0;
  }

  .director-info {
    text-align: left;
  }
}


/* Vision & Mission Section */
.vision-mission {
  background: #f4faff;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.vision-box,
.mission-box {
  flex: 1 1 450px;
  max-width: 500px;
  background: #ffffff;
  padding: 30px;
  border-left: 5px solid #0074cc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.vision-box h2,
.mission-box h2 {
  color: #001f3f;
  margin-bottom: 15px;
}

.vision-box p,
.mission-box ul {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.mission-box ul {
  padding-left: 20px;
}

.mission-box ul li {
  list-style-type: disc;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {

  .message-container,
  .vision-mission {
    flex-direction: column;
    align-items: center;
  }

  .principal-image img {
    width: 100%;
    max-width: 300px;
  }
}

/* ---------- Quick Facts Section ---------- */
.quick-facts {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #004aad;
  font-weight: bold;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* Fact Card Base */
.fact {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  opacity: 0;
  transform: scale(0.9);
  border: 2px solid transparent;
}

.fact.show {
  opacity: 1;
  transform: scale(1);
  transition: all 0.6s ease-out;
}

/* Hover effect – simple lift */
.fact:hover {
  transform: translateY(-6px) scale(1.02);
  border: 2px solid #004aad;
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.15);
}

/* Fact Icon */
.fact-icon {
  font-size: 3rem;
  color: #004aad;
  margin-bottom: 10px;
}

/* Counter Number */
.counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}





/* Campus Gallery */
.campus-gallery {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.campus-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.campus-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: zoom-in;
  /* 🔍 click hint */
}

.campus-gallery-item:hover {
  transform: translateY(-4px);
}

.campus-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.campus-gallery-item:hover img {
  transform: scale(1.08);
}

/* Caption overlay */
.campus-gallery-caption {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* View More */
.view-more {
  margin-top: 30px;
}

.view-more .btn {
  display: inline-block;
  background: #004aad;
  color: #fff;
  padding: 10px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.view-more .btn:hover {
  background: #003080;
  transform: translateY(-2px);
}

/* =========================
   IMAGE POPUP (LIGHTBOX)
========================= */
.img-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.img-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

/* Close button */
.img-popup .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

.img-popup .close-btn:hover {
  color: #ffcc00;
}

/* Animation */
@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .campus-gallery-item img {
    height: 180px;
  }
}






/* student quotes */
.student-quotes {
  background: #f0f8ff;
  padding: 60px 20px;
  text-align: center;
}

.student-quotes h2 {
  font-size: 2em;
  color: #001f3f;
  margin-bottom: 40px;
}

.quotes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.quote-card {
  background: white;
  border-left: 5px solid #0074cc;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s;
}

.quote-card:hover {
  transform: translateY(-5px);
}

.quote-card p {
  font-style: italic;
  color: #333;
  margin-bottom: 10px;
}

.quote-card h4 {
  color: #0074cc;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .quote-card {
    max-width: 90%;
  }
}


/* footer */

.footer {
  background-color: #001f3f;
  color: #ffffff;
  padding: 40px 20px 10px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  color: #f9ca24;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #f9ca24;
  text-decoration: underline;
}

.footer-contact p {
  margin: 8px 0;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  display: inline-block;
  margin-right: 15px;
}

.footer-social img {
  width: 30px;
  height: 30px;
  filter: brightness(1.2);
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  font-size: 14px;
  margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ============ Scoped dropdown plumbing ============ */
/* Dropdown wrapper */
.fac-dd {
  position: relative;
}

/* Toggle link */
.fac-dd-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* Arrow rotation */
.fac-dd-caret {
  font-size: 0.8rem;
  transition: transform .2s ease;
}

.fac-dd.open .fac-dd-caret {
  transform: rotate(180deg);
}

/* Dropdown menu style */
.fac-dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin-top: 8px;
  background: #1e3c5a;
  /* dark background */
  border-radius: 4px;
  overflow: hidden;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  pointer-events: none;

  /* ensure vertical stacking */
  display: flex;
  flex-direction: column;
}

.fac-dd.open>.fac-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Menu items */
.fac-dd-item {
  display: block;
  /* ensures stacked vertically */
  width: 100%;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  /* white text */
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.fac-dd-item:last-child {
  border-bottom: none;
}

.fac-dd-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .fac-dd {
    position: static;
  }

  .fac-dd-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    border-radius: 0;
  }
}




/* Image Popup */
.img-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
}

.img-popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}