/* Homepage Specific Styles */

.home-hero {
  --home-hero-photo: none;
  --hero-card-surface-top: rgba(226, 232, 240, 0.18);
  --hero-card-surface-mid: rgba(100, 116, 139, 0.14);
  --hero-card-surface-bottom: rgba(15, 23, 42, 0.6);
  --hero-card-border: rgba(255, 255, 255, 0.22);
  --hero-card-highlight: rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  padding: clamp(4.75rem, 8vw, 7.5rem) 0;
  color: #f8fafc;
  background-color: #0b1120;
  background-image: var(--home-hero-photo);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.9) 34%, rgba(30, 41, 59, 0.72) 58%, rgba(51, 65, 85, 0.18) 100%);
}

.home-hero::after {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 18%, rgba(125, 211, 252, 0.14), transparent 24%),
    radial-gradient(circle at 70% 54%, rgba(148, 163, 184, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero__intro {
  max-width: 44rem;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
}

.home-hero__title {
  margin-bottom: 1.25rem;
  font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-hero__subtitle {
  max-width: 40rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
}

.home-hero__summary {
  max-width: 39rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(226, 232, 240, 0.84);
}

.home-hero__summary p:last-child {
  margin-bottom: 0;
}

.home-hero__actions {
  margin-top: 2rem;
}

.home-hero__actions .btn {
  border-color: rgba(226, 232, 240, 0.65);
  color: #f8fafc;
  backdrop-filter: blur(10px);
}

.home-hero__actions .btn:hover,
.home-hero__actions .btn:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-event-card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--hero-card-border);
  border-radius: 2rem 2.4rem 2.1rem 2.6rem;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 84% 16%, rgba(125, 211, 252, 0.14) 0%, rgba(125, 211, 252, 0.06) 26%, rgba(15, 23, 42, 0) 52%),
    radial-gradient(circle at 48% 120%, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(160deg, var(--hero-card-surface-top) 0%, var(--hero-card-surface-mid) 38%, var(--hero-card-surface-bottom) 100%);
  box-shadow:
    0 1.5rem 3.25rem rgba(2, 6, 23, 0.32),
    0 0 1.6rem rgba(125, 211, 252, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(24px) saturate(145%) brightness(0.98);
  color: #e2e8f0;
  overflow: hidden;
  isolation: isolate;
  animation: hero-card-rise 0.7s cubic-bezier(0.2, 1, 0.2, 1);
}

.hero-event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.7), rgba(51, 65, 85, 0.15));
  z-index: 3;
}

.hero-event-card::after {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: clamp(12rem, 20vw, 18rem);
  aspect-ratio: 1.12;
  border-radius: 42% 58% 61% 39% / 44% 37% 63% 56%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 22%, rgba(125, 211, 252, 0.05) 44%, rgba(15, 23, 42, 0) 78%);
  filter: blur(22px);
  opacity: 0.66;
  z-index: 0;
  pointer-events: none;
}

.hero-event-card--registration::before {
  background: linear-gradient(90deg, #38bdf8 0%, #67e8f9 100%);
}

.hero-event-card--early-bird::before {
  background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
}

.hero-event-card--onsite::before {
  background: linear-gradient(90deg, #fb7185 0%, #f97316 100%);
}

.hero-event-card--survey::before {
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
}

.hero-event-card--details::before,
.hero-event-card--default::before {
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}

.hero-event-card--archive::before {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.hero-event-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-event-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-event-card__title {
  margin-bottom: 0.85rem;
  font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  position: relative;
  z-index: 2;
}

.hero-event-card__description {
  margin-bottom: 1.35rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.8);
  position: relative;
  z-index: 2;
}

.hero-event-card__meta {
  display: grid;
  gap: 0.9rem;
  position: relative;
  z-index: 2;
}

.hero-event-card__meta-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.hero-event-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(191, 219, 254, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0.5rem 1rem rgba(15, 23, 42, 0.12);
  color: #e0f2fe;
  font-size: 0.95rem;
}

.hero-event-card__label {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-event-card__value {
  margin-bottom: 0;
  font-size: 0.98rem;
  font-weight: 550;
  line-height: 1.45;
  color: #f8fafc;
}

.hero-event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-event-card__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-event-card__actions .btn:hover,
.hero-event-card__actions .btn:focus {
  transform: translateY(-1px);
}

.hero-event-card__primary {
  border: 0;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(224, 242, 254, 0.96) 100%);
  box-shadow:
    0 1rem 2rem rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-event-card__primary:hover,
.hero-event-card__primary:focus {
  color: #020617;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.hero-event-card__secondary {
  border: 1px solid rgba(226, 232, 240, 0.4);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-event-card__secondary:hover,
.hero-event-card__secondary:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

@keyframes hero-card-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base Section Styling */
.home-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

/* Introduction of decorative shapes using pseudo-elements */
.home-section::before,
.home-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Floating animation for shapes */
@keyframes float-slow {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, -15px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes float-medium {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, 10px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  .home-section::before,
  .home-section::after {
    animation: none !important;
  }

  .hero-event-card {
    animation: none !important;
  }

  .hover-lift {
    transition: none !important;
    transform: none !important;
  }
}

/* Unified Typography & Layouts */
.section-title-lg {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #212529;
  margin-bottom: 1rem;
}

.section-desc-lg {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.showcase-desc-area {
  position: relative;
  z-index: 1;
  padding-right: 2rem;
}

@media (max-width: 991.98px) {
  .home-hero {
    padding: 4.25rem 0 3.5rem;
    background-position: center center;
  }

  .home-hero__intro {
    max-width: none;
  }

  .home-hero__title {
    font-size: clamp(2.15rem, 10vw, 3.4rem);
  }

  .home-hero__summary {
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-hero__actions .btn,
  .hero-event-card__actions .btn {
    width: 100%;
  }

  .hero-event-card {
    border-radius: 1.65rem;
  }

  .showcase-desc-area {
    padding-right: 0;
    margin-bottom: 2rem;
    text-align: center;
  }

  .showcase-desc-area .section-desc-lg {
    text-align: left;
  }

  .section-title-lg {
    font-size: 2rem;
  }
}

/* Conference Section Specifics */
.conference-showcase {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.conference-showcase::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  animation: float-slow 8s ease-in-out infinite;
}

.conference-card {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0.75rem 2rem rgba(11, 16, 42, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  height: 100%;
  background: #fff;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.conference-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(11, 16, 42, 0.1);
}

.conference-img-wrapper {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.conference-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.conference-card:hover .conference-img-wrapper img {
  transform: scale(1.03);
}

.conference-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.conference-badge.active {
  background: rgba(255, 255, 255, 0.95);
  color: #0d6efd;
}

.conference-badge.inactive {
  background: rgba(108, 117, 125, 0.9);
  color: #fff;
}

/* Notice Section Specifics */
.notice-showcase {
  background: #fff;
}

.notice-showcase::before {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(13, 202, 240, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  animation: float-medium 6s ease-in-out infinite;
}

.notice-card-variant {
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  background: #fff;
  transition: all 0.3s ease;
  height: 100%;
  z-index: 1;
  position: relative;
}

.notice-card-variant:hover {
  border-color: #e2e8f0;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.notice-date-styled {
  font-family: var(--bs-font-monospace);
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  display: block;
}

.notice-title-styled {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-card-variant:hover .notice-title-styled {
  color: #0d6efd;
}

/* Amtoktok Section Specifics */
.amtoktok-showcase {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

/* Background decoration for Amtoktok */
.amtoktok-showcase::before {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 0, 0, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

/* Amtoktok Card Styling */
.amtoktok-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-network-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(11, 16, 42, 0.12);
}

.home-network-layout > [class*="col-"] {
  min-width: 0;
}

.home-network-copy-column {
  position: relative;
  z-index: 2;
}

.home-network-media-column {
  display: flex;
}

.home-network-media--map {
  min-height: clamp(350px, 50vh, 500px);
}

.home-network-map {
  width: 100%;
  height: clamp(350px, 50vh, 500px);
}

.home-network-media--embed {
  aspect-ratio: 16 / 9;
}

.home-network-media--embed iframe,
.home-network-media--embed > * {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-network-media--image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 40%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.home-network-media--image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 860px);
  flex: 0 1 auto;
  border-radius: 1.5rem;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
  .home-network-media {
    border-radius: 1.5rem;
  }

  .home-network-media--image {
    padding: 0.75rem;
  }
}

.amtoktok-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.amtoktok-thumb {
  position: relative;
  display: block;
  padding-top: 56.25%;
  /* 16:9 ratio */
}

.amtoktok-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.amtoktok-card:hover .play-icon-overlay {
  background: rgba(220, 53, 69, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.amtoktok-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.amtoktok-video-title {
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amtoktok-video-desc {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* Horizontal Scroll Container (Desktop & Mobile Unified Logic, styled differently) */
.horizontal-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  /* Space for scrollbar or shadow */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.horizontal-scroll-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* Desktop: 2 items visible approx */
@media (min-width: 992px) {
  .horizontal-scroll-item {
    width: calc(50% - 0.75rem);
  }

  /* Ensure height for Amtoktok items */
  .amtoktok-thumb-scroll {
    min-height: 250px;
    align-items: flex-start;
    /* Prevent stretching if not needed */
  }
}

/* Mobile optimizations for Amtoktok */
@media (max-width: 991.98px) {

  /* Conference & Notice Mobile Grid (Vertical Stack) */
  .mobile-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Amtoktok Mobile: Thumbnail only, 2 items high */
  .amtoktok-mobile-scroll {
    max-height: 480px;
    /* Approx 2 items height + gap */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .amtoktok-mobile-card {
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
  }

  .amtoktok-mobile-card .amtoktok-thumb {
    padding-top: 56.25%;
  }

  .amtoktok-mobile-card .play-icon-overlay {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
