body {
  min-height: 100vh;
  position: relative;
  /* padding-bottom: 90px; */
  font-family: Arial, sans-serif;
}

.site-header {
  background: #111;
}

.logo img,
.site-logo img {
  max-height: 56px;
}

.navbar-nav .nav-link {
  color: #fff;
}

.hero-section,
.hero-slide,
#homeCarousel,
#homeCarousel .carousel-inner,
#homeCarousel .carousel-item {
  min-height: 100vh;
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 840px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem;
  opacity: .9;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin-bottom: 1.5rem;
}

.project-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.project-card img.card-cover,
.agenda-card img.card-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.page-banner {
  background: #f5f5f5;
  text-align: center;
}

.project-cover-banner {
  position: relative;
  min-height: 72vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-cover-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.68));
}

.project-cover-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.project-cover-inner {
  max-width: 920px;
  color: #fff;
}

.project-cover-inner h1 {
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.project-cover-inner p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  cursor: zoom-in;
}

.gallery-item:hover img,
.partner-card:hover {
  transform: translateY(-4px);
}

.partner-card {
  transition: transform .25s ease;
}

.site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1030;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.login-page {
  background: #0f172a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.login-logo {
  text-align: center;
  margin-bottom: 25px;
}

.login-logo img {
  max-height: 60px;
}

.admin-body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #111827;
  color: #fff;
  padding: 2rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-sidebar h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar .nav-link.text-danger {
  color: #fca5a5 !important;
}

.admin-main {
  padding: 2rem;
}

.admin-topbar {
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.metric-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-card span {
  color: #64748b;
  font-size: 0.95rem;
}

.metric-card strong {
  font-size: 2rem;
  color: #0f172a;
}

.admin-gallery-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.admin-agenda-thumb {
  width: 220px;
  max-width: 100%;
  height: 140px;
  object-fit: cover;
}

.glightbox-clean .gslide-description {
  display: none;
}

.glightbox-container .gslide-image img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: auto !important;
  height: auto !important;
}

.glightbox-container .ginner-container,
.glightbox-container .gslide {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
}

.glightbox-clean .gslide-media {
  box-shadow: none !important;
  background: transparent !important;
}

@media (max-width: 991.98px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
  }

  .admin-main {
    padding: 1rem;
  }

  .project-cover-banner,
  .project-cover-content {
    min-height: 55vh;
  }

  .gallery-item img {
    height: 240px;
  }
}


.cover-selector-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

.cover-preview-panel {
  position: sticky;
  top: 20px;
}

.cover-preview-frame {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid #dbe2ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview-empty {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

.cover-preview-meta {
  margin-top: 12px;
}

.cover-preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 4px;
}

.cover-preview-title {
  font-weight: 700;
  color: #0f172a;
}

.cover-grid-marketplace {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
}

.cover-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.cover-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  border-color: #94a3b8;
}

.cover-card.selected {
  border: 2px solid #0f172a;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.cover-card-image-wrap {
  overflow: hidden;
  height: 140px;
  background: #e5e7eb;
}

.cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cover-card:hover img {
  transform: scale(1.1);
}

.cover-card-body {
  padding: 10px 12px;
}

.cover-card-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}
