* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   Header / Navbar
================================ */

header {
  background: #0d47a1;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: white;
  min-width: 0;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo span {
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #7CFC00;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #7CFC00;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* ===============================
   Hero Section
================================ */

.hero {
  height: 90vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
  url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
}

.btn {
  background: #28a745;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #1e7e34;
  transform: translateY(-2px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.2);
}

/* ===============================
   Common Sections
================================ */

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  background-color: #3f7fd3;
  color: white;
  padding: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #f4f4f4;
  padding: 30px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.designation {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ===============================
   Title Strips
================================ */

.title-strip {
  width: 100%;
  background: linear-gradient(90deg, #1e88e5, #0d47a1);
  padding: 18px 25px;
  margin: 30px 0;
}

.title-strip .section-title {
  color: white;
  font-size: 28px;
  margin: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.title-svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ===============================
   About / Banner Sections
================================ */

.about-section h2 {
  color: #1e88e5;
  margin-top: 25px;
  font-size: 24px;
}

.banner-strip {
  background: linear-gradient(90deg, #79aeec, #3f7fd3);
  padding: 10px 20px;
  margin: 25px 0 10px 0;
  border-radius: 4px;
}

.banner-strip h2 {
  color: white;
  margin: 0;
  font-size: 24px;
  text-align: center;
}

/* ===============================
   Footer
================================ */

.footer {
  background: #111;
  color: white;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer a {
  color: #ccc;
  display: block;
  margin-top: 8px;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* ===============================
   Contact Form
================================ */

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* ===============================
   Fade Animation
================================ */

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   Tablet Responsive
================================ */

@media (max-width: 992px) {

  .navbar {
    flex-wrap: wrap;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .logo span {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }
}

/* =====================================================
   FINAL MOBILE NAVBAR OVERRIDE
   Put this at the VERY END of style.css
===================================================== */

@media (max-width: 1024px) {

  header {
    width: 100%;
  }

  .navbar {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .logo img {
    height: 36px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .logo span {
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 230px !important;
  }

  .menu-toggle {
    display: block !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 30px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    z-index: 1001 !important;
  }

  .navbar nav {
    grid-column: 1 / -1 !important;
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    background: #0d47a1 !important;
    margin-top: 10px !important;
    padding: 8px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.25) !important;
  }

  .navbar nav.active {
    display: flex !important;
  }

  .navbar nav a {
    display: block !important;
    width: 100% !important;
    padding: 12px 6px !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  }

  .navbar nav a::after {
    display: none !important;
  }
}
