/* Import Google Fonts for Navbar */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* CSS Variables for light and dark mode */
:root {
  --color-bg: #f8fafa;
  --color-text: #222;
  --color-primary: #2A80B9;
  --color-link: #0076ba;
  --color-border: #d0eaff;
  --color-shadow: rgba(0, 153, 204, 0.08);
}

[data-theme='dark'] {
  --color-bg: #181c1f;
  --color-text: #e0e6ed;
  --color-primary: #6ec1e4;
  --color-link: #4fc3f7;
  --color-border: #263238;
  --color-shadow: rgba(0,0,0,0.25);
}

/* Navbar Component Styles */

/* Header Styles */
header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #e8ecf1;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: transparent;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-container img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-heading {
  font-weight: 800;
  font-size: 28px;
  color: #2A80B9;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  letter-spacing: -0.5px;
}

.header-subheading {
  font-size: 18px;
  color: #1a5490;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  font-style: italic;
}

.subtitle {
  font-size: 12px;
  color: #000;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  letter-spacing: 0.5px;
}

.helpline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.helpline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.helpline-label {
  font-size: 11px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.helpline-value {
  font-size: 16px;
  color: #2A80B9;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.helpline strong {
  font-size: 18px;
  color: #2A80B9;
  font-weight: 800;
}

.helpline span {
  color: #000;
}
[data-theme='dark'] .helpline span {
  color: #fff;
}

/* Responsive Navbar Styles */
.custom-navbar {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 47px;
  font-family: 'Poppins', sans-serif;
  z-index: 999; /* above content */
  position: sticky; /* only the menu bar sticks */
  top: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
}

.navbar-left {
  display: none;
  align-items: center;
}

.navbar-menu {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.navbar-link {
  color: var(--color-text);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}


.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  position: relative;
}

.navbar-toggle .hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #111;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle .close-icon {
  display: none;
  font-size: 32px;
  font-weight: 300;
  color: #111;
  line-height: 1;
  position: absolute;
  transition: all 0.3s ease;
}

.navbar-toggle.active .hamburger-line {
  display: none;
}

.navbar-toggle.active .close-icon {
  display: block;
}


/* Desktop (1025px+) */
@media (min-width: 1025px) {
  .navbar-link {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .navbar-link {
    font-size: .9rem;
    padding: 12px;
  }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-container, .navbar-inner {
    max-width: 98vw;
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar-link {
    font-size: .7rem;
    padding: 8px;
  }
  .navbar-menu {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .header-container, .navbar-inner {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-heading {
    font-size: 1.5rem;
  }
  .header-subheading {
    font-size: 1rem;
  }
  .subtitle, .helpline {
    font-size: 0.95rem;
  }
  .navbar-link {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .navbar-menu {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .logo-container {
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    gap: 12px;
  }
  .logo-text-wrapper {
    text-align: center;
    align-items: center;
  }
  .header-heading {
    font-size: 1.3rem;
  }
  .header-subheading {
    font-size: 0.95rem;
  }
  .helpline {
    text-align: center;
    margin-left: 0;
    width: 100%;
    align-items: center;
  }
  .helpline-item {
    align-items: center;
  }
  .navbar-inner {
    justify-content: flex-start;
    align-items: center;
    padding: 0 16px;
    position: relative;
  }
  .navbar-left {
    display: flex;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
  }
  .navbar-menu {
    flex-direction: column;
    align-items: center;
    width: 100vw;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f8fafa;
    box-shadow: 0 8px 24px 0 rgba(0,153,204,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    z-index: 100;
    gap: 0;
  }
  .navbar-menu.open {
    max-height: 400px;
    padding-bottom: 12px;
  }
  .navbar-link {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
  }
  .navbar-toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .logo_img {
    max-height: 70px;
  }
  .header-heading {
    font-size: 1.1rem;
  }
  .header-subheading {
    font-size: 0.85rem;
  }
  .subtitle, .helpline {
    font-size: 0.8rem;
    margin-top: 0;
  }
  .helpline strong {
    font-size: 0.9rem;
  }
  .navbar-link {
    padding: 10px;
    font-size: 0.8rem;
    text-align: left;
    margin-left: 30px;
  }
}


/* Navbar link hover effects */
.navbar-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease-in-out;
}

.navbar-link:hover {
  color: var(--color-primary);
  background-color: transparent;
}

.navbar-link:hover::after {
  width: 100%;
}

/* Active state styling */
.navbar-link.active {
  color: var(--color-primary);
  background-color: transparent;
  text-decoration: none;
}

.navbar-link.active::after {
  width: 100%;
}
