/* --- 1. HERO SECTION --- */
.best-time-hero {
  position: relative;
  width: 100%;
  height: 450px;
  background-image: url('/assets/images/best-time-to-visit/besttimehero.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.best-time-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.best-time-hero h1 {
  position: relative;
  font-size: 4em;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 4px;
  text-align: center;
  z-index: 1;
  margin: 0;
  font-family: "Playfair Display", serif;
  padding: 0 20px;
}

/* Mobile: Hero */
@media (max-width: 768px) {
  .best-time-hero { height: 350px; }
  .best-time-hero h1 {
    font-size: 2.5em;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .best-time-hero { height: 280px; }
  .best-time-hero h1 {
    font-size: 2em;
    letter-spacing: 1px;
  }
}


/* --- 2. MAIN LAYOUT & INTRO --- */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.intro-section {
  margin-bottom: 50px;
}

.intro-text {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  margin-bottom: 20px;
}

.intro-capital {
  font-size: 80px;
  float: left;
  line-height: 60px;
  padding-right: 8px;
  margin-top: 3px;
  color: #83c1e0;
  font-weight: 600;
}

.intro-text .highlight {
  font-weight: 600;
  color: #333;
}

/* Mobile: Intro */
@media (max-width: 768px) {
  .content-wrapper { padding: 40px 15px 60px; }
  .intro-capital {
    font-size: 60px;
    line-height: 50px;
    padding-right: 5px;
  }
  .intro-text { font-size: 16px; }
}

@media (max-width: 480px) {
  .content-wrapper { padding: 30px 15px 50px; }
  .intro-capital {
    font-size: 50px;
    line-height: 40px;
  }
  .intro-text { font-size: 14px; }
}


/* --- 3. SECTIONS & MONTH DETAILS --- */
.month-section {
  margin-bottom: 40px;
}

.month-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

.month-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.month-details li {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.month-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #61ce70;
  font-size: 24px;
  line-height: 1.4;
}

.month-details li strong {
  color: #333;
  font-weight: 600;
}

/* Mobile: Month Details */
@media (max-width: 768px) {
  .month-title { font-size: 24px; }
  .month-details li { font-size: 15px; }
}

@media (max-width: 480px) {
  .month-title { font-size: 20px; }
  .month-details li { font-size: 14px; }
}


/* --- 4. SUMMARY SECTION --- */
.summary-section {
  margin: 60px 0 50px;
}

.summary-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: #61ce70;
  margin-bottom: 30px;
  font-weight: 600;
  text-align: left;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-list li {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.summary-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ec3335;
  font-size: 20px;
  font-weight: bold;
}

.summary-list li strong {
  color: #333;
  font-weight: 600;
}

/* Mobile: Summary */
@media (max-width: 768px) {
  .summary-title { font-size: 32px; margin: 40px 0 30px; }
  .summary-list li { font-size: 16px; }
}

@media (max-width: 480px) {
  .summary-title { font-size: 26px; margin: 30px 0 20px; }
  .summary-list li { font-size: 14px; }
}


/* --- 5. FESTIVALS TABLE --- */
.festivals-table-wrapper {
  margin: 50px 0;
  overflow-x: auto;
}

.festivals-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.festivals-table thead {
  background: #40d1d6;
}

.festivals-table thead th {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 20px 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.festivals-table tbody tr {
  border-bottom: 3px solid #40d1d6;
}

.festivals-table tbody tr:nth-child(even) {
  background: #f0f9fa;
}

.festivals-table tbody td {
  padding: 18px 15px;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: middle;
}

.festivals-table tbody td:first-child {
  background: #e6f7f9;
  font-weight: 700;
  text-align: center;
  width: 15%;
}

.festivals-table tbody td:nth-child(2),
.festivals-table tbody td:nth-child(3) {
  width: 42.5%;
}

/* Mobile: Table */
@media (max-width: 768px) {
  .festivals-table thead th { font-size: 13px; padding: 15px 10px; }
  .festivals-table tbody td { font-size: 12px; padding: 15px 10px; }
}

@media (max-width: 480px) {
  .festivals-table thead th { font-size: 11px; padding: 12px 8px; }
  .festivals-table tbody td { font-size: 10px; padding: 12px 8px; }
}


/* --- 6. GALLERY & LIGHTBOX --- */
.gallery-section {
  margin: 60px 0;
}

.gallery-title {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  color: #61ce70;
  margin-bottom: 40px;
  font-weight: 600;
  text-align: left;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none; 
  position: fixed;
  z-index: 10000;
  padding-top: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10001;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.nav-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10001;
}

.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }

.nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.image-counter {
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-family: sans-serif;
  font-size: 14px;
  margin-top: 10px;
}

/* Mobile: Gallery & Lightbox */
@media (max-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .gallery-title { font-size: 32px; margin: 40px 0 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-grid img { height: 140px; }
}

@media (max-width: 480px) {
  .gallery-title { font-size: 26px; margin: 30px 0 20px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 5px; }
  .gallery-grid img { height: 200px; }
}

@media only screen and (max-width: 700px) {
  .modal-image { width: 100%; }
  .nav-btn { padding: 10px; font-size: 25px; }
  .close-btn { top: 10px; right: 20px; font-size: 30px; }
}