body {
  background: linear-gradient(135deg, #bcd4e6, #7CA68B);
  font-family: 'Poppins', sans-serif;
  color: #A9CBD9;
  text-align: center;
  margin: 0;
  padding: 0;
}

nav a.active {
  font-weight: bold;
  color: #F29580; /* your theme color */
  /*text-decoration: underline;*/
}


header {
  /*background-image: url("images/header-bg.jpg");*/
  background-size: cover;
  background-position: center;
  padding: 40px;
  color: #0D4F6A;
}

nav {
  margin: 15px 0;
}

/* Only affects the Home page content */
.home-content {
   padding: 20px;
  max-width: 1000px;
  margin: 0 auto;    /* inward spacing left + right */
}

/* Optional: nicer spacing for paragraphs on home */
.home-content p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.design-content {
   padding: 20px;
  max-width: 1000px;
  margin: 0 auto;    /* inward spacing left + right */
}

/* Optional: nicer spacing for paragraphs on home */
.design-content p {
  line-height: 1.7;
  margin-bottom: 16px;
}

.learn-content {
   padding: 20px;
  max-width: 1000px;
  margin: 0 auto;    /* inward spacing left + right */
}

/* Optional: nicer spacing for paragraphs on home */
.learn-content p {
  line-height: 1.7;
  margin-bottom: 16px;
}

nav a {
  color: #5ba4a4;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
}

nav a:hover {
  text-decoration: underline;
}

.center-img {
  display: block;
  margin: 20px auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.habit-table {
  width: 80%;
  margin: 20px auto;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.habit-table th, .habit-table td {
  border: 1px solid #d6eadf;
  padding: 12px;
}

.habit-table th {
  background-color: #cfe0e8;
}

.habit-table tr:nth-child(even) {
  background-color: #f9f7f7;
}

footer {
  margin-top: 40px;
  padding: 15px;
  font-size: 0.9em;
  color: #666;
}

button {
  background-color: #a4c3b2;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

/* Base header + footer styling (adjust if you already have some) */
header,
footer {
  padding: 20px;
  text-align: center;
  background-color: linear-gradient(to right, #cfe0e8, #d6eadf,#F5E5E5); /* or your pastel background */
}

/* Ombré border for header (bottom border) */
header {
  border-bottom: 6px solid;
  border-image: linear-gradient(to right, #cfe0e8, #d6eadf,#F5E5E5) 1;
}

/* Ombré border for footer (top border) */
footer {
  border-top: 6px solid;
  border-image: linear-gradient(to right, #cfe0e8, #d6eadf, #f9f7f7) 1;
}

/* ------------------------------ */
/*     HAPPYHABIT GALLERY CSS     */
/* ------------------------------ */

.hh-carousel-container {
  position: relative;
  margin: 50px auto;
  text-align: center;
  width: 90%;
}

.hh-gallery-title {
  font-size: 32px;
  color: #0D4F6A;
  margin-bottom: 5px;
}

.hh-gallery-text {
  color: #4a6675;
  margin-bottom: 20px;
}

/* Carousel Wrapper */
.hh-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.hh-carousel::-webkit-scrollbar {
  display: none;
}

/* Each Slide Box */
.hh-slide {
  min-width: 350px;
  height: 480px;
  background: white;
  border-radius: 16px;
  box-shadow: 0px 4px 10px #bcd4e680;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;   /* optional: prevents accidental white edges */
}

/* PERFECT FIT IMAGES INSIDE THE SLIDE */
.hh-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* keeps proportions clean */
  border-radius: 12px;   /* optional - matches card shape */
}


/* Arrow Buttons */
.hh-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #bcd4e6, #d6eadf);
  border: none;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  color: #0D4F6A;
  box-shadow: 0px 4px 10px #8cb3bd70;
  transition: 0.3s ease;
}

.hh-arrow:hover {
  background: linear-gradient(135deg, #d6eadf, #bcd4e6);
  transform: translateY(-50%) scale(1.1);
}

.hh-left { left: -10px; }
.hh-right { right: -10px; }

/* Ensure the figure fills the slide */
.hh-figure {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Image fits properly */
.hh-figure img {
  width: 100%;
  height: 90%;
  object-fit: contain;
}

/* Caption styling */
.hh-figure figcaption {
  margin-top: 6px;
  font-size: 16px;
  color: #0D4F6A;
  font-weight: 600;
  text-align: center;
}

/* ====================== */
/*     ZOOM GALLERY       */
/* ====================== */
.zoom-gallery {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.zoom-gallery img {
  width: 300px;
  height: auto;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0px 4px 10px #bcd4e680;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.zoom-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 16px #91afbf90;
}

/* ====================== */
/*    FULLSCREEN VIEWER   */
/* ====================== */
.fullscreen-viewer {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 30, 45, 0.85);
  z-index: 9999;
  padding: 5px;
}

.fullscreen-viewer img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0px 4px 20px #0006;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 50px;
  color: #BF0413;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

.close-btn:hover {
  color: #BF0413;
}

.zoom-gallery {
  display: flex;
  justify-content: center;   /* centers images horizontally */
  align-items: center;       /* centers them vertically (optional) */
  gap: 5px;                 /* space between the images */
  margin-top: 20px;
  flex-wrap: wrap;           /* lets them wrap if screen is small */
}

.zoom-gallery img {
  display: block;
  margin: 0 auto;            /* ensures image itself is centered in wrap */
  border-radius: 5px;
  cursor: pointer;
  width: 500px;              /* optional: keeps consistent sizes */
  height: auto;
}
