/* Calendar section styles */
.ww-section-calendar {
  position: relative; /* Set position for the overlay */
  background-image: url('../images/boat.jpg'); /* Background image */
  background-size: cover; /* Ensures the image covers the whole section */
  background-position: center; /* Centers the background image */
}

/* Overlay for darkening the background image */
.ww-section-calendar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: 1; /* Place it above the background but below the content */
}

/* Calendar styles */
.calendar {
  max-width: 600px; /* Adjust the width as needed */
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
  padding: 30px; /* Increased padding inside the calendar */
  backdrop-filter: blur(15px); /* Frosted glass effect with more blur */
  position: relative; /* Position relative for z-index */
  z-index: 2; /* Place calendar content above the overlay */
}


.calendar-heading {
  font-family: 'Courgette', cursive; /* Desired font for elegance */
  color: #b56969; /* A soft, romantic color for the heading */
  font-size: 36px; /* Font size */
  text-align: center; /* Center align the heading */
  margin-bottom: 20px; /* Space below the heading */
  text-transform: uppercase; /* Uppercase letters */
  letter-spacing: 1px; /* Slightly increase letter spacing for elegance */
  padding: 10px 0; /* Optional: Add some padding */
  font-weight: 400;
}

.calendar-header {
  text-align: center;
  margin-bottom: 15px; /* Reduced bottom margin */
}

.calendar-header h3 {
  font-family: 'Courgette', cursive; /* Maintain the same font */
  color: #b56969; /* Heading color */
  font-size: 32px; /* Slightly reduced font size */
  margin: 0; /* Remove default margin */
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 columns for days of the week */
  gap: 8px; /* Space between the cells */
}

.calendar-day {
  font-weight: bold;
  text-align: center;
  padding: 5px 0; /* Reduced padding */
  font-size: 14px; /* Adjusted font size for day labels */
  color: #666; /* Muted color for day labels */
}

.calendar-date {
  position: relative;
  width: 100%; /* Full width of the cell */
  height: 80px; /* Adjusted height for better proportions */
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd; /* Optional: Border for visibility */
  background-color: rgba(249, 249, 249, 0.7); /* Light background with transparency */
  border-radius: 8px; /* Rounded corners */
  transition: background-color 0.3s ease; /* Smooth background transition */
}

.calendar-date:hover {
  background-color: rgba(224, 224, 224, 0.9); /* Light hover effect with transparency */
}

.event-image {
  width: 100%; /* Fill the cell width */
  height: 100%; /* Fill the cell height */
  object-fit: cover; /* Ensures the image covers the cell without distortion */
  border-radius: 8px; /* Rounded corners */
}

.blocked {
  background-color: rgba(242, 211, 211, 0.9); /* Light red background for blocked dates */
  color: #b56969; /* Darker color for blocked dates */
  position: relative; /* Relative positioning for overlay effects */
  overflow: hidden; /* Hide overflow for better aesthetics */
}

.blocked::before {
  content: ""; /* Heart character as an example */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the heart */
  font-size: 24px; /* Size of the heart */
}

.muted-text {
  color: #aaa; /* Muted text color */
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .calendar {
      max-width: 100%; /* Full width on smaller screens */
  }

  .calendar-date {
      height: 70px; /* Further reduce height for smaller screens */
  }

  .calendar-header h3 {
      font-size: 26px; /* Adjust header font size */
  }

  .calendar-day {
      font-size: 12px; /* Smaller font size for day labels */
  }
}
