/* Color Theme */
:root {
  --teal: #03A6A1;
  --cream: #FFE3BB;
  --orange-light: #FFA673;
  --orange-dark: #FF4F0F;
  --white: #fff;
  --text-dark: #222;
  --light-bg: #fdfdfd;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

p {
  text-align: justify;
}

/* Header */
.school-header {
  background-color: var(--orange-light);        
  color: var(--white);  
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 2px solid #ccc;
  margin-bottom: 0;
}

.school-header .institute-tag {
  text-align: right;
  margin-left: auto;
}

.school-logo {
  height: 60px;
  margin-right: 10px;
}

.institute-tag {
  font-size: 15px; 
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  color: #333; 
}

/* Logo Glow */
.glow-logo {
  filter: drop-shadow(0 0 6px #fff);
  transition: transform 0.6s ease;
}
.glow-logo:hover {
  transform: scale(1.09);
}

/* Navigation Styling */
.main-nav {
  background-color: var(--teal);
  padding: 10px 0;
  border-top: 2px solid #eee;
  transition: top 0.3s ease, background-color 0.3s ease;
}

/* Change nav to fixed position once scrolled */
.main-nav.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  background-color: var(--teal);
}

/* Push page content down so it doesn’t jump up when navbar becomes fixed */
body.nav-scrolled {
  padding-top: calc(var(--main-nav-height, 60px));
}

/* Optional: Shadow for visual separation */
.main-nav.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links,
.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li a,
.navbar-nav .nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

/* Orange hover effect */
.nav-links li a:hover,
.nav-links li a.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--orange-dark);
}

/* Hover effect on dropdown icon */
.navbar-nav .nav-link i {
  color: var(--white);
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link:focus i {
  color: var(--orange-dark);
}


/* Dropdown menu background color */
.dropdown-menu {
  background-color: var(--teal);
  border: none;
}

/* Dropdown items inside the dropdown */
.dropdown-menu .dropdown-item {
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for dropdown items */
.dropdown-menu .dropdown-item:hover {
  background-color: var(--orange-dark);
  color: white;
}

/* College */
.college-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

#college-image {
  margin: 0 auto;
  padding: 30px 10px;
  max-width: 1400px;
  text-align: center;
}

#college-image img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  border-radius: 40px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#college-image img:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Map */
iframe.map {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 20px;
}

/* Footer */
footer {
  background-color: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 10px 5px;
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.6;
}

footer p {
  margin: 0 auto 10px;
  max-width: 800px;
  text-align: center;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

footer .social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-text a {
  color: var(--orange-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Unified Hover Effect */
footer .social-icons a:hover,
.footer-text a:hover {
  color: var(--white);
  transform: scale(1.1);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--orange-dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

/* more... in homepage */
.about-link {
  margin-top: 10px;
  display: inline-block;
  padding: 10px 10px;
  background-color: #03A6A1;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.about-link:hover {
  background-color: var(--orange-dark);
  color: #000; 
}

/* About College */
.container,
.box-container {
  max-width: 70rem;
  padding: 1.5rem;
  margin: 2rem auto 2rem;
  background-color: #ffffff;      
  color: #333333;                  
  border: 1px solid #CCCCCC;       
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: inherit;
  line-height: 1.6;
  word-wrap: break-word;
  text-align: justify;
}

.box-container h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: bold;
  text-align: center;
}

.box-container h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.box-container p {
  margin: 0 0 1rem;
}

.box-container ul {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.5em;
}

.box-container li {
  margin-bottom: 0.75em;
}

.box-container strong {
  color: inherit;
  font-weight: 600;
}

/* Optional: scale container slightly on focus for keyboard users */
.box-container:focus-within {
  outline: 3px solid #0055cc;
  outline-offset: 4px;
}

/* Courses */
/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.box-container table {
  margin: 0 auto;              
  border-collapse: collapse;  
}

/* Center text in all header and body cells */
.box-container table th,
.box-container table td {
  text-align: center;         
  vertical-align: middle;     
  padding: 0.75rem 0.5rem;    
}

/* (Optional) Add subtle separation between numeric intake values */
.box-container table td:nth-child(3) {
  font-weight: 500;
}

/* Teaching Staff */
.staff-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.staff-table th,
.staff-table td {
  padding: 0.75rem 0.5rem;
  border: 1px solid #dde;
  text-align: center;           
  vertical-align: middle;
  overflow: visible;
}

.staff-table th {
  background: #eef;
  font-weight: 600;
}

.staff-table tbody tr:nth-child(even) {
  background: #fbfbfd;
}

.staff-table th:nth-child(2),
.staff-table td:nth-child(2) {
  text-align: left;
}

.staff-table th.photo,
.staff-table td.photo {
  text-align: center;
}

.staff-photo {
  width: 100px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.staff-photo:hover {
  transform: scale(1.10);        
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
  z-index: 1;                    
}

/* Responsive mobile stacking */
@media (max-width: 600px) {
  .staff-table,
  .staff-table thead,
  .staff-table tbody,
  .staff-table th,
  .staff-table td,
  .staff-table tr {
    display: block;
    width: 100%;
  }

  /* Hide the desktop header */
  .staff-table thead { display: none; }

  .staff-table tr {
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #f9f9f9;
  }

  .staff-table td {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 50%;
    text-align: center; /* center all values by default */
    border: none;
    border-bottom: 1px solid #ddd;
    min-height: 40px;
    word-wrap: break-word;
  }
  .staff-table td:last-child {
    border-bottom: none;
  }

  /* Inject column labels on the left */
  .staff-table td::before {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: 45%;
    font-weight: 600;
    white-space: normal;
    text-align: left; /* labels appear left-aligned */
    font-size: 0.95rem;
    color: #333;
  }
  .staff-table td:nth-of-type(1)::before { content: "SL.No"; }
  .staff-table td:nth-of-type(2)::before { content: "Name"; }
  .staff-table td:nth-of-type(3)::before { content: "Designation"; }
  .staff-table td:nth-of-type(4)::before { content: "Qualification"; }
  .staff-table td:nth-of-type(5)::before { content: "Subject"; }
  .staff-table td:nth-of-type(6)::before { content: "Department"; }
  .staff-table td:nth-of-type(7)::before { content: "Photo"; }
  .staff-table td:nth-of-type(8)::before { content: "E‑Mail ID"; }

  /* Center only the Name value (not its label) */
  .staff-table td:nth-of-type(2) {
    padding-left: 1rem !important;   /* pull the name in from the right edge */
    text-align: center !important;    /* this centers the actual staff name */
  }
  .staff-table td:nth-of-type(2)::before {
    /* keep the “Name” label at its normal left spot */
    left: 1rem !important;
    transform: none !important;
    width: auto;
    text-align: left;
  }

  /* photo cell tweaks remain unchanged */
  .staff-table td.photo {
    text-align: center;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem;
  }
  .staff-table .staff-photo {
    width: 100px;
    height: auto;
    margin-top: 0.5rem;
    object-fit: cover;
    border-radius: 10px;
    text-align: center;
  }
}


/* Reach Us  */
.contact-section {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1em;
  border: 2px solid #e2edf1;
  border-radius: 20px;
  background: #fafcff;
  font-family: "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.contact-photo {
  margin: 0 auto 1rem;
  width: 160px;
  height: 160px;
  overflow: hidden;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 0; 
  display: block;
  border: 3px solid #e2edf1;
}


#reach-us h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.6em;
  color: #0b3d91;
}

.contact-section address {
  display: inline-block;  
  text-align: center; 
  font-style: normal;
  color: #333;
  line-height: 1.5;
  margin-bottom: 1em;
}

.contact-details {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
  min-width: 280px;
}

.contact-details dt {
  float: left;
  width: 120px;
  font-weight: 600;
}

.contact-details dd {
  margin: 0 0 0.75em 130px;
}

.contact-details a {
  color: #0573e8;
  text-decoration: none;
}

@media (max-width: 480px) {
  .contact-details dt,
  .contact-details dd {
    float: none;
    width: auto;
    margin-left: 0;
  }
}

/* Feedback */
.feedback-form {
  max-width: 480px;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #fdfdfd;
  font-family: sans-serif;
}

.feedback-form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.feedback-form legend {
  font-size: 1.3rem;
  margin-bottom: 1em;
  font-weight: bold;
}

.feedback-form .form-group {
  margin-bottom: 1em;
}

.feedback-form label {
  display: block;
  margin-bottom: 0.5em;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.feedback-form button {
  padding: 0.7em 1.3em;
  font-size: 1rem;
  color: #fff;
  background-color: #0b3d91;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.feedback-form button:hover {
  background-color: #FF4F0F;
}

.submit-center {
  display: block;   
  margin: 0em auto; 
}

/* ==================== */
/* Responsive Navigation */
@media screen and (max-width: 991px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--teal);
    margin-top: 0.5rem;
    padding: 10px 20px;
    width: 100%;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  /* Show the hamburger toggle */
  .hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
  }

  /* White Home background in mobile menu */
  .nav-links.active li a.home {
    background-color: var(--white);
    color: var(--teal) !important;
  }
}

/* Base hamburger styles */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  display: none;
}

/* Force hamburger lines to white */
.hamburger .menu-icon,
.hamburger .menu-icon::before,
.hamburger .menu-icon::after {
  background-color: var(--white);
}

/* ==================== */
/* Center Branding Only on Mobile (<= 768px) */
@media screen and (max-width: 768px) {
  .school-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .school-header .brand-wrap {
    width: 100%;
    text-align: center !important;
  }

  .school-logo,
  .college-name,
  .institute-tag {
    margin-left: auto;
    margin-right: auto;
  }
}
