@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Noto+Serif+Tamil&family=Noto+Serif+Devanagari&family=Merriweather&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');


@font-face {
  font-family: 'Mokgech';
  src: url('fonts/OldeEnglish.ttf') format('truetype');
  font-display: swap; /* Prevents invisible text */
}

:root {
  --color-violet: #4e2d21;
  --color-blue: #3498db;
  --color-kaavi: #640D5F;
  --color-red: #c0392b;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-glass-bg: rgba(255, 255, 255, 0.1);
  --color-glass-border: rgba(255, 255, 255, 0.3);
  --gradient-main: linear-gradient(90deg, #5f2c82, #49a09d);
  --gradient-secondary: linear-gradient(120deg, #6a11cb, #2575fc);
  --gradient-tertiary: linear-gradient(135deg, #3498db, #d35400);
  --gradient-accent: linear-gradient(135deg, #d35400, #c0392b);
  --font-sans: 'Lato', sans-serif;
  --font-serif: 'Merriweather', serif;
}


/* Mobile first approach */
@media (min-width: 640px) { /* Small tablets */ }
@media (min-width: 768px) { /* Tablets */ }
@media (min-width: 1024px) { /* Desktop */ }
@media (min-width: 1280px) { /* Large screens */ }
.header__middlesec {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header__branding {
  flex: 1 1 60%;
  min-width: 300px;
}

.header__badges {
  flex: 1 1 35%;
  min-width: 250px;
  text-align: right;
}


/* Fallback for flexbox */
.section.three-column,
.section.two-column,
.footer-grid,
.logo-branding-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* Fallback for flex-direction, justify-content, align-items */
.section.three-column,
.section.two-column,
.footer-grid,
.logo-branding-wrap {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

/* Vendor prefixes for border-radius and box-shadow */
.section,
.section.three-column>div,
.section.two-column>div,
.news-container,
.organogram-link-container a,
#imageSlider,
#imageSlider .slider-image,
.sub-menu {
  -webkit-border-radius: 12px;
  border-radius: 12px;
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

/* Vendor prefixes for background gradients */
.hero,
footer,
.mobile-toggle {
  background: #452C63;
  background: -webkit-linear-gradient(9deg, #452C63 0%, #3B71B3 100%);
  background: -moz-linear-gradient(9deg, #452C63 0%, #3B71B3 100%);
  background: -o-linear-gradient(9deg, #452C63 0%, #3B71B3 100%);
  background: linear-gradient(9deg, #452C63 0%, #3B71B3 100%);
}

/* Vendor prefixes for transition */
.cta-button,
.logo,
.organogram-link,
.modern-list li,
.nav-link,
.submenu-link {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia;
}

html,
body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-black);
  line-height: 1.2;
  display: flex;
  background-color: #ffffff;
  flex-direction: column;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

.glass {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.3);
  border-radius: 12px;
}




.header__topmenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* Allows wrapping on very small screens */
  gap: 1rem;
}

.header__topmenu .top-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  /* justify-content moved to parent */
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .header__topmenu {
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }
}

.header__topmenu .top-links a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

.header__topmenu .top-links a:hover {
  text-decoration: underline;
}

.header__middlesec {
  align-items: center;
  text-align: center;
  padding: 0.2rem 1rem;
  margin: 0;
  background: var(--color-white);
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo-branding-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.multilingual-branding-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .multilingual-branding-flex {
    justify-content: center;
    gap: 0.5rem;
  }

  .college-name.en {
    font-size: 22px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  .college-name.ta {
    font-size: 18px !important;
  }
}

.logo {
  height: auto;
  transition: transform .3s;
}

.description {
  margin: 0;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.description .ta-text {
  font-family: 'Noto Serif Tamil', serif;
}




.college-name {
  margin: 0;
  padding: 0.4rem 0;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 0.6;
  text-align: center;
  overflow: hidden;
}

.college-name.ta {
  font-family: 'Noto Serif Tamil', serif;
}

.college-name.hi {
  font-family: 'Noto Serif Devanagari', serif;
}

main {
  flex: 1 0 auto;
  padding: 2rem 0;
}

.hero {
  background: linear-gradient(9deg, rgba(69, 44, 99, 1) 0%, rgba(59, 113, 179, 1) 100%);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 16px;
  margin: 0 1rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
}

.banhero {
  background: linear-gradient(270deg, #452c63, #3b71b3, #6a4fbf, #2b5876);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
  color: var(--color-white);
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 16px;
  margin: 0 1rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  height: auto;        /* removes fixed height — was cutting off on mobile */
}

.banhero h1 {
  font-size: clamp(1.2rem, 5vw, 2.25rem);  /* shrinks smoothly on small screens */
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  word-break: break-word;
}


main h2,
main h3 {
  color: var(--color-kaavi);
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: var(--gradient-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform .3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

footer {
  background: linear-gradient(9deg, rgba(69, 44, 99, 1) 34%, rgba(173, 45, 156, 1) 100%);
  color: var(--color-white);
  padding: 2rem 0;
  flex-shrink: 0;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, .3), -3px -3px 6px rgba(255, 255, 255, .1);
  transition: all .3s;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-grid div {
  padding: 0 1.5rem;
}

footer a {
  color: var(--color-white);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
  line-height: 1.6;
}

.copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: .85rem;
}

.section {
  padding: 1rem 0.5rem;
  background: #fff;
  margin: 1rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}

.section.three-column {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  padding: 1rem;
  align-items: stretch;
}

.section.three-column>div:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  border-color: #3498db;
  /* Change border color on hover (var(--color-blue)) */
}

.section.three-column>div {
  flex: 1 1 calc(33.333% - 1.5rem);
  background: #fff;
  padding: 1.0rem;
  border: 2px solid #640D5F;
  /* Added border color (var(--color-kaavi)) */

  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  font-family: georgia;
  display: flex;
  flex-direction: column;
  height: 450px;
  max-width: 33%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section.three-column>div:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.section.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: .9rem;
  border-radius: 12px;
}

.section.two-column>div {
  flex: 1 1 calc(50% - 1rem);
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  min-height: 500px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  font-size: 1.5rem;
  padding: .5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: opacity .3s;
}

.scroll-top:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
}

.modern-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  min-height: 160px;
  height: 400px;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}


.modern-list li {
  position: relative;
  background: #f8f9fa;
  padding: .75rem .75rem .75rem 3rem;
  margin: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.modern-list li:hover {
  transform: translateX(10px);
  background: #d9f0e5;
}

.modern-list.expanded {
  max-height: 650px;
}

.modern-list li::before {
  content: "✔";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2d8f5c;
  font-size: 1.2rem;
  font-weight: bold;
}

.organogram-link-container {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 1rem;
}

.organogram-link {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #007bff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.organogram-link:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.news-container {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.news-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #722F37;
  margin-bottom: 1rem;
  text-align: center;
}

.news-list-wrapper {
  flex: 1;
  overflow: hidden;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  animation: scroll-news 12s linear infinite;
}

.news-list:hover {
  animation-play-state: paused;
}

.news-list li {
  position: relative;
  background: #f8f9fa;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  margin: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
}

.news-list li:hover {
  transform: translateX(10px);
  background: #e6f3ff;
}

.news-list li::before {
  content: "🔔";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-kaavi);
  font-size: 1.2rem;
}

.news-list li a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-list li a:hover {
  color: var(--color-kaavi);
  text-decoration: underline;
}


.header-row img {
  height: 100px;
  max-width: 100px;
  border-radius: 8px;
  border: 3px solid var(--color-kaavi);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto;
}

.header-row img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.header-row h3:hover {
  color: var(--color-blue);
}

.section.three-column>div>p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 90%;
}

.header-row,
.vision-section,
.mission-section {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border-top: 1px solid rgba(100, 105, 255, 0.2);
}

.header-row h3,
.vision-section h3,
.mission-section h3 {
  font-family: 'Lora', serif;

  font-weight: 700;
  color: var(--color-kaavi);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-align: left;
}

.vision-section p,
.mission-section p {
  font-family: Georgia;
  text-align: justify;

  color: #333;
  line-height: 1.3;

}

.vision-section u {
  text-decoration: none;
}

.modern-list-container {
  flex: 1;
  text-align: center;
}

.modern-list-container h2 {
  font-family: 'Lora', serif;

  font-weight: 700;
  color: var(--color-kaavi);
  margin-bottom: 0.5rem;
}

.expand-button {
  display: block;
  margin: 1rem auto;
  padding: 0.75rem 2rem;
  background: var(--color-kaavi);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Lora', serif;

  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.expand-button:hover {
  background: var(--color-blue);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#announcementBar {
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal;
}

#announcementBar * {
  margin: 0;
  padding: 0;
}

/* Menu Styles */
.navbar {
  background-color: var(--color-kaavi);
  background: linear-gradient(90deg, var(--color-kaavi), var(--color-blue));
  padding: 0.7rem 0;
  /* Remove horizontal padding to allow full width */
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: Georgia, serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  /* Prevent wrapping on desktop */
  justify-content: center;
}

.menu-item {
  position: relative;
}

.nav-link {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.arrow.down::after {
  content: '▼';
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.8rem;
}

.arrow.left::after {
  content: '▶';
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.8rem;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(100, 105, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 250px;
  z-index: 1003;
}

.dropdown:hover .sub-menu {
  display: block;
}

.submenu-link {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
}

.submenu-link:hover {
  background: #e6f3ff;
  color: var(--color-kaavi);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle.active {
  background: #c0392b;
}

/* Slider images fill container */
#imageSlider {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
}

#imageSlider .slider-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  display: none;
  border-radius: 12px;
}

#imageSlider .slider-image.active {
  display: block;
}

#Activity h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#Activity p {
  text-align: justify;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes scroll-news {
  0% {
    transform: translateY(0);
  }

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

/* Desktop Alignment Fixes */
@media (min-width: 1025px) {
  .header__middlesec {
    justify-content: space-between;
    padding: 0.2rem 2rem;
  }

  .logo-branding-wrap {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .description {
    flex: 0 0 auto;
    align-items: flex-end;
  }

  .navbar {
    padding: 0.7rem 1rem;
  }

  .container {
    justify-content: center;
    padding: 0 1.5rem;
  }

  .sub-menu .dropdown {
    position: relative;
  }

  .sub-menu .dropdown>.sub-menu {
    top: 0;
    left: 100%;
    margin-left: 1px;
    min-width: 250px;
    position: absolute;
    display: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1003;
  }

  .sub-menu .dropdown:hover>.sub-menu {
    display: block;
  }
}

/* Responsive Adjustments - Tablet/Mobile (max 1024px now covers everything up to desktop) */
@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
    color: #fff;
    font-size: 1.8rem;
    background: linear-gradient(90deg, var(--color-kaavi), var(--color-blue));
    border: none;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1006;
    /* Increased z-index */
    border-radius: 6px;
  }

  /* Hide mobile toggle on desktop */
  @media (max-width: 1024px) {
    .college-name.en {
      font-size: 24px !important;
      white-space: normal;
      /* Allows wrapping on small mobile screens if necessary */
    }
  }

  .navbar {
    position: relative;
    width: 100%;
    z-index: 1001;
    padding: 0.5rem 0;
    background: linear-gradient(90deg, var(--color-kaavi), var(--color-blue));
  }

  .container {
    padding: 0;
    margin: 0;
    max-width: 100%;
    display: block;
    position: relative;
    min-height: 60px;
    padding-right: 60px;
    /* Added padding to prevent close button overlap */
    /* Added min-height to prevent collapse */
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	opacity: 0.9;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 1005;
    /* Increased z-index */
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .nav-link,
  .submenu-link {
    color: #222 !important;
    /* Force visible color */
    background: none;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    display: block;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 500;
  }

  .nav-link:hover,
  .submenu-link:hover {
    background: #f8f9fa;
    color: var(--color-kaavi);
  }

  .nav-link:active,
  .submenu-link:active {
    background: #e9ecef;
  }

  .sub-menu {
    display: none;
    position: static;
    background: #f8f9fa;
    box-shadow: none;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    z-index: 1001;
    max-height: none;
    /* Let mobile scroll normally */
    overflow-y: visible;
  }

  .dropdown.active>.sub-menu {
    display: block !important;
  }

  .sub-menu .dropdown>.submenu-link {
    padding-left: 2rem;
    background: #f1f3f5;
    font-size: 0.9rem;
  }

  .sub-menu .sub-menu .submenu-link {
    padding-left: 3rem;
    background: #e9ecef;
    font-size: 0.85rem;
  }

  .dropdown:hover>.sub-menu {
    display: none !important;
  }

  .arrow.left::after {
    content: '▼';
    float: right;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

/* New style for submenu mobile view */
  .dropdown.active .arrow.left::after {
    transform: rotate(180deg);
  }
/* ---------*/

.dropdown.active > .sub-menu {
  display: block !important;
}

  .logo-branding-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .logo {
    height: 80px;
    margin-bottom: 1rem;
  }

  .description {
    margin-right: 0;
    text-align: center;
    padding: 1rem;
  }




  .top-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .arrow.left::after {
    content: '▼';
    transform: rotate(0deg);
  }

  .section.three-column>div {
    padding: 0.75rem;
    max-width: 100%;
    margin: 0 1rem;
    min-height: auto;
  }

  .header-row {
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .header-row img {
    height: 60px;
    max-width: 60px;
  }

  .header-row h3 {
    font-size: 1.2rem;
  }

  .section.three-column>div>p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .vision-section,
  .mission-section {
    padding: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .vision-section h3,
  .mission-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .vision-section p,
  .mission-section p {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .modern-list-container {
    margin: 1.5rem 1rem;
  }

  .modern-list {
    max-height: 120px;
  }

  .modern-list li {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
    margin: 0.4rem 0.8rem;
  }

  .modern-list li::before {
    font-size: 1rem;
  }

  .expand-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .news-container {
    margin: 1.5rem 1rem;
    padding: 0.75rem;
  }

  .news-container h2 {
    font-size: 1.3rem;
  }

  .news-list-wrapper {
    max-height: 120px;
    padding-top: 2.5rem;
  }

  .news-list li {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin: 0.4rem 0.8rem;
  }

  .news-list li::before {
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {

  .logo-branding-wrap,
  .rotated-logo-wrap,
  .description {
    position: relative;
  }



  /****/



  .logo-branding-wrap {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    margin-left: 0.5rem;
  }



  .description .ta-text {
    font-family: 'Noto Serif Tamil', serif;
  }

  .college-name.ta {
    font-family: 'Noto Serif Tamil', serif;
  }

  .college-name.hi {
    font-family: 'Noto Serif Devanagari', serif;
  }

  /**/
  /* Staff Details Table Styles */
  #staff-details-table {
    width: 100%;
    max-width: 600px;
    /* Constrain width for readability */
    margin: 1.5rem auto;
    /* Center table with reduced margin */
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #333;
  }

  /* Table Header */
  /* #staff-details-table th {
  background: #640D5F;       /* var(--color-kaavi) */
  /*color: #ffffff;
  padding: 0.6rem;
  font-family: 'Lora', serif;
  font-weight: 700;
  text-transform: uppercase;
} */

  /* Column Widths */
  #staff-details-table th:first-child,
  #staff-details-table td:first-child {
    width: 60%;
    /* Wider for Department */
  }

  #staff-details-table th:last-child,
  #staff-details-table td:last-child {
    width: 40%;
    /* Narrower for Staff Count */
    text-align: center;
    /* Center count */
  }

  /* Table Body */
  #staff-details-table tbody tr {
    border-bottom: 1px solid rgba(100, 105, 255, 0.2);
    transition: background 0.3s ease;
  }

  #staff-details-table tbody tr:hover {
    background: #e6f3ff;
    /* Light blue hover effect (matches theme) */
  }

  /* Table Cells */
  #staff-details-table td {
    padding: 0.6rem;
    vertical-align: middle;
  }

  /* Table Footer */
  #staff-details-table tfoot td {
    padding: 0.6rem;
    font-weight: 600;
    background: #f8f9fa;
    text-align: right;
  }

  #staff-details-table tfoot td:first-child {
    text-align: left;
    /* Align Total label to left */
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    #staff-details-table {
      font-size: 0.85rem;
      margin: 1rem auto;
    }

    #staff-details-table thead th,
    #staff-details-table td {
      padding: 0.4rem;
    }

    #staff-details-table th:first-child,
    #staff-details-table td:first-child {
      width: 55%;
      /* Adjusted for mobile */
    }

    #staff-details-table th:last-child,
    #staff-details-table td:last-child {
      width: 45%;
    }
  }

  /**/


  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  /**/
  #newsTicker {
    display: inline-block;
    animation: tickerScroll 40s linear infinite;
  }

  #newsTicker:hover {
    animation-play-state: paused;
    /* pause when hovered */
  }

  #newsTicker a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  #newsTicker a:hover {
    text-decoration: underline;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}


.description {
  align-items: center;
  /* Fix alignment */
  text-align: center;
  padding: 10px;
  /* Add breathing room */
  width: 100%;
}

.description b {
  font-size: 14px !important;
  /* Scale down text */
  line-height: 1.4;
  display: block;
  /* Ensure they stack properly */
  margin-bottom: 5px;
}