/* ================= ROOT COLORS ================= */
:root {
  --page-bg: linear-gradient(to left, #efe5d1, #d8b485, #edddd3);

  --nav-bg: #a6a06a;
  --nav-hover: #3a2a1a;

  /* MENU COLORS */
  --submenu-army: #4b5f3a;
  --submenu-olive: #6b7b3a;

  --text-white: #ffffff;
  --text-yellow: #f5e88b;

  --dark-green: #0b3d2a;
  --dark-brown: #2f1d0f;
  --light-brown: #efe7d8;
}

/* ================= BASE ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  /* font-family: "Cambria", "Georgia", serif; */
  font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}
/* *****/

.right-header-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* *****================= TOP UTILITY BAR ================= */
.top-utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0; /*8px 30px;*/
  background: transparent;
  border-bottom: none;
  font-family: "Cambria", "Georgia", serif;
}

/* RIGHT SIDE */
.utility-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* SEARCH */
.search-box {
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 6px 8px;
  border: 1px solid #aaa;
  outline: none;
}

.search-box button {
  padding: 6px 12px;
  border: none;
  background: #7b5526;
  color: #fff;
  cursor: pointer;
}
.search-box button:hover {
  background: #65431e;
}
.search-box button i {
  color: #ffffff;
}
/* FONT SIZE */
.font-size a {
  text-decoration: none;
  color: #7b5526;
  font-weight: bold;
  margin: 0 4px;
}
.font-size a:hover {
  color: #65431e;
}
/* LOGIN */
.login a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

/* MAIL ICON */
.mail-icon {
  width: 42px;
  height: 42px;
  background: #7b5526;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.mail-icon:hover {
  background: #65431e;
}
/* OLD SITE */
.old-site a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}
/* ****

/* ================= FIXED SOCIAL BAR ================= */
.social-bar {
  position: fixed;
  left: 0;
  top: 40%;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.social-bar a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #402910;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Brand hover */
.social-bar .fb:hover {
  background: #0000ff;
  color: #ffffff;
}
.social-bar .ig:hover {
  background: #ff69b4;
  color: #6a0dad;
}
.social-bar .x:hover {
  background: #000000;
  color: #ffffff;
}
.social-bar .yt:hover {
  background: #ffffff;
  color: #ff0000;
}

/* ================= TOP CONTACT ================= */
.top-contact {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  padding: 8px 30px;
  background: #f0debc;
  font-size: 14px;
}

.blink-contact {
  animation: blinkFast 1s infinite;
}

@keyframes blinkFast {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ================= HEADER ================= */
.top-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;

  padding: 10px 30px;
  border-bottom: 2px solid var(--dark-green);
}

.logo-section img {
  height: 160px;
  width: auto;
}

.title-section h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 32px);
  color: var(--dark-green);
  font-family: "Algerian", "Bodoni MT Black", serif;
  white-space: nowrap;
}

.subtext {
  margin: 4px 0;
  /* font-size: 15px; */
  font-size: 16px;
  color: #274737;
  font-family: "Copperplate Gothic Bold", serif;
}

/* ================= LATEST UPDATES BAR ================= */

.latest-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  background: #ebecd6;
  border-top: 2px solid #2f1d0f;
  border-bottom: 2px solid #2f1d0f;
  overflow: hidden;
}

/* LEFT LABEL */
.latest-arrow {
  background: #270c03;
  color: #bb9a07;
  font-weight: bold;
  font-size: 18px;
  /* padding:12px 40px 12px 25px; */
  padding: 9px 20px 9px 15px;
  position: relative;
  white-space: nowrap;
  line-height: 1;
}

.latest-arrow::after {
  content: "";
  position: absolute;
  top: 0;
  right: -28px;
  width: 0;
  height: 0;

  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 28px solid #270c03;
}

/* MOVING TEXT */
.latest-marquee {
  flex: 1;
  padding-left: 29px;
  white-space: nowrap;
  line-height: 1;
}

.latest-marquee marquee {
  display: block;
  line-height: 1;
}

.latest-marquee .update-text {
  color: #000;
}

.latest-marquee .update-text a {
  color: #000;
  text-decoration: none;
}

.latest-marquee .update-text a:hover {
  text-decoration: underline;
}

/* ================= BLINKING ================= */
.blink-slow {
  animation: blinkSlow 2s infinite;
}

@keyframes blinkSlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.blink-fast {
  animation: blinkGrade 0.6s infinite;
  font-weight: bold;
}

@keyframes blinkGrade {
  0% {
    color: #0b3d2a;
  }
  50% {
    color: #5a2e0f;
  }
  100% {
    color: #0b3d2a;
  }
}

/* ================= RIGHT TOP BOXES ================= */
.top-links {
  display: flex;
  gap: 10px;
}

.badge {
  background: #7b5526;
  color: #fff;
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge span {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.3s;
}

.badge:hover {
  background: #65431e;
  color: #9bd19b;
}

.badge:hover span {
  transform: rotate(90deg);
}

/* ================= NAV BAR ================= */

.main-nav {
  background: var(--nav-bg);
}

.nav-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-bar > li {
  position: relative;
  border-left: 1px solid hsl(30, 50%, 77%);
  border-right: 1px solid #e1ae7c;
}

.nav-bar > li > a {
  display: block;
  padding: 3px 6px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.nav-bar > li > a:hover {
  background: var(--nav-hover);
  color: var(--text-yellow);
}
/* ================= SUBMENU LEVEL 1 ================= */
/* LEFT DROPDOWN BOX (History, Mission, Governance) */

.submenu.level-1 {
  background: #aa8573;
  border: 1px solid #392511;
}

.submenu.level-1 a {
  color: #ffffff;
}

.submenu.level-1 a:hover {
  background: #f2e129;
  color: #5e1e03;
  border-left: 1px solid hsl(30, 50%, 77%);
  border-right: 1px solid #e1ae7c;
}

/* LEVEL 1 – each submenu item boxed */
.submenu.level-1 > li {
  border-top: 1px solid rgba(245, 232, 139, 0.6);
  border-bottom: 1px solid rgba(245, 232, 139, 0.6);
}

/* remove double border overlap */
.submenu.level-1 > li:not(:first-child) {
  border-top: none;
}

/* ================= SUB-SUB MENU (COMMITTEES) ================= */
/* ================= MAIN SUBMENU LEVEL 1 ================= */

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #dba776;
  border: 2px solid #331501;
  z-index: 3000;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.has-submenu:hover > .submenu {
  display: block;
  border-left: 2px solid hsl(30, 50%, 77%);
  border-right: 2px solid #e1ae7c;
}

/* submenu items */
.submenu a {
  display: block;
  padding: 5px 5px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition:
    background 0.3s,
    color 0.3s;
}

/* hover on submenu */
.submenu a:hover {
  background: #5a3a1a;
  color: #f5e88b;
}

/* each submenu item position */
.submenu li {
  position: relative;
}

/* ================= SUB-SUB MENU LEVEL 2 (GOLD) ================= */

.submenu.level-2 {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 260px;

  background: #c4b24a;
  border: 2px solid #331501;

  z-index: 5000;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* open sub-sub menu */
.submenu li.has-submenu:hover > .submenu.level-2 {
  display: block;
}

/* text inside gold menu */
.submenu.level-2 a {
  color: #3a2a1a;
  font-weight: 600;
}

/* hover on gold items */
.submenu.level-2 a:hover {
  background: #a8892f;
  color: #ffffff;
}

/* LEVEL 2 – each sub-submenu item boxed */
.submenu.level-2 > li {
  border-top: 2px solid rgba(58, 42, 26, 0.7);
  border-bottom: 2px solid rgba(58, 42, 26, 0.7);
}

/* remove double border overlap */
.submenu.level-2 > li:not(:first-child) {
  border-top: none;
}
.submenu.level-1 li a,
.submenu.level-2 li a {
  display: block;
  padding: 8px 12px;
}

/* ================= LEVEL 3 MENU – COMMON THEME ================= */

/* Target ALL third-level menus */
.submenu.level-2 .submenu.level-2 {
  background: #efd78a;
  border: 2px solid #6b4a2d;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Level-3 menu links */
.submenu.level-2 .submenu.level-2 a {
  color: #2f1d0f;
  font-weight: 600;
  background: none;
}

/* Hover effect */
.submenu.level-2 .submenu.level-2 a:hover {
  background: #b0bc78;
  color: #50560a;
}

/* ===== TIGHTEN PARAGRAPH SPACING IN PRINCIPAL SECTION ===== */

.principal-text p {
  margin-top: 8px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ===== TIGHTEN PARAGRAPH SPACING IN PRESIDENT SECTION ===== */

.president-text-area p {
  margin-top: 8px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ================= TAGORE SECOND LAST SECTION ================= */

* .tagore-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0px;
  background: #ddd3c5;
}

.tagore-box {
  flex: 1;
  background: #ffffff;
  border: 4px solid #5a3a1a;
  padding: 3px;
}

.tagore-box img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #8b6a42;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--dark-brown);
  color: #ffff;
}

.footer-container {
  display: flex;
  gap: 30px;
  padding: 10px;
  background: linear-gradient(to bottom, #573312, #4e3008, #351d04);
}

.footer-box {
  flex: 1;
}

.footer-box h3 {
  border-bottom: 2px solid #d8c58a;
  padding-bottom: 8px;
  margin-bottom: 15px;
  color: #f3e56b;
}

/* ================= FOOTER BLINK ================= */
@keyframes footerBlink {
  0% {
    color: #8fd19e;
  }
  33% {
    color: #f3e56b;
  }
  66% {
    color: #9ad0ff;
  }
  100% {
    color: #8fd19e;
  }
}

.footer-box h3,
.footer-box p,
.footer-box ul li {
  animation: footerBlink 4s infinite;
}

.footer-box ul {
  list-style: none;
  padding: 0;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box p {
  margin-bottom: 10px;
}

.footer-box iframe {
  width: 100%;
  height: 200px;
  border: 3px solid #d8c58a;
}

/* ================= FOOTER SOCIAL ================= */
.footer-social i {
  font-size: 20px;
  margin-right: 10px;
  cursor: pointer;
  color: #ffffff;
}

.footer-social i:hover {
  color: #f3e56b;
}

/* ================= FOOTER BOTTOM ================= */
.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 5px 4px;
  background: linear-gradient(to bottom, #61440d, #483107, #432705);
  font-size: 14px;
  color: #ffffff;
}
/* ================= NEW BLINK GRADIENT ================= */

.new-blink {
  font-weight: bold;
  animation: blinkGradient 1.2s infinite;
  background: linear-gradient(to bottom, #15f11c, #b10707, #00ddff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Blinking + color shifting */
@keyframes blinkGradient {
  0% {
    opacity: 1;
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.4;
    background-position: 100% 50%;
  }
  100% {
    opacity: 1;
    background-position: 0% 50%;
  }
}

/* ================= VISITOR COUNTER ================= */
.visitor-box {
  text-align: center;
}

.counter-display {
  margin: 15px auto;
  padding: 12px 20px;
  border: 3px solid #d8c58a;
  background: #24150b;
  width: 140px;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #f3e56b;
  font-family: "Courier New", monospace;
  border-radius: 6px;
}
.main-nav {
  background: linear-gradient(
    135deg,
    #a37658,
    #604b31,
    #ac8d67,
    #6d4d20,
    #d6b67b
  );

  border-top: 2px solid #3a2a1a;
  border-bottom: 2px solid #3a2a1a;
}

/* ===== IQAC, NAAC & FEEDBACK DROPDOWN (NEW) ===== */

.iqac-dropdown,
.naac-dropdown,
.feedback-dropdown {
  position: relative;
}

/* Trigger */
.iqac-trigger,
.naac-trigger,
.feedback-trigger {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

/* Dropdown menu */
.iqac-menu,
.naac-menu,
.feedback-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: #f0debc; /* Match top-contact or similar light theme */
  border: 1px solid #7b5526;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);

  display: none;
  z-index: 10000;
}

/* Show menu on hover */
.iqac-dropdown:hover .iqac-menu,
.naac-dropdown:hover .naac-menu,
.feedback-dropdown:hover .feedback-menu {
  display: block;
}

/* Active State for Trigger */
.iqac-dropdown:hover .iqac-trigger,
.naac-dropdown:hover .naac-trigger,
.feedback-dropdown:hover .feedback-trigger {
  background: #3a2a1a !important;
  color: #f5e88b !important;
}

/* Menu links */
.iqac-menu a,
.naac-menu a,
.feedback-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #2f1d0f;
  font-size: 14px;
  font-family: "Cambria", "Georgia", serif;
  border-bottom: 1px solid rgba(123, 85, 38, 0.2);
  transition:
    background 0.3s,
    color 0.3s;
}

/* Hover effect */
.iqac-menu a:hover,
.iqac-submenu-wrapper:hover > .iqac-submenu-trigger,
.naac-menu a:hover,
.naac-submenu-wrapper:hover > .naac-submenu-trigger,
.feedback-menu a:hover {
  background: #7b5526;
  color: #ffffff;
}

/* Remove border from last item */
.iqac-menu a:last-child,
.naac-menu a:last-child,
.feedback-menu a:last-child {
  border-bottom: none;
}

/* Submenu Wrapper */
.iqac-submenu-wrapper,
.naac-submenu-wrapper {
  position: relative;
}

.iqac-submenu,
.naac-submenu {
  position: absolute;
  top: 0;
  right: 100%; /* Open to the left */
  min-width: 250px;
  background: #f0debc;
  border: 1px solid #7b5526;
  display: none;
  box-shadow: -4px 6px 12px rgba(0, 0, 0, 0.15);
}

.iqac-submenu-wrapper:hover > .iqac-submenu,
.naac-submenu-wrapper:hover > .naac-submenu {
  display: block;
}

/* Responsive adjustment for IQAC, NAAC and FEEDBACK dropdown */
@media (max-width: 991.98px) {
  .iqac-menu,
  .naac-menu,
  .feedback-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: rgba(240, 222, 188, 0.5);
  }

  .iqac-submenu,
  .naac-submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 20px;
  }
}

/* ================= PHOTO SHOWCASE LAYOUT ================= */

.photo-showcase {
  display: flex;
  gap: 0px;
  padding: 0px;
  background: #efe7d8;
  height: 450px;
}

/* LEFT SLIDER AREA */
.photo-left {
  flex: 2;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 2px solid #2d1c0c;
  background: none;
}

/* RIGHT FIXED AREA */
.photo-right {
  flex: 1.2;
  position: relative;
  height: 100%;
  border: 2px solid #472d13;
  overflow: hidden;
}

.photo-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OLD SLIDER STYLES REMOVED TO PREVENT BOOTSTRAP CONFLICTS */

/* ARROWS STYLE */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #ffffff;

  padding: 8px 14px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 10;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.3);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* STACK NAAC ROW + CAMPUS 360 */
.top-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* FIRST ROW (EXISTING BUTTONS) */
.top-links-row {
  display: flex;
  gap: 10px;
}

/* Tighten spacing between Affiliated line & NAAC line */
.title-section .subtext:last-of-type {
  margin-bottom: 0;
}

.title-section .blink-slow {
  margin-top: 2px;
}

/* ===== CAMPUS 360 – PREMIUM CALLOUT ===== */
.campus-360-row {
  margin-right: 110px;
  margin-top: 8px;
}

/* Button core */
.badge.campus-360 {
  background: linear-gradient(135deg, #113b02, #d0e46d);
  border-radius: 999px;
  padding: 11px 30px;
  font-weight: 600;
  font-size: 14px;

  /* Better font */
  font-family: "Cambria", "Montserrat", "Arial", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);

  /* Blinking glow animation */
  animation: campusBlink 1.8s infinite ease-in-out;
}

/* Hover state (pause blink, stronger glow) */
.badge.campus-360:hover {
  animation-play-state: paused;
  background: linear-gradient(135deg, #d1ce3e, #aec153);
  box-shadow:
    0 0 14px rgba(202, 80, 28, 0.9),
    0 0 28px rgba(176, 120, 55, 0.7);
}

/* Blink / glow animation (NO SCALE) */
@keyframes campusBlink {
  0% {
    box-shadow:
      0 0 4px rgba(176, 120, 55, 0.3),
      0 0 10px rgba(176, 120, 55, 0.2);
  }
  50% {
    box-shadow:
      0 0 12px rgba(176, 120, 55, 0.9),
      0 0 26px rgba(176, 120, 55, 0.6);
  }
  100% {
    box-shadow:
      0 0 4px rgba(176, 120, 55, 0.3),
      0 0 10px rgba(176, 120, 55, 0.2);
  }
}

/* ===== LOGIN DROPDOWN (FIXED) ===== */

.login-dropdown {
  position: relative;
}

/* Trigger */
.login-trigger {
  text-decoration: none;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  padding-bottom: 6px;
  display: inline-block;
}

/* Dropdown menu */
.login-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #dfd576;
  border: 1px solid #e0c055;
  box-shadow: 0 6px 14px rgba(72, 5, 5, 0.25);

  display: none;
  z-index: 9999;
}

/* SHOW menu when hovering anywhere in the block */
.login-dropdown:hover .login-menu,
.login-menu:hover {
  display: block;
}

/* Menu links */
.login-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #7b5526;
  font-size: 14px;
  font-family: "Book Antiqua", "Georgia", serif;
  border-bottom: 1px solid #23440e;
}

/* ERP tag */
.login-menu a span {
  color: #b07a3c;
  font-weight: bold;
}

/* Hover effect */
.login-menu a:hover {
  background: #c2c20c;
  color: #3a2a1a;
}

/* Remove border from last item */
.login-menu a:last-child {
  border-bottom: none;
}

/* ===== CENTERED HEADER BOTTOM BUTTONS ===== */
.header-center-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;

  flex-basis: 100%;
}
/* ===== FORCE TRUE CENTER AT HEADER BOTTOM ===== */
.top-header {
  position: relative;
  padding-bottom: 25px;
}

.header-center-buttons {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 16px;
}

/* ===== HERO SLIDER UPGRADE ===== */

.hero-slide {
  height: 100%;
  min-height: 450px; /* Fallback to guarantee visibility */
  background-color: #000;
}

/* Dark overlay like reference site */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

/* Text overlay */
.hero-caption {
  position: absolute;
  left: 60px;
  bottom: 120px;
  max-width: 650px;
  z-index: 2;
}

.hero-caption h2 {
  color: #ffffff;
  font-size: 31px;
  line-height: 1.35;
  font-family: "Georgia", "Cambria", serif;
  text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.8);
}

.right-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
}

/* TOP TITLE */
.college-wall-title {
  margin: 0 auto;
  padding: 8px 18px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  text-align: center;
}

/* BOTTOM CAPTION */
.photo-caption {
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 10px 12px;
  border-radius: 4px;
  max-width: 95%;
}

.principal-letter {
  position: relative;
  display: inline-block;
  padding-bottom: 9px;
  font-weight: bold;
}

.recent-events {
  padding: 30px 5%;
  background: #ddd3c5;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #3b2414;
  margin-bottom: 40px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* subtle underline */
.section-title::after {
  content: "";
  display: block;
  width: 220px;
  height: 6px;
  background: linear-gradient(
    to right,
    transparent,
    #5a2d0c,
    #b08d57,
    #5a2d0c,
    transparent
  );
  margin: 15px auto 0;
  border-radius: 10px;
  position: relative;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #4a2c10;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.recent-events .container-fluid {
  position: relative;
}

.gallery-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.events-gallery {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  width: 100%;
}

.events-gallery::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #5a3a1a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
  background: #3b2414;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-btn {
  left: -20px;
}

.gallery-nav-btn.next-btn {
  right: -20px;
}

@media (max-width: 768px) {
  .gallery-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .gallery-nav-btn.prev-btn {
    left: -10px;
  }
  .gallery-nav-btn.next-btn {
    right: -10px;
  }
}

.view-all-link {
  color: #7b5526;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 15px;
}

.view-all-link:hover {
  color: #5a2d0c;
  text-decoration: underline;
}

.event-card .stretched-link {
  z-index: 2;
}

.event-card,
.video-card {
  flex: 0 0 calc((100% - 75px) / 4); /* 4 cards visible (3 gaps of 25px) */
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
  .event-card,
  .video-card {
    flex: 0 0 calc((100% - 50px) / 3); /* 3 cards */
  }
}

@media (max-width: 991px) {
  .event-card,
  .video-card {
    flex: 0 0 calc((100% - 25px) / 2); /* 2 cards */
  }
}

@media (max-width: 576px) {
  .event-card,
  .video-card {
    flex: 0 0 100%; /* 1 card */
  }
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-images {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.event-images img.active {
  opacity: 1;
}

.event-caption {
  padding: 12px;
  text-align: center;
  font-size: 15px;
  color: #472d13;
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.section-bottom {
  border-left: 4px solid #472d13;
  border-right: 4px solid #472d13;
  padding: 20px;
}

.department-container {
  display: flex;
  gap: 20px;
  margin: 20px;
  font-family: "Times New Roman", serif;
}

/* LEFT MENU */
.department-menu {
  width: 260px;
  border: 1px solid #ddd;
  /* background: var(--page-bg); */
  background: #aa8573;
}

.department-menu h3 {
  text-align: center;
  padding: 15px;
  font-size: 22px;
  letter-spacing: 2px;
  border-bottom: 1px solid #ddd;
}

.department-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.department-menu ul li {
  border-bottom: 1px solid #ddd;
}

.department-menu ul li a {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease; /* Animate all properties smoothly */
  border-left: 0px solid transparent;
}

/* Hover Effect */
.department-menu ul li a:hover {
  background: rgba(47, 29, 15, 0.06); /* Soft dark-brown background highlight */
  color: var(--dark-brown);
  padding-left: 25px; /* Slide text slightly to the right */
  border-left: 4px solid var(--dark-brown); /* Add left indicator line */
}

/* Active Menu */
.department-menu ul li.active a {
  background: var(--dark-brown); /* Match theme */
  color: #fff;
  font-weight: bold;
  border-left: 4px solid #c89b6d; /* Distinctive border for active state */
}

/* RIGHT CONTENT */
.department-content {
  flex: 1;
  border: 1px solid #ddd;
  padding: 25px;
  background: var(--page-bg);
}
.info-section {
  background: #faf7f4;
  padding: 50px 20px;
}

.info-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-box {
  background: linear-gradient(to left, #efe5d1, #edd7bb, #edc9b3);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.info-box:hover {
  transform: translateY(-6px);
}

.info-box h3 {
  text-align: center;
  font-size: px;
  color: #6b3e1e;
  margin-bottom: 15px;
  position: relative;
}

.info-box h3::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #c89b6d;
  display: block;
  margin: 8px auto 0;
  border-radius: 2px;
}

.info-box p,
.info-box ul {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.info-box ul {
  padding-left: 18px;
}

.info-box ul li {
  margin-bottom: 6px;
}
.info-box ul {
  list-style-type: disc !important;
  padding-left: 22px !important;
  margin-left: 0 !important;
}
/* Reduce text size ONLY for Mission list items */
.mission ul li {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}
@keyframes softBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.info-box h3 {
  animation: softBlink 3.5s infinite;
}
.mission ul li {
  opacity: 0;
  animation: missionReveal 0.6s forwards;
}

.mission ul li:nth-child(1) {
  animation-delay: 0.3s;
}
.mission ul li:nth-child(2) {
  animation-delay: 0.9s;
}
.mission ul li:nth-child(3) {
  animation-delay: 1.5s;
}
.mission ul li:nth-child(4) {
  animation-delay: 2.1s;
}

@keyframes missionReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.info-box.notices ul li::before {
  content: "•";
  color: #6b3e1e;
  font-size: 8px;
  margin-right: 8px;
  animation: bulletBlink 1.8s infinite;
}

@keyframes bulletBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.info-box:hover {
  transform: translateY(-6px);
}

/* NEW GALLERY WRAPPER LAYOUT */
.gallery-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.gallery-subtitle {
  font-size: 24px;
  color: #5a2d0c;
  margin-bottom: 20px;
  border-bottom: 2px solid #d4a373;
  padding-bottom: 8px;
  display: inline-block;
}

/* VIDEO GALLERY STYLES */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  padding: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #472d13;
}

/* RESPONSIVE ADJUSTMENTS FOR GALLERY */
@media (max-width: 1200px) {
  .gallery-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .events-gallery {
    grid-template-columns: 1fr;
  }
}

.highlight-section {
  padding: 60px 30px;
  background: linear-gradient(to bottom, #e0cbb5, #d1b485);
}

.highlight-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  max-width: 1300px;
  margin: auto;
}

/* COMMON BOX */
.highlight-box {
  background: #333333;
  border-radius: 0;
  padding: 22px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

/* HEADINGS (NOTICE BOARD STYLE) */
.highlight-box h3 {
  text-align: left;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  position: relative;
  display: inline-block;
}

.highlight-box h3::after {
  content: "";
  width: 100%;
  height: 4px;
  background: #d32f2f; /* Red underline */
  display: block;
  margin-top: 5px;
}

.highlight-box h3::before {
  display: none;
}

/* ABOUT BOX (BIGGER CONTENT) */
.about-box h3 {
  font-size: 34px;
  font-weight: 800;
  color: #3b2414;
  text-align: center;
  margin-bottom: 30px;
  /* font-family: "Georgia", "Cambria", serif; */
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.about-box h3::after {
  content: "";
  display: block;
  width: 220px;
  height: 6px;
  background: linear-gradient(
    to right,
    transparent,
    #5a2d0c,
    #b08d57,
    #5a2d0c,
    transparent
  );
  margin: 15px auto 0;
  border-radius: 10px;
}

.about-box h3::before {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #4a2c10;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.about-box p {
  font-size: 18px;
  line-height: 1.7;
  color: #2b1d12;
  text-align: justify;
}

/* TAB BUTTONS (NOW SERVING AS HEADER AREA) */
.tab-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 4px solid #d32f2f; /* Red underline from h3 style */
  padding-bottom: 5px;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 5px 10px;
  transition: all 0.3s ease;
  border-radius: 0;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

.tab-btn.active {
  color: #ffffff;
  background: none;
  box-shadow: none;
}

.tab-btn:hover:not(.active) {
  color: #fff;
  background: none;
}

/* TAB PANES */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
  height: 400px; /* Fixed height for manual scroll */
}

/* SCROLL BOX */
.scroll-box {
  display: flex;
  flex-direction: column;
}

/* AREA BELOW TITLE (NOW MANUAL SCROLL) */
.scroll-window {
  position: relative;
  flex: 1;
  overflow-y: auto; /* Manual scroll enabled */
  margin-top: 10px;
  padding-right: 10px;
}

/* Custom Scrollbar for better look */
.scroll-window::-webkit-scrollbar {
  width: 8px;
}

.scroll-window::-webkit-scrollbar-track {
  background: #222;
}

.scroll-window::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.scroll-window::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* SCROLLING TEXT (ANIMATION REMOVED) */
.scroll-content {
  position: relative;
  width: 100%;
}

.scroll-content p {
  font-size: 15px;
  margin: 12px 0;
  color: #472d13;
  font-weight: 600;
}

/* NOTICE ITEM STYLES (From notice.jpeg) */
.notice-item {
  display: flex;
  gap: 15px;
  background: #e8e2db;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 0;
  border-left: none;
  align-items: flex-start;
}

.notice-date {
  background: #2a3d4a;
  color: #fff;
  min-width: 65px;
  text-align: center;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notice-date .day {
  font-size: 22px;
  font-weight: bold;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.notice-date .month-year {
  font-size: 12px;
  padding: 4px 0;
  background: #7a95a8;
  text-transform: uppercase;
  font-weight: bold;
}

.notice-content {
  flex: 1;
}

.notice-content p {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
  color: #222;
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
}

.read-more-link {
  display: inline-block;
  color: #1a73e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  margin-top: 8px;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* BOTTOM READ MORE BUTTON (notice.jpeg style) */
.box-footer-btn {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.btn-beige {
  background: #d1b4a1;
  color: #222;
  border: 1px solid #9c8474;
  padding: 10px 25px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-beige:hover {
  background: transparent;
  color: #d1b4a1;
  border-color: #d1b4a1;
}

/* Pause on hover (nice UX) */
.scroll-window:hover .scroll-content {
  animation-play-state: paused;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .highlight-container {
    grid-template-columns: 1fr;
  }
}

/* ===== IMPROVE MISSION & VISION TYPOGRAPHY ===== */

.info-box {
  font-family: "Georgia", "Cambria", serif;
}

/* Headings */
.info-box h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #5a2d0c;
}

/* -------- MISSION -------- */
.info-box ul {
  margin-top: 22px;
  padding-left: 26px;
}

.info-box ul li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  color: #2f1d0f;
  margin-bottom: 18px;
  list-style-type: disc;
}

/* -------- VISION -------- */
.info-box p {
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  color: #2f1d0f;
  text-align: justify;
}

/* First line emphasis (nice academic touch) */
.info-box p:first-letter {
  font-size: 34px;
  font-weight: 700;
  color: #39240a;
  float: left;
  line-height: 1;
  padding-right: 8px;
}

/* ===== PRINCIPAL CARD EXACT STYLE ===== */

.principal-desk-card {
  width: 380px;
  margin: 40px auto;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

/* HEADER BAR */
.principal-card-header {
  background: #53390b; /* teal */
  color: #ffffff;
  font-weight: bold;
  font-size: 22px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 1px;
}

/* ICON */
.principal-card-header i {
  font-size: 20px;
}

/* BODY BACKGROUND SPLIT */
.principal-card-body {
  position: relative;
  background: linear-gradient(to bottom, #f2f2f2 50%, #533c0b 50%);
  padding: 50px 0;
  display: flex;
  justify-content: center;
}

/* IMAGE WRAPPER */
.principal-image-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 8px solid #351c05;
  overflow: hidden;
  background: #ffffff;
}

/* IMAGE */
.principal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= LEADERSHIP SECTION ================= */

.leadership-title::after {
  content: "";
  width: 90px;
  height: 4px;
  background: #5e5912;
  display: block;
  margin: 10px auto 0;
  border-radius: 4px;
}

/* Container */
.leadership-container {
  display: flex;
  gap: 40px;
  width: 80%;
}
.leader-card:hover {
  transform: translateY(-6px);
}

/* Image */
.leader-image {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #000506;
  box-shadow: 0 6px 15px rgba(92, 77, 77, 0.1);
}

.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Name */
.leader-card h3 {
  margin: 1px 5px;
  font-size: 18px;
  color: #3b2414;
}

/* Designation */
.designation {
  font-size: 14px;
  color: #3c230b;
  margin-bottom: 5px;
  font-weight: 500;
}

.leader-text {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.6s ease;
  text-align: justify;
  line-height: 1.7;
  font-size: 12px;
}

/* Expanded state */
.leader-text.expanded {
  max-height: 2000px;
}

/* Responsive */
@media (max-width: 992px) {
  .leadership-container {
    flex-direction: column;
    align-items: center;
  }
}

.read-btn {
  margin-top: 15px;
  padding: 8px 8px;
  background: #432510;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.read-btn:hover {
  background: #4a2c10;
}

/* MAIN 50-50 LAYOUT */
.highlight-wrapper {
  display: flex;
  gap: 30px;
}

/* LEFT ABOUT (50%) */
.about-content {
  width: 60%;
}

.about-content h3 {
  text-align: center;
  font-size: 28px;
  background: linear-gradient(135deg, #bdad91, #d0c3b5, #c4b29d, #e0cab1);
  position: relative;
}

.about-content h3::after {
  content: "";
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #bdad91, #ac9a85, #c4b29d, #c5aa8b);
  display: block;
  margin: 8px auto;
}

.about-content p {
  text-align: justify;
  line-height: 1.8;
  margin-top: 15px;
}

/* RIGHT BOXES (50%) */
.right-boxes {
  width: 40%;
  display: flex;
  gap: 15px;
}

.highlight-box h3 {
  color: #6b3f1d;
  font-size: 20px;
  margin-bottom: 10px;
}
.leadership-section {
  /* background: linear-gradient(to bottom, #bcb6ac, #c9b8aec3, #d3bda1); */
  background-color: #ffffff;
  padding: 50px 80px;
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #3b2414;
  margin-bottom: 40px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* MAIN WRAPPER */
.leadership-wrapper {
  display: flex;
  gap: 30px;
}

/* LEFT 25% */
.mission-vision {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mv-box {
  /* background: #fff; */
  background: linear-gradient(135deg, #ddc292, #d4c8b9);
  border: 1px solid #c8bca1;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.mv-header {
  background: #5a3a1a; /* Dark Brown/Chocolate */
  color: #fff;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mv-header i {
  font-size: 20px;
}

.mv-header h3 {
  margin: 0 !important;
  font-size: 20px !important;
  color: #fff !important;
  text-transform: uppercase;
  text-align: left !important;
}

.mv-content {
  padding: 20px;
  flex-grow: 1;
}

.mv-footer {
  padding: 0 20px 15px;
  text-align: right;
}

.mv-footer .read-btn {
  background: #5a3a1a !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mv-footer .read-btn:hover {
  background: #3b2414 !important;
  text-decoration: none !important;
}

/* RIGHT 75% */
.leaders {
  width: 75%;
  display: flex;
  gap: 25px;
}

.principal-horizontal-card {
  background: linear-gradient(135deg, #ddc292, #d4c8b9);
  padding: 0; /* Removing padding to allow header to be full width like MV boxes */
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.principal-card-header {
  background: #5a3a1a;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.principal-card-header i {
  font-size: 20px;
}

.principal-card-header h3 {
  margin: 0 !important;
  font-size: 20px !important;
  color: #fff !important;
  text-transform: uppercase;
  text-align: left !important;
}

.principal-card-content {
  padding: 30px;
}

.principal-photo-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.principal-photo-col img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border: 8px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.principal-horizontal-card .leader-text {
  font-size: 18px;
  line-height: 1.8;
  max-height: 350px;
  overflow: hidden;
  margin-bottom: 20px;
  text-align: justify;
}

.principal-horizontal-card .leader-text.expanded {
  max-height: 3000px;
}

.principal-horizontal-card .read-btn {
  background: #5a3a1a !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 4px !important;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: fit-content;
}

.principal-horizontal-card .read-btn:hover {
  background: #3b2414 !important;
}

@media (max-width: 991px) {
  .principal-photo-col {
    margin-top: 30px;
  }
}

@media (max-width: 991px) {
  .principal-horizontal-card {
    flex-direction: column;
    padding: 25px;
  }
}

.read-btn {
  background: #4b2e14;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Mission & Vision Collapse ===== */

.mv-text {
  max-height: 130px; /* adjust height if needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mv-text.expanded {
  max-height: 1000px; /* large enough to show full content */
}

.read-btn {
  margin-top: 12px;
  padding: 6px 16px;
  background: #5a3a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.read-btn:hover {
  background: #3b2414;
}

.mv-text p {
  text-align: justify;
  font-size: 18px;
}

/* Responsive overrides to ensure existing CSS behaves correctly on smaller screens */
@media (max-width: 991.98px) {
  .top-header {
    padding-bottom: 20px !important;
  }

  .header-center-buttons {
    position: static !important;
    transform: none !important;
    margin-top: 15px !important;
    flex-wrap: wrap;
  }

  .campus-360-row {
    margin-right: 0 !important;
    margin-top: 15px !important;
  }

  .title-section h1 {
    white-space: normal !important;
    font-size: 28px !important;
    line-height: 1.2;
  }

  .nav-bar {
    flex-direction: column !important;
  }

  .nav-bar > li {
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 100%;
    text-align: center;
  }

  .submenu {
    position: static !important;
    display: none;
    width: 100% !important;
    box-shadow: none !important;
  }

  .has-submenu:hover > .submenu {
    display: block !important;
  }

  .photo-showcase {
    height: auto !important;
    flex-direction: column !important;
  }

  .photo-left {
    height: 350px !important;
    width: 100% !important;
    flex: none !important;
  }

  .photo-right {
    height: 250px !important;
    width: 100% !important;
    flex: none !important;
  }

  .leadership-section {
    padding: 30px 15px !important;
  }

  .department-menu {
    width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .events-gallery {
    grid-template-columns: 1fr !important;
  }

  .latest-arrow {
    padding: 9px 15px 9px 10px !important;
    font-size: 14px !important;
  }

  .latest-arrow::after {
    right: -20px !important;
    border-top-width: 16px !important;
    border-bottom-width: 16px !important;
    border-left-width: 20px !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .events-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ================= Inner Page Styles ================= */
.inner-page {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding-top: 15px;
  padding-bottom: 15px;
}

.inner-page-container {
  max-width: 1100px;
  min-height: 300px;
  height: auto;
  margin: 70px auto;
  padding: 45px;
  background: linear-gradient(
    135deg,
    #fff3b0,
    #8b5a2b,
    #ffffff
  ); /* Restored original gradient */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  color: #2f1d0f; /* Dark text for light background */
}

/* ===== HEADING ===== */
.inner-page-heading {
  text-align: center;
  font-size: 38px;
  margin-bottom: 35px;
  position: relative;
  color: #5a3a1a;
  animation: blink 3s infinite;
}

/* slow blinking */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

/* animated underline */
.inner-page-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: #ffd700;
  animation: underlineMove 3s ease forwards;
}

@keyframes underlineMove {
  to {
    width: 220px;
  }
}

/* ===== PARAGRAPH ===== */
.inner-page-text {
  font-size: 17px;
  line-height: 1.9;
  text-align: justify;
  animation: fadeUp 2s ease forwards;
}

/* text animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .inner-page-container {
    margin: 35px 15px;
    padding: 25px;
  }

  .inner-page-heading {
    font-size: 28px;
  }

  .inner-page-text {
    font-size: 15px;
  }
}

/* ================= IQAC Dual-Section Layout ================= */
.iqac-layout-wrapper {
  display: flex;
  gap: 25px;
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 20px;
  align-items: flex-start;
}

.iqac-sidebar-section {
  width: 320px;
  background: #1e140a; /* Deeper dark brown for better contrast */
  padding: 30px 20px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 2px solid #ffd700;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
}

.iqac-content-section {
  flex-grow: 1;
  background: #fbedac;
  padding: 45px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  min-height: 600px;
  color: #2f1d0f;
}

.iqac-content-section .inner-page-heading::after {
  background: #5a3a1a;
}

/* Sidebar Styles Adjustment */
.iqac-sidebar {
  width: 100%;
  background: transparent;
  padding: 0;
  border: none;
}

.sidebar-title {
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 4px;
}

.sidebar-menu li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-menu a {
  display: block;
  padding: 8px 12px;
  color: #f5e88b;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.4s ease;
  font-size: 15px;
  border: 1px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: linear-gradient(135deg, #ffd700, #c5a02e);
  color: #1e140a;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  border: 1px solid #ffd700;
}

.sidebar-submenu-title {
  display: block;
  padding: 8px 12px;
  color: #ffd700;
  font-weight: bold;
  font-size: 16px;
  border-bottom: none;
  cursor: pointer;
}

.sidebar-submenu-title i {
  float: right;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

.sidebar-submenu-title[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  padding-left: 15px;
  margin-top: 5px;
}

.sidebar-submenu a {
  font-size: 14px;
}

.sidebar-submenu-title.active-submenu {
  color: #fff;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 5px;
}

@media (max-width: 991.98px) {
  .iqac-layout-wrapper {
    flex-direction: column;
    margin: 30px 15px;
  }
  .iqac-sidebar-section,
  .iqac-content-section {
    width: 100%;
    padding: 25px;
  }
}
