/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: none !important;
}

#page, .et_pb_section, .et_section_regular, #main-content {
    background: transparent !important;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}



.aS-block{
    margin: 40px 0;
}




.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0 30px 0;
}

.pill {
  background-color: #F1F1F1;
  color: #828282;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.pill:hover {
  background-color: #ddd;
  cursor: default;
}





.book-image-gallery {
    margin: 2rem 0;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Auto layout */
    gap: 1rem;
}

/* Tablet: 2 columns max */
@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
    .gallery-thumbnails {
        grid-template-columns: 1fr;
    }
}

.gallery-thumbnails .thumbnail {
    cursor: pointer;
    display: flex;
    align-items: center;     /* Vertically center */
    justify-content: center; /* Horizontally center */
}

.gallery-thumbnails img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
    display: block;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbnails img:hover {
    transform: scale(1.05);
}




/* Modal Styles */
.gallery-modal {
    position: fixed; /* Ensure modal is fixed on the full screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.gallery-modal.modal-open {
    opacity: 1;
    pointer-events: all;
}

.modal-image-wrapper {
    position: relative;
    width: 80%;
    max-width: 90%;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Modal navigation arrows */
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border: none;
    cursor: pointer;
    z-index: 10;
    transform: translateY(-50%);
}

.modal-prev {
    left: 10px;
}

.modal-next {
    right: 10px;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Sliding animation for images */
.modal-image-wrapper.sliding img {
    transform: translateX(100%); /* Slide to the right */
    transition: transform 0.3s ease;
}

/* Lock body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}













.responsive-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
.responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



.prebuilt-block {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}




.book-reviews {
    display: grid;
    grid-template-columns: 1fr; /* Single column */
    gap: 15px;
    padding: 00px;
    border-radius: 12px;
}

.single-review {
    background: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}
.single-review p{
    padding: 10px 0;
}

.single-review:hover {
    transform: translateY(-5px);
}

.review-content {
    all: unset; /* Reset all default styles */
    border: none;
    margin: 0;
    padding: 5px 0 0 20px;
    color: #444;
    line-height: 1.6;
    position: relative;
}


.review-content::before {
    content: "“";
    font-size: 5rem;
    position: absolute;
    left: -25px;
    top: -25px;
    color: #eaeaea;
    font-family: 'Crimson Pro',Georgia,"Times New Roman",serif
}

.review-footer {
    text-align: left;
    margin-top: auto;
    padding: 0px 20px;
}

.review-author {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}

.review-title {
    font-weight: normal;
    color: #666;
    font-style: normal;
    font-size: 12px;
}







.purchaseLinks {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap into multiple rows */
    justify-content: space-between;
    gap: 10px; /* Optional: space between the links */
}

.purchaseLinks.sideNav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns by default */
    gap: 10px;
}

@media (max-width: 600px) {
    .purchaseLinks.sideNav {
        grid-template-columns: 1fr; /* One column on small screens */
    }
}

.purchaseLinks a {
    display: inline-block;
    font-size: 13px;
    padding: 15px 10px; /* Vertical and horizontal padding */
    border-radius: 20px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    color: #FFF; /* Text color */
    text-align: center; /* Center text within the link */
    font-weight: bold; /* Optional: bold text */
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s; /* Smooth hover transition */
    line-height: 120%;
    white-space: nowrap; /* Prevent text from breaking into multiple lines */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis if the text is too long */
    flex: 1 1 18%; /* Default to 5 columns (100% / 5 = 20%, but subtract gap) */
    min-width: 0; /* Prevent items from breaking down unexpectedly */
}

/* Responsive styles for medium screens (2 columns) */
@media (max-width: 1024px) {
    .purchaseLinks a {
        flex: 1 1 48%; /* 2 columns (100% / 2 = 50%, but subtract gap) */
    }
}

/* Responsive styles for small screens (1 column) */
@media (max-width: 768px) {
    .purchaseLinks a {
        flex: 1 1 100%; /* 1 column (100%) */
        padding: 15px 20px;
    }
}

/* Optional: For even smaller screens (adjust as needed) */
@media (max-width: 480px) {
    .purchaseLinks a {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 16px 20px; /* Adjust padding for smaller screens */
    }
}



a.amazon {
    background-color: #FF9900;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.amazon:hover {
    background-color: #e68900; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}

a.barnes-noble {
    background-color: #415A47;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.barnes-noble:hover {
    background-color: #374A3A; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}

a.apple-books {
    background-color: #383838;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.apple-books:hover {
    background-color: #2f2f2f; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}

a.google-play {
    background-color: #5689F2;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.google-play:hover {
    background-color: #4875D1; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}

a.readerhouse {
    background-color: #679CD4;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.readerhouse:hover {
    background-color: #5a88b5; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}

a.authorSite {
    background-color: #b6b6b6;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.authorSite:hover {
    background-color: #a0a0a0; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}

a.audible {
    background-color: #ff8a09;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
}

a.audible:hover {
    background-color: #e68900; /* Darker shade */
    transform: scale(1.05); /* Slight enlargement */
}





.aS-block.book-youtube-video .responsive-embed iframe {
    border-radius: 8px; /* Adjust the value for more or less roundness */
    overflow: hidden; /* Ensures no content overflows outside the rounded corners */
}





.styled-contact-form {
  width: 100%;
  margin: 35px 0;
  font-family: sans-serif;
  box-sizing: border-box;
}

/* Layout for form rows */
.styled-contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Full width and half width column logic */
.styled-contact-form .form-group {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

.styled-contact-form .half-width {
  flex: 1 1 calc(50% - 0.5rem);
}

/* Label styling */
.styled-contact-form label {
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* Style Contact Form 7 input, textarea, etc. */
.styled-contact-form input[type="text"],
.styled-contact-form input[type="email"],
.styled-contact-form textarea {
  background-color: #f2f2f2;
  border: none;
  border-radius: 12px;
  padding: 1.5rem 0.75rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.styled-contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Button styling */
.styled-contact-form input[type="submit"] {
  background-color: #8bc28a;
  color: white;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  float: right;
}

.styled-contact-form input[type="submit"]:hover {
  background-color: #73ab72;
}

/* Note styling */
.styled-contact-form .form-note {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #444;
  margin-top: 1rem;
}

.styled-contact-form .form-note svg {
  margin-right: 0.5rem;
  flex-shrink: 0;
  color: #6cb37b;
}

/* Responsive */
@media (max-width: 600px) {
  .styled-contact-form .half-width {
    flex: 1 1 100%;
  }

  .styled-contact-form input[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    float: none;
  }
}

.footer{
    margin: 50px 0;
}
.footer hr{
    color: #828282;
    background-color: #828282;
}
.footer p{
    color: #828282;
    font-size: 11px;
}


/* Contact Form Alerts */
.wpcf7 form .wpcf7-response-output {
    margin: 2em 0;
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}


/* Events Section Wrapper */


.events-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Reset the list */
.events-list {
  list-style: none;
  margin: 0;
  padding: 0 !important;
}

/* Each event row – flex items now stretch to same height */
.event-item {
  display: flex;
  align-items: stretch;   /* ← stretch children to match heights */
  width: 100%;
  background: #fff;
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.event-item:hover {
    /*transform: translateY(-5px);*/
}

/* Calendar-style date box – centered, full-height */
.event-date {
  flex: 0 0 80px;
  background: #F1F1F1;
  color: #828282;
  text-align: center;
  display: flex;           /* ← make date a flex container */
  flex-direction: column;  /*    so month/day stack vertically */
  justify-content: center; /*    and stay centered */
  padding: 0.5rem 0;
}

.event-date .event-month, .event-date .event-time {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display:block;
}

.event-date .event-day {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1;
  display:block;
}

/* Main event content */
.event-info {
  flex: 1;
  padding: 0.75rem 1rem;
}

.event-title {
  margin: 0;
  font-size: 1.1rem;
}

.event-meta {
  font-size: 0.875rem;
  color: #555;
  font-weight: bold;
}

.event-address {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* Button container */
.event-action {
  flex: 0 0 auto;
  display: flex;           /* ← allow child <a> to stretch vertically */
}

/* Learn More link fills full height + horizontally padded */
.event-action .event-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;            /* ← match row height */
  padding: 0 1rem;
  font-size: 0.9rem;
  background: #F1F1F1;
  color: #828282;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 4px 4px 0;  /* ← only round right corners */
  box-sizing: border-box;      /* ← include padding in height */
  transition: background-color 0.2s ease;
}

.event-action .event-button:hover,
.event-action .event-button:focus {
  background-color: #ddd;
  color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-item {
    flex-direction: column;
    align-items: flex-start; /* stack vertically */
  }

  .event-date {
    width: 100%;
    flex: none;
    padding: 0.75rem 0;
  }

  .event-info {
    padding: 0.75rem 1rem;
  }

  .event-action {
    width: 100%;
  }

  .event-action .event-button {
    width: 100%;
    border-radius: 0 0 4px 4px; /* round only bottom corners now */
  }
}

@media (max-width: 480px) {
  .events-section {
    padding: 1.5rem 0.5rem;
  }

  .events-section h2 {
    font-size: 1.25rem;
    text-align: center;
  }

  .event-info,
  .event-action .event-button {
    padding: 0.5rem 1rem;
  }
}


/* ---------- existing CSS above... ---------- */

/* Modal overlay & container */
.map-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.map-modal.active {
  display: flex;
}

.map-modal .modal-content {
  position: relative;
  background: #fff;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  height: 80%;
  overflow: hidden;
}

.map-modal .modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button */
.map-modal .modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  color: #333;
  text-decoration: none;
  line-height: 1;
  z-index: 1001;
}

/* Responsive tweaks for modal */
@media (max-width: 480px) {
  .map-modal .modal-content {
    width: 100%;
    height: 70%;
    border-radius: 0;
  }
}


.customLinks {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap into multiple rows */
    justify-content: space-between;
    gap: 10px; /* Optional: space between the links */
}

.customLinks a {
    display: inline-block;
    font-size: 13px;
    padding: 15px 10px; /* Vertical and horizontal padding */
    border-radius: 20px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    color: #FFF; /* Text color */
    text-align: center; /* Center text within the link */
    font-weight: bold; /* Optional: bold text */
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s; /* Smooth hover transition */
    line-height: 120%;
    white-space: nowrap; /* Prevent text from breaking into multiple lines */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis if the text is too long */
    flex: 1 1 23%; /* Default to 5 columns (100% / 5 = 20%, but subtract gap) */
    min-width: 0; /* Prevent items from breaking down unexpectedly */
}

/* Responsive styles for medium screens (2 columns) */
@media (max-width: 1024px) {
    .customLinks a {
        flex: 1 1 48%; /* 2 columns (100% / 2 = 50%, but subtract gap) */
    }
}

/* Responsive styles for small screens (1 column) */
@media (max-width: 768px) {
    .customLinks a {
        flex: 1 1 100%; /* 1 column (100%) */
        padding: 15px 20px;
    }
}

/* Optional: For even smaller screens (adjust as needed) */
@media (max-width: 480px) {
    .customLinks a {
        font-size: 12px; /* Adjust font size for smaller screens */
        padding: 16px 20px; /* Adjust padding for smaller screens */
    }
}


.customLinks a {
    filter: brightness(1.0); /* 90% brightness = 10% darker */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */
    
}

.customLinks a:hover {
    filter: brightness(0.9); /* 90% brightness = 10% darker */
    transform: scale(1.05); /* Slight enlargement */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animation for scale and background color */

}



