/* ================================
   Global Styles for All Pages
   ================================ */


   html ,body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Color Variables */
:root {
  --brand-bg: #fde2e4;        /* soft background */
  --brand-header: #f9c5d1;    /* header/footer background */
  --brand-accent: #e75480;    /* main accent (buttons, highlights) */
  --brand-hover: #ffd580;     /* hover state */
  --text-main: #333333;       /* primary text */
  --text-secondary: #444444;  /* secondary text */
}

/* Reset & Base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--brand-bg);
  color: var(--text-main);
  scroll-behavior: smooth;
}

h1, h2 {
  font-family: 'Georgia', serif;
  text-align: center;
  color: var(--text-main);
}

h3 {
  font-family: 'Georgia', serif;
  text-align: left;
  color: var(--text-main);
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  
}

/* ================================
   Header & Navigation
   ================================ */
header {
  background-color: var(--brand-header);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}



.logo {
  width: 60px;
  height: auto;
  border-radius: 50%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background 0.3s;
}

nav a:hover,
nav a:focus {
  background-color: var(--brand-hover);
  color: var(--text-main);
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

/* ================================
   Cards & Sections
   ================================ */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  padding: 40px 20px;
}

/* ================================
   Buttons
   ================================ */
.cta-button{
  background-color: var(--brand-accent);
  color: #fff;
  padding: 10px 19px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  margin: 10px auto;
  cursor: pointer;
  border: none;
}
.next-button {
  background-color: var(--brand-accent);
  color: #fff;
  padding: 10px 19px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  margin: 10px auto;
  cursor: pointer;
  border: none;
}
.quick-button{
background-color: var(--brand-accent);
  color: #fff;
  padding: 12px 17px;
  border-radius: 30px;
  /* flex-flow: row; */
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  margin: 10px auto;
  cursor: pointer;
  border: none;
}
.back-button{
   background-color: var(--brand-accent);
  color: #fff;
  padding: 10px 19px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  margin: 10px auto;
  cursor: pointer;
  border: none;

}

.cta-button:hover{
   background-color: var(--brand-hover);
  color: var(--text-main);
  transform: scale(1.05);

}
.quick-button:hover{
   background-color: var(--brand-hover);
  color: var(--text-main);
  transform: scale(1.05);

}
.back-button:hover{
   background-color: var(--brand-hover);
  color: var(--text-main);
  transform: scale(1.05);

}
.next-button:hover {
  background-color: var(--brand-hover);
  color: var(--text-main);
  transform: scale(1.05);
}

.cta-button:focus{
   outline: 2px solid var(--text-main);
  outline-offset: 2px;
}
.quick-button:focus{
   outline: 2px solid var(--text-main);
  outline-offset: 2px;
}
.back-button:focus{
   outline: 2px solid var(--text-main);
  outline-offset: 2px;
}
.next-button:focus {
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
}

/* ================================
   Footer
   ================================ */
footer {
  background-color: var(--brand-header);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
}

footer p {
  margin: 10px 0 5px 0;
}

footer a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: var(--brand-accent);
}

/* Extended footer navigation (Contact page) */
.footer-nav {
  margin-bottom: 15px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: space-between; /* evenly spread links */
  flex-wrap: wrap;
  max-width: 800px;
}

.footer-nav li {
  flex: 1;
  text-align: center;
}

.footer-nav a {
  text-decoration: none;
  color: var(--brand-accent);
  font-weight: bold;
  transition: color 0.3s, background 0.3s;
  padding: 6px 10px;
  border-radius: 6px;
}

.footer-nav a:hover,
.footer-nav a:focus,
.footer-nav a:active {
  color: #fff;
  background-color: var(--brand-accent);
}

/* ================================
   Back + Next Navigation Buttons
   ================================ */
.nav-buttons,
.home-next-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  /* margin: 40px auto; */
}

/* ================================
   Homepage Carousel
   ================================ */
.homepage-carousel img {
  display: none;
  width: 100%;
  border-radius: 12px;
  object-fit: contain; /* ensures full image shows */
}

.homepage-carousel img.active {
  display: block;
}


/* Updates Section */
.updates-container {
  background: #ffffff;
  padding: 40px 20px;
  margin: 40px auto;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.updates-container h2 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
  margin-right: 21px;
  color: #ff006e;
}

/* Notification Box */
.notification-box {
  text-align: center;
  margin-bottom: 20px;
}

#notify-btn {
  background: linear-gradient(45deg, #ff006e, #8338ec);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

#notify-btn:hover {
  transform: scale(1.05);
}

.notify-description {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #444;
}

/* Carousel */
.updates-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 10px;
}

.update-card {
  flex: 0 0 auto;
  min-width: 80%;
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 15px;
  /* padding: 15px; */

}

.update-card img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

.update-text h3 {
  margin: 0;
  font-size: 1.1rem;
}

.update-text p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Apply smaller sizes on mobile screens */
@media (max-width: 768px) {
  body {
    font-size: 14px;        /* reduce text size */
    line-height: 1.4;       /* tighter spacing */
  }

  .container, .updates-container, .carousel-container {
    max-width: 95%;         /* keep content inside screen */
    margin: 0 auto;         /* center it */
    padding: 0.5rem;        /* reduce padding */
  }

  h1, h2, h3 {
    font-size: 1.2em;       /* smaller headings */
  }

  p {
    font-size: 0.9em;       /* smaller paragraph text */
  }

  img {
    border-radius: 8px;     /* softer corners */
  }
}


/* Global container utility */
.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Predictable box-sizing for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--brand-header);
  padding: 10px 0;
  color: var(--text-main);
}

/* Header layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo and tagline */
.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -54px;
  margin-left: 120px;
}

.logo {
  width: 60px;
  height: auto;
  border-radius: 0;   /* remove rounding */
  object-fit: contain; /* keep full logo visible */
}

.logo-title img.logo {
  height: 35px;
  width: auto;
  margin-left: -55px;
  margin-top: -2px;
}


.logo-title h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color:black;
  margin: 0;
}
.logo-title p {
  font-size: 0.8rem;
  font-weight: bold;
  font-family: monospace;
  color: var(--brand-accent);
  margin: 0;
}

/* Desktop nav: always visible, horizontal */
.main-nav {
  display: flex;
  justify-content: flex-end;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 58px;
  padding: 0;
  margin-bottom: 10px;
}

.main-nav li {
  flex-shrink: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s;
}

.main-nav a:hover {
  background-color: var(--brand-accent);
  color: #fff;
}

/* Mobile: nav hidden until toggle */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--brand-header);
    border-top: 2px solid var(--brand-accent);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    display: block;
    padding: -8px;
    /* border-radius: 38px; */
    right: -101px;
    top: 78px;
    background-color: #fde2e4;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
    padding: 10px;
  }

  .main-nav a {
    display: block;
    padding: 5px;
    font-size: 0.95rem;
    text-align:left;
    font-family: auto;
    margin-left: 54px;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
  }

  .logo-title {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* Desktop: hide toggle button */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* Consistent tap feedback for nav links */
/* Tap feedback for nav links */
.main-nav a:active,
.main-nav a:focus {
  outline: none;
  background-color: pink; /* or use a custom shade like #f48fb1 */
  color: #fff;
  border-radius: 6px;
}

:root {
  --tap-feedback: pink; /* or #f48fb1 */
}

.main-nav a:active,
.main-nav a:focus {
  background-color: var(--tap-feedback);
}

img {
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: -68px;
    flex-flow:row;
    padding-top: 101px;
  }
}
@media (max-width: 768px) {
  .tier {
    width: 90%;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none; /* hides full nav */
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--brand-header);
  }

  .main-nav.open {
    display: block; /* shows nav when toggle is active */
  }

  .menu-toggle {
    display: block; /* shows toggle button on mobile */
  }

  .logo-title {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 26px;
    margin-left: -24px;
    padding: 7px;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none; /* hides toggle on desktop */
  }
}




/* Show toggle button on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none; /* hide menu by default */
    position: absolute;
    top: 60px;     /* below header */
    right: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
  }

  .main-nav.active {
    display: block; /* show when toggled */
  }

  .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .main-nav a {
    text-decoration: none;
    color: #1d3557;
    font-weight: bold;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #1d3557; /* dark blue */
  position: absolute;
  top: 20px;
  right: 8px;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    display: none;
    margin-top: 15px;
  }

  .main-nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  header .menu-toggle {
    display: none !important;
  }
}
