/* Global Styles 4112025208pm */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0; /* Remove default body margin */
  background-color: #ffffff;
  color: #222;
  line-height: 1.6; /* Improve readability */
}

/* Ensure images don't exceed their container */
img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevent bottom space under images */
}

/* General Container for centering content */
.container {
  width: 90%; /* Use percentage for responsiveness */
  max-width: 1200px; /* Max width for large screens */
  margin-left: auto; /* Center container */
  margin-right: auto;
  padding-left: 1rem; /* Add horizontal padding */
  padding-right: 1rem;
}

/* Header Styles */
.site-header {
  background-color: #e6f7f2;
  /* *** UPDATED: Reduced padding to tighten up header *** */
  padding: 0.2rem 0; 
  border-bottom: 1px solid #ccc;
  position: relative; /* Needed for z-index stacking */
  z-index: 10; /* Ensure header stays above the slider */
}

/* Flex container for logo and nav alignment */
.site-header .container {
    display: flex;
    justify-content: space-between; /* Space out logo and nav */
    align-items: center; /* Vertically align items */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 1rem; /* Add gap between logo and nav if they wrap */
}

.site-header .logo img {
  /* *** UPDATED: Increased logo height *** */
  height: 85px; 
  width: auto; /* Maintain aspect ratio */
}

/* Main Navigation List */
.main-nav ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
  margin: 0; /* Remove default margins */
  display: flex;
  gap: 1.5rem; /* Space between nav items */
  flex-wrap: wrap; /* Allow nav items to wrap */
  justify-content: flex-end; /* Align nav to the right */
}

/* Navigation Links */
.main-nav a {
  text-decoration: none;
  color: #007a5e;
  font-weight: 600;
  padding: 0.5rem 0; /* Add padding for easier clicking */
  display: inline-block; /* Allow padding */
}
.main-nav a:hover,
.main-nav a:focus {
  text-decoration: underline; /* Add hover effect */
}

/* Hero Slider - Adjusted Height */
.hero-slider {
  position: relative; /* Positioning context for slides */
  width: 100%;
  height: 50vh; /* Use 50% of viewport height */
  overflow: hidden; /* Hide parts of slides outside the container */
  z-index: 1; /* Place slider behind header */
}

/* Individual Hero Slide Styling */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Start hidden */
  transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
  z-index: 1; /* Base layer */
}

/* Active Hero Slide Styling */
.slide.active {
  opacity: 1; /* Make active slide visible */
  z-index: 2; /* Ensure active slide is on top */
}

/* Hero Slide Image Styling */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the slide area, cropping if necessary */
  object-position: center; /* Center the image within the slide */
  display: block; /* Ensure it behaves as a block element */
}

/* Text Overlay on Hero Slides */
.slide-text {
  position: absolute;
  bottom: 5%; /* Position from bottom */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 90%; /* Limit width */
  z-index: 3; /* Ensure text is above the image */
}

.slide-text h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.5rem); /* Responsive font size */
  line-height: 1.3;
}

/* Intro Section */
.intro {
  background: #f5fff5;
  text-align: center;
  /* *** UPDATED: Reduced general intro padding *** */
  padding: 2rem 1rem; 
  position: relative; /* Ensure correct stacking */
  z-index: 5; /* Keep above slider */
}
.intro h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size */
  margin-bottom: 1rem;
  color: #005a46; /* Slightly darker green */
}

/* Features Section */
.features {
  background-color: #ffffff;
  padding: 3rem 1rem;
  position: relative; /* Ensure correct stacking */
  z-index: 5;
}

/* Grid Layout for Features */
.grid-3 {
  display: grid; /* Use CSS Grid */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
  gap: 2rem; /* Gap between grid items */
}

.feature {
  text-align: center;
}
.feature img {
  margin-bottom: 1rem;
  margin-left: auto; /* Center image */
  margin-right: auto;
}
.feature h3 {
  margin-bottom: 0.5rem;
  color: #007a5e;
  font-size: 1.25rem;
}

/* Newsletter Section */
.newsletter {
  background: #e6f7f2;
  text-align: center;
  padding: 3rem 1rem;
  position: relative; /* Ensure correct stacking */
  z-index: 5;
}
.newsletter h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem); /* Responsive font size */
    margin-bottom: 0.5rem;
}
.newsletter p {
    margin-bottom: 1.5rem;
}

/* Newsletter Form Styling */
.newsletter form {
  display: flex;
  justify-content: center;
  align-items: center; /* Align items vertically */
  gap: 1rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-top: 1rem;
}

.newsletter input[type="text"],
.newsletter input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 200px; /* Minimum width */
  flex-grow: 1; /* Allow inputs to grow */
  max-width: 300px; /* Maximum width */
}

/* General Button Style (Enhanced) */
.button,
.newsletter button,
#signup-form button {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.5rem;
  background-image: linear-gradient(to bottom, #008a6e, #006a4e);
  background-color: #007a5e; /* Fallback */
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-out;
}
.button:hover,
.button:focus,
.newsletter button:hover,
.newsletter button:focus,
#signup-form button:hover,
#signup-form button:focus {
  background-image: none; /* Remove gradient on hover */
  background-color: #005a46; /* Darker green */
  color: white !important;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
/* Remove right margin from last button in a group if needed */
.button:last-child {
    margin-right: 0;
}


/* Footer Styles */
.site-footer {
  background-color: #e6f7f2;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
  color: #444;
  position: relative; /* Ensure correct stacking */
  z-index: 5;
}

/* Footer Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
  gap: 2rem; /* Gap between columns */
  margin-bottom: 2rem; /* Space before bottom bar */
}

.footer-grid div {
  /* No specific flex needed with grid */
}

.site-footer h4 {
    margin-bottom: 0.75rem;
    color: #005a46;
}

/* Footer Lists */
.site-footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.site-footer ul li {
    margin-bottom: 0.5rem;
}

/* Footer Links */
.site-footer a {
    text-decoration: none;
    color: #007a5e;
}
.site-footer a:hover,
.site-footer a:focus {
    text-decoration: underline;
}

/* Footer Bottom Bar */
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  margin-top: 1rem; /* Reduced margin */
  font-size: 0.85rem;
  color: #555;
}

/* --- About Page Specific Styles --- */

/* Layout for section containing slideshow and text */
.cynthia-section {
  display: flex; /* Use flexbox for side-by-side layout */
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: 2rem; /* Space between image and text */
  align-items: flex-start; /* Align items to the top */
}

/* About Page Slideshow Container */
.about-slideshow {
  position: relative; /* Context for absolute positioned slides */
  flex: 0 0 250px; /* Flex properties: Don't grow, don't shrink, basis width 250px */
  aspect-ratio: 3 / 4; /* Maintain a 3:4 aspect ratio (adjust as needed) */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem; /* Space below slideshow */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional subtle shadow */
}

/* Text container next to slideshow */
.cynthia-text {
    flex: 1; /* Allow text block to take remaining space */
    min-width: 250px; /* Prevent text block from becoming too narrow */
}

/* Individual About Page Slides */
.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.0s ease-in-out; /* Fade duration */
  z-index: 1;
}

/* Active About Page Slide */
.about-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Image within About Page Slide */
.about-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the container */
}

/* --- Book Page Specific Styles --- */

/* Flex container for book cover and description */
.book-details {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem; /* Space between cover and description */
    align-items: flex-start; /* Align items to top */
}

/* Book cover container */
.book-cover {
    flex: 0 0 280px; /* Adjust width as needed, don't grow/shrink */
    max-width: 100%; /* Ensure it doesn't overflow container on very small screens */
    margin-bottom: 1rem;
}
.book-cover img {
    border: 1px solid #eee; /* Optional border */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional shadow */
    width: 100%; /* Make image fill container */
}

/* Book description container */
.book-description {
    flex: 1; /* Take remaining space */
    min-width: 300px; /* Minimum width before wrapping */
}
.book-description h2 { /* Style heading within description */
    margin-top: 0; /* Remove top margin if it's the first element */
}

/* Purchase link buttons */
.purchase-links {
    margin-top: 1.5rem;
}
/* Uses general .button style */


/* Book testimonials styling */
.book-testimonials blockquote {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid #e6f7f2; /* Light green border */
    font-style: italic;
    color: #555;
}
.book-testimonials blockquote footer {
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: bold;
    color: #333;
}

/* About Author section on Book Page */
.about-author-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee; /* Separator line */
}
.about-author-section h3 {
    margin-bottom: 0.75rem;
}

/* --- Services Page Specific Styles --- */

.service-item {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically align text and image */
    gap: 1.5rem; /* Space between text and image */
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fdfdfd; /* Very light background */
    border: 1px solid #f0f0f0; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow */
}

.service-text {
    flex: 1; /* Allow text to take up available space */
}

.service-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #007a5e; /* Theme color */
}

.service-image {
    flex: 0 0 150px; /* Fixed width for the image */
    height: 150px; /* Fixed height */
    object-fit: cover; /* Cover the area */
    border-radius: 8px; /* Match card rounding */
}

.cta-section {
    text-align: center;
    margin-top: 3rem; /* More space before CTA */
    padding: 2.5rem; /* More padding */
    background-color: #e6f7f2; /* Match footer/header */
    border-radius: 8px;
}
.cta-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #005a46; /* Darker theme color */
}
/* Uses general .button style */

/* --- Classes Page Specific Styles --- */

.class-item {
    margin-bottom: 2rem; /* Space between class items */
    padding: 1.5rem;
    background-color: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.class-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #007a5e; /* Theme color */
    display: flex; /* Align icon and text */
    align-items: center;
}
.class-item h3 i.fa-solid {
    margin-right: 0.75rem; /* Space between icon and text */
    color: #007a5e; /* Match heading color */
    font-size: 0.9em; /* Slightly smaller than heading */
    width: 1.2em; /* Ensure consistent alignment */
    text-align: center;
}


.class-details {
    margin-top: 1rem;
    margin-bottom: 1.5rem; /* Space before button */
    font-size: 0.9em;
    color: #555;
}
.class-details p {
    margin-bottom: 0.5em; /* Space between detail lines */
}
/* Uses general .button style for registration */

/* --- Shop Page Specific Styles --- */

.product-grid {
    display: grid;
    /* *** UPDATED: Force 3 columns on desktop *** */
    grid-template-columns: repeat(3, 1fr); /* Default to 3 columns */
    gap: 1.5rem; /* Adjust gap between cards */
}

.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fdfdfd;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex; /* Use flexbox for vertical alignment */
    flex-direction: column; /* Stack items vertically */
}

.product-card img {
    max-width: 100%;
    height: 200px; /* Fixed height for image area */
    object-fit: contain; /* Show whole product image, don't crop */
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.product-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1em; /* Adjust as needed */
    color: #007a5e;
}

.product-card p {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1; /* Allow description to push button down */
    margin-bottom: 1rem;
}

.product-card .price {
    font-weight: bold;
    color: #005a46;
    margin: 0.5rem 0;
    font-size: 1em;
    flex-grow: 0; /* Don't let price grow */
}

.product-card .button {
    margin-top: auto; /* Push button to bottom of card */
    margin-left: auto; /* Center button if needed (or remove margin-right) */
    margin-right: auto;
    margin-bottom: 0; /* Remove bottom margin */
}


/* --- Modal Styles --- */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  padding-top: 60px; /* Location of the box */
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 5% from the top and centered */
  padding: 25px 30px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px; /* Maximum width */
  border-radius: 8px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal h2 {
    margin-top: 0;
    color: #005a46;
}

/* Modal Form Styles */
#signup-form .form-group {
    margin-bottom: 1rem;
}
#signup-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #333;
}
#signup-form input[type="text"],
#signup-form input[type="email"],
#signup-form input[type="tel"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}
#signup-form button {
    /* Uses .button styles */
    width: 100%; /* Make button full width */
    margin-top: 0.5rem;
}
.form-message {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
}


/* --- Responsive Adjustments --- */

/* Medium screens (Tablets, etc.) */
@media (max-width: 992px) { /* Adjusted breakpoint for 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
}

/* Smaller screens (Tablets, Large Phones) */
@media (max-width: 768px) {
  /* Adjust header layout for smaller screens */
  .site-header .container {
      justify-content: center; /* Center logo and nav when stacked */
  }
  .main-nav ul {
    justify-content: center; /* Center nav items */
    gap: 1rem; /* Reduce gap */
  }

  /* Adjust slide text size */
  .slide-text {
      bottom: 10%; /* Move text up slightly */
      padding: 0.8rem 1.5rem;
  }

  /* Adjust padding for sections */
  .intro, .features, .newsletter, .site-footer, .book-page-content, .services-list, .classes-list, .shop-items {
      padding-top: 2rem;
      padding-bottom: 2rem;
  }

  /* Adjust footer grid for stacking */
  .footer-grid {
      text-align: center; /* Center text when stacked */
  }
  /* Reduce hero slider height on medium screens */
  .hero-slider {
      height: 50vh;
  }

  /* Stack about slideshow above text on smaller screens */
  .cynthia-section {
      display: block; /* Remove flex layout */
  }
  .about-slideshow {
      flex-basis: auto; /* Reset flex basis */
      width: 70%; /* Adjust width */
      max-width: 300px; /* Max width */
      margin: 0 auto 1.5rem auto; /* Center the slideshow */
  }
  .cynthia-text {
     flex-basis: auto; /* Reset flex basis */
     min-width: unset; /* Reset min-width */
  }

  /* Center book cover above description on smaller screens */
   .book-cover {
      flex-basis: auto; /* Reset flex basis */
      width: 60%; /* Adjust width */
      max-width: 280px; /* Max width */
      margin: 0 auto 1.5rem auto; /* Center the cover */
  }
   .book-description {
     flex-basis: auto; /* Reset flex basis */
     min-width: unset; /* Reset min-width */
     text-align: center; /* Center text below cover */
  }
   .book-description ul {
      display: inline-block; /* Allow centering */
      text-align: left; /* Keep list items left-aligned */
   }
   .purchase-links {
       text-align: center; /* Center buttons */
   }
   .purchase-links .button {
       margin-left: 0.5rem;
       margin-right: 0.5rem;
   }
   .about-author-section {
       text-align: center; /* Center author text */
   }

   /* Stack service image below text on smaller screens */
   .service-item {
       display: block; /* Remove flex */
       text-align: center; /* Center text */
   }
   .service-image {
       flex-basis: auto; /* Reset flex */
       width: 180px; /* Adjust size */
       height: 180px;
       margin: 1rem auto 0 auto; /* Center below text */
   }
   /* Center class details and button on smaller screens */
   .class-item {
       text-align: center;
   }
   .class-item h3 {
       justify-content: center; /* Center icon and text in heading */
   }
   .class-details {
       display: inline-block; /* Allow centering */
       text-align: left; /* Keep details left-aligned */
   }
   /* Product grid columns already adjusted by 992px breakpoint */
}

/* Small screens (Phones) */
@media (max-width: 576px) { /* Adjusted breakpoint for 1 column */
    .product-grid {
        grid-template-columns: 1fr; /* 1 column */
    }
    /* Further adjustments for very small screens */
    .main-nav ul {
        gap: 0.5rem; /* Further reduce nav gap */
        font-size: 0.9rem; /* Slightly smaller nav font */
    }
    .main-nav a {
        padding: 0.3rem 0;
    }

    .newsletter form {
        flex-direction: column; /* Stack form elements */
        align-items: stretch; /* Make elements full width */
    }
    .newsletter input[type="text"],
    .newsletter input[type="email"],
    .newsletter button {
        min-width: unset; /* Remove min-width */
        width: 100%; /* Make full width */
        max-width: 100%;
    }

    .slide-text {
        max-width: 95%;
        padding: 0.5rem 1rem;
    }
    /* Reduce hero slider height further on small screens */
    .hero-slider {
      height: 45vh;
    }
     /* Adjust about slideshow size on very small screens */
    .about-slideshow {
      width: 80%;
    }
    /* Adjust book cover size */
    .book-cover {
      width: 70%;
      max-width: 240px; /* Adjust max width for small screens */
    }
    .service-item {
        padding: 1rem; /* Reduce padding on small screens */
    }
    .cta-section {
        padding: 1.5rem; /* Reduce padding */
    }
    .service-image {
        width: 150px; /* Further adjust size */
        height: 150px;
    }
    .class-item {
        padding: 1rem; /* Reduce padding */
    }
    .modal-content {
        width: 90%; /* Increase width on small screens */
        padding: 20px;
    }
    /* Adjust product grid for small screens */
    .product-grid {
        gap: 1rem; /* Reduce gap */
    }
    .product-card {
        padding: 1rem; /* Reduce padding */
    }
    .product-card img {
        height: 150px; /* Reduce image height */
    }
    /* Forcefully remove decorative lines from the logo link */
.site-header .logo {
  border-top: none !important;
  border-bottom: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.site-header .logo::before,
.site-header .logo::after {
  display: none !important;
}
