/* ======================= VARIABLES ======================= */
:root {
  --primary-red: #900404;
  --text-light: #ffffff;
  --text-dark: #1a1a1a;
  --section-bg: #fff5f5;
  --light-grey-bg: #f6f5f7;
}

/* ======================= RESET & DEFAULTS ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-grey-bg);
  color: #023047;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======================= GLOBAL STYLES & HEADINGS ======================= */
.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  color: #24325D;
}

.section-subtext {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto 40px;
  max-width: 700px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  margin: 15px auto 0;
  border-radius: 2px;
}

.student-voice-carousel .section-heading,
.upcoming-events .section-heading {
  color: #ffffff;
}

/* ======================= HEADER ======================= */
.custom-top-bar {
  background:#c95f5c;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 15px;
}

.top-links,
.top-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.main-header {
  background: white;
  position: relative;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #ddd;
}

.main-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.main-logo {
  height: 60px;
  width: 60px;
  object-fit: contain;
}

.main-title h1 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #24325D;
  margin: 0;
  white-space: nowrap;
}

.nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex: 1 1 auto;
  overflow: visible;
}

.nav-wrapper a,
.dropbtn {
  color: #a80202;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: relative;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  top: 100%;
  left: 0;
  min-width: 200px;
  border-radius: 0 0 8px 8px;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  color: #a80202;
  padding: 12px 16px;
  display: block;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #fbeaea;
}

.helpline-box {
  background: #efef29;
  color: rgb(220, 74, 74);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}

/* ======================= HERO SECTION ======================= */
.hero {
  position: relative;
  height: 100vh;
  max-height: 800px;
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  /* Make videos hidden by default and add a fade transition */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-video.active {
  /* Make the active video visible */
  opacity: 1;
}

/* ======================= Enquiry Popup ======================= */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.popup-overlay.show .popup-box {
  transform: scale(1);
}

.popup-box h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--primary-red);
  text-align: center;
  font-size: 1.8rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #333;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.popup-form button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-red);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-form button:hover {
  background-color: #7a0303;
}

.popup-form .error {
  color: var(--primary-red);
  font-size: 0.8rem;
  display: block;
  margin-top: -10px;
  margin-bottom: 10px;
  height: 1em;
}


/*================================================================*/
/*=================== ALL OTHER PAGE SECTIONS ====================*/
/*================================================================*/

.section-divider {
  height: 2px;
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  background-color: #ddd;
  border-radius: 2px;
}

/* --- Campus Facilities --- */
.facility-modern-card {
  flex-shrink: 0;
  width: 280px;
  border: 1px solid #eee;
  border-top: 4px solid var(--primary-red);
  border-radius: 10px;
  padding: 20px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.facility-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.facility-modern-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.facility-modern-card h3 {
  font-size: 1.3rem;
  color: #a80202;
  margin-bottom: 10px;
}

.facility-modern-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  white-space: normal;
}

.facility-carousel-container:hover .facilities-scroll-track {
  animation-play-state: paused;
}

.facility-scroll-wrapper {
  overflow-x: hidden;
  padding-bottom: 20px;
  margin-top: 20px;
}

.facilities-scroll-track {
  display: flex;
  gap: 20px;
  padding: 10px;
  animation: facility-scroll 40s linear infinite;
}

@keyframes facility-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-300px * 10));
  }
}

/* --- Student Voice --- */
.student-voice-carousel {
  background: url('icons/worldMap.jpg') no-repeat center center/cover;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 800px;
  margin: auto;
}

.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  padding: 20px;
}

.carousel-slide.active {
  display: flex;
}

.carousel-slide p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #fff;
}

.carousel-slide img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
  margin-bottom: 10px;
}

.carousel-slide h3 {
  font-size: 20px;
  margin: 0;
  color: #fff;
}

.carousel-slide .course {
  font-size: 14px;
  color: #ddd;
}

.carousel-arrow {
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  transition: color 0.3s;
  background: none;
  border: none;
}

.carousel-arrow:hover {
  color: #ff0000;
}

/* --- Recruiters --- */
.companies {
  background: white;
  padding: 80px 20px;
  text-align: center;
}

.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.slide-track {
  display: flex;
  width: calc(230px * 38);
  animation: scroll 60s linear infinite;
  gap: 40px;
  align-items: center;
}

.slider:hover .slide-track {
  animation-play-state: paused;
}

.slide {
  flex: 0 0 200px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-230px * 19));
  }
}

/* --- Courses --- */
.fresh-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.fresh-course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
  text-align: left;
}

.fresh-course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.fresh-header {
  padding: 20px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fresh-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.fresh-body {
  padding: 20px;
  background: #fff;
}

.fresh-body p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.course-icon {
  font-size: 24px;
  color: #fff;
}

.fresh-header.science {
  background: linear-gradient(to right, #3949ab, #5c6bc0);
}

.fresh-header.health {
  background: linear-gradient(to right, #e53935, #ff6f61);
}

.fresh-header.management {
  background: linear-gradient(to right, #00695c, #26a69a);
}

.fresh-header.school {
  background: linear-gradient(to right, #1e88e5, #42a5f5);
}

.fresh-header.environment {
  background: linear-gradient(to right, #43a047, #66bb6a);
}

.fresh-header.tech {
  background: linear-gradient(to right, #3f51b5, #7986cb);
}

/* --- Campus Life & Upcoming Events --- */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.campus-life-section,
.upcoming-events {
  padding: 80px 20px;
  text-align: center;
}

.campus-life-section {
  background-color: #f4f7f6;
}

.upcoming-events {
  background: url("icons/UpcomingEventBg.jpg") no-repeat center center/cover;
  position: relative;
}

.campus-life-section .section-heading {
  color: #24325D;
}

.upcoming-events .section-heading {
  color: white;
}

.upcoming-events::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.upcoming-events>* {
  position: relative;
  z-index: 2;
}

#campus-life .event-card,
#Upcoming-Events .event-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

#campus-life .event-card {
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
}

#Upcoming-Events .event-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#campus-life .event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

#Upcoming-Events .event-card:hover img {
  transform: scale(1.1);
}

#campus-life .event-card img,
#Upcoming-Events .event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#campus-life .event-card .card-info,
#Upcoming-Events .event-card .card-info {
  padding: 20px;
  flex-grow: 1;
}

#campus-life .event-card .card-info h3 {
  color: var(--primary-red);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

#campus-life .event-card .card-info p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

#Upcoming-Events .event-card .card-info {
  background-color: #a80202;
}

#Upcoming-Events .event-card .card-info h3 {
  color: #fff;
  font-size: 1.4rem;
}

#Upcoming-Events .event-card .card-info p {
  color: #f0dada;
  font-size: 0.9rem;
}

/* --- News --- */
.Newsletter {
  background-color: #ffffff;
  padding: 80px 20px;
}

.Newsletter .section-heading {
  color: #24325D;
}

.Newsletter .news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.Newsletter .news-card {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.Newsletter .news-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.Newsletter .news-card img {
  width: 140px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.Newsletter .news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.Newsletter .news-content h3 {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
}

.Newsletter .news-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  flex-grow: 1;
}

.Newsletter .news-date {
  font-size: 0.8rem;
  color: var(--primary-red);
  font-weight: 600;
  margin-top: 10px;
  align-self: flex-end;
}

/* --- Footer --- */
.footer {
  background: #c95f5c;
  color: var(--text-light);
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  max-width: 1400px;
  margin: auto;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.social-icons a {
  margin-right: 15px;
  font-size: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-map-embed iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.footer-logo-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
}

.footer-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.developer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.developer-credit img {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

/* --- Other Pages (Contact, About, etc.) --- */
.map-container {
  width: 100%;
  height: 100vh;
}

.contact-section {
  background-image: url('icons/ContactUsbg.jpeg');
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info,
.contact-form {
  flex: 1 1 400px;
  padding: 40px;
}

.contact-info h2 {
  color: var(--primary-red);
  font-size: 28px;
  margin-bottom: 15px;
}

.contact-info p {
  font-size: 15px;
  margin-bottom: 30px;
  color: #333;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-red);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-row input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-red);
}

.mvv-title {
  width: 100%;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  margin-top: 60px;
  margin-bottom: 30px;
  color: var(--primary-red);
  text-transform: uppercase;
}

.mvv-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.mvv-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  max-width: 320px;
  flex: 1 1 280px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-8px);
}

.mvv-card h3 {
  color: var(--primary-red);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.mvv-card p {
  color: #555;
  font-size: 0.95rem;
}

.mvv-icon img {
  width: 50px;
  height: 50px;
  margin: 15px auto 0;
}

.loan-content-wrapper {
  text-align: center;
}

.section {
  padding: 60px 20px;
}

.admission-cards-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.admission-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.admission-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.admission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.admission-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.admission-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admission-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-red);
}

.admission-content p {
  flex-grow: 1;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
}

.admit-btn {
  display: block;
  background-color: var(--primary-red);
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.admit-btn:hover {
  background-color: #7a0303;
}

.loan-section-bg {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
  background: url('icons/LoanBg.jpg') no-repeat center center/cover;
}

.loan-section-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: -1;
}

.loan-subtext {
  text-align: center;
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
}

.loan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.loan-card {
  border: none;
  background: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  padding: 20px;
  border-top: 5px solid var(--primary-red);
}

.loan-card:hover {
  transform: translateY(-8px);
}

.loan-card h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-red);
}

.loan-card p {
  font-size: 0.95rem;
  color: #555;
}

.loan-details {
  display: none;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  text-align: left;
}

.loan-details ul {
  padding-left: 1.2rem;
  list-style: none;
  margin: 0;
}

.loan-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #333;
}

.loan-details li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
}

.committee-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.committee-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.committee-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
  display: block;
}

.committee-card img:hover {
  transform: scale(1.03);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.styled-table th,
.styled-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.styled-table th {
  background-color: var(--primary-red);
  color: #fff;
  font-weight: bold;
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.styled-table tr:hover {
  background-color: #fbeaea;
}

.info-card {
  flex: 1 1 300px;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: left;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
}

.info-card i {
  color: var(--primary-red);
}

.info-card ul {
  padding-left: 20px;
}

.info-card p {
  font-size: 15px;
  color: #333;
}

.info-blue {
  border-left: 6px solid #007bff;
  background: #e6f0ff;
}

.info-green {
  border-left: 6px solid #28a745;
  background: #e6ffee;
}

.info-orange {
  border-left: 6px solid #fd7e14;
  background: #fff3e6;
}

#backToTop {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: #f5c7c7;
  color: var(--primary-red);
  width: 45px;
  height: 45px;
  font-size: 20px;
  text-align: center;
  line-height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
  background-color: var(--primary-red);
  color: white;
  transform: scale(1.1);
}

/* ================================================= */
/* === LOGIN/SIGNUP & PROFILE PAGE STYLES === */
/* ================================================= */
.login-page-wrapper,
.profile-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: var(--light-grey-bg);
  flex-grow: 1;
}

.new-auth-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  width: 768px;
  max-width: 100%;
  min-height: 480px;
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-container form {
  width: 100%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

.form-container h1 {
  color: #333;
}

.form-container span {
  font-size: 12px;
}

.form-container input {
  background-color: #eee;
  border: none;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  border-radius: 6px;
}

.form-container button {
  border-radius: 20px;
  border: 1px solid var(--primary-red);
  background-color: var(--primary-red);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 80ms ease-in;
  cursor: pointer;
}

.form-container button:active {
  transform: scale(0.95);
}

.form-container a {
  color: #333;
  font-size: 14px;
  text-decoration: none;
  margin: 15px 0;
}

.social-container {
  margin: 20px 0;
}

.social-container a {
  border: 1px solid #DDDDDD;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  height: 40px;
  width: 40px;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.new-auth-container.right-panel-active .sign-in-container {
  transform: translateX(100%);
  opacity: 0;
}

/* <-- Hide during transition */
.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.new-auth-container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

/* THE FIX for overlapping text */
@keyframes show {

  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.new-auth-container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: linear-gradient(to right, var(--primary-red), #c82323);
  color: #FFFFFF;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.new-auth-container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
  font-weight: bold;
  margin: 0;
}

.overlay-panel p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

.overlay-panel button.ghost {
  background-color: transparent;
  border-color: #FFFFFF;
}

/* THE FIX for button style */
.overlay-left {
  transform: translateX(-20%);
}

.new-auth-container.right-panel-active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.new-auth-container.right-panel-active .overlay-right {
  transform: translateX(20%);
}

.mobile-toggle-link {
  display: none;
}

.profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 800px;
  padding: 30px 40px;
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 4px solid var(--primary-red);
}

.profile-header h2 {
  color: #333;
}

.profile-body h3 {
  font-size: 1.2rem;
  color: var(--primary-red);
  margin-top: 25px;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.profile-field {
  margin-bottom: 15px;
}

.profile-field label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.profile-field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #333;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.profile-field input:read-only {
  background-color: transparent;
  border-color: transparent;
  padding-left: 0;
  cursor: default;
  box-shadow: none;
}

#profileForm.editable .profile-field input {
  background-color: #fff;
  border-color: #ccc;
  padding-left: 10px;
  cursor: text;
}

#profileForm.editable .profile-field input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 2px rgba(144, 4, 4, 0.2);
}

.profile-actions {
  margin-top: 30px;
  text-align: right;
}

.profile-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.edit-btn {
  background-color: #3498db;
  color: white;
}

.edit-btn:hover {
  background-color: #2980b9;
}

.save-btn {
  background-color: #2ecc71;
  color: white;
}

.save-btn:hover {
  background-color: #27ae60;
}


/* ===================  RESPONSIVE DESIGN STYLES  ==================== */
@media (max-width: 1200px) {

  .main-header .nav-wrapper,
  .main-header .helpline-box {
    display: none;
  }

  .main-header .hamburger-menu {
    display: block;
  }

  .main-header {
    justify-content: space-between;
  }

  .nav-wrapper.mobile-active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid #ddd;
  }

  .nav-wrapper.mobile-active a,
  .nav-wrapper.mobile-active .dropbtn {
    font-size: 1rem;
    width: 100%;
    text-align: left;
    padding: 10px 5px;
  }

  .nav-wrapper.mobile-active .dropdown {
    width: 100%;
  }

  .nav-wrapper.mobile-active .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    background-color: #f9f9f9;
    width: 100%;
    padding-left: 15px;
  }
}

@media (max-width: 850px) {

  .custom-top-bar,
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer-container,
  .chairman-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .chairman-text,
  .contact-info,
  .contact-form {
    text-align: justify;
    padding: 20px;
  }

  .login-page-wrapper {
    padding: 0;
  }

  .new-auth-container {
    box-shadow: none;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    display: flex;
    align-items: center;
  }

  .overlay-container {
    display: none;
  }

  .form-container {
    width: 100%;
    position: static;
    transform: none !important;
    animation: none !important;
    padding: 20px;
    height: auto;
    opacity: 1 !important;
  }

  .new-auth-container .sign-in-container {
    display: flex;
  }

  .new-auth-container .sign-up-container {
    display: none;
  }

  .new-auth-container.right-panel-active .sign-in-container {
    display: none;
  }

  .new-auth-container.right-panel-active .sign-up-container {
    display: flex;
  }

  .mobile-toggle-link {
    display: block !important;
    margin-top: 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-red);
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .main-title h1 {
    font-size: 0.9rem;
  }

  .main-logo {
    height: 50px;
    width: 50px;
  }

  .card-container,
  .admission-card-grid,
  .fresh-course-grid,
  .committee-gallery,
  .news-container,
  .loan-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .carousel-container {
    flex-direction: column;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-slide {
    padding: 10px;
  }

  .carousel-slide p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .carousel-slide img {
    width: 80px;
    height: 80px;
  }

  .carousel-slide h3 {
    font-size: 18px;
  }
}

/* ================================================= */
/* === STYLES FOR NESTED DROPDOWN IN MAIN NAV ====== */
/* ================================================= */
.dropdown-content .has-submenu {
  position: relative;
}

.dropdown-content .has-submenu .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -1px;
  /* Align with the top of the parent item */
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  border-radius: 0 8px 8px 8px;
}

.dropdown-content .has-submenu:hover>.submenu {
  display: block;
}

.has-submenu>a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

.has-submenu:hover>a>.submenu-arrow {
  transform: rotate(90deg);
}

/* ================================================= */
/* === STYLES FOR TWO-COLUMN ABOUT PAGE LAYOUT ===== */
/* ================================================= */
.about-page-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e7e7e7;
}

.about-breadcrumb {
  padding: 15px 25px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #555;
  background-color: #fcfcfc;
}

.about-main-layout {
  display: flex;
}

.about-sidebar {
  flex: 0 0 280px;
  border-right: 1px solid #eee;
  background-color: #fff;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background-color: #891313;
  padding: 15px 20px;
  margin: 0;
}

.sidebar-nav a.sidebar-link {
  display: block;
  padding: 15px 20px;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-nav a.sidebar-link:hover {
  background-color: #fbeaea;
  color: var(--primary-red);
}

.sidebar-nav a.sidebar-link.active {
  background-color: var(--primary-red);
  color: #fff;
  font-weight: 600;
}

.sidebar-nav a.sidebar-link.active:hover {
  background-color: #7a0303;
}

.about-content-area {
  flex: 1;
  padding: 25px 30px;
  min-height: 500px;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section h2 {
  font-size: 1.9rem;
  color: var(--primary-red);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
}

.content-section h3 {
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 15px;
}

.content-main-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.about-content-area p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 15px;
}

/* ================================================= */
/* === STYLES FOR HOVERABLE SIDEBAR SUBMENU ======== */
/* ================================================= */
.sidebar-submenu-wrapper {
  position: relative;
}

.sidebar-link.has-submenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  width: 250px;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.sidebar-submenu-wrapper:hover .sidebar-submenu {
  display: block;
}

.sidebar-submenu a.sidebar-link {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-submenu a.sidebar-link:last-child {
  border-bottom: none;
}

.sidebar-submenu-wrapper:hover>a.has-submenu {
  background-color: #fbeaea;
  color: var(--primary-red);
}

.leader-message {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

.leader-photo {
  flex-shrink: 0;
  width: 160px;
  /* Reduced Size */
  height: 160px;
  /* Reduced Size */
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.leader-info-text p {
  text-align: justify;
  margin-bottom: 15px;
}

.signature {
  font-weight: 600;
  font-style: italic;
  color: #333;
  text-align: right;
  margin-top: 15px;
}

.philosophy-box {
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid;
}

.philosophy-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.philosophy-box ul {
  padding-left: 20px;
  margin: 0;
  text-align: left;
}

.philosophy-box li {
  margin-bottom: 8px;
}

.vision-box {
  background-color: #e3f2fd;
  border-color: #1976d2;
  color: #0d47a1;
}

.mission-box {
  background-color: #ffebee;
  border-color: #d32f2f;
  color: #b71c1c;
}

.core-values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

.value-item i {
  color: var(--primary-red);
  font-size: 1.8rem;
  margin-top: 5px;
  min-width: 30px;
  text-align: center;
}

.value-item h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 5px 0;
}

.value-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* --- Responsive styles for the new About page layout --- */
@media (max-width: 900px) {
  .about-main-layout {
    flex-direction: column;
  }

  .about-sidebar {
    flex-basis: auto;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .sidebar-submenu {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid #eee;
    max-height: 1000px !important;
    /* Override for mobile */
  }

  .sidebar-submenu-wrapper:hover .sidebar-submenu {
    display: block;
  }
}

@media (max-width: 768px) {
  .leader-message {
    flex-direction: column;
    text-align: center;
  }

  .leader-info-text p {
    text-align: center;
  }

  .signature {
    text-align: center;
  }
}

#about-bgoi-content.content-section {
  background-color: #f9f9f9;
  padding: 25px 30px;
  border-radius: 8px;
  border: 1px solid #eee;
}



















/* FIXED BACK BUTTON - BOTTOM LEFT */
.fixed-back-btn {
  position: fixed;
  bottom: 20px;     /* खाली */
  left: 20px;       /* left side */
  background-color: #c62828;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.fixed-back-btn:hover {
  background-color: #a71d1d;
}




.navbar-back-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #c62828;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

