/* =======================================
   RESET & GLOBAL STYLES
   ======================================= */

 
:root {
  --cn-navy: #0A2D64;
  --cn-teal: #1CA7A3;

  --cn-navy-soft: #E7EDF6;
  --cn-teal-soft: #E6F5F4;
  --cn-cloud: #F9FBFD;
  --cn-bluegray-soft: #F1F5F9;

  --cn-text-primary: #1f2937;
  --cn-text-secondary: #4b5563;
  --cn-border-soft: #E5E7EB;
}
.highlight {
  background-color: #fde68a;
  padding: 0 2px;
  border-radius: 3px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}
.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* height: 100%; */
}
body {
  background-color: #fafafa;
  font-family: 'Nunito', sans-serif;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main-content-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 80vh;
    align-items: stretch;
}
.main-container {
  flex: 1;
}

.bold-title {
    font-weight: bold;
    color: #fff;
}
i {
    font-size: 1.5rem;
    color: #FFD43B;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}
input:focus,
textarea:focus {
  outline: 2px solid #1ca7a3;
  box-shadow: 0 0 4px rgba(0, 158, 158, 0.4);
}
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.8;
  cursor: pointer;
}
.section-flash-container {
    width: 70%;
    margin: 0 auto;
}
.inline-flash {
  max-width: 720px;
  margin: 1.2rem auto 2rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: fadeInSlide 0.35s ease-out;
}

/* Warning / validation */
.inline-flash.warning {
  background: #fff4d6;
  border: 1px solid #ffe2a8;
  color: #7a5200;
}

/* Success (future-proofing) */
.inline-flash.success {
  background: #e9f7f5;
  border: 1px solid #c6ece7;
  color: #0f766e;
}

/* Gentle entrance */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* .return-review {
  text-align: center;
  margin-bottom: 2rem;
}

.return-review-link {
  color: #00a3ad;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.return-review-link:hover {
  color: #0b2e63;
  text-decoration: underline;
} */

.return-review {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.return-review button {
    width: 20%;
    margin: 0 auto;
}

.muted-note {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 0.25rem;
}

.section-title-container h1 {
    padding: 1rem;
    background-color: #0a2d64;
    text-align: center;
    color: #fff;
}
.section-title-container p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 0 auto;
}
.section-title-container::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #FFD700;
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.section-img-container img {
    width: 400px;
}
.section-img-container {
    margin: 0 auto;
}

/* =======================================
   TYPOGRAPHY
   ======================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: #0A2D64; /* Navy primary */
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  color: #444;
}

/* =======================================
   LINKS
   ======================================= */
a {
  text-decoration: none;
  color: #1CA7A3; /* Teal accent */
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff; /* White on hover */
}

/* =======================================
   BUTTONS
   ======================================= */
button, .btn {
  display: inline-block;
  background: #1CA7A3;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover, .btn:hover {
  background: #14807E;
  transform: translateY(-2px);
}

/* =======================================
   LAYOUT HELPERS
   ======================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =======================================
   HEADER & NAVIGATION
   ======================================= */
header {
  background-color: #ffffff;
  padding: 0 2rem;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* --- Nav wrapper --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  width: 60px;
  height: auto;
}

/* --- Nav links --- */
.nav-links {
  list-style: none;
  display: flex;
  margin-left: 3rem;
  margin-bottom: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #0A2D64;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
  margin-left: 2rem;
}

.nav-links li a:hover {
  color: #1CA7A3;
}

/* --- CTA button in navbar --- */
/* .cta-btn {
  margin-left: 2rem;
  background: #1CA7A3;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cta-btn:hover {
  background: #14807E;
  transform: translateY(-2px);
} */

/* --- Hamburger toggle --- */
.menu-toggle {
  display: none;             
  font-size: 1.8rem;
  background: none !important;
  border: none;
  color: #0A2D64;   
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  outline: none;
}


/* =======================================
   FOOTER
   ======================================= */
footer {
  background: #0A2D64;
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

footer p {
    color: #fff;
}

footer nav {
  margin-top: 0.5rem;
}

footer nav a {
  color: #1CA7A3;
  margin: 0 1rem;
  font-weight: 600;
}

footer nav a:hover {
  color: #fff;
}
.footer-attribution {
  font-size: 14px;
  text-align: center;
  color: #777;
  margin-top: 1rem;
}
.footer-attribution a {
  color: #1CA7A3;
  text-decoration: none;
}
.footer-attribution a:hover {
  text-decoration: underline;
}

.mobile-bottom-nav {
    display: none;
}

/* ===== User Header (Initials + Menu) ===== */
.user-header {
    display: flex;
    align-items: center;
    justify-content: center;  
    gap: 0.75rem;              
    margin-top: 1rem;
    position: relative;     
}

.fa-ellipsis-vertical {
    position: absolute;
    right: 30px;
    top: 50px;
}

#menu-trigger {
    font-size: 1.5rem;
    color: #0A2D64;
    cursor: pointer;
    padding: 0.3rem;
}

/* ===== Logout Popup ===== */
.logout-popup {
    position: absolute;
    top: 140px;                 /* places popup below initials */
    right: 50%;                /* center under the dots */
    transform: translateX(50%);
    background: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 3000;
}

.logout-popup.hidden {
    display: none;
}

.logout-popup button {
    background: none;
    border: none;
    font-size: 1rem;
    color: #C62828;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.greeting.shifted-down {
    margin-top: 60px;  /* adjust to taste */
    transition: margin-top 0.2s ease;
}

.guidance-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.guidance-header {
  margin: 0;
}

.guidance-toggle-btn {
  background: none;
  border: none;
  color: #1ca7a3;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
}

.guidance-toggle-btn:hover {
  background: #f7f7f7;
}

/* Collapsing behavior */
.guidance-wrapper[data-collapsed="true"] .guidance-content {
  display: none;
}



/* =======================================
   RESPONSIVE STYLES
   ======================================= */

/* ===========================
   BASE MICRO-BREAKPOINTS
   (for small visual adjustments only)
   =========================== */

/* 360px and below — smallest Android devices */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0.5rem;
  }

  .section-img-container img {
    width: 280px;
  }
}

/* 390px — iPhone 13/14 sizing */
@media (max-width: 390px) {
  .section-title-container h1 {
    font-size: 1.4rem;
  }

  .return-review button {
    width: 60%;
  }
}

/* 414px — older iPhones (XR / 11) */
@media (max-width: 414px) {
  .section-img-container img {
    width: 320px;
  }
  
}

@media (max-width: 600px) {
  .text-logo {
    display: none;
  }
}
/* ===========================
   SM — 640px
   (Large phones / phablets)
   =========================== */
@media (min-width: 640px) {
  .container {
    width: 85%;
  }

  .section-img-container img {
    width: 450px;
  }
  
  
}

/* ===========================
   MD — 768px
   (Tablets)
   =========================== */

   /* Show hamburger on mobile */

@media (max-width: 767px) {

  /* Show hamburger */
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #0A2D64;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  /* NAV LINKS DROPDOWN */
  .nav-links {
    display: none;                      /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 107px;     
    left: -35px;
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 1.75rem;
    gap: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  }

  /* When opened */
  .nav-links.open {
    display: flex;
  }

  /* Link styling */
  .nav-links li a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    color: #0A2D64;
  }

  /* Hide CTA button on mobile (inside dropdown already) */
  .cta-btn {
    display: none;
  }

  /* Hide desktop nav layout */
  .nav-links {
    margin-left: 0;
  }
}


@media (min-width: 768px) {
  .main-content-container {
    flex-direction: row;
  }

  .two-column {
    display: flex;
    gap: 2rem;
  }

  .menu-toggle {
    display: none; /* hide hamburger */
  }

  .nav-links {
    display: flex;
  }

  .text-logo {
    display: none;
  }

}

/* ===========================
   LG — 1024px
   (Small desktop, iPad landscape)
   =========================== */
@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
  }

  .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .section-img-container img {
    width: 500px;
  }
}

/* ===========================
   XL — 1280px
   (Large desktop)
   =========================== */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

