:root {
  --color-primary: #AA076B;
  --color-secondary: #61045F;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #222;
  background-color: #f4f4f4;
  line-height: 1.6;
  padding-top: 0; /* Adjust this if using a fixed nav */
}

/* ========== Header ========== */
header {
  position: relative; /* Non-fixed header */
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 10;
}

.logo-left {
  width: 100;
  height: 100;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-left:hover {
  transform: scale(1.10);
  box-shadow: 0 0 20px rgb(255, 255, 255);
}


.header-center {
  flex: 1 1 auto;
  text-align: center;
}

.header-center h1 {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
}

.header-text-right {
  text-align: right;
  font-size: 0.9rem;
  color: #fff;
  line-height: 1.3;
}

.header-text-right strong {
  font-weight: bold;
  color: #fff;
}

/* ========== Hamburger Icon ========== */

/* Hamburger button */
    .hamburger {
      font-size: 1.8rem;
      color: white;
      cursor: pointer;
      background: none;
      border: none;
      outline: none;
      display: none;
      position: absolute;
      right: 20px;
      top: 15px;
      z-index: 1001;
    }

/* Nav Bar */
#main-nav {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #AA076B, #61045F);
  transition: top 0.3s ease, background 0.3s ease;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fixed nav when scrolled */
#main-nav.fixed {
  position: fixed;
  top: 100px; /* Same as header height */
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  justify-content: center; 
  align-items: center;
  position: relative; /* FIX: Ensure dropdowns are placed correctly */
}

#main-nav ul li {
  position: relative;
}

#main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 15px;
  display: block;
  transition: color 0.3s;
}

#main-nav ul li a:hover {
  color: #f0c;
}

/* Dropdown wrapper */
#main-nav .dropdown {
  position: relative;
}

/* Hide dropdown by default */
#main-nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  top: 100%;
  left: 0;
  opacity: 0; /* FIX: Prevent flicker */
  visibility: hidden; /* FIX: Ensure it hides cleanly */
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Sticky state */
#main-nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Optional visual styles */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* When nav is fixed, push content down */
#page-content.sticky-offset {
  margin-top: /* nav height */ 80px;
}

/* Show dropdown on hover */
#main-nav .dropdown:hover .dropdown-content {
  display: block;
  opacity: 1; /* FIX: Fade in */
  visibility: visible;
  transition-delay: 0s;
}

/* Dropdown links styling */
#main-nav .dropdown-content li {
  list-style: none;
}

#main-nav .dropdown-content li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

#main-nav .dropdown-content li a:hover {
  background-color: #f0f0f0;
}

/* College Banner */
.college-banner {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.college-banner img {
  width: 100%;
  max-height: 500px;
  object-fit: stretch; 
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}
/* Container Box */
.container-box {
  margin: 80px auto 100px auto;
  padding: 2rem;
  max-width: 1200px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: justify;
  line-height: 1.75;
  word-spacing: 0.05em;
  transition: box-shadow 0.3s ease;
}

.container-box:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

/* Links */
.link-style {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 0;
  padding: 0.1rem 0.2rem;
  transition: color 0.2s ease-in-out;
  cursor: pointer;
}

.link-style:hover,
.link-style:focus {
  color: var(--color-secondary);
  text-decoration: underline;
  outline: none;
}

/* Map / Location */
.map {
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* News & Events */
.news-list {
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  list-style-type: disc;
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
}

.news-list li {
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.news-list li:hover {
  color: var(--color-primary);
  cursor: pointer;
}

/* Back to Top */
#backToTopBtn {
  display: none;               
  position: fixed;            
  bottom: 30px;               
  right: 30px;               
  width: 50px;
  height: 50px;
  background-color: #ff6b6b;   
  color: white;
  border: none;
  border-radius: 50%;        
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
  font-size: 24px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 999;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;                
}

/* When visible */
#backToTopBtn.show {
  display: flex;               
  opacity: 1;
}

/* Hover interactions */
#backToTopBtn:hover {
  background-color: #ff4747;
  transform: translateY(-5px);
}


 /* Footer */
footer {
  position: relative;
  background: linear-gradient(135deg, #61045F, #AA076B);
  color: white;
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: 1rem;
  line-height: 0.5;
  z-index: 10;
}

/* Social Media Icons Container */
.social-icons {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Individual Icon Styling */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: black !important; /* Ensure black icon color */
}

/* Hover Effects */
.social-icons a i:hover {
  background-color: #ffffff;
  color: var(--color-primary, #16697a);
  transform: scale(1.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer p a {
  color: #f0d130; /* Change to your desired link color */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer p a:hover {
  color: #ffffff; /* On hover */
  text-decoration: underline;
}


/* Courses*/
/* ====== Stream Section ====== */
.stream-section {
  padding: 1.5rem 0;
  overflow-x: auto; /* allows horizontal scroll on narrow screens */
}

/* ====== Stream Table Styles ====== */
.stream-table {
  width: 100%;
  border-collapse: separate; /* ensures accessibility and consistent rendering */
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  background-color: #ede7e3;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 8px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-in-out;
  table-layout: auto; /* columns adapt to content */
}

/* ====== Caption Styling ====== */
.stream-table caption {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  padding: 1rem;
  color: #000000;
  background-color: #ffffff;
  caption-side: top;
}

/* ====== Table Header ====== */
.stream-table thead {
  background-color: #61045F;
  color: #fff;
}

.stream-table th,
.stream-table td {
  padding: 14px 16px;
  text-align: center;
  vertical-align: middle;
  font-size: 1rem;
  line-height: 1.5;
  border-bottom: 1px solid #ccc;
}

/* Justify subjects column if needed */
@media (max-width: 768px) {
  .stream-table td:nth-child(3) {
    text-align: justify !important;
  }
}

/* ====== Zebra Striping ====== */
.stream-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
.stream-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* ====== Hover Highlight ====== */
.stream-table tbody tr:hover {
  background-color: #b375b1;
  transition: background-color 0.3s ease;
}

/* ====== Responsive Handling ====== */
@media (max-width: 768px) {
  .stream-table,
  .stream-table thead,
  .stream-table tbody,
  .stream-table th,
  .stream-table td,
  .stream-table tr {
    display: block;
    width: 100%;
  }

  .stream-table thead {
    display: none;
  }

  .stream-table tr {
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    background-color: #ffffff;
    overflow: hidden;
  }

  .stream-table td {
    text-align: left !important;
    padding: 12px 16px;
    position: relative;
    border: none; /* remove redundant borders in mobile */
    border-bottom: 1px solid #eee;
  }

  .stream-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #61045F;
    margin-bottom: 0.3rem;
  }
}


/* || STAFF SECTION */
.staff-section {
  margin: 2rem auto;
  max-width: 100%;       
  padding: 0 1rem;
  overflow-x: auto;      
}

/* Staff table layout & typography */
.staff-table {
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;   
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f4f8; 
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.staff-table caption {
  font-size: 1.75rem;
  text-align: center;
  margin: 1rem 0;
  font-weight: bold;
  color: #333;
}

/* Header & body styling */
.staff-table th,
.staff-table td {
  padding: 12px;
  border: 1px solid #ccc;
  vertical-align: middle;
  text-align: center;
  vertical-align: middle;
  font-size: 1rem;
}

.staff-table td.name {
  text-align: left;
  text-align-last: left;
  text-justify: inter-word;
}

.staff-table th {
  background-color: #61045F;
  color: white;
  text-align: center;
}

/* Alternate row striping */
.staff-table tbody tr:nth-child(even) {
  background-color: #fff;
}
.staff-table tbody tr:nth-child(odd) {
  background-color: #eef3f7;
}

/* Circular staff photos */
.staff-table img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Responsive: Mobile-friendly collapse ===== */
@media (max-width: 768px) {
  .staff-table,
  .staff-table thead,
  .staff-table tbody,
  .staff-table th,
  .staff-table td,
  .staff-table tr {
    display: block;
    width: 100%;
  }

  .staff-table thead {
    display: none;
  }

  .staff-table tr {
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
  }

  .staff-table td {
    padding: 12px;
    text-align: center;
    position: relative;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  .staff-table td.name {
    text-align: left;
    text-justify: inter-word;
  }

  .staff-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    font-weight: bold;
    color: #61045F;
    text-transform: uppercase;
  }

  .staff-table td:last-child {
    border-bottom: none;
  }
}

/* Reach Us*/
#reach-us {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
}

#reach-us h2 {
  margin-bottom: 1rem;
  color: #61045F;
}

.reach-us-content p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.reach-us-content a {
  color: #61045F;
  text-decoration: none;
}

.reach-us-content a:hover {
  text-decoration: underline;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Feedback*/
.feedback-section {
  padding: 2rem 1rem;
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.required {
  color: red;
}

.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.rating-options label {
  margin-right: 1rem;
  font-weight: normal;
}

.btn-submit {
  display: inline-block;
  background: #61045F;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #8e0a8e;
}

/* Gallery */
.gallery-section {
  padding: 2rem 1rem;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-item {
  flex: 1 1 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive breakpoints */
@media (max-width: 992px) {
  .gallery-item {
    flex: 1 1 calc(33.33% - 1rem);
    max-width: calc(33.33% - 1rem);
  }
}
@media (max-width: 768px) {
  .gallery-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}
@media (max-width: 480px) {
  .gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ========== Mobile Responsive Enhancement ========== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .logo-left {
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .header-center {
    margin: 0.5rem 0;
  }

  .header-center h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .header-text-right {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }

  /* Show hamburger */
  .hamburger {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    z-index: 1100;
    background: none;
    border: none;
  }

  /* Hide menu by default */
  #main-nav ul {
    display: none;
    flex-direction: column;
    background: #AA076B;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  #main-nav ul.responsive {
    display: flex;
  }

  #main-nav ul li {
    text-align: center;
    padding: 10px 0;
  }
}

footer {
    font-size: 0.95rem;
    padding: 1.5rem 0.5rem;
  }

  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .social-icons {
    gap: 0.75rem;
  }

  footer p {
    line-height: 1.6;
    padding: 0 0.5rem;
  }


/* Fix navbar on scroll – only for screens wider than 768px */
@media (min-width: 768px) {
  #main-nav.fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
}

/* ========== Extra Small Devices (≤ 480px) ========== */
@media (max-width: 480px) {
  header {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .logo-left img {
    width: 48px;
    height: 48px;
  }

  .header-center h1 {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .header-text-right {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    padding: 0 0.5rem;
  }

  .hamburger {
    font-size: 1.7rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  #main-nav ul li {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .container-box,
  .content-box {
    padding: 1rem 0.75rem;
  }

  h1, h2, h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: justify;
  }

  table {
    font-size: 0.85rem;
  }

  .footer-text,
  .footer-social {
    text-align: center;
    font-size: 0.8rem;
  }
}







