/* Unique styles from resources/views/home/festivals-and-events.blade.php */
.event-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 16px 16px 0 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.event-card::after {
  content: "";
  position: absolute;
  bottom: -38px;
  right: 0;
  width: 100%;
  height: 40px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 105% 104%);
  z-index: 0;
  border-bottom-right-radius: 20px;
}

.image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 16px 16px 0 0;
}

.event-card:hover .event-image {
  transform: scale(1.05);

}

.card-content {
  padding: 24px;
  padding-bottom: 32px;
  position: relative;
  z-index: 1;
}

.event-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.event-description {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 0px;
  right: 20px;
}

.more-button:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  cursor: pointer;
  transform: translateX(4px);
}

.more-button svg {
  width: 18px;
  height: 18px;
  color: #666;
  transition: color 0.3s ease;
}

.more-button:hover svg {
  color: white;
}

select.form-control,
select.form-select {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

/* Responsive design */

@media (max-width: 768px) {
  .event-card {
    margin-bottom: 30px;
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .event-card {
    max-width: 100%;
  }

  .event-title {
    font-size: 20px;
  }

  .card-content {
    padding: 20px;
    padding-bottom: 28px;
  }
}

/* Make Select2 match Bootstrap form-control */
.select2-container--default .select2-selection--single {
  display: block;
  width: 100%;
  min-height: calc(2.60rem + 2px);
  /* Bootstrap 4 */
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

/* Text alignment */
.select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Arrow alignment */
.select2-selection__arrow {
  height: 100%;
  right: 10px;
}

/* Focus state (Bootstrap-like) */
.select2-container--focus .select2-selection {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

/* =========================================================
   FESTIVALS & EVENTS LISTING PAGE SCOPED STYLES
   ========================================================= */
.festivals-events-page .events-sidebar {
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    padding-left: 20px;
}
.festivals-events-page .events-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1f2d;
}
.festivals-events-page .list-group-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-left: 3px solid transparent;
}
.festivals-events-page .list-group-item:hover {
    background-color: rgba(25, 100, 162, 0.05);
    border-left-color: #1964a2;
    transform: translateX(3px);
}
.festivals-events-page .event-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.festivals-events-page .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.festivals-events-page .event-card .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.festivals-events-page .event-card .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.festivals-events-page .event-card:hover .event-image {
    transform: scale(1.05);
}
.festivals-events-page .event-card .date-label {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.festivals-events-page .event-card .card-content {
    padding: 20px;
    position: relative;
}
.festivals-events-page .event-card .event-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d1f2d;
    margin-bottom: 24px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.festivals-events-page .event-card .more-button {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 15px;
    right: 20px;
    transition: all 0.3s ease;
}
.festivals-events-page .event-card .more-button:hover {
    background: #1964a2;
    border-color: #1964a2;
    transform: scale(1.1);
}
.festivals-events-page .event-card .more-button svg {
    width: 16px;
    height: 16px;
    color: #555;
  height: 44px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  bottom: 0px;
  right: 20px;
}

.more-button:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  cursor: pointer;
  transform: translateX(4px);
}

.more-button svg {
  width: 18px;
  height: 18px;
  color: #666;
  transition: color 0.3s ease;
}

.more-button:hover svg {
  color: white;
}

select.form-control,
select.form-select {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

/* Responsive design */

@media (max-width: 768px) {
  .event-card {
    margin-bottom: 30px;
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .event-card {
    max-width: 100%;
  }

  .event-title {
    font-size: 20px;
  }

  .card-content {
    padding: 20px;
    padding-bottom: 28px;
  }
}

/* Make Select2 match Bootstrap form-control */
.select2-container--default .select2-selection--single {
  display: block;
  width: 100%;
  min-height: calc(2.60rem + 2px);
  /* Bootstrap 4 */
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

/* Text alignment */
.select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Arrow alignment */
.select2-selection__arrow {
  height: 100%;
  right: 10px;
}

/* Focus state (Bootstrap-like) */
.select2-container--focus .select2-selection {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
}

/* =========================================================
   FESTIVALS & EVENTS LISTING PAGE SCOPED STYLES
   ========================================================= */
.festivals-events-page .events-sidebar {
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    padding-left: 20px;
}
.festivals-events-page .events-sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d1f2d;
}
.festivals-events-page .list-group-item {
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-left: 3px solid transparent;
}
.festivals-events-page .list-group-item:hover {
    background-color: rgba(25, 100, 162, 0.05);
    border-left-color: #1964a2;
    transform: translateX(3px);
}
.festivals-events-page .event-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.festivals-events-page .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.festivals-events-page .event-card .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.festivals-events-page .event-card .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.festivals-events-page .event-card:hover .event-image {
    transform: scale(1.05);
}
.festivals-events-page .event-card .date-label {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.festivals-events-page .event-card .card-content {
    padding: 20px;
    position: relative;
}
.festivals-events-page .event-card .event-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d1f2d;
    margin-bottom: 24px;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.festivals-events-page .event-card .more-button {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 15px;
    right: 20px;
    transition: all 0.3s ease;
}
.festivals-events-page .event-card .more-button:hover {
    background: #1964a2;
    border-color: #1964a2;
    transform: scale(1.1);
}
.festivals-events-page .event-card .more-button svg {
    width: 16px;
    height: 16px;
    color: #555;
    transition: color 0.3s ease;
}
.festivals-events-page .event-card .more-button:hover svg {
    color: #fff;
}
@media (max-width: 991.98px) {
    .festivals-events-page .events-sidebar {
        border-left: none !important;
        border-top: 2px solid rgba(0, 0, 0, 0.08);
        padding-left: 0 !important;
        margin-top: 32px !important;
        padding-top: 24px !important;
    }
}

/* Premium Listing Modifications */
.festivals-events-section {
    background-color: #f8fafc;
}

.search-filter-bar {
    box-shadow: 0 10px 30px rgba(13, 31, 45, 0.04) !important;
    border: 1px solid rgba(13, 31, 45, 0.05) !important;
}

.search-filter-bar .input-group-text {
    background-color: transparent !important;
    border-color: #ced4da !important;
}

.search-filter-bar .form-control {
    min-height: calc(2.6rem + 2px);
    border-radius: 8px;
}

.calendar-widget {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(13, 31, 45, 0.04) !important;
    border: 1px solid rgba(13, 31, 45, 0.05) !important;
}

.calendar-links-list .list-group-item {
    transition: all 0.25s ease !important;
    border-left: 3px solid transparent !important;
}

.calendar-links-list .list-group-item:hover {
    background-color: rgba(25, 100, 162, 0.05) !important;
    border-left-color: #1964a2 !important;
    transform: translateX(4px);
}

/* Custom left-aligned headings */
.events-main-header {
    margin-bottom: 15px;
}

.events-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #0d1f2d;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 0;
    display: inline-block;
}

.events-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #1964a2;
    border-radius: 2px;
}

.events-sidebar-header {
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.events-sidebar-title {
    font-size: 18px;
    color: #0d1f2d;
    margin-bottom: 0;
}

.events-sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2px;
    background-color: #1964a2;
}

/* Load More button hover */
#btn-load-more {
    border-color: #1964a2;
    color: #1964a2;
}

#btn-load-more:hover {
    background-color: #1964a2;
    color: #ffffff;
    border-color: #1964a2;
}
