
/* Color Theme */
/* =========================================
   YELLOW + BLUE + WHITE COLOR THEME
========================================= */
:root {
  --teal: #0057D9;          /* Primary Blue */
  --cream: #FFFBE6;         /* Soft Yellow White */
  --orange-light: #FED700;  /* Primary Yellow */
  --orange-dark: #0047B3;   /* Deep Blue Hover */
  --white: #FFFFFF;         /* White */
  --text-dark: #1A1A1A;     /* Dark Text */
  --light-bg: #FFFFFF;      /* White Background */
}

/* Global Styles */
body {
  font-family: font-family: 'Manrope', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}

p {
  text-align: justify;
}

/* Header 
.school-header {
background:
linear-gradient(
135deg,
#FED700,
#fde871,
#faf1c0
);
  color: #FAF9EE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 2px solid #DCCFC0;
  margin-bottom: 0;
}

.school-header {
  text-align: right;
  margin-left: auto;
}

/*.school-logo {
  height: 80px;
  margin-right: 10px;
}

.institute-tag {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
  color: #FAF9EE;
}

/* Logo Glow 
.glow-logo {
  filter: drop-shadow(0 0 6px #FAF9EE);
  transition: transform 0.6s ease;
}
.glow-logo:hover {
  transform: scale(1.09);
}

/* Navigation Styling */
.main-nav {
  background:
  linear-gradient(
  135deg,
  #9fbaf2, 
  #2179fc
 
  );
  padding: 10px 0;
  border-top: 2px solid #DCCFC0;
  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(198, 172, 172, 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: #FAF9EE;
  font-weight: 600;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

/* 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-light);
}

/* Hover effect on dropdown icon */
.navbar-nav .nav-link i {
  color: #FAF9EE;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link:focus i {
  color: var(--orange-light);
}

/* Dropdown menu background color */
.dropdown-menu {
  background-color: var(--teal); 
  border: none;
}

/* Dropdown items inside the dropdown */
.dropdown-menu .dropdown-item {
  color: #FAF9EE;
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for dropdown items */
.dropdown-menu .dropdown-item:hover {
  background-color: var(--teal);     /* Keep blue background */
  color: #FED700 !important;         /* Yellow text */
}

/* College */
.college-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  color: #0057D9;
}

#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.2);
  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.3);
}

/* Map */
iframe.map {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 20px;
}

/* Footer */
footer {
  background:
  linear-gradient(
  135deg,
  #b4cdff,
   #2179fc
  );
  color: #FAF9EE;
  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(250, 249, 238, 0.15);
  border-radius: 50%;
  color: #FAF9EE;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-text a {
  color: #FED700;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Unified Hover Effect */
footer .social-icons a:hover,
.footer-text a:hover {
  color: #FAF9EE;
  transform: scale(1.1);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #FED700;
  color: #0057D9;
  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: #A2AF9B;
  color: #FAF9EE;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.about-link:hover {
  background-color: var(--orange-dark);
  color: #FAF9EE;
}

/* About College */
.container,
.box-container {

max-width:70rem;

padding:1.8rem;

margin:2rem auto;

background:
linear-gradient(
135deg,
#FFFFFF 0%,
#FFFBE6 45%,
#FFF3A0 100%
);

color:#0057D9;

border-left:
8px solid #FED700;

border-top:
1px solid rgba(0,87,217,.12);

border-right:
1px solid rgba(0,87,217,.12);

border-bottom:
1px solid rgba(0,87,217,.12);

border-radius:24px;

box-shadow:
0 12px 30px rgba(0,87,217,.10),
0 6px 14px rgba(254,215,0,.12);

font-family:inherit;

line-height:1.8;

word-wrap:break-word;

text-align:justify;

position:relative;

overflow:hidden;

transition:.35s ease;

}

/* Decorative architectural glow */

.container::before,
.box-container::before{

content:"";

position:absolute;

top:-70px;

right:-70px;

width:220px;

height:220px;

background:
radial-gradient(
circle,
rgba(254,215,0,.25),
transparent 70%
);

border-radius:50%;

}

/* Hover */

.container:hover,
.box-container:hover{

transform:
translateY(-6px);

box-shadow:
0 18px 40px rgba(0,87,217,.16),
0 10px 22px rgba(254,215,0,.16);

}

/* Mobile */

@media(max-width:768px){

.container,
.box-container{

margin:20px 12px;

padding:22px;

border-left:
6px solid #FED700;

border-radius:20px;

}

}

.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 #A2AF9B;
  outline-offset: 4px;
}

/* Courses */
/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #81a5fa;
  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 #DCCFC0;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
}

.staff-table th {
  background: #749ffb;
  font-weight: 600;
}

.staff-table tbody tr:nth-child(even) {
  background: #FAF9EE;
}

.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;
  border: 2px solid #0057D9;
}

.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 #DCCFC0;
    border-radius: 8px;
    padding: 0.5rem;
    background-color: #738bf4;
  }

  .staff-table td {
    position: relative;
    padding: 0.75rem 1rem 0.75rem 50%;
    text-align: center;
    border: none;
    border-bottom: 1px solid #eef988;
    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;
    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;
    text-align: center !important;
  }
  .staff-table td:nth-of-type(2)::before {
    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 #DCCFC0;
  border-radius: 20px;
  background: #FAF9EE;
  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 #DCCFC0;
}

#reach-us h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.6em;
  color: #A2AF9B;
}

.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: #7A8F72;
  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 #DCCFC0;
  border-radius: 20px;
  background: #FED700;
  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 #DCCFC0;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #ffffff;
}

.feedback-form button {
  padding: 0.7em 1.3em;
  font-size: 1rem;
  color:#FED700;  
   background-color:#0047B3;;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

.feedback-form button:hover {
  background-color: #7A8F72;
}

.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 Menu */

.hamburger {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;

    z-index: 1001;

    color: #0057D9 !important;   /* Blue */

    font-size: 36px;

    font-weight: bold;

    cursor: pointer;

    line-height: 1;
}

/* Hover */

.hamburger:hover{
    color:#FFFFFF !important;
}

  /* Warm white Home background in mobile menu */
  .nav-links.active li a.home {
    background-color: #FAF9EE;
    color: var(--teal) !important;
  }
}

/* Base hamburger styles */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  color: #FAF9EE;
  display: none;
}

/* Force hamburger lines to warm white */
.hamburger .menu-icon,
.hamburger .menu-icon::before,
.hamburger .menu-icon::after {
  background-color: #FAF9EE;
}

/* ==================== */
/* 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;
    
  }
}

  /* Popup base */
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 420px;
    height: 595px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px #FED700;
    z-index: 9999;
    overflow: hidden;
    transition: transform 0.5s ease;
  }

  /* Show popup with floating animation */
  .popup.show {
    transform: translate(-50%, -50%) scale(2);
    animation: pulse 1.5s ease forwards, float 4s ease-in-out infinite;
  }

  /* Popup image */
  .popup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }

  /* Close button */
  .close-btn {
    position: absolute;
    top: 8px;
    right: 15px;
    font-size: 30px;
    color: rgb(246, 224, 63);
    cursor: pointer;
    font-weight: bold;
    background: white;
    border-radius: 50%;
    padding: 0 10px;
  }

  .close-btn:hover {
    background: rgb(246, 224, 63);
    color: white;
  }

  /* Pulse Animation (when appearing) */
  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.05);
      opacity: 1;
    }
    70% {
      transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
    }
  }

  /* Floating Animation (infinite after appearing) */
  @keyframes float {
    0% {
      transform: translate(-50%, -50%) translateY(0px) scale(1);
    }
    50% {
      transform: translate(-50%, -50%) translateY(-10px) scale(1);
    }
    100% {
      transform: translate(-50%, -50%) translateY(0px) scale(1);
    }
  }

 /* Ministry / External Links Section */

.moe-section {

  background:
  rgba(255,255,255,0.95);

  border-left:
  8px solid #FED700;

  border-radius:20px;

  color:#111111;

  text-align:center;

  box-shadow:
  0 10px 24px rgba(0,87,217,.10);

  transition:
  all .35s ease;

  padding:20px;

}


/* Card Hover */

.moe-section:hover {

  transform:
  translateY(-6px);

  background:
  linear-gradient(
  135deg,
  #2179fc,
  #e8eaee
  );

  color:#FFFFFF;

  box-shadow:
  0 16px 30px rgba(0,87,217,.20);

}


/* Heading */

.moe-section h4{

  color:#0057D9;

  font-weight:700;

  transition:.3s;

}


/* Heading Hover */

.moe-section:hover h4{

  color:#FED700;

}


/* Link Area */

.moe-logo-link {

  display:flex;

  flex-direction:column;

  align-items:center;

  text-decoration:none;

  color:#0057D9;

  transition:
  transform .35s ease,
  color .35s ease;

}


/* Logo */

.moe-logo-link img {

  height:150px;

  width:auto;

  background:#FFFBE6;

  border-radius:14px;

  padding:8px;

  margin-bottom:10px;

  border:
  2px solid #FED700;

  transition:
  transform .35s ease,
  box-shadow .35s ease;

}


/* Logo Hover */

.moe-logo-link:hover img{

  transform:scale(1.04);

  box-shadow:
  0 10px 22px rgba(0,87,217,.18);

}


/* Text */

.moe-logo-link span {

  font-weight:600;

  font-size:14px;

  color:#0057D9;

}


/* Text Hover */

.moe-logo-link:hover span{

  color:#FED700;
}

 

