/* Announcement Page Styling - Matching About Page */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A456;
  --gold-light: #E0C88A;
  --gold-dark: #8B6B3D;
  --gold-glow: rgba(201, 164, 86, 0.4);
  --olive: #6B6E3D;
  --olive-dark: #4A4D2A;
  --black: #0b0b0b;
  --cream: #FFFBF5;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-600: #6C757D;
  --gray-800: #343A40;

  /* Reuse existing vars if any, but override main ones */
  --primary-gold: #c9a456;
  /* Keep for legacy if used in table */

  --font-display: 'Playfair Display', serif;
  --font-thai: 'Prompt', sans-serif;
  --gradient-gold: linear-gradient(135deg, #C9A456 0%, #8B6B3D 100%);
}

body {
  background: var(--cream);
  font-family: var(--font-thai);
}

/* ===== VIDEO ANNOUNCEMENT CARD ===== */
.announcement-video-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(201, 164, 86, 0.15);
  margin-top: -50px; /* Overlap with hero slightly */
  position: relative;
  z-index: 10;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.announcement-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(201, 164, 86, 0.12);
}

.bg-gold {
  background: var(--gradient-gold) !important;
  color: var(--white) !important;
}

.video-wrapper {
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Custom Play Button Overlay */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.btn-play-custom {
  width: 80px;
  height: 80px;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  animation: pulse-scale 2s infinite;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.btn-play-custom i {
  margin-left: 5px;
  color: #fff;
}

.video-play-overlay:hover .btn-play-custom {
  transform: scale(1.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 164, 86, 0.5);
}

.video-play-overlay:hover .btn-play-custom i {
  color: var(--gold);
}

@keyframes pulse-scale {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.video-info-content h2 {
  font-family: var(--font-thai);
}

@media (max-width: 991px) {
  .announcement-video-card {
    margin-top: 20px;
    border-radius: 15px;
  }
}

/* ===== HERO SECTION ===== */
.announcement-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  background: var(--cream);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 164, 86, 0.08) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201, 164, 86, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.announcement-hero .container {
  position: relative;
  z-index: 1;
}

/* Edition Tag Style */
.edition-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.edition-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.edition-badge {
  font-family: var(--font-thai);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  border-radius: 4px;
}

/* Titles */
.announcement-title {
  font-family: var(--font-thai);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
  margin-bottom: 20px;
  background: none;
  -webkit-text-fill-color: initial;
}

html[lang="en"] .announcement-title {
  font-family: var(--font-display);
}

.title-highlight {
  display: block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-thai);
  margin-top: 10px;
}

html[lang="en"] .title-highlight {
  font-family: var(--font-display);
}

.announcement-subtitle {
  font-family: var(--font-thai);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 400;
  opacity: 1;
}

/* Custom Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: var(--gradient-gold);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 30px var(--gold-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(201, 164, 86, 0.5);
  color: var(--white);
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 40px auto 0;
  border-radius: 2px;
}

.btn-gold-outline {
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  background: transparent;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-gold-outline:hover {
  background: var(--gradient-gold);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--gold-glow);
}

/* Category Filter Tabs - Updated to fit light theme */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-gold);
  color: white;
  border-color: transparent;
  box-shadow: 0 5px 15px var(--gold-glow);
}

/* Announcement Content */
.announcement-wrapper {
  background: var(--cream);
  padding: 0 0 4rem;
  /* top padding moved to hero padding bottom overlap? no, just standard flow */
  min-height: 600px;
}

.announcement-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(201, 164, 86, 0.15);
  /* Light gold border */
}

.category-header {
  border-bottom: 2px solid var(--gold);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-header h2 {
  font-family: var(--font-thai);
  margin: 0;
  color: var(--gray-800);
}

.text-gold {
  color: var(--gold);
}

.work-count {
  background: var(--gold);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Table Design */
.results-table-wrapper {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.results-table th {
  background: #f8f9fa;
  padding: 1.2rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #eee;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.results-table td {
  padding: 1.5rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table .no-col {
  width: 60px;
  font-weight: 600;
  color: var(--primary-gold);
}

.results-table .title-col {
  font-weight: 600;
  font-family: 'Prompt', sans-serif;
  line-height: 1.4;
}

.results-table .participant-col {
  font-size: 0.95rem;
}

.participant-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.participant-name {
  font-weight: 600;
  color: #1a1a1a;
}

.participant-univ {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .announcement-title {
    font-size: 1.8rem;
  }

  .announcement-card {
    padding: 1rem;
    background: transparent;
    box-shadow: none;
    border: none;
  }

  .category-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    border-bottom: none;
    margin-bottom: 2rem;
  }

  .category-header h2 {
    font-size: 1.5rem;
  }

  /* Transform Table to Cards */
  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }

  .results-table thead {
    display: none;
  }

  .results-table tr {
    background: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 164, 86, 0.15);
    position: relative;
    padding-top: 3rem;
    /* Space for the Number Badge */
  }

  .results-table td {
    padding: 0.5rem 0;
    border: none;
  }

  /* Hide the old labels */
  .results-table td::before {
    display: none;
  }

  /* Number Badge Styling */
  .results-table .no-col {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-gold);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0;
    box-shadow: 0 4px 10px rgba(201, 164, 86, 0.4);
  }

  /* Title Styling */
  .results-table .title-col {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  /* Participant Styling */
  .results-table .participant-col {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }

  .participant-name {
    font-size: 1rem;
    color: var(--gold-dark);
    display: block;
    margin-bottom: 4px;
  }

  .participant-univ {
    font-size: 0.85rem;
    color: var(--gray-600);
    display: block;
  }
}