/* ===============================
   🎨 CSS VARIABLES
=================================*/
:root {
  --nav-bg: #03045e;
  --accent: #90e0ef;
  --primary-blue: #004aad;
  --dark-blue: #00296b;
  --orange: #f77f00;
  --mobile-break: 768px;
}

/* ===============================
   🔹 GLOBAL RESET & BASE STYLES
=================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 80px; /* Space for fixed header */
}

/* Main content pushes footer down */
.gallery, .content, main, section {
  flex: 1 0 auto;
}

/* ===============================
   🔹 FIXED HEADER/NAVIGATION
=================================*/
.site-header {
  position: fixed;
  text-align: center;
  top: 0;
  left: 0;
  width: 100%;
  background: #0B1F63;
  color: white;
  padding: 15px 20px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Logo */
.site-header .logo a {
  text-decoration: none;
  color: white;
  font-size: 35px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Lucida Calligraphy", cursive;
}

.logo-img {
  height: 45px;
  width: auto;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  
  gap: 12px;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 22px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
  outline: none;
}

/* Active link styling (desktop) */
@media (min-width: 769px) {
  .nav-links a.active {
    border: 2px solid white;
    border-radius: 6px;
    padding: 8px 16px;
    background: #023e8a;
  }
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown .arrow {
  margin-left: 6px;
  font-size: 16px;
  opacity: 0.85;
  transition: transform 0.2s ease;
  display: inline-block;
}

.dropdown.open .arrow {
  transform: rotate(180deg);
}



.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #023e8a;
  color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.15);
  overflow: hidden;
  z-index: 400;
}
.dropdown-content li { list-style: none; }
.dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}
.dropdown-content a:hover { background:#fca311; color: grey; }

/* Show on hover for desktop */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content { display: block; }
}

/* Desktop dropdown hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
}

.hamburger button {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: #fff;
  transition: transform 0.28s ease, opacity 0.18s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-6px);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ===============================
   📱 MOBILE NAVIGATION
=================================*/
@media (max-width: 768px) {
  .site-header {
    padding: 10px 16px;
  }

  .logo a {
    font-size: 20px;
  }

  .logo-img {
    height: 35px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--nav-bg);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-links > li > a {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
  }

  .nav-links a.active {
    border: none !important;
    color: #2ecc71;
    padding: 14px 20px;
    background: transparent;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
  }

  .dropdown-content.show {
    display: flex;
    flex-direction: column;
  }

  .dropdown-content a {
    background-color: var(--nav-bg);
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 18px;
  }

  .logo-img {
    height: 30px;
    margin-right: 6px;
  }
}

/* ===============================
   🎓 HERO SECTION
=================================*/
.hero {
  width: 100%;
  background: linear-gradient(135deg, #f5f7ff, #e9f5ff);
  padding: 110px 20px 70px;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.3;
  color: var(--dark-blue);
  margin-bottom: 18px;
  text-align: left;
  max-width: 520px;
}

.hero h1 span {
  color: var(--orange);
}

.hero p,
.hero-subtext {
  font-size: 1.05rem;
  color: #444;
  max-width: 520px;
  text-align: left;
  line-height: 1.6;
}

.hero-img {
  max-width: 460px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .hero {
    padding: 90px 16px 50px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero h1,
  .hero p,
  .hero-subtext {
    text-align: center;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-img {
    max-width: 380px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* ===============================
   🎠 SLIDESHOW SECTION
=================================*/
.slideshow {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 50px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.slides img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  animation: slowZoom 5s ease-in-out forwards;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.slideshow:hover .slides img {
  transform: scale(1.05);
}

/* Slideshow Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  padding: 14px 20px;
  font-size: 50px;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
  user-select: none;
  z-index: 20;
}

.prev:hover, .next:hover {
  transform: translateY(-50%) scale(1.12);
}

.prev { left: 30px; }
.next { right: 30px; }

/* Slideshow Dots */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  display: inline-block;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.dot:hover {
  background-color: #007bff;
  transform: scale(1.3);
}

.dot.active {
  background-color: var(--primary-blue);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .slides img {
    height: 260px;
  }

  .slide-text {
    display: none;
  }

  .prev, .next {
    display: none;
  }

  .dot {
    height: 14px;
    width: 14px;
  }
}

/* ===============================
   📘 ABOUT SECTION
=================================*/
.about-preview {
  padding: 60px 20px;
  background: #f8fbff;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-img {
  width: 100%;
  max-width: 450px;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
  .about-img:hover {
    transform: scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  }
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  margin-bottom: 20px;
}

.about-text .btn,
.about-text .btn-secondary {
  display: inline-block;
  padding: 12px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-blue), #007bff);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.about-text .btn:hover {
  background: #3a86ff;
  transform: translateY(-3px);
}

.about-text .btn-secondary {
  background: #0a9396;
}

.about-text .btn-secondary:hover {
  background: #005f73;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-img {
    max-width: 90%;
  }

  .about-text p {
    text-align: justify;
  }
}

/* ===============================
   🏫 FACILITIES SECTION
=================================*/
.facilities {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto 60px;
}

.facilities h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #003566;
  font-weight: 700;
}

.facility {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 35px;
  padding: 18px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.facility:nth-child(even) {
  flex-direction: row-reverse;
}

.facility img {
  width: 260px;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.facility-content {
  flex: 1;
}

.facility-content h3 {
  font-size: 1.4rem;
  color: #003566;
  margin-bottom: 8px;
}

.facility-content p {
  text-align: justify;
  color: #444;
  font-size: 0.98rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .facility,
  .facility:nth-child(even) {
    flex-direction: column;
    text-align: center;
    padding: 16px 14px;
  }

  .facility img {
    width: 100%;
    height: 190px;
  }

  .facility-content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .facilities h2 {
    font-size: 1.6rem;
  }

  .facility {
    margin-bottom: 28px;
  }

  .facility img {
    height: 170px;
  }

  .facility-content p {
    font-size: 0.93rem;
  }
}

/* ===============================
   🎓 COURSES PREVIEW
=================================*/
.courses-preview {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto;
  text-align: center;
}

.courses-preview h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #004080;
  font-weight: 700;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 10px;
}

.course-card {
  background: #ffffff;
  text-decoration: none;
  color: #222;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: 0.3s ease;
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card h3 {
  font-size: 1.2rem;
  margin: 12px;
  font-weight: 600;
}

.course-card p {
  margin: 0 12px 16px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-color: #0ea5a4;
}

.course-card:hover img {
  transform: scale(1.06);
}

.course-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: #0ea5a4;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s ease;
}

.course-card:hover::before {
  transform: scaleY(1);
}

@media (max-width: 1100px) {
  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   📚 COURSES SECTION (Detailed)
=================================*/
.courses-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.courses-section h2 {
  font-family: "Pacifico", cursive;
  font-size: 36px;
  color: blue;
  margin-bottom: 25px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.courses-section p {
  font-size: 18px;
  color: #333;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
}

.course {
  background-color: #fdfdfd;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.course:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.course h3 {
  font-family: "Pacifico", cursive;
  font-size: 28px;
  color: #004080;
  margin-bottom: 15px;
}

.course p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.course .btn {
 background: linear-gradient(135deg, var(--primary-blue), #007bff);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition:  0.2s ease, box-shadow 0.2s ease;
  
  display: inline-block;
}

.course .btn:hover {
   box-shadow: 0 8px 18px rgba(0, 123, 255, 0.35);

  
}

.courses-section hr {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 30px 0;
}

@media (max-width: 768px) {
  .courses-section {
    padding: 15px;
  }

  .course {
    padding: 20px 15px;
  }
}

/* ===============================
   📖 COURSE OVERVIEW
=================================*/
.course-overview {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 25px;
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  line-height: 1.7;
}

.course-overview h2 {
  font-size: 32px;
  color: #004080;
  margin-bottom: 15px;
  text-align: center;
}

.course-overview h3 {
  font-size: 24px;
  color: black;
  margin-top: 25px;
}

.course-overview h4 {
  font-size: 20px;
  color: #333;
  margin-top: 10px;
}

.course-overview p {
  text-align: justify;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .course-overview {
    padding: 25px;
  }

  .course-overview h2 {
    font-size: 1.6rem;
  }
}

/* ===============================
   🎓 SEMESTER LINKS
=================================*/
.semester-links {
  text-align: center;
  margin: 60px auto;
  max-width: 600px;
}

.semester-links h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 35px;
  font-weight: 600;
}

.sem-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sem-container button {
  width: 60%;
  max-width: 350px;
  background: linear-gradient(135deg, var(--primary-blue), #007bff);
  color: white;
  border: none;
  padding: 18px 25px;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 30px 0 30px 0;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.sem-container button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #007bff, #00a2ff);
  box-shadow: 0 10px 25px rgba(0, 120, 255, 0.4);
  border-radius: 0 30px 0 30px;
}

.semester-links > button {
  margin-top: 40px;
  background: #333;
  color: white;
  border: none;
  padding: 14px 35px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.semester-links > button:hover {
  background: #000;
}

@media (max-width: 768px) {
  .sem-container button {
    width: 70%;
  }
}

/* ===============================
   📝 SUBJECT PAGES
=================================*/
.aa,
.sem {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height:70px;
   background: #0B1F63;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  margin: 0;
}

.ee {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  color: #333;
  margin: 20px 0;
  line-height: 1.5;
}

.we {
  display: block;
  width: 50%;
  max-width: 300px;
  background: linear-gradient(135deg, var(--primary-blue), #007bff);
  color: white;
  text-decoration: none;
  padding: 20px 0;
  margin: 10px auto;
  border-radius: 0 30px 0 30px;
  font-size: 1.2rem;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.we:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #007bff, #00a2ff);
  box-shadow: 0 10px 25px rgba(0, 120, 255, 0.4);
  border-radius: 30px 0 30px 0;
}
.back {
  display: block;
  width: 110px;      /* auto adjust */
  padding: 10px 15px;
  font-size: 1.3rem;
  background: #000000;
  color: white;
  text-decoration: none;
  border-radius: 15px 0 15px 0;
  margin: 25px auto;       /* centers the button */
  text-align: center;
  transition: 0.3s ease;
}

.back:hover {
  background-color: #343a40;
  transform: scale(1.05);
  border-radius: 0 15px 0 15px;
}

@media (max-width: 480px) {
  .we {
    width: 70%;
    font-size: 1rem;
    padding: 16px 0;
  }
}

/* ===============================
   🖼 GALLERY SECTION
=================================*/
.campus-gallery {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px 40px;

  display: grid;
  grid-template-columns: 1fr;   /* ALWAYS SINGLE COLUMN */
  gap: 30px;
}

/* each card */
.campus-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

/* title */
.campus-card h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #003a8c;
  font-weight: 700;
}

/* image */
.campus-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;    /* clean look */
  border-radius: 12px;
  display: block;
}

/* Footer Styles */
.footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  background-color: #0B1F63;
  color: #fff;
  padding: 16px 18px;
  box-sizing: border-box;
  font-size: 20px;
  line-height: 1.3;

  /* Mobile safe area (for phones with notches) */
  padding-left: calc(env(safe-area-inset-left, 0px) + 18px);
  padding-right: calc(env(safe-area-inset-right, 0px) + 18px);
}

.footer p {
  margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .footer {
    font-size: 13px;
    padding: 12px 14px;
  }
}

/* Desktop large */
@media (min-width: 1200px) {
  .footer {
    font-size: 15px;
    padding: 20px 48px;
  }
}
.home {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 🖥 Desktop only — make section wider */
@media (min-width: 1024px) {
  .home {
    max-width: 1200px;  /* increase width */
  }

  .home-item img {
    height: 320px;      /* taller image on desktop */
  }
}


/* 🔹 Individual item (card style) */
.home-item {
  padding: 12px;          /* inner padding */
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect (lift + shadow) */
.home-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

/* 🔹 Image full horizontal + hover zoom */
.home-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.35s ease;
}

/* Image zoom on hover */
.home-item:hover img {
  transform: scale(1.05);
}

/* 🔹 Title styling */
.home-item h3 {
  margin: 14px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #003a8c;
  transition: color 0.3s ease;
}

/* Title color change on hover */
.home-item:hover h3 {
  color: #0056d1;
}

/* 🔹 Mobile optimization */
@media (max-width: 600px) {
  .home-item {
    padding: 10px;
  }
  .home-item img {
    height: 210px;
  }
  .home-item h3 {
    font-size: 1.2rem;
  }
}



/* MAIN CONTENT WRAPPER */
.content {
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0;                /* ❌ removed padding */
}

/* INTRO SECTION */
.intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* POSTER CARD */
.poster-card {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.poster-card h3 {
  font-size: clamp(1.6rem, 2.1vw + 1rem, 2.2rem);
  font-weight: 700;
  color: #003a8c;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.poster-card img {
  width: 100%;
  max-height: 520px;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  display: block;
}

/* HR SEPARATOR */
.intro hr {
  margin: 26px 0 20px;
  border: 0;
  border-top: 1px solid #dddddd;
}

/* ABOUT BOX */
.about {
  background: #ffffff;
  padding: 20px 22px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.about p {
  margin-bottom: 14px;
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

.about p:last-child {
  margin-bottom: 0;
}

.about a {
  color: #003a8c;
  font-weight: 600;
  text-decoration: none;
}

.about a:hover {
  text-decoration: underline;
}

/* 📱 MOBILE */
/* 📱 MOBILE FIX: add padding around poster image only */
@media (max-width: 768px) {
  .poster-card {
    padding: 0 12px;   /* adds safe space on both sides */
  }

  .poster-card img {
    border-radius: 10px;
    max-height: 360px;
  }
}

@media (max-width: 480px) {
  .poster-card {
    padding: 0 10px;   /* slightly tighter for small phones */
  }

  .poster-card img {
    max-height: 300px;
  }
}

/* Map Section */
.map-title {
  font-size: 25px;
  color: #023e8a;
  font-weight: 700;
  text-align: center;
  width: 100%;          /* force full width */
  display: block;       /* allow proper centering */
  position: relative;
  margin: 0 auto 25px;  /* centers and adds spacing */
}

/* Yellow underline */
.map-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 70px;
  height: 4px;
  background: var(--orange);
  border-radius: 99px;
}

#map {
  padding: 20px;
}

#map h3 {
  text-align: center;
  margin-bottom: 15px;
}

/* Responsive Map Container */
.map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 350px;   /* increased height */
  margin: 0 auto;
  border: 3px solid #000;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* 🎯 ONE SINGLE FOOTER BOX with left (links) + right (contact) */
.footer-sections {
  width: 100%;
  background-color: #d3d3d3;
  color: #000;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-top: 30px;

  /* Mobile safe area (same as .footer) */
  padding-left: calc(env(safe-area-inset-left, 0px) + 18px);
  padding-right: calc(env(safe-area-inset-right, 0px) + 18px);
}

/* Inside the box – just columns */
.footer-sections .quick-links,
.footer-sections .contact-info {
  flex: 1;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Quick links styling */
.footer-sections .quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sections .quick-links li {
  margin-bottom: 6px;
}

/* Default link style */
.footer-sections .quick-links a {
  position: relative;
  text-decoration: none;
  color: #000;              /* normal text color */
  transition: 0.25s ease;
  font-size: 18px;
  padding-bottom: 3px;
}

/* Yellow underline (hidden by default) */
.footer-sections .quick-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 3px;
  background: #f4c20d;      /* yellow underline */
  transition: width 0.25s ease;
  border-radius: 10px;
}

/* Hover effects */
.footer-sections .quick-links a:hover {
  color: #007bff;           /* blue text */
}

.footer-sections .quick-links a:hover::after {
  width: 100%;              /* show yellow line */
}
.footer-sections .quick-links ul,
.footer-sections .quick-links li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}


.footer-sections h2,
.footer-sections h3 {
  margin-bottom: 10px;
  font-size: 30px;
  font-weight: 600;
  color: #0B1F63;
}

.footer-sections p {
  font-size: 16px;
  margin-bottom: 6px;
}

/* 🔹 Mobile */
@media (max-width: 600px) {
  .footer-sections {
    flex-direction: column;
    font-size: 16px;
    padding: 12px 14px;
    gap: 16px;
  }
}

/* 🔹 Large desktop */
@media (min-width: 1200px) {
  .footer-sections {
    font-size: 15px;
    padding: 20px 48px;
  }
}
@media (max-width: 600px) {
  .footer-sections {
    flex-direction: column !important;
    text-align: left !important;   /* Keep text left aligned */
    gap: 20px;
    padding: 12px 14px;
  }

  .footer-sections .quick-links,
  .footer-sections .contact-info {
    width: 100%;
    text-align: left !important;   /* Force left alignment */
  }

  .footer-sections .quick-links a {
    font-size: 16px;
  }
}





/* ===============================
   CONTACT PAGE
=================================*/

.contact-page {
  padding: 40px 20px 40px;
}

/* ===============================
   HERO (FULL WIDTH IMAGE)
=================================*/

.contact-hero {
  position: relative;
  width: 100%;
  height: 450px;
  padding: 110px 20px 90px;
  text-align: center;
  color: #ffffff;

  /* Background image + dark overlay */
  background:
    linear-gradient(rgba(100,100,100,0.30), rgba(100,100,100,0.30)),
    url("images/college.jpg") center/cover no-repeat;

  margin: 0 0 30px;
  border-radius: 0;     /* full page */
  overflow: hidden;
}

/* Text inside hero */
.contact-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.contact-hero p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 📱 Tablet */
@media (max-width: 768px) {
  .contact-hero {
    padding: 90px 16px 70px;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 0.95rem;
  }
}

/* 📱 Small Phones */
@media (max-width: 480px) {
  .contact-hero {
    padding: 80px 12px 60px;
  }

  .contact-hero h1 {
    font-size: 1.7rem;
  }

  .contact-hero p {
    font-size: 0.9rem;
  }
}


/* ===============================
   TWO COLUMN LAYOUT
=================================*/

.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left + Right cards */
.contact-form-block,
.contact-info-block {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 22px 24px;
}

/* Headings */
.contact-form-block h2,
.contact-info-block h2 {
  font-size: 1.4rem;
  color: var(--dark-blue);
  margin-bottom: 8px;
}

/* Subtext */
.contact-subtext {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
}

/* Form rows */
.contact-form .form-row {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0,74,173,0.18);
}

/* Button */
.contact-btn {
  margin-top: 6px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary-blue), #007bff);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* Info block text */
.info-item {
  margin-bottom: 16px;
}

.info-item h3 {
  font-size: 1rem;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.info-item p {
  font-size: 0.95rem;
  color: #444;
}

.contact-info-block a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.contact-info-block a:hover {
  text-decoration: underline;
}

/* 📱 Mobile stacking */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-page {
    padding: 20px 12px 30px;
  }
}
/* Get In Touch heading style */
.contact-heading {
  max-width: 1100px;
  margin: 10px auto 25px;
  text-align: center;
}

.contact-heading h2 {
  font-size: 2.1rem;
  color: var(--dark-blue);
  font-weight: 700;
  margin-bottom: 18px;
  display: inline-block;   /* underline only under text */
  position: relative;
}

/* Yellow line under heading */
.contact-heading h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--orange);
}

.contact-heading p {
  font-size: 0.98rem;
  color: #555;
  max-width: 480px;
  margin: 18px auto 0;
  line-height: 1.6;
}

/* Optional: small tweak on mobile */
@media (max-width: 480px) {
  .contact-heading h2 {
    font-size: 1.5rem;
  }

  .contact-heading p {
    font-size: 0.9rem;
  }
}

/* --- Global Styles --- *//* ========== GLOBAL RESET & BODY (for all pages) ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #eef1f5;
  color: #333;
  line-height: 1.5;
}

/* ========== AUTH PAGES LAYOUT (ONLY login / register / reset) ========== */
/* Add class="login-page" / "register-page" / "reset-page" on those pages' <body> */

body.login-page,
body.register-page,
body.reset-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}



/* Screen-reader only (if you use it) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== FOOTER SECTIONS (Quick Links + Contact Info) ========== */

.footer-sections {
  background: #d3d3d3;
  padding: 40px 20px;

  /* full width */
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  /* remove max width */
  max-width: none;
  margin: 0;

  gap: 60px;
}

/* Left side: Quick Links */
.quick-links h2 {
  font-size: 28px;
  color: #004a99;
  margin-bottom: 12px;
}

.quick-links ul {
  list-style: none;
  padding: 0;
}

.quick-links ul li {
  margin-bottom: 8px;
}

.quick-links ul li a {
  text-decoration: none; /* removed underline */
  color: black;
  font-size: 16px;
  transition: 0.3s;
}

.quick-links ul li a:hover {
  color: #f6c90e; /* yellow hover */
}

/* Right side: Contact Info */
.contact-info h3 {
  font-size: 28px;
  color: #004a99;
  margin-bottom: 12px;
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-info a {
  text-decoration: none;
  color: #0b090a;
  transition: 0.3s;
}

.contact-info a:hover {
  color: #00b4d8; /* yellow hover */
}

/* Mobile */
@media (max-width: 768px) {
  .footer-sections {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .quick-links h2,
  .contact-info h3 {
    text-align: center;
  }
}

body.reset-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
/* ===== FACULTY PAGE LAYOUT ===== */

/* ================================
   GENERAL WRAPPER (content only)
================================ */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}




.gallery h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 auto 12px;
  position: relative;
  display: inline-block;
}

.gallery h2::after {
  content: "";
  width: 90px;        /* underline width */
  height: 4px;        /* thickness */
  background: #f1c40f;   /* yellow color */
  border-radius: 8px;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}
.courses-preview {
  text-align: center;
}

.courses-preview h2 {
  font-size: 32px;
  display: inline-block;   /* keeps underline tight */
  position: relative;
}

.courses-preview h2::after {
  content: "";
  width: 120px;
  height: 4px;
  background: #f4c20d;     /* yellow */
  display: block;
  margin: 8px auto 0;      /* auto = centered */
  border-radius: 2px;
}
.quick-links h2 {
  position: relative;
  
  font-size: 28px;
  margin-bottom: 25px;
}

.quick-links h2::after {
  content: "";
  width: 140px;              /* underline length */
  height: 4px;              /* underline thickness */
  background: #f4c20d;      /* yellow line */
  display: block;
  
  border-radius: 2px;
}
.contact-info h3 {
  position: relative;
 
  font-size: 28px;
  margin-bottom: 25px;
}

.contact-info h3::after {
  content: "";
  width: 120px;              /* underline length */
  height: 4px;              /* underline thickness */
  background: #f4c20d;      /* yellow color */
  display: block;
      
  border-radius: 2px;
}
@media (max-width: 768px) {

  /* Remove underline for Quick Links */
  .quick-links h2::after {
    display: none;
  }

  /* Remove underline for Contact Information */
  .contact-info h3::after {
    display: none;
  }
}
.courses-section h2 {
  position: relative;
  text-align: center;
  font-size: 33px;
  margin-bottom: 25px;
}

.courses-section h2::after {
  content: "";
  width: 80px;              /* underline length */
  height: 4px;              /* underline thickness */
  background: #f4c20d;      /* yellow color */
  display: block;
  margin: 10px auto 0;      /* center underline */
  border-radius: 2px;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===== PAGE BACKGROUND - LIGHT BLUE MOUNTAIN STYLE ===== */
body.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #1a1a1a;
}
  /* Soft sky + mountain gradient */


/* Gentle fog/mountain mist shapes */
body.login-page::before,
body.login-page::after {
  content: "";
  position: absolute;
  width: 180%;
  height: 55%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8;
}

body.login-page::before {
  bottom: -10%;
  background: rgba(255, 255, 255, 0.35); /* white misty layer */
}

body.login-page::after {
  bottom: -25%;
  background: rgba(160, 190, 255, 0.25); /* blue layer */
}

/* ========= GLASS LOGIN CARD ========= */
.auth-form {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 380px;
  padding: 2.4rem 3rem;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.6);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Title */
.auth-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  color: #1a1a1a;
}

/* Inputs */
.auth-form input {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 1.3rem;

  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  outline: none;
  color: #1a1a1a;
}

.auth-form input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

.auth-form input:focus {
  border-bottom-color: #3555a6;
}

/* Button */
.auth-form button {
  width: 100%;
  padding: 12px 0;
  margin-top: 5px;
  border: none;
  border-radius: 30px;

  background: linear-gradient(135deg, #8ab6ff, #bda8ff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.auth-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.auth-form button:active {
  transform: scale(0.97);
}

/* Links */
.auth-form p {
  text-align: center;
  margin-top: 12px;
  color: rgba(0, 0, 0, 0.75);
}

.auth-form a {
  color: #3555a6;
  text-decoration: none;
  font-weight: 500;
}

.auth-form a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
  .auth-form {
    padding: 1.8rem 1.6rem;
    max-width: 330px;
  }
}
@media (min-width: 768px) {
  .auth-form {
    padding: 24px 32px;
    max-width: 400px;
  }

  .auth-form h2 {
    font-size: 24px;
  }
}
/* Container for this page */
.more-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 50px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Premium Title */
.premium-title {
  text-align: center;
  margin-bottom: 45px;
  padding: 10px 0;
}

.premium-title h1 {
  font-size: 48px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -1px;
}

.premium-title p {
  margin-top: 12px;
  font-size: 18px;
  color: #666;
}

/* Grid layout */
.more-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

/* Image card */
.more-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.more-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Image itself – BIG on desktop */
.more-item img {
  width: 100%;
  height: 400px;          /* ★ Super Big Desktop Image */
  object-fit: cover;
  display: block;
}

/* Event name */
.event-name {
  padding: 15px 10px;
  text-align: center;
  font-weight: 700;          /* thicker */
  font-size: 22px;           /* BIG title */
  color: #004c91;            /* premium navy-blue color */
  background: #f0f6ff;       /* light blue background */
  letter-spacing: 0.5px;     /* clean spacing */
}


/* Back button (updated to button version) */
.more-back-wrap {
  margin-top: 35px;
  text-align: center;
}

.back-btn {
  padding: 12px 28px;
  background: #ffffff;
  color: #0077cc;
  border: 2px solid #0077cc;
  border-radius: 50px;        /* ★ OVAL SHAPE */
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.back-btn:hover {
  background: #0077cc;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* More Photos button (oval style) */
.more-btn-wrap {
  text-align: center;
  margin-top: 25px;
}

.more-btn {
  padding: 14px 35px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 50px;        /* ★ OVAL SHAPE */
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  letter-spacing: 0.3px;
}

.more-btn:hover {
  background: #005fa3;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.20);
}

/* Mobile tweak */
@media (max-width: 480px) {
  .more-item img {
    height: 300px;      /* ★ Big mobile images */
  }

  .more-gallery-grid {
    grid-template-columns: 1fr;
  }

  .premium-title h1 {
    font-size: 32px;
  }

  .premium-title p {
    font-size: 16px;
  }
}


.more-btn-wrap {
  text-align: center;
  margin-top: 25px;
}

.more-btn {
  padding: 14px 35px;          /* bigger + premium spacing */
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 50px;         /* ★ OVAL SHAPE ★ */
  font-size: 17px;             /* slightly bigger for premium look */
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  letter-spacing: 0.3px;       /* clean premium spacing */
}

.more-btn:hover {
  background: #005fa3;
  transform: translateY(-3px); /* smooth lift */
  box-shadow: 0 8px 22px rgba(0,0,0,0.20); /* strong premium shadow */
}

/* Premium Title Block */
.premium-title {
  text-align: center;
  margin-bottom: 45px;
  padding: 10px 0;
  animation: fadeIn 0.7s ease;
}

.premium-title h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0;
  color: #222;
}

.premium-title p {
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #666;
}

/* Smooth fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Premium Title Styling */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  padding: 10px 0;
}

.section-title h1 {
  font-size: 35px;
  font-weight: 800;
  margin: 0;
  color: #001d3d;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

/* Premium underline effect */
.section-title h1::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #0077cc;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

/* Subtitle */
.section-title p {
  margin-top: 15px;
  font-size: 17px;
  color: #555;
  letter-spacing: 0.2px;
}
.more-back-wrap {
  margin-top: 35px;
  text-align: center;
}

.back-btn {
  padding: 12px 28px;
  background: #ffffff;
  color: #0077cc;
  border: 2px solid #0077cc;
  border-radius: 50px;             /* ★ OVAL STYLE ★ */
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.back-btn:hover {
  background: #0077cc;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* ====== MORE PAGE WIDTH FIX ====== */
.more-page {
  max-width: 1400px; /* Increased full width */
  width: 95%;
  margin: 120px auto 60px;
}

/* ===== GALLERY GRID ===== */

.more-page {
  color: #023e8a;
  max-width: 1400px;
  width: 95%;
  margin: 40px auto 60px; /* reduced from 120px */
  padding-top: 10px;
}

.i {
  text-align: center;
  width: 100%;
  display: block;
  margin: 20px auto;
}
.back-btn {
  display: block;
  margin: 30px auto;
  text-align: center;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 fills box but may crop edges */
}
.i {
  text-align: center;
  position: relative;
  display: inline-block;
  margin: 20px auto;
  font-size: 1.8rem;
}

.i::after {
  content: "";
  display: block;
  width: 80px;        /* underline width */
  height: 4px;        /* underline thickness */
  background: #ffcc00; /* yellow color */
  margin: 8px auto 0; /* spacing below text */
  border-radius: 2px;
}

.qp {
  position: relative;
  display: block;
  width: fit-content;
  margin: 13px auto;

  background: #6936F5;
  color: white;
  padding: 20px 60px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;

  /* 🔷 Oval Shape */
  clip-path: ellipse(50% 50% at 50% 50%);

  transition: 0.3s ease;
}

/* Hover */
.qp:hover {
  transform: scale(1.05);
  background: #8862FF;
  box-shadow: 0 10px 25px rgba(136, 98, 255, 0.35);
}

/* Remove previous before/after */
.qp::before,
.qp::after,
.qp span::after {
  content: none !important;
}

/* Keep span positioning */
.qp span {
  position: relative;
  z-index: 5;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .qp {
    width: 90%;
    max-width: 300px;
    margin: 24px auto;
    padding: 16px 20px;
    font-size: 1.1rem;

    /* Mobile Oval */
    clip-path: ellipse(50% 50% at 50% 50%);
  }
}


/* ===========================
   FUNCTION GALLERY MODAL
   =========================== */
.function-modal {
  display: none;              /* hidden by default */
  position: fixed;
  inset: 0;                   /* top:0 right:0 bottom:0 left:0 */
  z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.func-slider-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.func-slider-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  display: block;
}

/* Close (X) button */
.func-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* Arrow buttons – overlay left/right of image */
.func-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.5);
  font-size: 40px;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

/* Left arrow */
.func-prev {
  left: 10px;
}

/* Right arrow */
.func-next {
  right: 10px;
}

.func-nav:hover,
.func-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* 🔹 Mobile tweaks for modal, arrows, close */
@media (max-width: 600px) {
  .func-slider-content {
    max-width: 95vw;
  }

  .func-nav {
    font-size: 28px;
    padding: 8px 10px;
  }

  .func-prev {
    left: 6px;
  }

  .func-next {
    right: 6px;
  }

  .func-close {
    font-size: 32px;
    top: 12px;
    right: 16px;
  }
}


/* ===========================
   FUNCTION THUMBNAIL – SINGLE IMAGE
   =========================== */

/* Wrapper that controls size + centering */
.func-stack {
  width: 100%;
  max-width: 420px;    /* max width overall */
  margin: 25px auto;   /* center it */
}

/* Single main image */
.func-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect (mainly desktop) */
.func-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

/* MOBILE – bigger image */
@media (max-width: 600px) {
  .func-thumb {
    height: 350px;      /* big in mobile */
    object-fit: cover;
  }
}

/* DESKTOP – smaller image */
@media (min-width: 900px) {
  .func-stack {
    max-width: 550px;   /* narrower on desktop */
    margin: 35px auto;
  }

  .func-thumb {
    height: 350px;      /* smaller height on desktop */
    object-fit: cover;
  }
}
/* DESKTOP – BIGGER image */
@media (min-width: 900px) {
  .func-stack {
    max-width: 750px;     /* 🔥 bigger & wider on desktop */
    margin: 40px auto;
  }

  .func-thumb {
    height: 450px;        /* 🔥 tall + big image on desktop */
    object-fit: cover;
  }
}
/* ===========================
   FULL IMAGE MAGNIFY OVERLAY
   =========================== */

/* Wrapper */
.func-stack {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 25px auto;
  overflow: hidden;
  border-radius: 14px;
}

/* Image */
.func-thumb {
  width: 100%;
  height: 450px;           /* default (desktop) size */
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Full-size overlay */
.func-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25)
              url("images/image.png") center center / 80px no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover zoom */
.func-stack:hover::after {
  opacity: 1;
}

.func-stack:hover .func-thumb {
  transform: scale(1.1);
}

/* -------------------------- */
/* 📱 MOBILE VIEW (Perfect)   */
/* -------------------------- */
@media (max-width: 600px) {
  .func-stack {
    max-width: 100%;
  }

  .func-thumb {
    height: 380px;           /* image size for mobile */
  }

  .func-stack::after {
    background-size: 60px;   /* smaller icon for mobile */
  }
}
.func-stack.show-overlay::after {
  opacity: 1 !important;
}


.principal-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 35px;
  position: relative;
  display: block;
  text-align: center;
}

.principal-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 40px;        /* underline size */
  height: 3px;
  background: yellow; /* 🔥 yellow underline */
}


/* Card */
.principal-card {
  max-width: 480px;     
  margin: auto;
  padding: 35px 30px;  
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Photo */
.principal-photo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;   /* centers the photo */
  display: block;        /* required for margin auto */
}

/* Name */
.principal-info h3 {
  font-size: 28px;      
  margin-bottom: 8px;
}

/* Position */
.principal-info p {
  color: #555;
  font-size: 18px;    
}
.quick-links {
  padding-left: 100px;  /* shift right */
}
.principal-info {
  text-align: center;
}



/* ====================================================
   INDEX PAGE FOOTER — FULLY SEPARATE FROM OTHER PAGES
   ==================================================== */

.index-footer {
  width: 100%;
  padding: 50px 0;
  background: #d3d3d3;   /* old light grey background */
}

/* Center content + side-by-side layout on desktop */
.index-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

/* Each section takes equal space */
.index-quick-links,
.index-contact {
  flex: 1;
}

/* Headings */
.index-quick-links h2,
.index-contact h2 {
  color: #0a3d8f;
  font-size: 28px;
  margin-bottom: 15px;
  border-bottom: 4px solid #f1c40f;
  display: inline-block;
  padding-bottom: 5px;
}

/* Quick Links styling */
.index-quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-quick-links li {
  margin-bottom: 10px;
  font-size: 18px;
}
/* Quick Links styling */
.index-quick-links a {
  color: #000000;              /* nice college-style blue */
  text-decoration: none;       /* remove underline */
  font-weight: 500;
  transition: 0.2s ease;
}

.index-quick-links a:hover {
  text-decoration: underline;
   color: blue;   
    /* underline on hover */
}

/* Contact text spacing */
.index-contact p {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Social Icons inside index footer (YouTube, Insta, Mail) */
.index-social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.index-social-icons a {
  text-decoration: none;
  font-size: 25px;
  color: #000000;   /* simple black icons */
}
.index-social-icons .icon i {
  transition: none;   
}

/* Stack columns on mobile */
@media (max-width: 768px) {
  .index-footer-inner {
    flex-direction: column;
    gap: 30px;
  }
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icons .icon {
  text-decoration: none;
  font-size: 25px;     
  color: #000000;      
}

.social-icons .icon i {
  transition: none;   
}
/* Whole Section */
.facility-section {
  width: 100%;
  padding: 40px 0;
}

/* Each Row (Facility Box) */
.facility-item {
  max-width: 1200px;
  margin: 50px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 25px;
  background: #f5f7fa;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* Zig-Zag Reverse Row */
.facility-item.reverse {
  flex-direction: row-reverse;
}

/* Images */
.facility-img {
  width: 500px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

/* Text Side */
.facility-text {
  width: 55%;
}

.facility-text h2 {
  font-size: 34px;
  color: #003b7a;
  margin-bottom: 12px;
}

.facility-text p {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .facility-item,
  .facility-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .facility-img {
    width: 100%;
    height: 250px;
  }

  .facility-text {
    width: 100%;
    padding: 0 10px;
  }
}

.index-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  align-items: flex-start;
}

/* CONTACT BLOCK */
.index-contact {
  max-width: 480px;
}

/* one row = icon + text */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-details h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.contact-details p {
  margin: 0;
  line-height: 1.5;
  font-size: 16px;
}

/* social icons under contact */
.index-social-icons {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  font-size: 26px;
}
.video-box {
  max-width: 1100px;             /* width of the box */
  margin: 20px auto;            /* center the box */
  padding: 20px;                /* space inside the box */
  background: #ffffff;          /* box color */
  border-radius: 16px;          /* rounded corners */
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);  /* soft shadow */
}

.hero-video {
  width: 100%;
  height: 500px;
  border-radius: 12px;          /* round video corners */
  object-fit: cover;
  display: block;
}
/* CSS - paste into your stylesheet */
:root{
  --bg:#f1f8ff;
  --navy:#0b3a72;
  --accent:#ff8a00;
  --text:#2b2b2b;
}

*{box-sizing:border-box}
body{font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; color:var(--text);}

/* HERO WRAPPER */
.hero{
  background: var(--bg);
  padding: 60px 20px;
}

/* CENTERED CONTENT */
.hero-content{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  gap:48px;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

/* LEFT TEXT */
.hero-text{flex:1; min-width:320px}
.hero-text h1{
  margin:0 0 18px 0;
  font-weight:800;
  line-height:1.02;
  letter-spacing:-0.5px;
  font-size:48px;
  color:var(--navy);
}
.hero-text .line1{display:block; font-weight:700; font-size:36px; color:var(--navy)}
.hero-text .line2{display:block; font-size:56px; color:var(--accent); margin-top:6px}
.hero-text .line2 strong{color:var(--accent); font-weight:900}

/* SUBTEXT */
.hero-subtext{
  margin:0;
  font-size:18px;
  line-height:1.7;
  color: #344154;
  max-width:640px;
  margin-top:8px;
}

/* VIDEO BOX (right) */
.video-box{
  width:520px;
  height:360px;
  border-radius:22px;
  overflow:hidden;
  position:relative;
  flex-shrink:0;
  box-shadow: 0 30px 60px rgba(11,58,114,0.08), 0 8px 18px rgba(11,58,114,0.05);
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* VIDEO */
.video-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02); /* small upscale to avoid black edges */
   filter: grayscale(50%) brightness(0.80);
}

/* DARK GRADIENT OVERLAY for readability */
.video-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.45) 100%);
}

/* CENTERED TEXT ON VIDEO */
.video-overlay-text{
  position:relative; /* above overlay */
  z-index:3;
  color:#fff;
  text-align:center;
  font-weight:700;
  font-size:40px;
  padding:12px 20px;
  line-height:1.15;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.video-overlay-text .small{font-weight:600; font-size:18px; opacity:0.95; margin-top:6px}

/* RESPONSIVE: stack on small screens */
@media (max-width: 880px){
  .hero-content{flex-direction:column-reverse; gap:24px; align-items:flex-start}
  .video-box{width:100%; height:300px; border-radius:16px}
  .hero-text h1{font-size:36px}
  .hero-text .line2{font-size:40px}
  .hero-subtext{font-size:16px}
}

/* small phones */
@media (max-width:420px){
  .hero{padding:36px 12px}
  .hero-text h1{font-size:28px}
  .hero-text .line2{font-size:32px}
  .video-box{height:220px}
  .video-overlay-text{font-size:16px}
}
.contact-wrapper {
  padding: 60px 20px;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-block,
.contact-info-block {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.info-item {
  margin-bottom: 18px;
}

.info-item h3 {
  margin-bottom: 6px;
  color: #0b4ea2;
}

.contact-btn {
  background: #0b4ea2;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.contact-btn:hover {
  opacity: 0.9;
}
/* Make the whole page stretch full height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Enable flexible layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Your main content should take available space */
.wrapper {
  flex: 1;
}

/* Footer fix */
.footer {
  background: #00205B; /* your footer color */
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
}
/* ===== CONTACT SECTION (cleaned & reliable) ===== */
.contact-hero {
  padding: 28px 20px 6px;
}
.contact-hero h1 {
  color: #0b3d84;
  font-size: 32px;
  margin: 0 0 6px;
  font-weight: 700;
}
.contact-hero p {
  margin: 0;
  color: #33475b;
}

/* subtitle */
.contact-heading {
  padding: 8px 20px 18px;
}
.contact-heading h2 {
  color: #0b3d84;
  margin: 0 0 8px;
  font-size: 18px;
}

/* wrapper & container */
.contact-wrapper {
  padding: 6px 16px 36px;
}
.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr; /* stacked on small screens */
  gap: 20px;
  align-items: start;
  box-sizing: border-box;
}

/* Desktop: two columns (form left, info right) */
@media (min-width: 920px) {
  .contact-container {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }
}

/* card style for both blocks */
.contact-form-block,
.contact-info-block {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(10,20,40,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

/* headings inside */
.contact-form-block h2,
.contact-info-block h2 {
  color: #0b3d84;
  font-size: 20px;
  margin: 0 0 12px;
}

/* form rows - STACKED and FULL WIDTH always */
.contact-form .form-row,
form.contact-form .form-row {
  display: block;            /* label above input */
  width: 100%;
  margin-bottom: 12px;
}
.contact-form .form-row label,
form.contact-form .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #123047;
  margin-bottom: 6px;
}

/* inputs and textarea full width */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
form.contact-form input[type="text"],
form.contact-form input[type="email"],
form.contact-form input[type="tel"],
form.contact-form textarea {
  width: 100%;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d6dfe8;
  background: #fff;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
  box-sizing: border-box;
}
.contact-form textarea,
form.contact-form textarea { resize: vertical; min-height: 110px; }

/* focus state for accessibility */
.contact-form input:focus,
.contact-form textarea:focus,
form.contact-form input:focus,
form.contact-form textarea:focus {
  border-color: #0b3d84;
  box-shadow: 0 4px 18px rgba(11,61,132,0.12);
}

/* submit button */
.contact-btn {
  display: inline-block;
  background: #0b3d84;
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,61,132,0.16);
}

/* contact info details */
.info-item { margin-bottom: 14px; }
.info-item h3 {
  margin: 0 0 6px;
  color: #0b3d84;
  font-size: 16px;
}
.info-item p {
  margin: 0;
  color: #223246;
  font-size: 14px;
  line-height: 1.5;
}

/* small utilities */
.contact-subtext { color:#43566a; margin-bottom:12px; font-size:14px; }
a[href^="mailto:"] { color: #0b3d84; text-decoration: underline; }

/* Desktop: Keep form and info one below the other & centered */
@media (min-width: 920px) {

  .contact-container {
    display: flex;
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* center horizontally */
    max-width: 700px;         /* neat centered width */
    margin: 0 auto;
    gap: 30px;                /* space between the two boxes */
  }

  .contact-form-block,
  .contact-info-block {
    width: 100%;              /* full width inside centered wrapper */
    max-width: 700px;         /* optional: keeps it clean */
    margin: 0 auto;
  }
}
/* CONTACT HERO SECTION */
/* CONTACT HERO with background image */
.contact-hero {
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;  /* text white on image */
  background-image: url("images/college.jpg"); /* <-- change your image here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Add a dark overlay for clarity */
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);  /* 45% dark overlay */
  z-index: 1;
}

/* Text stays above overlay */
.contact-hero h1,
.contact-hero p {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 18px;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .contact-hero {
    padding: 60px 16px;
  }
  .contact-hero h1 {
    font-size: 28px;
  }
  .contact-hero p {
    font-size: 14px;
  }
}
.contact-hero h1,
.contact-hero p {
  color: #ffffff !important;   /* pure white */
}
/* ========================================
   BASIC RESET
======================================== */
/* =========================================
   UNIFIED STYLES (mobile-like look on desktop)
   Paste this as your full CSS for the faculty page
========================================= */

/* BASIC RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; }
html,body { height: 100%; }
body { background: #f6f8fc; color: #222; -webkit-font-smoothing:antialiased; }

/* SITE CONTAINER: keep content centered and never too wide */
.wrapper, main, .footer-sections { width: 100%; }
.site-inner {
  max-width: 1100px;   /* controls max page width */
  margin: 0 auto;
  padding: 18px;
}

/* HERO *//* full-bleed hero override (works even inside a centered container) */
.faculty-hero {
  position: relative;
  /* make the hero span the whole viewport width */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  height: 500px; /* change as needed */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/teachers.jpg") center/cover no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 0;
}

.faculty-hero h1 { font-size: 34px; font-weight: 700; letter-spacing: 0.5px; }
.faculty-hero .tagline, .faculty-hero .sub { font-size: 15px; margin-top: 6px; opacity: 0.95; }

/* SECTION TITLES */
.faculty-title-box { text-align: center; margin-top: 36px; margin-bottom: 6px; }
.faculty-section-title { font-size: 26px; font-weight: 700; }
.faculty-section-title::after {
  content: ""; width: 60px; height: 4px; background: #ffcc00; display:block; margin: 10px auto 0;
}
.faculty-section-desc { text-align:center; color:#555; margin-bottom: 18px; font-size:15px; }

/* PRINCIPAL CARD */
.principal-section {
  text-align: center;
  padding: 8px 0 18px;   /* reduced vertical padding */
}

.principal-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  margin: 6px 0 8px;
  display: inline-block; /* keep width to text */
  position: relative;
  padding-bottom: 8px;   /* space for underline */
}

/* underline moved lower and centered under the heading */
.principal-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ffcc00;
  margin: 10px auto 0;   /* pushes underline lower — adjust the first number to fine-tune */
  border-radius: 3px;
}

/* Card: less tall, cleaner shadow */
.principal-card {
  width: 100%;
  max-width: 680px;     /* slightly narrower keeps compact look */
  margin: 10px auto 20px;
  background: #fff;
  padding: 10px 10px;   /* reduced padding */
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(16,24,40,0.06);
  text-align: center;
}

/* Bigger circular photo (desktop) */
.principal-photo {
  width: 320px;     /* previously 260px */
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 6px auto 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border: 6px solid rgba(255,255,255,0.9);
}

.principal-info h3 { font-size: 20px; font-weight:700; }
.principal-info p { font-size: 15px; color:#555; margin-top:6px; }

/* HEADINGS FOR TABLE SECTIONS */
.faculty-title, .faculty-title--section {
  font-size: 20px;
  text-align:center;
  margin: 30px 0 10px;
  font-weight:700;
}
.faculty-title::after {
  content:""; width:60px; height:4px; background:#ffcc00; display:block; margin:8px auto 0;
}

/* TABLES - compact, centered, no blank columns */
/* Wrap tables inside .site-inner for centered layout */
table {
  width: 100%;
  max-width: 980px;  /* keep table readable on desktop */
  margin: 14px auto 28px;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  border-radius: 6px;
  overflow: hidden;
}

/* Use subtle border lines and compact padding */
table th, table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
  border-right: 1px solid #eef0f2;
  font-size: 15px;
  text-align: left;
  vertical-align: middle;
  word-break: break-word; /* avoid overflow */
}

/* Remove right border from last column for cleaner edge */
table th:last-child, table td:last-child { border-right: none; }

/* Header style */
table thead th {
  background: #fbfcfe;
  font-weight: 700;
  color: #222;
}

/* Row striping */
table tbody tr:nth-child(odd) { background: #ffffff; }
table tbody tr:nth-child(even) { background: #fbfbfb; }

/* Ensure table columns shrink naturally; prevent forced min-widths */
table th, table td { min-width: 60px; }

/* If browser width is smaller than table content, allow horizontal scroll,
   but only as needed (no blank white space) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* CONTACT SECTION (centered and compact) */





/* FOOTER */
.footer { background: #001b50; color: #fff; text-align:center; padding:12px 8px; font-size:14px; }

/* SMALLER DEVICES - scale down but keep same layout style */
@media (max-width: 900px) {
  .site-inner { padding-left: 14px; padding-right: 14px; }
  .faculty-hero { height: 260px; }
  .faculty-hero h1 { font-size: 30px; }
  .faculty-hero .tagline, .faculty-hero .sub { font-size: 14px; }

  .principal-card { max-width: 600px; padding: 18px; }
  .principal-photo { width: 140px; height: 140px; }
  .principal-info h3 { font-size: 18px; }

  table { max-width: 920px; }
  table th, table td { padding: 9px 10px; font-size: 14px; }
}

/* MOBILE - keep the exact same "compact" look, no blank columns, no huge tables */
@media (max-width: 700px) {
  .site-inner { padding-left: 12px; padding-right: 12px; }

  .faculty-hero { height: 220px; }
  .faculty-hero h1 { font-size: 26px; }
  .faculty-hero .tagline, .faculty-hero .sub { font-size: 13px; }

  .principal-card { max-width: 100%; padding: 16px; border-radius: 12px; }
  .principal-photo { width: 120px; height: 120px; }
  .principal-info h3 { font-size: 17px; }

  table { margin-left: 0; margin-right: 0; max-width: none; border-radius: 6px; }
  .table-responsive { overflow-x: auto; }
  table th, table td { padding: 8px 10px; font-size: 13px; }
  table th, table td { min-width: 50px; } /* allows natural shrinking */

  /* strong prevention of blank white columns:
     ensure last-child no forced width and nowrap is not applied */
  table th:last-child, table td:last-child { width: auto !important; white-space: normal; }
}

/* UTILITY: make any table container easily scrollable when needed */
.table-wrap { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* END */
/* DESKTOP — big and clean */
.principal-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}

/* TABLETS */
@media (max-width: 900px) {
  .principal-photo {
    width: 200px;
    height: 200px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .principal-photo {
    width: 160px;
    height: 160px;
  }
}
