@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
/* Reset default list styles */
/*header and navbar*/
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Top Bar */
.top-bar {
  background: #222;
  color: #fff;
  padding: 6px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar .left i {
  margin-right: 5px;
}

.top-bar .right a {
  color: #fff;
  margin-left: 10px;
  text-decoration: none;
}

.top-bar .right .enquiry {
  background: #f26722;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 15px;
}

/* Middle Header */
.middle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px; /* reduced vertical padding */
  background: #fff;
  flex-wrap: wrap;
  text-align: center;
}


.middle-header .logo {
  width: 100px;
  height: auto;
}

.college-title h2 {
  color: #d13434;
  margin-bottom: 5px;
}

.college-title p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* Navbar */
.navbar {
  background-color: #6c9189;
}

.main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: block;
  padding: 16px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.main-menu > li:hover > a {
  background-color: #1f4363;
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #6c9189;
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 999;
}

.dropdown li a {
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown li a:hover {
  background-color: #1f4363;
}

.has-dropdown:hover .dropdown {
  display: flex;
}
/* Fix Dropdown Visibility */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #6c9189;
  min-width: 200px;
  flex-direction: column;
  z-index: 1000;
}

/* Show dropdown only on hover */
.has-dropdown:hover .dropdown {
  display: flex;
}

/* Reset dropdown menu styles */
.dropdown li {
  list-style: none;
}

.dropdown li a {
  padding: 12px 16px;
  display: block;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown li a:hover {
  background-color: #1f4363;
}

/* Fix top-level nav items */
.navbar .main-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  background-color: #6c9189;
}

.navbar .main-menu > li {
  position: relative;
}

.navbar .main-menu > li > a {
  padding: 16px 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: block;
}

.navbar .main-menu > li:hover > a {
  background-color: #1f4363;
}
/* Main dropdown */
.dropdown {
  display: none;
  position: absolute;
  background: rgb(110, 184, 187);
  list-style: none;
  padding: 0;
  margin: 0;
}

li:hover > .dropdown {
  display: block;
}

/* Sub dropdown */
.dropdown-sub {
  display: none;
  position: absolute;
  left: 100%;  /* open to the right */
  top: 0;
  background: rgb(85, 180, 172);
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown li:hover > .dropdown-sub {
  display: block;
}
/*academics*/



/* Optional: styling for the hero and register form */
.hero {
  position: relative;
  text-align: center;
}

.background-img {
  width: 100%;
  height: auto;
}






.top-bar {
  background-color: #e74c3c;
  color: white; /* optional: make text white for contrast */
  padding: 10px 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar p {
  margin: 0;
}
.top-bar a {
  color: white;
  text-decoration: underline;
}

.top-bar {
  background-color: #7d1f1f; /* Dark red */
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.top-links a {
  color: white;
  margin-right: 10px;
  text-decoration: none;
}

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

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon {
  font-size: 16px;
  margin-left: 5px;
  color: white;
  cursor: pointer;
}

.virtual-tour {
  background-color: white;
  color: #7d1f1f;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: slideshow 30s infinite;
  z-index: -1;
}

@keyframes slideshow {
  0%    { background-image: url('Campus.avif'); }
  16%   { background-image: url('polytechnicimage1.jpeg'); }
  32%   { background-image: url('polytechnicimage2.jpeg'); }
  48%   { background-image: url('polytechnicimage3.jpeg'); }
  64%   { background-image: url('polytechnicimage4.jpg'); }
  80%   { background-image: url('polytechnicimage5.jpg'); }
  100%  { background-image: url('Campus.avif'); }
  100%  { background-image: url(academicrecordimages/about1.jpg); }
  100%  { background-image: url(academicrecordimages/about2.jpg); }
}

.register-form {
  position: absolute;
  top: 45%; /* Moved slightly up from center */
  right: 50px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  width: 350px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 20px;
}

.left-column {
    width: 50%;
    height:auto;
}

.right-column {
    width: 70%;
    background-color:#f9f9f9 ;
     border: 1px solid #ccc;
    color: #bebcbc(92, 92, 92);
    padding: 20px;
    border-radius: 10px;
}

.section {
    border: 1px solid #ccc;
    padding: 53px;
    margin-bottom: 50px;
    background-color: #f9f9f9;
}




.section h2 {
    color: #b30000;
    margin-bottom: 30px;
}

.section p {
    color: #2f577e;
    margin: 20px 0;
}

.right-column h2,
.right-column h3 {
    margin-top: 0;
}

.chairman-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    float: left;
    margin: 0 15px 15px 0;
}
.our-institute {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      padding: 40px;
      background-color: #a8a1a1;
    }

    .institute-left {
      width: 50%;
      position: relative;
      height: 600px;
      overflow: hidden;
      border-radius: 20px;
    }

    .slide {
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10px;
    }

    .slide.active {
      display: block;
    }

    .institute-right {
      width: 45%;
      padding: 20px;
    }

    .institute-right h2 {
      font-size: 28px;
      margin-bottom: 15px;
    }

    .institute-right ul {
      list-style: square;
      padding-left: 20px;
      margin-top: 10px;
    }

    .read-more {
      display: inline-block;
      margin-top: 15px;
      color: white;
      background: #007BFF;
      padding: 10px 15px;
      text-decoration: none;
      border-radius: 5px;
    }
    .facilities-section {
  padding: 40px;
  background-color: #f4f4f4;
  text-align: center;
}

.facilities-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.facilities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.facility-card {
  background: rgb(255, 252, 252);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 280px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.facility-card:hover {
  transform: scale(1.02);
}

.image-slider {
  position: relative;
  height: 180px;
}

.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
#student-corner {
    padding: 20px;
    font-family: Arial, sans-serif;
  }

  .student-section {
    margin-bottom: 30px;
  }

  .student-section img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 8px;
  }

  .student-section h3 {
    color: #003366;
  }

  .student-section p {
    font-size: 16px;
    line-height: 1.5;
  }
  .student-corner-section {
  padding: 40px;
  background-color: #f0f8ff;
  text-align: center;
}

.student-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.student-section img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 15px 0;
  border-radius: 8px;
}
#courses .scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

#courses .scroll-container::-webkit-scrollbar {
  height: 10px;
}
#courses .scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

#courses .item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 280px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

#courses .thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#courses h2 {
  margin: 10px 0;
  font-size: 18px;
  color: #260db4;
}



#courses .scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

#courses .scroll-container::-webkit-scrollbar {
  height: 8px;
}
#courses .scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

#courses .item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 280px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#courses .thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#courses h2 {
  margin: 10px 0;
  font-size: 18px;
  color: #333;
}

 
  /* Contact Section */
.contact-section {
  background: #f9f9f9;
  padding: 50px 20px;
}

.contact-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form, .contact-info {
  flex: 1;
  min-width: 300px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form form {
  display: flex;
  flex-direction: column;
}
.contact-info {
  flex: 1;
  min-width: 300px;
  background: #8cbafa; /* Light blue */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form h2,
.contact-info h2 {
  margin-bottom: 20px;
  color: #0047ab;
}

.contact-form input,
.contact-form select {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 10px;
  background-color: #0047ab;
  color: #e7dfdf;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-info h3 {
  margin-top: 30px;
  color: #333;
}

.contact-info p {
  margin: 10px 0;
  color: #555;
}
.section-title {
  font-size: 32px;
  font-weight: bold;
}

.section-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.placement-section {
  text-align: center;
  padding: 50px 50px;
  background-color: #f5f5f5;
  height: auto;
  width:auto;
}

.main-title {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

.placement-info {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.placement-info a {
  color: #007bff;
  text-decoration: none;
}

.placement-subtitle, .recruiters-title {
  font-size: 28px;
  margin: 40px 0 20px;
  font-weight: bold;
}

.placement-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.placement-images img,
.recruiters-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recruiters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
}
.social-icons {
  text-align: right;
  padding-right: 30px;
  margin-top: 10px;
}

.social-icons a {
  margin-left: 10px;
}
.top-left p {
  margin: 0;
  padding: 8px 20px;
  background: #f0f0f0;
  font-size: 14px;
  text-align: left;
}

.top-left a {
  color: #003366;
  text-decoration: none;
  margin: 0 8px;
}

.top-left a:hover {
  text-decoration: underline;
}
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #5b5a5c;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.dropdown-content, .submenu-content, .semester-dropdown {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.submenu {
  position: relative;
  padding: 10px;
  background-color: #f9f9f9;
}

.submenu:hover .submenu-content {
  display: block;
  left: 100%;
  top: 0;
  position: absolute;
}

.semester-dropdown {
  margin-left: 15px;
}

.branch {
  padding: 5px;
  cursor: pointer;
  color: #333;
}

.branch:hover {
  background-color: #eee;
}

.semester-dropdown a {
  display: block;
  padding: 5px 10px;
  color: #000;
  text-decoration: none;
}

.semester-dropdown a:hover {
  background-color: #ddd;
}
.quick-links-row {
  display: flex;
  justify-content: left;
  gap: 5px;
  background-color: #f4f4f4;
  padding: 5px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  flex-wrap: wrap;
}

.quick-links-row a {
  text-decoration: none;
  color: #121416;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid #f1f6fa;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.quick-links-row a:hover {
  background-color: #9b3e31;
  color: #fc8686;
}
.facilities-section {
  padding: 40px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}
.facilities-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #1f1f1f;
}


.facility-student-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

.facility-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.image-slider img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: none;
}

.image-slider img:first-child {
  display: block;
}

.facility-card h3 {
  margin: 5px 0;
  font-size: 30px;
}

.students-voice-box {
  background-color: #7c7b7b;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.students-voice-box h3 {
  margin-bottom: 15px;
  font-size: 20px;
}


.students-voice-box {
  background-color: #0f1c2f;
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 1s ease;
}
.testimonial {
  display: none;
  padding: 20px;
  border-radius: 10px;
}

.testimonial.active {
  display: block;
}

.student-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.student-info img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-top: 10px;
}

/* Different background colors for each student */
.voice-bg-1 { background-color: #fce4ec; } /* Light pink */
.voice-bg-2 { background-color: #8acbfa; } /* Light blue */
.voice-bg-3 { background-color: #cdfad1; } /* Light green */

.student-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  margin-bottom: 10px;
}
.student-info span {
  font-weight: bold;
  font-size: 16px;
}

.register-form {
  background: rgba(255,255,255,0.9);
  padding: 20px;
  border-radius: 10px;
  max-width: 200px;
  position: absolute;
  top: 20%;
  right: 5%;
  z-index: 5;
}

.slide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.slide-caption {
  margin-top: 4px;
  font-size: 16px;
  text-align: center;
  font-weight: 500;
  color: #0e0d0d;
}

  .recruiter-section {
    background: #fff;
    padding: 30px 10px;
  }

  .section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
  }

  .slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .slider-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
  }

  .slider-track img {
    height: 80px;
    object-fit: contain;
  }

  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  .placement-section {
  background: #f8f8f8;
  padding: 40px 10px;
  text-align: center;
}

.main-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.placement-subtitle {
  font-size: 22px;
  margin-bottom: 30px;
}

.placement-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.placement-slider-track {
  display: flex;
  gap: 40px;
  animation: slideImages 30s linear infinite;
  width: max-content;
}

.placement-slider-track img {
  height: 200px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes slideImages {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.logo img {
  height: 120px;
  width: 120px;
  border-radius: 50%;
}

.logo span {
  font-size: 22px; /* Increase this value if you want it bigger */
  font-weight: bold;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}
.campus-highlights {
  width: 300px;
  height: 350px;
  background-color: rgba(253, 248, 248, 0.95);
  padding: 0px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 3%;
  right: 2%;
  z-index: 10;
  overflow: hidden;
}
.campus-highlights h3 {
  font-size: 30px;
  margin: 0;
  padding: 2px 0;
  text-align: center;
  color: #7d1f1f;
  line-height: 1;
}

#admission-swiper {
  margin-top: 0px;
  padding-top: 0px;
}
#admission-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
#admission-swiper .swiper-wrapper {
  height: calc(100% - 50px); /* allows space for heading */
}

.admission-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

/* Safe base swiper styles */
.swiper {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .mySwiper {
    height: 200px;
  }
}
.slider-bg {
  background-image: url('your-bg.jpg'); /* Replace with your actual image */
  background-size: cover;
  background-position: center;
  padding: 4rem 2 3rem; /* ⬅ increased top padding */
  margin-top: 2rem;     /* ⬅ added space from the section above */
  overflow: hidden;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  gap: 1.5rem;
}

.slide-card {
  flex: 0 0 auto;
  width: 200px;
  height: 160px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-icon {
  font-size: 2rem;
  color: #4e73df;
  margin-bottom: 0.5rem;
}

.slide-card h3 {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

/* Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.bg1 { background: linear-gradient(135deg, #ffe5ec, #ffc2d1); }
.bg2 { background: linear-gradient(135deg, #e0f7fa, #b2ebf2); }
.bg3 { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.bg4 { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.bg5 { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }
.bg6 { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.bg7 { background: linear-gradient(135deg, #e1f5fe, #b3e5fc); }
.bg8 { background: linear-gradient(135deg, #fbe9e7, #ffccbc); }
/*bottom line*/
body {
  overflow-x: hidden;
}
.quick-links-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #f7f7f8;
  color: rgb(17, 15, 15);
  padding: 10px 15px;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #eee;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #f1f1f5;
}
.sub-dropdown {
  position: relative;
}

.sub-dropdown-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

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

.sub-dropdown a {
  white-space: nowrap;
}
.dropdown-content, .sub-dropdown-content, .sub-sub-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 220px;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-content,
.sub-dropdown:hover .sub-dropdown-content,
.sub-sub-dropdown:hover .sub-sub-dropdown-content {
  display: block;
}

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

.sub-dropdown-content, .sub-sub-dropdown-content {
  left: 100%;
  top: 0;
}
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #4CAF50;
  color: rgb(105, 132, 252);
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  font-size: 16px;
  transition: visibility 0s, opacity 0.5s ease-in-out;
  opacity: 0;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}
/* Our Courses Swiper Only */
.swiper-courses {
  width: 100%;
  padding: 40px 0;
}

.swiper-courses .swiper-slide {
  width: 280px !important;
  background: #fff;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: 0 15px;
}

.swiper-courses .swiper-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.swiper-courses .swiper-slide h3 {
  font-size: 18px;
  margin: 10px;
  color: #131214;
}

.swiper-courses .swiper-slide:hover {
  border: 5px solid brown;
  transition: border 0.3s ease;
}

.swiper-courses .swiper-pagination-bullet-active {
  background: brown;
}

.swiper-courses .swiper-button-next,
.swiper-courses .swiper-button-prev {
  color: brown;
}
/* ---------------- CLEAN MOBILE RESPONSIVENESS ---------------- */
@media (max-width: 768px) {
  /* ✅ Top Action Row - Grid: 3 buttons per row */
  .top-action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 per row */
    gap: 10px;
    padding: 10px;
    background-color: #7d1f1f;
  }

  .top-action-row a {
    background-color: #ffffff;
    color: #7d1f1f;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .top-action-row a:hover {
    background-color: #e0e0e0;
  }

  /* Header */
  .main-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .main-header .logo img {
    height: 80px;
    width: 80px;
  }

  /* Navbar */
  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .navbar ul li a {
    font-size: 14px;
    padding: 5px;
  }

  /* Quick Links (3 per row) */
  /* Default: horizontal layout for desktop */
.quick-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  max-width: 960px;
}

.quick-links-row a {
  padding: 10px 15px;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  border-radius: 5px;
  text-align: center;
}

/* ✅ For mobile: 3 items per row */
@media (max-width: 768px) {
  .quick-links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .quick-links-row a {
    font-size: 14px;
    padding: 10px;
  }
}

/* Smaller phones: 2 per row */
@media (max-width: 480px) {
  .quick-links-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-row a {
    font-size: 13px;
    padding: 8px;
  }
}


  /* Admission Updates */
  .campus-highlights {
    width: 30%;
    height: auto;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
  }

  .campus-highlights h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .admission-slide-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 180px;
    border-radius: 5px;
  }

  /* Swiper Courses */
  .swiper-courses .swiper-slide {
    width: 50% !important;
    margin: 10px auto;
  }

  .swiper-courses .swiper-slide img {
    height: 140px;
    object-fit: cover;
  }

  .swiper-courses .swiper-slide h3 {
    font-size: 16px;
  }

  /* Facilities */
  .facilities-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .facility-card {
    width: 90% !important;
    margin: auto;
  }

  .facility-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Register / Contact / Footer */
  .register-form,
  .student-section,
  .left-column,
  .right-column,
  .contact-container {
    width: 90% !important;
    margin: 15px auto;
  }

  .right-column img.chairman-img {
    max-width: 100%;
    height: auto;
  }

  footer > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer iframe {
    width: 90% !important;
    height: 200px !important;
  }

  .top-bar,
  .top-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* 📱 Ultra-small screens (mobiles < 480px) */
@media (max-width: 480px) {
  .top-action-row {
    grid-template-columns: repeat(2, 1fr); /* fallback to 2 per row */
  }

  .top-action-row a {
    font-size: 12px;
    padding: 8px;
  }

  .quick-links-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-row a {
    font-size: 13px;
    padding: 6px;
  }

  .campus-highlights h3 {
    font-size: 14px;
  }

  .swiper-courses .swiper-slide h3 {
    font-size: 14px;
  }

  .main-header .logo img {
    height: 70px;
    width: 70px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}
/* 🔔 Register Now Popup */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 25px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.popup-content input,
.popup-content select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.popup-content button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ✅ Responsive adjustments */
@media (max-width: 480px) {
  .popup-content {
    padding: 15px;
    font-size: 14px;
  }

  .popup-content input,
  .popup-content select,
  .popup-content button {
    font-size: 14px;
    padding: 8px;
  }

  .popup-content .close {
    top: 5px;
    right: 10px;
    font-size: 20px;
  }
}
/* 🌐 Responsive Map in Footer */
footer iframe {
  width: 100%;
  max-width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px;
  display: block;
  margin: auto;
}

/* Smaller height on small devices */
@media (max-width: 768px) {
  footer iframe {
    height: 200px;
  }
}

@media (max-width: 480px) {
  footer iframe {
    height: 180px;
  }
}
/*courses*/
.courses-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.section-title {
  font-size: 28px;
  color: #0d3559;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0d3559;
  margin: 10px auto 0;
}

.courses-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.course-box {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px 15px;
  width: 250px;
  transition: transform 0.3s ease, background-color 0.3s;
  border-radius: 8px;
  cursor: pointer;
}

.course-box img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.course-box p {
  font-weight: 600;
  color: #0d3559;
  margin: 0;
}

.course-box:hover {
  background-color: #cfdcd9;
  transform: translateY(-8px);
}
/*facilities like pc*/
.facilities-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.section-title {
  font-size: 28px;
  color: #0d3559;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0d3559;
  margin: 10px auto 0;
}

.facilities-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.facility-box {
  width: 140px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.facility-box:hover {
  transform: translateY(-8px);
}

.icon-circle {
  width: 120px;
  height: 120px;
  background-color: #cfdcd9;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  transition: background-color 0.3s;
}

.facility-box:hover .icon-circle {
  background-color: #cfbfb6;
}

.icon-circle img {
  width: 60px;
  height: auto;
}

.facility-box p {
  font-weight: 600;
  color: #0d3559;
  margin: 0;
  font-size: 15px;
}

/*Departments*/
/* Base dropdown styling */
.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  background: #6c9189;
  padding: 0;
  list-style: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.has-dropdown:hover > .dropdown {
  display: block;
}

/* Submenu styling */
.has-submenu > .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #0f9191;
  list-style: none;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.has-submenu:hover > .submenu {
  display: block;
}

/* Menu links */
.dropdown li, .submenu li {
  position: relative;
}
.dropdown a, .submenu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown a:hover, .submenu a:hover {
  background: #844a6c;
  color: #fff;
}
/*facility new*/
.facilities-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}

.facility-box {
  padding: 20px;
  border-radius: 10px;
  color: white;
  transition: transform 0.3s ease;
}

.facility-box:hover {
  transform: scale(1.05);
}

.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

/* Different colors for each card */
.color1 .icon-circle { background-color: #e74c3c; } /* Red */
.color2 .icon-circle { background-color: #2980b9; } /* Blue */
.color3 .icon-circle { background-color: #27ae60; } /* Green */
.color4 .icon-circle { background-color: #f39c12; } /* Yellow-Orange */
.color5 .icon-circle { background-color: #8e44ad; } /* Purple */
.color6 .icon-circle { background-color: #d35400; } /* Dark Orange */
.color7 .icon-circle { background-color: #16a085; } /* Teal */
.color8 .icon-circle { background-color: #c0392b; } /* Deep Red */
/*new courses*/
.courses-section {
  text-align: center;
  padding: 50px 20px;
  background: #f8f8f8;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.course-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card p {
  margin-top: 10px;
  font-size: 16px;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto;
  color: #fff;
}

/* Different Background Colors for Cards */
.computer { background-color: #2196F3; }
.civil { background-color: #4CAF50; }
.entc { background-color: #FF9800; }
.mechanical { background-color: #9C27B0; }

/* Circle Colors matching Card Colors */
.computer .icon-circle { background: #1976D2; }
.civil .icon-circle { background: #388E3C; }
.entc .icon-circle { background: #F57C00; }
.mechanical .icon-circle {background:#9C27B0 ;}