/* Import Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  /* Color Palette */
  --primary-blue: #1e4474;
  --secondary-blue: #2a5a91;
  --heading-color: #1A2B42; /* All headings (replaces black/dark grey on headings only) */
  --text-dark: #333333;
  --text-muted: #7a7a7a;
  --bg-light: #f4f7f9; /* Light gray background for footer */
  --white: #ffffff;

  /* Typography */
  --font-main: "Poppins", sans-serif;
  /* Section headings – same size across all sections */
  --section-heading-size: clamp(1.75rem, 4vw, 2.5rem);
  /* Section paragraphs / subtitles – same size across all sections */
  --section-para-size: 0.85rem;
}

@media (max-width: 991px) {
  :root {
    --section-heading-size: 1.6rem;
    --section-para-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-heading-size: 1.45rem;
    --section-para-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  :root {
    --section-heading-size: 1.35rem;
    --section-para-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  :root {
    --section-heading-size: 1.25rem;
    --section-para-size: 0.75rem;
  }
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* --- HEADER STYLES --- */
.main-header {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid #eeeeee;
}

.main-header .container {
  padding-left: 20px;
  padding-right: 20px;
}

.navbar-brand img {
  height: 60px;
}

.navbar-nav .nav-link {
  color: var(--primary-blue) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 12px;
  letter-spacing: 0.5px;
}

.btn-signin {
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  padding: 8px 24px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-signin:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-join {
  background-color: var(--primary-blue);
  color: var(--white) !important;
  padding: 8px 24px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 10px;
  transition: background 0.3s ease;
  text-decoration: none;
}

.btn-join:hover {
  background-color: var(--secondary-blue);
}

/* --- FOOTER REFINEMENTS --- */
.main-footer {
  background-color: #f4f7f9;
  padding-top: 40px;
  padding-bottom: 32px;
}

.main-footer .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* 1. Logo Size Reduced */
.footer-logo {
  height: 60px; /* Reduced 50% from previous 70px/50px */
  width: auto;
  margin-bottom: 25px;
}

.footer-logo-desc {
  color: #7a7a7a;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 30px;
}

/* 2. Exact Social Media Circles */
.social-wrapper {
  display: flex;
  gap: 15px;
}

.social-circle {
  width: 45px;
  height: 45px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e4474;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for white-on-grey look */
  transition: 0.3s ease;
  font-size: 18px;
}

.social-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  color: #1e4474;
}

/* 3. Removed Dots from Links */
.footer-links {
  list-style: none; /* Removes the dots */
  padding: 0;
  margin: 0;
}

.footer-links li a {
  color: #7a7a7a;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 15px;
  transition: 0.2s;
}

.footer-links li a:hover {
  color: #1e4474;
}

/* 4. Contact Bar & Centered Copyright */
.contact-bar {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 50px;
  margin-top: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.footer-heading {
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.newsletter-text {
  color: #7a7a7a;
  font-size: 14px;
  margin-bottom: 16px;
}

.newsletter-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f5f7fa;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-width: 380px;
}

.newsletter-box input {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-family: var(--font-main);
  color: #333;
}

.newsletter-box input::placeholder {
  color: #6b7280;
}

.newsletter-box input:focus {
  outline: none;
}

.newsletter-box .btn-newsletter {
  flex-shrink: 0;
  width: 52px;
  background: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}

.newsletter-box .btn-newsletter:hover {
  background: var(--secondary-blue);
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  color: #1e4474;
  font-size: 22px;
}

.info-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--heading-color);
  display: block;
}

.info-text {
  color: #7a7a7a;
  font-size: 13px;
  margin: 0;
}

.copyright-section {
  text-align: center; /* Center alignment */
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.copyright-section p {
  color: #b0b0b0;
  font-size: 12px;
  letter-spacing: 1.5px;
  margin: 0;
}

/* Footer: more spacing on small screens */
@media (max-width: 991px) {
  .main-footer {
    padding-top: 40px;
    padding-bottom: 28px;
  }
  .main-footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .main-footer .row.gy-5 {
    --bs-gutter-y: 2rem;
  }
  .footer-logo {
    margin-bottom: 16px;
  }
  .footer-logo-desc {
    margin-bottom: 20px;
  }
  .contact-bar {
    margin-top: 36px;
    padding: 28px 24px;
  }
  .copyright-section {
    margin-top: 28px;
    padding-top: 16px;
  }
}

@media (max-width: 768px) {
  .main-footer {
    padding-top: 36px;
    padding-bottom: 24px;
  }
  .main-footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .main-footer .row.gy-5 {
    --bs-gutter-y: 1.5rem;
  }
  .footer-logo {
    margin-bottom: 12px;
  }
  .footer-logo-desc {
    margin-bottom: 16px;
  }
  .contact-bar {
    flex-direction: column;
    gap: 20px;
    padding: 20px 16px;
    margin-top: 28px;
    border-radius: 16px;
  }
  .contact-item {
    width: 100%;
    justify-content: flex-start;
  }
  .copyright-section {
    margin-top: 20px;
    padding-top: 12px;
  }
  .copyright-section p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding-top: 32px;
    padding-bottom: 20px;
  }
  .main-footer .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-footer .row.gy-5 {
    --bs-gutter-y: 1.25rem;
  }
  .contact-bar {
    padding: 16px 12px;
    margin-top: 24px;
    gap: 16px;
  }
  .copyright-section {
    margin-top: 16px;
    padding-top: 10px;
  }
}

/* Mobile Menu: overlay on hero (do not push content down) */
@media (max-width: 991px) {
  .navbar {
    position: relative;
  }

  .navbar-collapse {
    background: #fff;
    padding: 16px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .header-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-start;
  }

  .navbar-collapse .btn-signin,
  .navbar-collapse .btn-join {
    padding: 6px 14px;
    font-size: 12px;
    width: auto;
    text-align: center;
    margin: 0 !important;
  }
}

/* Toggler: smaller size + icon swap (bars ↔ times) */
.navbar-toggler {
  border: none;
  outline: none !important;
  box-shadow: none !important;
  padding: 6px 10px;
}

.navbar-toggler .navbar-toggler-icon {
  display: none;
}

.navbar-toggler .nav-toggler-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-blue);
  width: 24px;
  height: 24px;
}

.navbar-toggler .icon-close {
  display: none;
}

.navbar-toggler[aria-expanded="true"] .icon-menu {
  display: none;
}

.navbar-toggler[aria-expanded="true"] .icon-close {
  display: inline-flex;
}

/* Header responsive */
@media (max-width: 991px) {
  .main-header {
    padding: 10px 0;
  }
  .main-header .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar-brand img {
    height: 40px;
  }
  .navbar-nav .nav-link {
    font-size: 13px;
    padding: 8px 0;
  }
}

@media (max-width: 576px) {
  .main-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .navbar-brand img {
    height: 50px;
  }
  .navbar-collapse .btn-signin,
  .navbar-collapse .btn-join {
    padding: 6px 12px;
    font-size: 11px;
  }
}
