/* ==================================================================
   1) GLOBAL RESET + BASE TYPOGRAPHY (applies to all pages)
   ================================================================== */
html, body {
  background: #FFF9F0 !important;
  font-family: 'Segoe UI','Roboto',Arial,sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden !important; /* Prevent any horizontal scrolling globally */
}
body {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* space for sticky mobile footer if any */
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
}

.section-header {
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #ff8c00;
}

/* ==================================================================
   2) HEADER / NAVBAR (MOBILE & DESKTOP) – global
   ================================================================== */
.main-navbar {
  background: #FFA726;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 4px 20px rgba(255,167,38,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  z-index: 10;
}
.logo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  transition: background 0.15s;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(255,255,255,0.25);
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .logo-title {
    margin: 0 auto;
  }
  .main-navbar {
    padding: 0.5rem 1rem;
  }
}


/* ==========================================================================
   SHARED HEADER & FOOTER STYLES (identical to Dashboard)
   ========================================================================== */

/* Header‐card (white, rounded, sticky at top) */
.header-card {
  background: #fff;
  border-radius: 1rem;
  margin: 0 auto 0;
  max-width: 650px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
}
.header-card .sub-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  position: relative;
  padding: 0 1rem;
}
.header-card .back-arrow {
  position: absolute;
  left: 16px;
  color: #444;
  font-size: 1.3rem;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}
.header-card .page-title {
  color: #222;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.header-card .progress-container {
  width: 100%;
  height: 4px;
  background: #ffe6c7;
}
.header-card .progress-bar-inner {
  width: 0%;
  height: 100%;
  background: #ffa726;
  transition: width 0.3s ease;
}

/* Static footer (white bar with two buttons) */
.static-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 650px;
  margin: 0 auto;
}
.footer-btn {
  flex: 1;
  background: #28a745;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.6rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.footer-btn:hover {
  background: #218838;
}


/* ==================================================================
   12) FOOTER (MOBILE & DESKTOP) – global
   ================================================================== */
/* Mobile (sticky) footer */
.main-footer {
  background: #FFA726;
  color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(255,167,38,0.13);
}
.footer-link {
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.footer-link.active i {
  color: #fff;
  background: rgba(255,255,255,0.25);
  border-radius: 0.5rem;
  padding: 0.2rem;
}
@media (min-width: 769px) {
  .main-footer {
    display: none;
  }
}

/* Desktop footer */
.footer-main-desktop {
  background: #FFA726;
  color: #fff;
  padding: 2rem 1rem;
  margin-top: auto;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.footer-main-desktop .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-main-desktop h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.footer-main-desktop ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-main-desktop li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.footer-main-desktop a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-main-desktop a:hover {
  color: #fffbe8;
}
.footer-copy {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 991px) {
  .footer-row {
    gap: 2.5rem;
  }
}

