@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&display=swap');
:root {
  --font-main: 'Kanit', sans-serif;
  --primary-blue: #004e92;
  --light-blue: #00b4db;
  --grad-blue-main: linear-gradient(135deg, #004e92 0%, #00b4db 100%);
  --grad-text: linear-gradient(45deg, #003366, #0052d4, #4facfe);
  --bg-body: linear-gradient(180deg, #f0f8ff 0%, #e6f2ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 10px 40px 0 rgba(0, 78, 146, 0.08);
  --backdrop-blur: blur(15px);
  --text-dark: #0f1c2e;
  --text-grey: #586b85;
  --card-radius: 20px;
}
[data-theme="dark"] {
  --bg-body: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(20, 25, 40, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --text-dark: #e6e6e6;
  --text-grey: #a0aab5;
  --grad-text: linear-gradient(45deg, #4facfe, #00f2fe);
}
body {
  font-family: var(--font-main);
  background: var(--bg-body);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
}
.event-header-banner {
  position: relative;
  padding: 8rem 0 6rem 0;
  text-align: center;
  overflow: visible;
  z-index: 1;
}
.event-header-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.25) 0%, transparent 70%);
  transform: translateX(-50%);
  z-index: -1;
  filter: blur(60px);
}
.event-page-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--grad-blue-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(0, 78, 146, 0.1);
}
.event-page-subtitle {
  font-size: 1.1rem;
  color: var(--text-grey);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.event-page-subtitle::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--grad-blue-main);
  margin: 15px auto 0;
  border-radius: 10px;
}
.header-icon-wrapper {
  display: inline-block;
  margin-bottom: 1rem;
  animation: float 6s ease-in-out infinite;
}
.header-icon-wrapper i {
  background: var(--grad-blue-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3.5rem;
  filter: drop-shadow(0 5px 15px rgba(0, 78, 146, 0.2));
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.badge-total-activities {
  background: var(--grad-blue-main);
  color: white !important;
  font-weight: 500;
  font-size: 1rem;
  border: none;
}
.badge-total-activities i {
  color: white !important;
}
.event-search-wrapper {
  margin-top: -3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}
.event-search-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--backdrop-blur);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid rgba(0, 180, 219, 0.2);
  box-shadow: 0 15px 35px rgba(0, 78, 146, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-search-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 78, 146, 0.15);
  border-color: rgba(0, 180, 219, 0.5);
}
.event-search-form .input-group {
  background: transparent;
}
.event-search-form .form-control {
  background: transparent;
  border: none;
  height: 3.2rem;
  font-size: 1.05rem;
  padding-left: 1.5rem;
  color: var(--text-dark);
}
.event-search-form .form-control::placeholder {
  color: #aab;
  font-weight: 300;
}
.event-search-form .form-control:focus {
  box-shadow: none;
}
.btn-search-premium {
  background: var(--grad-blue-main);
  color: white;
  border-radius: 50px;
  padding: 0 2rem;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 78, 146, 0.3);
}
.btn-search-premium:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 78, 146, 0.5);
  color: white;
  background: linear-gradient(135deg, #003e75 0%, #0099bb 100%);
}
.event-card {
  background: var(--glass-bg);
  border-radius: var(--card-radius);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  height: 100%;
  position: relative;
}
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 78, 146, 0.15);
  border-color: rgba(0, 180, 219, 0.4);
}
.img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
  border-radius: var(--card-radius);
  margin: 12px;
}
@media(min-width: 768px) {
  .img-wrapper {
    height: calc(100% - 24px);
    margin: 12px;
  }
}
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 16px;
}
.event-card:hover .img-wrapper img {
  transform: scale(1.08);
}
.date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.card-body {
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card:hover .event-title {
  color: #00b4db;
}
.event-desc {
  font-size: 0.95rem;
  color: var(--text-grey);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px dashed rgba(0, 78, 146, 0.1);
  padding-top: 1rem;
}
.view-count {
  font-size: 0.85rem;
  color: var(--text-grey);
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-count i {
  background: var(--grad-blue-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: var(--grad-blue-main);
  background-size: 150% auto;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 78, 146, 0.25);
  transition: all 0.3s ease;
}
.btn-readmore:hover {
  color: #ffffff;
  background-position: right center;
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(0, 180, 219, 0.4);
}
.btn-readmore i {
  transition: transform 0.3s ease;
}
.btn-readmore:hover i {
  transform: translateX(3px);
}
.pagination-container {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pagination-container a, .pagination-container span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 45px;
  height: 45px;
  padding: 0 10px;
  border-radius: 12px !important;
  background: #ffffff;
  border: 1px solid rgba(0, 78, 146, 0.1) !important;
  box-shadow: 0 4px 6px rgba(0, 78, 146, 0.05);
  color: var(--text-grey);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.3s ease;
}
.pagination-container a:hover {
  background: #f0f8ff !important;
  color: var(--primary-blue) !important;
  transform: translateY(-3px);
  border-color: var(--primary-blue) !important;
  box-shadow: 0 8px 15px rgba(0, 78, 146, 0.15);
}
.pagination-container span {
  background: var(--grad-blue-main) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(0, 78, 146, 0.3);
  transform: scale(1.05);
  z-index: 2;
}
[data-theme="dark"] .pagination-container a {
  background: #2d3436;
  border-color: #444 !important;
  color: #bbb;
  box-shadow: none;
}
[data-theme="dark"] .pagination-container a:hover {
  background: #333 !important;
  color: #00b4db !important;
  border-color: #00b4db !important;
}
@media (max-width: 768px) {
  .event-page-title {
    font-size: 2.2rem;
  }
  .event-search-wrapper {
    padding: 0 1rem;
  }
  .img-wrapper {
    height: 220px;
    margin: 15px;
  }
  .card-body {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
  }
  .event-card .row {
    flex-direction: column;
  }
  .col-md-4, .col-md-8 {
    width: 100%;
  }
}