/* ===== BASE LAYOUT ===== */
.home-page {
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
}

.home-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 640px) 260px;
  gap: 16px;
  align-items: start;
  padding-bottom: 56px;
}

/* ===== CARDS ===== */
.home-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(30px);
  opacity: 0;
}

.lsp-card,
.rsp-card {
  width: 100%;
  background: #edf7f1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 14px;
  box-sizing: border-box;
  height: 100%;
  transform: translateY(30px);
  opacity: 0;
}

/* ===== LEFT SIDEBAR ===== */
.lsp-hero-box {
  background: #f7fbf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lsp-image {
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: scale(0.8);
}

.lsp-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
}

.lsp-caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
}

.lsp-menu-title {
  margin: 8px 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #2a2a2a;
  opacity: 0;
  transform: translateX(-20px);
}

.lsp-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lsp-menu-item {
  opacity: 0;
  transform: translateX(-20px);
}

.lsp-menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #0d0d0d;
  background: #f7fbf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.lsp-menu-link:hover {
  background: #eaf6ee;
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== CAROUSEL ===== */
.slider-card {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fbf9;
  margin-bottom: 16px;
}

.slider-wrap {
  width: 100%;
}

.slide-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 12px 20px;
  border-radius: 8px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 80%;
}

.carousel-caption p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

/* carousel indicators — handled by global carousel.css */

/* override global max-height cap; slide-img heights are controlled per breakpoint */
.slider-card.hero-carousel-wrap .carousel-item img {
  max-height: none;
}

/* ===== AGENDA CARD ===== */
.agenda-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #1f2937;
  opacity: 0;
  transform: translateY(10px);
}

.agenda-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.agenda-item {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
}

.agenda-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 16px;
}

.agenda-item + .agenda-item {
  margin-top: 6px;
}

.agenda-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
}

.agenda-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.agenda-more:hover::after {
  width: 100%;
}

/* ===== RIGHT SIDEBAR ===== */
.rsp-hero-box {
  background: #f7fbf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rsp-image {
  width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: scale(0.8);
}

.rsp-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
}

.rsp-caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
}

.rsp-flash-title {
  font-size: 14px;
  font-weight: 800;
  margin: 8px 0;
  color: #2a2a2a;
  opacity: 0;
  transform: translateX(20px);
}

.rsp-flash-box {
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7fbf8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  opacity: 0;
  transform: scale(0.95);
}

.rsp-flash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: verticalScroll 18s linear infinite;
}

.rsp-flash-box:hover .rsp-flash-list {
  animation-play-state: paused;
}

.rsp-flash-item {
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
}

.rsp-flash-item:hover {
  background: #fef3c7;
  transform: translateX(5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@keyframes verticalScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ===== RESPONSIVE - LARGE TABLET ===== */
@media (max-width: 1100px) {
  .home-grid {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    gap: 12px;
  }

  .slide-img {
    height: 360px;
  }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 900px) {
  .home-page {
    padding: 12px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
  }

  .slide-img {
    height: 320px;
  }

  .lsp-image,
  .rsp-image {
    width: 160px;
  }

  .lsp-menu-link {
    font-size: 14px;
    padding: 12px;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 640px) {
  .home-page {
    padding: 8px;
  }

  .home-grid {
    gap: 12px;
    padding-bottom: 20px;
  }

  .lsp-card,
  .rsp-card,
  .home-card {
    padding: 12px;
  }

  .slide-img {
    height: 240px;
  }

  .lsp-hero-box,
  .rsp-hero-box {
    padding: 10px;
  }

  .lsp-image,
  .rsp-image {
    width: 140px;
  }

  .lsp-name,
  .rsp-name {
    font-size: 15px;
  }

  .lsp-caption,
  .rsp-caption {
    font-size: 11px;
  }

  .lsp-menu-link {
    font-size: 13px;
    padding: 10px;
  }

  .agenda-title {
    font-size: 15px;
  }

  .agenda-list {
    font-size: 13px;
  }

  .rsp-flash-title {
    font-size: 13px;
  }

  .rsp-flash-item {
    font-size: 11px;
    padding: 7px 9px;
  }

  .rsp-flash-box {
    height: 200px;
  }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
  .home-page {
    padding: 6px;
  }

  .home-grid {
    gap: 10px;
  }

  .slide-img {
    height: 200px;
  }

  .lsp-image,
  .rsp-image {
    width: 120px;
  }

  .lsp-name,
  .rsp-name {
    font-size: 14px;
  }

  .lsp-caption,
  .rsp-caption {
    font-size: 10px;
  }

  .lsp-menu-title,
  .rsp-flash-title {
    font-size: 13px;
  }

  .lsp-menu-link {
    font-size: 12px;
    padding: 9px;
  }

  .agenda-title {
    font-size: 14px;
  }

  .agenda-list {
    font-size: 12px;
  }

  .rsp-flash-item {
    font-size: 10px;
  }

  .rsp-flash-box {
    height: 180px;
  }
}

/* ===== RESPONSIVE - EXTRA SMALL ===== */
@media (max-width: 360px) {
  .slide-img {
    height: 180px;
  }

  .lsp-image,
  .rsp-image {
    width: 100px;
  }

  .home-card {
    padding: 10px;
  }

  .rsp-flash-box {
    height: 160px;
  }
}
