/* RESET + BASE STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

body.gradient-bg {
  background: linear-gradient(45deg, #60a5fa, #3b82f6, #a78bfa, #f472b6, #facc15, #4ade80, #14b8a6);
  animation: colorShift 15s ease infinite;
  color: #fff;
  background-size: 600% 600%;
  min-height: 100vh;
}

@keyframes colorShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

nav a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* HEADER */
.site-header {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.site-title {
  font-size: 2.4rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-nav ul {
  display: flex;
  gap: 20px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

a {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* REMOVED DUPLICATE TABLE STYLING */



/* HERO */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-image.jpg') center/cover no-repeat;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.hero h2 {
  font-size: 2.8rem;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTIONS */
h2.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  animation: slideInLeft 0.8s ease;
}

h2.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #50E3C2;
  margin-top: 8px;
  border-radius: 2px;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-section,
.schedule-section,
.gallery-section,
.contact-section {
  margin-bottom: 60px;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.list-grid {
  display: grid;
  gap: 20px;
}

.stages-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.authors-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.card a {
  display: block;
  padding: 20px;
  color: #333;
  text-decoration: none;
  height: 100%;
}

.card .title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #2c3e50;
}

.card .desc {
  font-size: 0.95rem;
  color: #666;
}

/* FOOTER */
.site-footer {
  background: rgba(0, 0, 0, 0.8);
  color: #ccc;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
  backdrop-filter: blur(10px);
}

.site-footer a {
  color: #50E3C2;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* ADVANCED RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .site-title {
    font-size: 2rem;
  }
  
  .stages-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header .wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .site-nav ul {
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .site-nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  
  .hero {
    height: 300px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  h2.section-title {
    font-size: 1.7rem;
  }
  
  .stages-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .wrapper {
    width: 95%;
    padding: 20px 0;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
  
  .site-header .wrapper {
    padding: 15px 0;
  }
  
  .site-nav ul {
    gap: 8px;
    justify-content: center;
  }
  
  .hero {
    height: 250px;
    border-radius: 0 0 10px 10px;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .stages-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  
  .card a {
    padding: 15px;
  }
  
  .card .title {
    font-size: 1.1rem;
  }
}
/* SEARCH INPUT STYLING */
#searchInput {
  width: 100%;
  max-width: 500px;
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#searchInput:focus {
  border-color: #50E3C2;
  box-shadow: 0 4px 15px rgba(80, 227, 194, 0.3);
  background: #fff;
}

/* TABLE ENHANCEMENTS */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(30, 30, 47, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #e6e6e6;
  backdrop-filter: blur(5px);
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-table thead {
  background: linear-gradient(90deg, #6c63ff, #5a4fcf);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.schedule-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #6c63ff, #5a4fcf);
  z-index: 10;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.schedule-table tbody tr:hover {
  background-color: rgba(108, 99, 255, 0.3);
  transition: background-color 0.3s ease;
  transform: scale(1.01);
}

.schedule-table th {
  font-weight: 600;
}

/* Highlight for search */
.schedule-table tbody tr.highlight {
  background-color: rgba(255, 230, 109, 0.3) !important;
  animation: highlightPulse 1s ease;
}

@keyframes highlightPulse {
  0% { background-color: rgba(255, 230, 109, 0.1); }
  50% { background-color: rgba(255, 230, 109, 0.5); }
  100% { background-color: rgba(255, 230, 109, 0.3); }
}

/* Responsive Table */
@media (max-width: 768px) {
  .schedule-table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 10px 12px;
  }
  
  #searchInput {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .schedule-table {
    font-size: 12px;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 8px 10px;
  }
}

