:root {
  --accent: #4f9f46;         
  --bg: #ffffff;
  --light: #fafafa;
  --radius: 12px;
  --shadow: 0 px 16px rgba(0,63,92,0.1);
  --shadow-title: 0 0px 0px rgba(0,63,92,0.35);
  --font: "Noto Sans", Helvetica, Arial, sans-serif;
  --text-color: #1E1E1E;
  --enagic-blue:#004da1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

html,body {
  padding-top: 40px;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(0.55rem, 0.8vw, 1rem);
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.logo img {
  height: 36px;
  width: auto;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-home-link {
  display: none;
  font-size: 18px;
  text-decoration: none;
  color: var(--enagic-blue);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--enagic-blue);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.nav-links a::after,
.mobile-home-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, #094e8e, #0b39cf);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.header.scrolled {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
}

.hamburger {
  display: none !important;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  color: var(--bg);
  background-color: var(--enagic-blue);
  margin: 5px 4px;
  padding: 2px 10px;
  border-radius: 8px;
  width: 40px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {

  .hamburger{
    display: block !important;
  }

  .mobile-home-link {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    gap: 7px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 4px 16px;
    border-bottom: 1px solid #f8f6f6;
    text-align: right;
    font-weight: 600;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: block;
  }

  .logo {
    font-size: 20px;
  }
}

.section-heading, .faq-section h1  {
    font-size: 2.8rem;
    font-weight: 800;
    color: #004da1;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    flex: 1;
}

.certifications-container .section-subtext {
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #1c1b1b;
    opacity: 0.95;
    letter-spacing: 0.2px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .certifications-container .section-subtext {
    font-size: clamp(1rem, 2.3vw, 1rem);
    font-weight: 400;
    line-height: 1.6;
  }
}

.certifications-section {
  padding: 2rem 1rem;
}

.certifications-container {
  max-width: 1350px;
  margin: 0 auto;
  text-align: center;
}

.certifications-container .section-heading {
  margin-bottom: 1.5rem;
}

.certifications-container .section-subtext {
  margin: 0 auto 4rem;
  max-width: 1150px;
  text-align: center;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.cert-badge {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem 2rem;
  border: 1px solid #eaf2ff;
  box-shadow: 0 4px 12px rgba(0, 77, 161, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.cert-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(83, 76, 210, 0.1) 0%, rgba(83, 76, 210, 0) 70%);
  border-radius: 50%;
  transition: width 0.5s ease, height 0.5s ease;
}

.cert-badge:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 77, 161, 0.08);
  border-color: #d1e3ff;
}

.cert-badge:hover::before {
  width: 300px;
  height: 300px;
}

.cert-icon {
  height: 200px;
  margin-bottom: 2rem;
  z-index: 1;
}

.cert-badge h4 {
  color: #443dbb;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  z-index: 1;
}

.cert-badge p {
  color: #667;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  z-index: 1;
  flex-grow: 1;
}
@media (max-width: 768px) {

  .certifications-section {
    padding: 3rem 1.2rem;
  }

  .certifications-container .section-heading {
    font-size: clamp(1.8rem, 2.4vw, 1.2rem);
    margin-bottom: 0.5rem;
  }

  .certifications-container .section-subtext {
    font-size: clamp(0.8rem, 2.3vw, 1rem);
    margin-bottom: 3rem;
  }

  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cert-badge {
    padding: 1rem;
    border-radius: 12px;
  }

  .cert-icon {
    height: 90px;
    margin-bottom: 1rem;
  }

  .cert-badge h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .cert-badge p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .cert-badge:hover::before {
    width: 200px;
    height: 200px;
  }
}

footer {
  background-color:#004da1;
  backdrop-filter: blur(2px);
  text-align: center;
  color: white;
  padding: 1rem;
}

.footer-desktop-line {
  margin-top: 6px;
  color: white;
  font-size: 15px;
}

.footer-desktop-line a {
  color: #fff;
  text-decoration: underline;
  line-height: 1.5;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-desktop-line a:hover {
  color: #e0f0ff;
}

.footer-logo-inline {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin: 0 0.2rem;
  object-fit: contain;
}

.footer-line-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: white;
}

.footer-line-1 a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-line-1 a:hover {
  color: #e0f0ff;
}

.footer-line-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  color: white;
}

.footer-mobile-stack {
  display: none;
}

@media (max-width: 768px) {

  .footer-mobile-stack {
    display: block;
    font-size: 14px;
    font-weight: 500;
  }

  .footer-desktop-stack {
    display: none;
  }
}
/*-----------------------------------------------------------------------------*/

.faq-section {
  background-color: var(--bg);
  color: var( --enagic-blue);
  padding: 12px 20px;
  box-shadow: var(--shadow-title);
}

.faq-section .faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.faq-section .universal-hamburger-container {
  position: relative;
}

.faq-section .universal-hamburger {
  width: 30px;
  height: 30px;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px;
}

.faq-section .universal-hamburger span {
  background-color: #1a1a1a; 
  height: 3px;
  width: 24px;
  margin: 3px 0;
  display: block;
}

@media (max-width: 768px) {
  .faq-section h1 {
    font-size: 1.35rem;
    text-align: left;
    align-items: center;
  }
}

.hero-desktop,
.hero-mobile {
  display: none;
}

.hero-image {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Page layout */
.faq-page {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
  gap: 2rem;
}

/* Main content */
.faq-content {
  flex: 1;
}

/* Search + dropdown */
.search-category-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-direction: column;
}

.faq-search {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

.category-dropdown {
  position: relative;
  margin-left: 1rem;
}

.faq-category h2 {
  font-size: 1.5rem;
  color: var(--enagic-blue);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  font-weight: 700;
}

.faq-item {
  background: var(--light);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.2s;
}
.faq-item.open .faq-question {
  color: var(--accent);
}
.faq-number {
  margin-right: 0.5rem;
  color: var(--accent);
}
.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.97rem;
  line-height: 1.6;
  color: #333;
  animation: fadeIn 0.3s ease-out;
}
.faq-item.open .faq-answer {
  display: block;
}

.faq-answer .hint {
  display: block;
  margin-top: 0.5rem;
  color: #555;
  font-style: italic;
}

/* No results */
.no-results {
  display: none;
  text-align: center;
  padding: 1rem;
  color: #555;
}

/* Mobile nav */
.faq-nav-wrapper {
  position: relative;
  z-index: 99;
}

.faq-nav.mobile-only.stuck {
  position: absolute;
  bottom: 100%;
}

.faq-nav.mobile-only {
  transition: all 0.3s ease;
}

.faq-nav.mobile-only {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--light);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-around;
  z-index: 100;
}

.faq-nav.mobile-only a {
  flex: 1; text-align: center;
  padding: 0.75rem 0;
  color: var(--enagic-blue);
  text-decoration: none;
  font-weight: 700;
}

.faq-nav.mobile-only a:hover {
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  bottom: 70px;
  right: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  display: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header h1 {
  font-size: 2rem;
  }

  .faq-page {
    flex-direction: column;
    padding: 0 0.5rem;
  }

  .faq-nav.mobile-only {
    display: flex;
  }

  .search-category-wrap {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-mobile {
    display: block;
  }
}

/* Show desktop image only on ≥769px */
@media (min-width: 769px) {
  .hero-desktop {
    display: block;
  }
}

