/* =========================================
   GLOBAL RESET & BODY STYLING
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f7fb;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  z-index: 5000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* =========================================
   HEADER
========================================= */
header {
  background-color: #013c74;
  color: #fff;
  padding: 16px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-area img {
  height: 150px;
  width: 150px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.logo-text h1 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 3px;
  color: #fff;
}

.logo-text p {
  font-size: 0.9em;
  color: #d3e1f6;
}

.contact-info {
  text-align: right;
  font-size: 0.9em;
  line-height: 1.5;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* =========================================
   RESPONSIVE HEADER
========================================= */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 12px;
  }

  .contact-info {
    text-align: center;
    margin-top: 8px;
    font-size: 0.85em;
  }

  .logo-area img {
    height: 95px;
    width: 95px;
  }
}

/* =========================================
   CLEAN RESPONSIVE NAVBAR (DESKTOP + MOBILE)
========================================= */

.navbar {
  background: linear-gradient(90deg, #014b8e, #0254a2);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  font-family: "Poppins", sans-serif;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: auto;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: #ffd700;
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #013c74;
  border-radius: 8px;
  padding: 6px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 1000;
}

.nav-menu li:hover ul {
  display: block;
}

.nav-menu li ul li a {
  display: block;
  padding: 10px 16px;
}

.nav-menu li ul li a:hover {
  background: #ffd700;
  color: #013c74;
  border-radius: 4px;
}

/* HAMBURGER BUTTON */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate toggle icon */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================
   MOBILE RESPONSIVE NAVBAR
============================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #014b8e;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease forwards;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li ul {
    position: static;
    background: #0254a2;
    box-shadow: none;
  }

  .nav-menu li:hover ul {
    display: none;
  }

  .nav-menu a {
    width: 100%;
    display: block;
    padding: 12px;
    font-size: 1rem;
  }
}

/* Animation for menu */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: linear-gradient(180deg, #013c74, #012a56);
  color: #fff;
  font-family: "Poppins", sans-serif;
  padding-top: 45px;
  position: relative;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 0 50px 45px;
}

.footer-about h3,
.footer-links h3,
.footer-newsletter h3 {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  position: relative;
}

.footer-about p {
  color: #e6edf5;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links a {
  color: #dfe6ee;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffd700;
}

.footer-bottom {
  background: #012a56;
  text-align: center;
  padding: 15px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: #dbe3ef;
}

.footer-bottom a {
  color: #ffd700;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================================
   UTILITIES
========================================= */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.btn {
  background: #ffd700;
  color: #013c74;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #013c74;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* =========================================
   UNIVERSAL MOBILE RESPONSIVENESS FIXES
========================================= */

/* Make all main containers and sections scale properly */
section, .container, .content, .main, .page-content {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 15px;
  overflow-x: hidden;
}

/* Ensure all images resize on mobile */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix long text overflow */
h1, h2, h3, h4, h5, h6, p {
  word-wrap: break-word;
  line-height: 1.4;
}

/* Fix cards, grids, and columns */
.row, .grid, .columns, .member-cards, .team-section, .award-list, .gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.row > div,
.grid > div,
.columns > div,
.member-card,
.card,
.team-member,
.award-item,
.gallery-item {
  flex: 1 1 300px;
  max-width: 100%;
}

/* =========================================
   MEDIA QUERIES FOR MOBILE SCREENS
========================================= */

/* Tablets and below */
@media (max-width: 992px) {
  .container {
    padding: 10px;
  }

  .row, .grid, .columns {
    flex-direction: column;
    align-items: center;
  }

  .card, .member-card, .award-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .btn {
    width: 100%;
    padding: 12px;
    text-align: center;
  }
}

/* Phones and small screens */
@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 0;
  }

  header, nav, footer {
    width: 100%;
  }

  .logo-area {
    flex-direction: column;
    text-align: center;
  }

  .logo-area img {
    height: 80px;
    width: 80px;
  }

  .contact-info {
    text-align: center;
    margin-top: 10px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Reduce gaps and paddings */
  section, .container {
    padding: 10px;
  }

  .row, .grid, .columns {
    flex-direction: column;
  }
}

