/* Refined Color Palette */
:root {
  --primary-color: #2C3E50;
  /* Deep Blue */
  --accent-color: #ffae2c;
  /* Vibrant Green */
  --background-light: #F7F9F9;
  /* Soft Gray-White */
  --text-color: #333;
  --white: #FFFFFF;
}

/* Base Styling */
.retreat-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero:hover {
  transform: scale(1.01);
}

.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 2;
}

.hero-content h1 {
  color: white;
  text-align: center;
  max-width: 75%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  /* Add this to center the h1 horizontally */

}

/* Key Information Section */
.key-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.card-box {
  margin-bottom: 30px;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 15px;
}

.card-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.6rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  color: var(--primary-color);
}

.info-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 280px;
  /* border: 1px solid rgba(0,0,0,0.1); */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-box.right {
  max-width: 300px;
}

.info-box h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  color: var(--primary-color);
}

/* Details Box Enhancements */
.retreat-level {
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;

}

.info-box .info-content p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.info-box .icon-location,
.info-box .icon-calendar {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Expandable Section */
.expandable-section {
  margin-bottom: 40px;
}

.expandable-header {
  background: var(--accent-color);
  color: var(--white);
  padding: 15px;
  font-size: 1.8rem;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.expandable-header:hover {
  background: color-mix(in srgb, var(--accent-color) 80%, white);
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  border: 1px solid #ddd;
  border-top: none;
  padding: 0 15px;
  border-radius: 0 0 8px 8px;
}

.expandable-section.expanded .expandable-content {
  max-height: 800px;
  padding: 15px;
}

/* Expandable Section Items */
.expandable-section-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.expandable-section-item h3 {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Benefits List */
.benefits-list {
  list-style-type: none;
  padding: 0;
}

.benefits-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.1);
}

/* Grid Section */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.grid-6 .grid-item {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
}

.grid-6 .grid-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.6rem;
  border-bottom: 1px solid #28cfd2;
  padding-bottom: 10px;
  color: var(--primary-color);
}

.item-2-row {
  grid-row: 1 / 3;
  /* Span from row 1 to row 3 (2 rows) */
}

.item-2-col {
  grid-column: 1 / 3;
  /* Span from column 1 to column 3 (2 columns) */
}

.item-3-row {
  grid-row: 1 / 4;
  /* Span from row 1 to row 4 (3 rows) */
}

.item-3-col {
  grid-column: 1 / 4;
  /* Span from column 1 to column 4 (3 columns) */
}


/* Mobile Styles */
@media (max-width: 768px) {
  .grid-6 {
    grid-template-columns: 1fr;
    /* Single column on mobile */
  }

  /* Reset row and column spans on mobile */
  .item-2-row,
  .item-3-row {
    grid-row: auto;
    /* Reset row span */
  }

  .item-2-col,
  .item-3-col {
    grid-column: auto;
    /* Reset column span */
  }

  .info-box.right{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* General Information Section */
.general-info {
  margin-bottom: 40px;
}

.general-info h2 {
  font-size: 2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.general-info .section {
  margin-bottom: 30px;
}

.general-info .section h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {

  .key-info,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 20px;
  }
}

/* Optional: Add placeholder styles for icons if not using an icon font */
.icon-location::before {
  content: '📍';
  /* Location pin emoji */
}

.icon-calendar::before {
  content: '📅';
  /* Calendar emoji */
}

.icon-language::before {
  content: '🌐';
  /* Calendar emoji */
}


/* Gallery Container */
.gallery {
  position: relative;
  max-width: 100%;
  margin: 20px 0;
}

.gallery-container {
  display: flex;
  overflow: hidden;
}

.gallery-item {
  flex: 0 0 calc(33.333% - 10px);
  /* Display 3 images per row */
  margin: 5px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item.hidden {
  display: none;
  /* Hide images beyond the first 3 */
}

.gallery-nav {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 18px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.gallery-nav.prev {
  left: 5px;
}

.gallery-nav.next {
  right: 5px;
}

.gallery-item {
  transition: opacity 0.3s ease-in-out;
}

.hidden {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .gallery-container {
      display: flex;
      justify-content: center;
      width: 100%;
      overflow: hidden;
  }

  .gallery-item {
      display: none; /* Hide all images */
      width: 100%;
      text-align: center;
  }

  .gallery-item.active {
      display: block !important; /* Ensure active image is visible */
  }

  /* Ensure navigation buttons are visible */
  .gallery-nav {
      display: block !important;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
      font-size: 20px;
      z-index: 10;
  }

  .gallery-nav.prev {
      left: 10px;
  }

  .gallery-nav.next {
      right: 10px;
  }
}



.retreat-icon {
  color: #ffae2c;
  padding: 15px;
}


.retreat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}


.retreat-grid .retreat-grid-item {
  background: #f8f8f8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
}

/* Hover effect: scale up slightly and add a shadow */
.retreat-grid-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Optional: remove text decoration for links wrapping the item */
.retreat-grid-item a {
  text-decoration: none;
  color: black;
}
.retreat-grid .retreat-grid-item .retreat-image img{
  max-height: 250px;
  width: 100%;
  border-radius: 15px 15px 0px 0px;
  object-fit: cover; /* This ensures the image covers the container without distortion */

}

.retreat-grid .retreat-grid-item .retreat-card-content{
  padding: 20px;
}


.retreat-grid .retreat-grid-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.6rem;
  border-bottom: 1px solid #28cfd2;
  padding-bottom: 10px;
  color: var(--primary-color);
}

.retreat-grid .retreat-grid-item h6 {
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #28cfd2 !important;
  padding-bottom: 10px;
  color: var(--primary-color);
}

retreat-short-info {
  display: flex;
  align-items: center; /* Aligns items vertically */
  justify-content: space-evenly;; /* Centers items inside */
  gap: 10px; /* Adds space between elements */
  flex-wrap: wrap; /* Ensures responsiveness */
  padding-top: 15px;
  padding-bottom: 15px;
  
}

.retreat-level,
.retreat-location {
  display: flex;
  align-items: center; /* Ensures icons and text align properly */
}
.retreat-card-title{
  height: 60px;
}
@media (max-width: 768px) {
  .retreat-card-content{
    text-align: center;
  }
  .retreat-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    grid-gap: 20px; /* Adjust gap as needed */
  }
  
  /* Alternatively, if using flexbox for your grid, you can stack items with: */
  /*
  .retreat-grid {
    display: flex;
    flex-direction: column;
  }
  */
}


/* Style the form container for a clean layout */
.nf-form-container {
  background: #fff;
  padding: 20px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Style each field container for consistent spacing */
.nf-field-container {
  margin-bottom: 20px;
}

/* Style labels */
.nf-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  display: block;
}

/* Style input fields and textareas with only a bottom border */
.nf-field-element input,
.nf-field-element textarea {
  width: 100%;
  padding: 10px 0; /* Vertical padding to emphasize the bottom border */
  font-size: 16px;
  border: none; /* Remove any existing border */
  border-bottom: 2px solid #26ced1; /* Only a bottom border in your accent color */
  border-radius: 0; /* No rounded corners */
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Remove the default outline and provide a custom focus style */
.nf-field-element input:focus,
.nf-field-element textarea:focus {
  outline: none;
  border-bottom-color: #1ea3a8; /* Darker shade on focus */
  background-color: #fff;
}

/* Style the submit button to complement the inputs */
.nf-field-element input[type="submit"] {
  background-color: #26ced1;
  color: #fff;
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover state for the submit button */
.nf-field-element input[type="submit"]:hover {
  background-color: #1ea3a8;
}
