/* ===============================
   Root Variables
================================ */
:root {
  --header-height: 60px;
  --header-bg: #932F67;
  --header-text: #ffffff;
  --body-bg: #DDDEAB;
  --body-text: #000000;
}

/* ===============================
   Base Layout
================================ */
body,
.main-content,
.img-container {
  padding-top: 0; /* Keeping 0 since multiplier was 0 */
  background-color: var(--body-bg);
  color: var(--body-text);
  margin: 0;
  font-family: Arial, sans-serif;
}

.intro-indent {
  text-indent: 3em;
}

/* ===============================
   Header
================================ */
.main-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--header-bg);
  color: var(--header-text);
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 16px; /* Balanced horizontal padding */
  box-sizing: border-box;
}

/* ===============================
   Header - Left Section
================================ */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  height: 45px;
  width: auto;
}

.institute-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--header-text) !important;
  white-space: nowrap;
  line-height: 1.2;
}

/* ===============================
   Header - Right Section
================================ */
.header-right {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--header-text);
  white-space: nowrap;
  margin-right: 20px;
}

/* ===============================
   Responsive Adjustments
================================ */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    height: auto;
    padding: 10px;
    text-align: center;
  }

  .header-left {
    margin-bottom: 6px;
    justify-content: center;
  }

  .header-right {
    margin-right: 0;
  }

  .institute-text {
    font-size: 0.95rem;
  }
}

/* ===============================
   Navigation Bar
================================ */
.main-nav {
  position: relative; 
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #932F67;
  z-index: 900;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0;
  transition: top 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none; 
  margin: 0;
  padding: 0;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-menu li {
  margin: 0 12px;
  position: relative;
}

.nav-menu a {
  color: #fff;
  font-weight: 600;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: block;
  border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: #D92C54;
}

/* Sticky / Fixed State */
.main-nav.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===============================
   Dropdown Menu
================================ */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 220px;
  background-color: #932F67;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);

  padding: 6px 0;
  list-style: none;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu li:hover > .dropdown,
.nav-menu li:focus-within > .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown li a {
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
  border-radius: 6px;
}

.dropdown li a:hover {
  background-color: #D92C54;
}

/* ===============================
   Mobile Hamburger
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ===============================
   Mobile Styles
================================ */
@media (max-width: 768px) {
  .main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #932F67;
    padding: 10px;
    text-align: center;
  }

  /* Logo on top */
  .main-header .logo {
    order: -1;
    margin-bottom: 6px;
  }

  .main-header .logo img {
    max-height: 60px;
    margin: 0 auto;
  }

  .main-header .institute-text {
    font-size: 1rem;
    color: #fff !important;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    margin-left: 10px;
    padding: 8px;
  }

  /* Collapsed nav by default */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;

    background-color: #932F67;
    margin: 0;
    padding: 0;
  }

  /* Toggle active state */
  .nav-menu.show {
    display: flex;
  }

  /* Dropdown inside mobile */
  .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    transform: none;
    display: none;
    padding: 0;
  }

  .dropdown.open {
    display: block;
  }

  .dropdown li a {
    padding-left: 24px; /* indent sub-items */
  }
}

/* Building Image */
.img-container {
  text-align: center;
}

.img-container img {
  display: block;
  margin: 0 auto;
  width: 80%;
  height: auto;
  border-radius: 20px;
}

.rslides {
  list-style: none;
  margin-top: 15px; 
  padding: 0;
}

.rslides li {
  margin: 0;
  padding: 0;
}


/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #932F67;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s;
  z-index: 1000;
}
.back-to-top:hover {
  background-color: #8ABB6C;
  color: #fff;
}
.back-to-top i {
  font-size: 1.3rem;
}

/* Footer */
footer, .footer {
  position: relative;
  top: 50px;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #932F67;
  color: white;
  padding: 20px 0;
  text-align: center;
  z-index: 1000;
}
.social-icons a {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 10px;
  transition: color .3s;
}
.social-icons a:hover {
  color: #8ABB6C;
}

/* Section */
.section {
  padding: 20px 20px;
  max-width: 1500px;
  margin: 0 auto 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 20px;
}

.section h4 {
  color: #000000;
  text-align: center;
  font-size: 1.8rem;
}

.section p,
.section a,
.news-marquee li,
a.more-link {
  color: #000000;
}
  
a.more-link::after {
  background-color: #8ABB6C;
}

a.more-link:hover::after,
a.more-link:focus::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

.vertical-marquee {
  position: relative;
  height: 30px; /* visible height */
  overflow: hidden;
}

.vertical-marquee a {
  display: inline-block;
  color: #000;
  text-decoration: none;
  animation: marquee-vertical 4s linear infinite;
  white-space: nowrap;
}

.vertical-marquee a:hover {
  text-decoration: underline;
}

@keyframes marquee-vertical {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Map */
.map-responsive {
  position: relative;
  overflow: hidden;
  padding-bottom: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.map-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* About Us */
.container.box {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: justify;
}

.container.box h4 {
  color: #000000;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.about-list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.5rem;
  font-size: 1.3rem;
}

.about-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #000000;
}

/* Courses Offered */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.courses-table {
  width: 100%;
  border-collapse: collapse;
}

.courses-table th,
.courses-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
  font-size: 1.5rem;
}

.courses-table th {
  background: #932F67;
  color: #ffffff;
}


/* Zebra striping for better readability */
.courses-table tbody tr:nth-child(odd) {
  background: #DDDEAB;
}

.facility-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facility-list li {
  margin-bottom: 1.75rem;
}

.facility-list h5 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  color: #932F67;
  position: relative;
  padding-left: 1.5rem;
}

.facility-list h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1rem;
  background: #932F67;
  transform: translateY(-50%);
}

.facility-list p {
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: #000000;
  font-size: large;
}

@media (max-width: 600px) {
  .container.box.facilities {
    padding: 16px;
    margin-bottom: 24px;
  }
  .facility-list h5 {
    font-size: 1.2rem;
  }
  .facility-list p {
    font-size: 0.95rem;
  }
}

.principal {
  display: flex;
  justify-content: center;
}

.principal img {
  width: 150px;
  height: auto;
  border-radius: 50%;
  border: 3px solid #932F67;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  text-align: center;
}

/* Feedback */
.container.box.feedback {
  max-width: 600px;
  margin: 5rem auto 40px;
  padding: 20px;
  background: #932F67;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.container.box.feedback h4 {
  color: #DDDEAB;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.feedback-form .form-group {
  margin-bottom: 1rem;
}

.feedback-form label {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.feedback-form textarea {
  resize: vertical;
}

.feedback-form button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  color: #fff;
  background: #8ABB6C;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.3s;
}

.feedback-form button:hover {
  background: #D92C54;
}

@media (max-width: 600px) {
  .container.box.feedback {
    padding: 16px;
  }
  .feedback-form label {
    font-size: 0.95rem;
  }
}

/* --- ADDED: Sticky logo + text on left --- */
.header-inner {
  justify-content: flex-start;
}
.logo-text-wrapper {
  display: flex;
  align-items: center;
}
.logo-text-wrapper img {
  height: 40px;
  margin-right: 10px;
}
.institute-text {
  font-size: 1.2rem;
  font-weight: bold;
}
