/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: #0B1F3A;
  overflow-x: hidden;
  background: #fff;
}
/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  transition: background 0.3s ease, box-shadow 0.3s;
  z-index: 1000;
  padding: 1rem 5%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Light mode (default) - dark text */
.navbar .logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #0B1F3A;  /* Dark navy for light background */
}

.navbar .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar .nav-links a {
  text-decoration: none;
  color: #0B1F3A;  /* Dark navy for light background */
  font-weight: 500;
  transition: 0.2s;
}

.navbar .nav-links a:hover {
  color: #F4B400;
}

.navbar .hamburger i {
  color: #0B1F3A;  /* Dark color for hamburger */
  font-size: 1.8rem;
  cursor: pointer;
}

/* Scrolled state - dark background with white text */
.navbar.scrolled {
  background: #0B1F3A;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar.scrolled .logo {
  color: white;  /* White logo on navy */
}

.navbar.scrolled .nav-links a {
  color: white;  /* White links on navy */
}

.navbar.scrolled .nav-links a:hover {
  color: #F4B400;  /* Yellow hover stays */
}

.navbar.scrolled .hamburger i {
  color: white;  /* White hamburger on navy */
}

/* Right section layout */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hire Me button - consistent in both states */
.btn-nav-hire {
  background: #F4B400;
  color: #0B1F3A;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn-nav-hire:hover {
  background: #0B1F3A;
  color: #F4B400;
  border: 1px solid #F4B400;
}

/* Mobile menu */
.hamburger {
  display: none;
}

/* Mobile responsive */
@media (max-width: 992px) {
  .hamburger {
    display: block;
  }
  
  .nav-right {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 250px;
    background: #0B1F3A;
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s;
    border-radius: 0 0 10px 0;
    gap: 1rem;
  }
  
  .nav-right.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
  }
  
  /* Mobile menu links always white */
  .nav-right .nav-links a {
    color: white;
  }
  
  .navbar:not(.scrolled) .nav-right.active .nav-links a {
    color: white;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
}
.hero-container { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; width: 100%; }
.hero-left { flex: 1 1 45%; }
.hero-right { flex: 1 1 45%; position: relative; text-align: center; }
.big-name { font-size: 3.5rem; font-weight: 700; color: #0B1F3A; line-height: 1.2; }
.typing-subtitle { font-size: 1.5rem; color: #F4B400; font-weight: 500; min-height: 3rem; }
.hero-desc { margin: 1.5rem 0; color: #333; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.btn { padding: 0.8rem 1.8rem; border-radius: 30px; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.3s; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: #F4B400; color: #0B1F3A; }
.btn-primary:hover { background: #0B1F3A; color: #F4B400; border-color: #F4B400; }
.btn-secondary { background: #0B1F3A; color: white; border: 2px solid #F4B400; }
.btn-secondary:hover { background: #F4B400; color: #0B1F3A; }
.btn-outline { border: 2px solid #0B1F3A; color: #0B1F3A; }
.btn-outline:hover { background: #0B1F3A; color: white; }
.social-icons a { display: inline-block; margin-right: 1rem; color: #0B1F3A; font-size: 1.5rem; transition: 0.2s; }
.social-icons a:hover { color: #F4B400; transform: translateY(-3px); }
.image-wrapper { position: relative; display: inline-block; }
.image-wrapper img { width: 100%; max-width: 450px; border-radius: 20px; box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
.floating-badge { position: absolute; bottom: 20px; right: 20px; background: #F4B400; color: #0B1F3A; font-weight: 700; padding: 0.8rem 1.5rem; border-radius: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); animation: float 3s infinite; }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 2rem; animation: bounce 2s infinite; }
.scroll-down a { color: #0B1F3A; }
@keyframes bounce { 0%,20%,50%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

/* Counter Section with parallax */
.counter-section { background: #0B1F3A; padding: 4rem 5%; background-attachment: fixed; background-image: linear-gradient(rgba(11,31,58,0.9), rgba(11,31,58,0.9)), url('https://placehold.co/1920x600/0B1F3A/white?text=parallax'); background-size: cover; background-position: center; }
.counter-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; color: white; }
.counter-item .counter { font-size: 3rem; font-weight: 700; color: #F4B400; }
.counter-item p { font-size: 1.2rem; margin-top: 0.5rem; }

/* Section styles */
.section { padding: 80px 5%; }
.bg-light { background: #f9f9f9; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: #0B1F3A; }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-left img { width: 100%; border-radius: 20px; box-shadow: 0 15px 25px rgba(0,0,0,0.1); }
.bullet-list { list-style: none; margin-top: 1.5rem; }
.bullet-list li { margin-bottom: 0.8rem; font-size: 1.1rem; }

/* Qualifications cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; }
.card { background: white; padding: 2rem; border-radius: 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: all 0.3s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.15); background: #0B1F3A; color: white; }
.card p { color: inherit; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; margin-bottom: 2rem; }
.service-card { background: white; padding: 2rem 1.5rem; border-radius: 20px; text-align: center; box-shadow: 0 10px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: scale(1.05); box-shadow: 0 20px 30px rgba(0,0,0,0.15); }
.service-card i { font-size: 3rem; color: #F4B400; margin-bottom: 1rem; }
.service-cta { text-align: center; }

/* Projects */
/* .project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2rem; }
.project-card { position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); height: 250px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11,31,58,0.9); color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.4s; padding: 1rem; text-align: center; }
.project-card:hover .overlay { opacity: 1; }
.project-card:hover img { transform: scale(1.1); } */
/* Projects - Modern Cards with Bottom Details */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0;
}

.project-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(11, 31, 58, 0.1);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(244, 180, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 45px rgba(244, 180, 0, 0.2);
  border-color: #F4B400;
}

/* Image Container */
.project-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

/* Image Overlay with Icon */
.project-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.2) 0%, rgba(11, 31, 58, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-img::after {
  opacity: 1;
}

/* View Project Icon */
.view-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 50px;
  height: 50px;
  background: #F4B400;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.view-icon i {
  color: #0B1F3A;
  font-size: 1.5rem;
}

.project-card:hover .view-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Project Badge (Category) */
.project-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #F4B400;
  color: #0B1F3A;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Card Content */
.project-content {
  padding: 1.8rem 1.5rem 2rem;
  background: white;
  position: relative;
}

.project-content h3 {
  color: #0B1F3A;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.project-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Meta Information (Location, Date, Role) */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0B1F3A;
  font-size: 0.9rem;
  font-weight: 500;
}

.meta-item i {
  color: #F4B400;
  font-size: 1rem;
  width: 16px;
}

/* Project Footer */
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-date {
  color: #777;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-date i {
  color: #F4B400;
}

.project-link {
  color: #0B1F3A;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.project-link i {
  color: #F4B400;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.project-link:hover {
  gap: 0.8rem;
}

.project-link:hover i {
  transform: translateX(5px);
}

/* Hover Effect for Card Content */
.project-card:hover .project-content h3 {
  color: #0B1F3A;
}

/* Responsive */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .project-img {
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .project-meta {
    gap: 0.8rem;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
}

/* Institute */
.institute-desc { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.institute-courses { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.institute-courses span { background: #0B1F3A; color: white; padding: 0.8rem 2rem; border-radius: 40px; font-weight: 500; }
.enroll-btn { text-align: center; margin-bottom: 3rem; }
.testimonial-slider { max-width: 700px; margin: 2rem auto 0; position: relative; text-align: center; }
.slide { display: none; font-size: 1.2rem; font-style: italic; }
.slide.active { display: block; }
.slider-dots { margin-top: 1.5rem; }
.dot { display: inline-block; width: 12px; height: 12px; background: #ccc; border-radius: 50%; margin: 0 5px; cursor: pointer; }
.active-dot { background: #F4B400; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-left img { width: 100%; border-radius: 20px; margin-bottom: 1rem; }
.contact-tagline { font-size: 1.3rem; font-weight: 600; color: #0B1F3A; }
.contact-right form { display: flex; flex-direction: column; gap: 1rem; }
.contact-right input, .contact-right textarea { padding: 1rem; border: 1px solid #ddd; border-radius: 10px; font-family: inherit; }


/* Modern Form Styles */
.contact-right {
  background: white;
  border-radius: 30px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(11, 31, 58, 0.08);
  border: 1px solid rgba(244, 180, 0, 0.15);
  transition: all 0.3s ease;
}

.contact-right:hover {
  box-shadow: 0 20px 40px rgba(244, 180, 0, 0.15);
  border-color: rgba(244, 180, 0, 0.3);
}

.contact-right h2 {
  font-size: 2.2rem;
  color: #0B1F3A;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.contact-right h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #F4B400;
  border-radius: 4px;
}

/* Modern Form */
.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  color: #0B1F3A;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group label {
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  color: #888;
  pointer-events: none;
  transition: all 0.3s ease;
  background: white;
  padding: 0 5px;
  font-size: 1rem;
  font-weight: 400;
}

/* Floating label effect */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #F4B400;
  outline: none;
  box-shadow: 0 5px 15px rgba(244, 180, 0, 0.15);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -0.6rem;
  left: 0.8rem;
  font-size: 0.8rem;
  color: #F4B400;
  font-weight: 600;
  background: white;
  padding: 0 8px;
}

/* Remove default placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

/* Submit Button */
.btn-submit {
  background: #F4B400;
  color: #0B1F3A;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px solid transparent;
  margin-top: 0.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: 1;
}

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  background: #0B1F3A;
  color: #F4B400;
  border-color: #F4B400;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(244, 180, 0, 0.3);
}

.btn-submit:hover i {
  transform: translateX(8px);
}

.btn-submit i {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
}

.btn-submit span {
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-right {
    padding: 2rem;
  }
  
  .contact-right h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-right {
    padding: 1.8rem;
  }
  
  .contact-right h2 {
    font-size: 1.8rem;
  }
  
  .contact-right h2::after {
    width: 50px;
    height: 3px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
  }
  
  .btn-submit {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-right {
    padding: 1.5rem;
    border-radius: 24px;
  }
  
  .contact-right h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .modern-form {
    gap: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 14px;
  }
  
  .form-group label {
    left: 1rem;
    font-size: 0.9rem;
  }
  
  .form-group input:focus ~ label,
  .form-group textarea:focus ~ label,
  .form-group input:not(:placeholder-shown) ~ label,
  .form-group textarea:not(:placeholder-shown) ~ label {
    font-size: 0.7rem;
    top: -0.5rem;
  }
  
  .btn-submit {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    gap: 0.8rem;
  }
  
  .btn-submit i {
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .contact-right {
    padding: 1.2rem;
  }
  
  .contact-right h2 {
    font-size: 1.4rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
  }
}
/* Footer */
.footer { background: #0B1F3A; color: white; padding: 3rem 5% 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-col h3, h4 { margin-bottom: 1rem; color: #F4B400; }
.footer-col p { margin-bottom: 0.5rem; }
.mini-form input, .mini-form textarea { width: 100%; padding: 0.5rem; margin-bottom: 0.5rem; border-radius: 5px; border: none; }
.btn-small { background: #F4B400; color: #0B1F3A; border: none; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 600; cursor: pointer; }
.footer-bottom { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #333; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.2); z-index: 999; transition: 0.3s; }
.whatsapp-float:hover { background: #128C7E; transform: scale(1.1); }

/* Mobile */
@media (max-width: 992px) {
  .nav-right { position: fixed; top: 70px; left: -100%; width: 250px; background: #0B1F3A; flex-direction: column; padding: 2rem; transition: 0.3s; border-radius: 0 0 10px 0; gap: 1rem; }
  .nav-right.active { left: 0; }
  .nav-links { flex-direction: column; width: 100%; }
  .hamburger { display: block; }
  .hero-container, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2,1fr); }
  .big-name { font-size: 2.5rem; }
}
@media (max-width: 576px) {
  .counter-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; text-align: center; }
}



/* Institute Section - Redesigned */
.institute-section {
  padding: 60px 0;
  background-color: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
}

.institute-section .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Main Card - Reduced Width & Centered */
.institute-card {
  background: #0B1F3A;
  color: white;
  border-radius: 40px 20px 40px 20px;
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 25px 50px rgba(11, 31, 58, 0.4);
  width: 80%;  /* Reduced width */
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Decorative Background Element */
.institute-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(244, 180, 0, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.institute-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(244, 180, 0, 0.03);
  border-radius: 50%;
  z-index: 0;
}

/* Left Text Area */
.institute-text {
  flex: 1 1 400px;
  position: relative;
  z-index: 2;
}

.institute-header {
  margin-bottom: 1rem;
}

.institute-tag {
  display: inline-block;
  background: rgba(244, 180, 0, 0.15);
  color: #F4B400;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(244, 180, 0, 0.3);
}

.institute-text h2 {
  font-size: 2.5rem;  /* Reduced size */
  color: #F4B400;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.institute-text h2 i {
  margin-right: 10px;
  color: #F4B400;
  background: rgba(244, 180, 0, 0.2);
  padding: 8px;
  border-radius: 50%;
}

.institute-tagline {
  font-size: 1.1rem;  /* Reduced */
  margin: 1rem 0 1.5rem;
  opacity: 0.95;
  font-weight: 400;
  line-height: 1.6;
}

.feature-list {
  margin-bottom: 1.5rem;
}

.feature-list p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list i.fa-check-circle {
  color: #F4B400;
  font-size: 1.2rem;
  width: 1.6rem;
}

/* Course Badges */
.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0 2rem;
}

.course-badges span {
  background: rgba(244, 180, 0, 0.12);
  border: 1px solid #F4B400;
  color: white;
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.course-badges span:hover {
  background: #F4B400;
  color: #0B1F3A;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(244,180,0,0.3);
}

/* Visit Institute Button */
.institute-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #F4B400;
  color: #0B1F3A;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 10px 20px rgba(244, 180, 0, 0.3);
}

.institute-btn i {
  transition: transform 0.3s ease;
}

.institute-btn:hover {
  background: transparent;
  color: #F4B400;
  border-color: #F4B400;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(244, 180, 0, 0.2);
}

.institute-btn:hover i {
  transform: translateX(8px);
}

/* Right Image Wrapper (Like Hero Section) */
.institute-image-wrapper {
  flex: 0 1 350px;
  position: relative;
  z-index: 2;
}

.institute-image-container {
  position: relative;
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  border: 4px solid rgba(244, 180, 0, 0.3);
  transition: all 0.4s ease;
  height: 380px;  /* Reduced height */
}

.institute-image-container:hover {
  border-color: #F4B400;
  transform: scale(1.02);
  box-shadow: 0 30px 40px rgba(244, 180, 0, 0.25);
}

.institute-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.institute-image-container:hover .institute-image {
  transform: scale(1.1);
}

/* Yellow Overlay on Hover */
.institute-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.2) 0%, rgba(244, 180, 0, 0) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.institute-image-container:hover::after {
  opacity: 1;
}

/* Floating Badges (Like Hero Section) */
.floating-badge {
  position: absolute;
  background: #F4B400;
  color: #0B1F3A;
  padding: 0.4rem 1rem;  /* Reduced padding */
  border-radius: 30px;    /* Slightly less rounded */
  font-weight: 600;       /* Slightly lighter */
  font-size: 0.8rem;      /* Smaller text */
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 5px;               /* Reduced gap */
  z-index: 10;
  animation: float 3s infinite ease-in-out;
  border: 2px solid white;
  white-space: nowrap;     /* Prevent text wrapping */
  width: auto;            /* Auto width based on content */
  min-width: fit-content; /* Shrink to fit content */
}

.floating-badge i {
  font-size: 0.8rem;      /* Smaller icon */
}



.badge-2 {
  top: 300px;              /* Positioned opposite to bottom overlay */
  right: 5px;           /* Slightly outside on right side */
  left: auto;             /* Override left property */
  bottom: auto;           /* Override bottom property */
  animation-delay: 1s;
}
.badge-2 .badge-text-small {
  font-size: 0.7rem;
  font-weight: 500;
}
.badge-2 {
  max-width: 150px;       /* Maximum width */
  white-space: nowrap;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Director Info Overlay */
.director-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.95), transparent);
  padding: 1.5rem 1rem 1rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.institute-image-container:hover .director-info {
  transform: translateY(0);
}

.director-details {
  text-align: left;
}

.director-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #F4B400;
  font-weight: 600;
}

.director-details h4 {
  font-size: 1.2rem;
  margin: 0.2rem 0;
  color: white;
}

.director-details p {
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .institute-card {
    width: 90%;
    padding: 2rem;
    gap: 2rem;
  }
  
  .institute-text h2 {
    font-size: 2.2rem;
  }
  
  .institute-image-container {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .institute-card {
    flex-direction: column-reverse;
    text-align: center;
    width: 95%;
    padding: 2rem 1.5rem;
  }
  
  .institute-text {
    text-align: center;
  }
  
  .feature-list p {
    justify-content: center;
  }
  
  .course-badges {
    justify-content: center;
  }
  
  .institute-image-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .badge-2 {
    right: 0;
  }
  
  .director-info {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(11, 31, 58, 0.95), rgba(11, 31, 58, 0.7));
  }
}

@media (max-width: 480px) {
  .institute-card {
    padding: 1.5rem;
  }
  
  .institute-text h2 {
    font-size: 1.8rem;
  }
  
  .institute-tagline {
    font-size: 1rem;
  }
  
  .course-badges span {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  
  .institute-image-container {
    height: 300px;
  }
  
  .floating-badge {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
}


/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.gallery-subtitle {
  display: inline-block;
  background: rgba(244, 180, 0, 0.15);
  color: #F4B400;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(244, 180, 0, 0.3);
  backdrop-filter: blur(5px);
}

.gallery-title {
  font-size: 3rem;
  color: #0B1F3A;
  margin-bottom: 1rem;
  font-weight: 700;
}

.gallery-title .highlight {
  color: #F4B400;
  position: relative;
  display: inline-block;
}

.gallery-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(244, 180, 0, 0.2);
  z-index: -1;
}

.gallery-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Container */
.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
  padding: 5px 0;
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

/* Gallery Cards */
.gallery-card {
  flex: 0 0 calc(25% - 1.125rem); /* 4 cards in row with gap */
  min-width: 250px;
  transition: all 0.3s ease;
  min-width: 0;
}

.gallery-card-inner {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(11, 31, 58, 0.1);
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid transparent;
}

.gallery-card-inner:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(244, 180, 0, 0.2);
  border-color: #F4B400;
}

.gallery-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card-inner:hover .gallery-image img {
  transform: scale(1.1);
}

/* Overlay on Hover */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.95) 0%, rgba(11, 31, 58, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
}

.gallery-card-inner:hover .gallery-overlay {
  opacity: 1;
}

.gallery-content {
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-card-inner:hover .gallery-content {
  transform: translateY(0);
}

.gallery-content h3 {
  color: #F4B400;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

.gallery-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.gallery-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(244, 180, 0, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(244, 180, 0, 0.3);
}

.gallery-meta i {
  color: #F4B400;
  font-size: 0.7rem;
}

/* Card Footer */
.gallery-footer {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.gallery-category {
  background: rgba(244, 180, 0, 0.1);
  color: #F4B400;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(244, 180, 0, 0.3);
}

.gallery-expand {
  width: 35px;
  height: 35px;
  background: #0B1F3A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-expand:hover {
  background: #F4B400;
  color: #0B1F3A;
  transform: scale(1.1);
  border-color: white;
}

/* Navigation Buttons */
.gallery-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0B1F3A;
  border: 2px solid #F4B400;
  color: #F4B400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-nav:hover {
  background: #F4B400;
  color: #0B1F3A;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(244, 180, 0, 0.4);
}

.gallery-nav i {
  font-size: 1.2rem;
}

.gallery-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dots Indicator */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.gallery-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dots .dot.active {
  background: #F4B400;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(244, 180, 0, 0.5);
}

.gallery-dots .dot:hover {
  background: #F4B400;
}

/* Fixed Responsive Design - Complete Cards Only */
@media (max-width: 1200px) {
  .gallery-card {
    flex: 0 0 calc(33.333% - 1rem); /* 3 cards with gap */
    min-width: 0; /* Prevent overflow */
  }
  
  .gallery-track {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .gallery-card {
    flex: 0 0 calc(50% - 0.75rem); /* 2 cards with gap */
    min-width: 0;
  }
  
  .gallery-title {
    font-size: 2.5rem;
  }
  
  .gallery-track {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 60px 0;
  }
  
  .gallery-card {
    flex: 0 0 100%; /* Full width - 1 card */
    min-width: 0;
  }
  
  .gallery-title {
    font-size: 2rem;
  }
  
  .gallery-description {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .gallery-nav {
    width: 40px;
    height: 40px;
  }
  
  .gallery-nav i {
    font-size: 1rem;
  }
  
  .gallery-track {
    gap: 1rem; /* Smaller gap on mobile */
  }
}

@media (max-width: 480px) {
  .gallery-card {
    padding: 0 5px; 
  }
  .gallery-title {
    font-size: 1.8rem;
  }
  
  .gallery-subtitle {
    font-size: 0.8rem;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .gallery-card {
    flex: 0 0 100%; 
    min-width: 0;
  }
  .gallery-nav {
    width: 32px;
    height: 32px;
  }
}



