@font-face {
  font-family: 'Cinzel';
  src: url('Cinzel-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

html, body {
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Cinzel', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #8F9779 0%, #C9D6B9 100%);
  background-attachment: fixed;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* fill viewport */
}

main {
  flex: 1 0 auto; /* take remaining space between header and footer */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent; /* show body gradient */
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  margin-left: 2rem; /* moves all content slightly to the left */
}

nav {
  display: flex;
  justify-content: center; /* centers nav items horizontally */
  flex-wrap: wrap;
}

section {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

footer {
  flex-shrink: 0;
  text-align: center;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  color: #4a5a40;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
}


* {
  box-sizing: border-box;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* Nav styling for all screens */
nav {
  display: flex;
  flex-wrap: wrap;          /* allow items to wrap */
  justify-content: center;  /* center items horizontally */
  align-content: center;    /* center multiple rows vertically if wrapped */
  gap: 2rem;                /* space between tabs */
  font-weight: 600;
  font-size: 1.2rem;
  font-family: 'Cinzel', serif;
}

/* Nav links */
nav a {
  color: #2c3e50;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

nav a:hover,
nav a:focus {
  background-color: #627b53;
  color: #fff;
  outline: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  nav {
    gap: 1rem;             /* slightly smaller spacing */
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }
}


.header-with-flowers {
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

.header-with-flowers .site-logo {
  display: block;
  margin: 1rem auto 0;
  width: 85px;
  height: auto;
}

h1 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  margin: 0.2rem 0 0.4rem 0;
  position: relative;
  z-index: 2;
}

h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: #51664a;
  position: relative;
  z-index: 2;
}

.flower-left,
.flower-right {
  position: absolute;
  top: 50%;
  width: 160px;
  height: 160px;
  background: url('flower_of_life.png') no-repeat center center;
  background-size: contain;
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 1;
}

.flower-left { left: 0; }
.flower-right { right: 0; }

main {
  flex: 1; /* grow to push footer down */
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  background: transparent; /* show the body gradient */
}

section {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.certification-section ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #425934;
}

.certification-section .btn-primary {
  display: inline-block;
  background-color: #627b53;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.certification-section .btn-primary:hover,
.certification-section .btn-primary:focus {
  background-color: #51664a;
  outline: none;
}

.btn-primary {
  display: inline-block;
  background-color: #627b53;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Cinzel', serif; /* add this */
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #51664a;
  outline: none;
}


.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.photo-gallery img {
  flex: 1 1 200px; /* base size for each image */
  max-width: 200px; /* prevents them from being too large */
  height: auto;     /* keeps aspect ratio */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.photo-gallery img:hover {
  transform: scale(1.05);
}

.join-link,
.contact-email {
  color: #627b53;
  font-weight: 700;
  text-decoration: underline;
}

footer {
  flex-shrink: 0;
  text-align: center;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  color: #4a5a40;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
}

h1::after,
h2::after,
h3::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('candle.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 8px;
  vertical-align: middle;
  animation: candleFlicker 1.5s infinite ease-in-out;
}

.core-program .program-certificate {
  width: 250px;   /* smaller size */
  height: auto;   /* maintain aspect ratio */
  border-radius: 8px; /* optional */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* optional */
}

.crystal-ball-title {
  position: relative;
}

.crystal-ball-title::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background-image: url('Crystal_Ball.png')!important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 8px;
  vertical-align: middle;
  animation: crystalGlow 1.5s infinite ease-in-out;
}

@keyframes crystalGlow {
  0%   { transform: scale(1); opacity: 0.9; }
  50%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes candleFlicker {
  0%   { transform: scale(1) rotate(0deg); filter: brightness(1); }
  10%  { transform: scale(1.05) rotate(-1deg); filter: brightness(1.2); }
  20%  { transform: scale(0.98) rotate(1deg); filter: brightness(0.9); }
  30%  { transform: scale(1.04) rotate(-1deg); filter: brightness(1.1); }
  40%  { transform: scale(1) rotate(1deg); filter: brightness(1.3); }
  50%  { transform: scale(1.02) rotate(0deg); filter: brightness(1); }
  60%  { transform: scale(0.97) rotate(-1deg); filter: brightness(1.2); }
  70%  { transform: scale(1.03) rotate(1deg); filter: brightness(0.95); }
  80%  { transform: scale(1.05) rotate(-1deg); filter: brightness(1.1); }
  90%  { transform: scale(1) rotate(1deg); filter: brightness(1.2); }
  100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}

@media (max-width: 768px) {
  .flower-left,
  .flower-right { display: none; }
  main { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (max-width: 600px) {
  header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 1000;
  }

  /* Adjust crystal ball size for mobile */
  .crystal-ball-title::after {
    width: 25px;
    height: 25px;
    margin-left: 4px;
    display: inline-block;           /* Ensure it's not hidden */
    content: "";
    background-image: url('Crystal_Ball.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    animation: crystalGlow 1.5s infinite ease-in-out;
  }

  main > section:first-of-type {
    margin-top: 2rem; /* adjust as needed */
}

  nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    justify-items: center;
  }

  nav a {
    font-size: 0.80rem;
    padding: 0.15rem 0.3rem;
    width: 100%;
    text-align: center;
  }

  main {
    padding-top: 1rem;
    padding-left: 1.5rem;   /* keeps content slightly shifted left */
    padding-right: 1.5rem;
    margin-left: 0;          /* remove any centering */
    margin-right: 0;
    width: 100%;
  }
  h1 { font-size: 2.2rem; }

  .join-link,
  .contact-email {
    font-weight: 700;
    font-size: 0.7rem;
    word-wrap: break-word;
  }

.contact-form {
  max-width: 700px;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  margin: 0 auto; /* center it */
}

  .contact-form .form-group { margin-bottom: 1.5rem; }

  .contact-form label {
    font-weight: 700;
    color: #51664a;
    display: block;
    margin-bottom: 0.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
  }
  
}
/* Curriculum container */
.curriculum {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space between weeks */
  margin-top: 2rem;
}

/* Each week container */
.week {
  background: rgba(255, 255, 255, 0.95); /* slightly opaque white */
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-left: 6px solid #627b53; /* accent color for week */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.week:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.week h2 {
  color: #51664a;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.week ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  color: #425934;
}

.week ul li {
  margin-bottom: 0.7rem;
}

.week a {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 1rem;
  font-weight: 700;
  color: #fff;
  background-color: #627b53;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.week a:hover {
  background-color: #51664a;
}
/* Curriculum buttons smaller */
.curriculum .btn-primary {
    padding: 0.4rem 0.8rem; /* smaller padding */
    font-size: 0.9rem;      /* smaller font */
    border-radius: 5px;     /* slightly smaller corners */
}
.curriculum section ul {
    margin-left: 1.5rem;       /* keeps bullets indented */
    margin-bottom: 1.5rem;     /* space after the entire list */
    color: #425934;
    line-height: 1.8;          /* increases space between bullet points */
}

.curriculum section ul li {
    margin-bottom: 1rem;       /* space between individual bullets */

}

/* Container for the Become a Member button + ad */
.join-member-container {
  display: flex;
  justify-content: flex-start; /* left-align button */
  align-items: center;         /* vertically align button and ad */
  gap: 20px;                   /* space between button and ad */
  margin-top: 10px;
  flex-wrap: wrap;             /* allow wrap only if necessary */
}

.join-member-container a.join-link {
  flex-shrink: 0;              /* button won't shrink */
  padding: 4px 6px;          /* vertical & horizontal padding */
  border-radius: 6px;          /* rounded corners */
  display: inline-block;
  text-align: center;
  font-weight: 600;
}

/* Blue styling */
.blue-button {
  background-color: #6772E5;  /* blue */
  color: #fff;
}

.blue-button:hover {
  background-color: #5469d4;  /* darker blue on hover */
}

.member-ad-image {
  max-height: 200px;            /* control size */
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .join-member-container {
    flex-wrap: wrap;           /* allow stacking if container too narrow */
    justify-content: center;   /* center items when stacked */
  }

  .member-ad-image {
    max-height: 60px;          /* smaller ad on mobile */
  }
}
