/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* Navigation */
nav {
  background-color: #003957;
  color: white;
  padding: 0.2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  ;
  align-items: center;
}

/* nav .logo {
    font-size: 0.5rem;
    font-weight: bold;
  } */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  filter: invert(1);
  height: 100px;
  width: auto;
  object-fit: contain;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffd700;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px;
}

.nav-links {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #48a4a6;
    position: absolute;
    top: 99px;
    right: 0;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
    text-align: center;
  }

  nav ul {
    gap: 1rem;
  }

  .nav-links li {
    padding: 0px 31px;
    border-radius: 14px;
    border: 2px solid whitesmoke;
  }

  .menu-toggle {
    display: flex;
    cursor: pointer;
  }
}

/* Header */


.afterheader {
  background: url('images/main.jpg') no-repeat center center/cover;
  height: 432px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.full-banner {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.afterheader h1 {
  font-size: 2.5rem;
  color: #b9f1e6;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 10px;
}

.afterheader p {
  font-size: 1.3rem;
  background-color: rgba(0, 0, 0, 0.5);
}

.reg{
  display: flex;
    justify-content: center;
    margin: 1rem;
}
.regbtn{
  padding: 22px;
}

.regbtn a{
  text-decoration: none;
  color: black;
}
.btn {
  display: flex;
  margin: 1rem;
  padding: 10px 25px;
  border-radius: 30px;
  background-color: #b4600e;
  cursor: pointer;
}

.btn a {
  text-decoration: none;
  color: white;
}

/* Sections */
section {
  padding: 24px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  color: #f8a507;
  text-align: center;
  margin-bottom: 3rem;
}

.welcome-message {
  /* #54d4e5 */
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(to bottom right, #92f2ff, #ffffff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  text-align: center;
  line-height: 1.8;
  border-radius: 21px;
}

.welcome-message h2 {
  color: #004d40;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.welcome-message p {
  font-size: 1.1rem;
  color: #333;
  white-space: pre-line;
}

/* vision-mision */
.vision,
.mission {
  margin: 1rem auto;
  padding: 0rem;
  text-align: center;
  line-height: 1.8;
}

.vision h3,
.mission h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.vision p,
.mission p {
  font-size: 1.1rem;
  color: #333;
  white-space: pre-line;
}

#para {
  font-weight: bold;
  color: #003957;
  text-align: center;
  font-size: 1.1rem;
}

/* Carousel */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: none;
  scroll-snap-align: start;
  position: relative;
  min-width: 90%;
  height: 415px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.carousel-item .text {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2rem;
  width: 100%;
  border-radius: 0 0 10px 10px;
}

/* Flipboxes */
.flip-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.flip-box {
  background-color: transparent;
  perspective: 1000px;
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 200px;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.flip-box-front {
  gap: 2.4rem;
  background-color: #72eeff;
  display: flex;
  flex-direction: column;
}

.flip-box-back {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #003957;
  color: white;
  transform: rotateY(180deg);
}

/* Director Grid */
.board-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.5rem;
  justify-items: center;

}

.board-member {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.board-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.board-member:hover {
  transform: translateY(-15px);
}

.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.info-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  font-size: 14px;
}

.image-container:hover .info-overlay {
  transform: translateY(0);
}


/* Schemes Section */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.scheme-block {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.scheme-block img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.image-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-container {
  position: relative;
  width: 100%;
  /* height: auto; */
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* width: 300%; 3 images */
}

.carousel-slide img {
  width: 100%;
  height: auto;
  /* width: 100%;
  height: 400px; */
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

/* Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}


/* Container layout */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

/* Info Boxes */
.contact-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.infohead{
  margin: 0.4rem 0;
    text-align: left;
    color: #00695c;
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
}

.info-box {
 background-color: #65f8ff;
    padding: 2rem;
    border-radius: 8px;
}

.info-box h3 {
  margin: 0 0 0.5rem;
  color: #000000;
}

/* Form */
form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

#contactForm h2 a{
  color: inherit;
  text-decoration: none;
}
input,
textarea,
select,
button {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background-color: #e39732;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #00695c;
}
/* Honeypot field (hidden from real users) */
  .hidden-field {
    display: none;
  }
/* Google Map */
.map-container {
  margin-top: 2rem;
}

iframe {
  border-radius: 8px;
}

/* Responsive 
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
}

*/

/*Gallery styling*/

gallery-page {
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  color: #333;
  padding-bottom: 40px;
}

.gallery-title {
  text-align: center;
  margin-top: 40px;
  font-size: 2.5em;
  color: #2a9794;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 42px;
  padding: 40px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  /* display: flex;
  flex-direction: column; */
  text-align: center;
  justify-content: center;
}

.caption {
  margin: 10px 0;
  font-size: 1.1em;
  color: #f78942;
}

.gallery-item img {
  width: 100%;
  height: 340px;
  display:block;
  object-fit:cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox:target {
  display: flex;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2em;
  color: white;
  text-decoration: none;
}

.close-btn:hover {
  color: #f66;
}

/* Footer */

footer {
  margin-top: 55px;
  font-family: serif;
  display: flex;
  flex-direction: column;
}

.footer-top {
  position: relative;
  background-image: url('images/ffootback.jpeg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 20px;
  z-index: 0;
  overflow: hidden;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  /* Adjust opacity as needed */
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 30px;
}

.footer-box {
  flex: 1 1 250px;
  min-width: 200px;
}


.footer-box h2,
.footer-box h3 {
  text-align: left;
  margin-bottom: 10px;
}

.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-box ul li {
  margin-bottom: 5px;
}

.footer-box a {
  color: white;
  text-decoration: none;
}

.footer-box a:hover {
  text-decoration: underline;
}

.footimg img {
  filter: invert(1);
  height: 100px;
  width: auto;
}

.footer-bottom {
  background-color: black;
  color: white;
  text-align: center;
  padding: 30px 0;
  font-size: 14px;
}

.floating-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 250px;
  background: #fff;
  color: #333;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  font-family: 'Arial', sans-serif;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-popup p {
  margin: 0 0 10px;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popup-btn {
  text-decoration: none;
  padding: 8px 12px;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.popup-btn.whatsapp {
  background: #25D366;
  color: white;
}

.popup-btn.contact {
  background: #007bff;
  color: white;
}

.popup-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.popup-close {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #888;
}
/* 
@media (max-width: 500px) {
  .floating-popup {
    width: 90%;
    right: 5%;
    bottom: 15px;
  }
} */

/* Overlay */
.internship-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Popup Box */
.internship-popup-box {
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: internshipPopupFade 0.4s ease;
}

/* Animation */
@keyframes internshipPopupFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close Button */
.internship-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

/* Highlight Badge */
.internship-popup-badge {
  background: #ff9800;
  color: white;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Title */
.internship-popup-box h2 {
  color: #333;
  margin-bottom: 10px;
}

/* Text */
.internship-popup-box p {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

/* Button */
.internship-popup-btn {
  display: inline-block;
  background: #1a73e8;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
}

.internship-popup-btn:hover {
  background: #0c5ad8;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .internship-popup-box {
    padding: 20px;
  }
  .internship-popup-box h2 {
    font-size: 20px;
  }
}

