/* style/thomo-event-calendar.css */

/* Base styles for the page content, ensuring good contrast on the dark body background */
.page-thomo-event-calendar {
  background-color: #08160F; /* Ensure background is set if body background is not inherited or to override */
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure body padding-top is handled by shared.css */
/* .page-thomo-event-calendar { padding-top: var(--header-offset); } - DO NOT ADD THIS */

.page-thomo-event-calendar__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green for hero background */
}

.page-thomo-event-calendar__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-thomo-event-calendar__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum size */
}

.page-thomo-event-calendar__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 40px; /* Spacing between image and content */
}

.page-thomo-event-calendar__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-thomo-event-calendar__hero-description {
  font-size: 1.2rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

.page-thomo-event-calendar__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  border: none;
}

.page-thomo-event-calendar__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-thomo-event-calendar__section {
  padding: 60px 20px;
  text-align: center;
  background-color: #08160F; /* Background color */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-thomo-event-calendar__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.page-thomo-event-calendar__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #22C768; /* Auxiliary color */
}

.page-thomo-event-calendar__content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-thomo-event-calendar__content p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-thomo-event-calendar__content ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-thomo-event-calendar__content li {
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
}

.page-thomo-event-calendar__content ol {
  list-style: decimal;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-thomo-event-calendar__image-container {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-thomo-event-calendar__image {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px; /* Minimum size */
}

.page-thomo-event-calendar__table-container {
  overflow-x: auto;
  margin: 40px auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #11271B; /* Card BG */
}

.page-thomo-event-calendar__event-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px; /* Ensure table doesn't get too narrow */
}

.page-thomo-event-calendar__event-table th,
.page-thomo-event-calendar__event-table td {
  padding: 15px;
  border: 1px solid #2E7A4E; /* Border color */
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-thomo-event-calendar__event-table th {
  background-color: #0A4B2C; /* Deep Green */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-transform: uppercase;
}

.page-thomo-event-calendar__event-table tbody tr:nth-child(even) {
  background-color: #0E2219; /* Slightly different shade for even rows */
}

.page-thomo-event-calendar__event-table tbody tr:hover {
  background-color: #1A3F2F; /* Hover effect */
}

.page-thomo-event-calendar__video-section {
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-thomo-event-calendar__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  width: 100%; /* Important for desktop flex alignment */
}

.page-thomo-event-calendar__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block; /* Ensure no extra space below */
}

.page-thomo-event-calendar__faq-section {
  background-color: #08160F; /* Background color */
  padding: 60px 20px;
  text-align: center;
}

.page-thomo-event-calendar__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-thomo-event-calendar__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-thomo-event-calendar__faq-item details {
  padding: 0;
}

.page-thomo-event-calendar__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  font-size: 1.1rem;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #2E7A4E;
  list-style: none; /* Remove default marker */
}

.page-thomo-event-calendar__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-thomo-event-calendar__faq-qtext {
  flex-grow: 1;
}

.page-thomo-event-calendar__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 10px;
  color: #22C768; /* Auxiliary color */
}

.page-thomo-event-calendar__faq-item[open] .page-thomo-event-calendar__faq-toggle {
  content: '−';
}

.page-thomo-event-calendar__faq-answer {
  padding: 15px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
}

.page-thomo-event-calendar__call-to-action-section {
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-thomo-event-calendar__call-to-action-title {
  font-size: 2.2rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-thomo-event-calendar__call-to-action-description {
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-thomo-event-calendar__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-thomo-event-calendar__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #11271B; /* Card BG */
  color: #22C768; /* Auxiliary color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  border: 2px solid #2E7A4E; /* Border color */
}

.page-thomo-event-calendar__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background-color: #0E2219;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-thomo-event-calendar__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-thomo-event-calendar__section-title {
    font-size: 2rem;
  }

  .page-thomo-event-calendar__call-to-action-title {
    font-size: 1.8rem;
  }

  .page-thomo-event-calendar__hero-section,
  .page-thomo-event-calendar__section,
  .page-thomo-event-calendar__video-section,
  .page-thomo-event-calendar__faq-section,
  .page-thomo-event-calendar__call-to-action-section {
    padding: 40px 15px;
  }

  .page-thomo-event-calendar__hero-section {
    padding-top: 10px !important;
  }

  /* Images responsive */
  .page-thomo-event-calendar img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-thomo-event-calendar__image-container,
  .page-thomo-event-calendar__table-container,
  .page-thomo-event-calendar__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden !important;
  }

  /* Videos responsive */
  .page-thomo-event-calendar video,
  .page-thomo-event-calendar__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .page-thomo-event-calendar__cta-button,
  .page-thomo-event-calendar__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
  }

  .page-thomo-event-calendar__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-thomo-event-calendar__content {
    text-align: justify;
  }

  .page-thomo-event-calendar__event-table {
    min-width: unset; /* Allow table to shrink on mobile */
  }
}