@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 {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: 'Cinzel', serif;
}

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;
}

nav a:hover,
nav a:focus {
  background-color: #627b53;
  color: #fff;
  outline: none;
}

.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;
  }
  
}
