/* APKGO-style layout — recreated for AppHub (same visual design, semantic classes) */
:root {
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --container: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  background: #f7f7f7;
  color: #1f2937;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html.dark body,
body.dark-active {
  background: #0f172a;
  color: #f3f4f6;
}

.site-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Decorative bg icons */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor svg {
  position: absolute;
  color: #64748b;
  opacity: 0.04;
  transform: rotate(-10deg);
}
html.dark .bg-decor svg { color: #94a3b8; opacity: 0.05; }

/* Header */
.apkgo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.7));
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgb(255 255 255 / 0.6);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.03);
}
html.dark .apkgo-header {
  background: linear-gradient(180deg, rgb(15 23 42 / 0.85), rgb(15 23 42 / 0.7));
  border-bottom-color: rgb(255 255 255 / 0.05);
}
.apkgo-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.apkgo-logo img { height: 2.5rem; width: auto; max-width: 160px; }
.apkgo-logo__text {
  font-weight: 900;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--emerald);
  text-decoration: none;
  line-height: 1;
}
.apkgo-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
@media (min-width: 1024px) {
  .apkgo-nav { display: flex; }
}
.apkgo-nav a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}
html.dark .apkgo-nav a { color: #d1d5db; }
.apkgo-nav a.is-active,
.apkgo-nav a:hover {
  background: #fff;
  color: var(--emerald);
}
html.dark .apkgo-nav a.is-active,
html.dark .apkgo-nav a:hover {
  background: var(--emerald);
  color: #fff;
}
.apkgo-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.apkgo-icon-btn {
  padding: 0.625rem;
  border: none;
  border-radius: 0.75rem;
  background: rgb(243 244 246 / 0.5);
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
html.dark .apkgo-icon-btn {
  background: rgb(30 41 59 / 0.5);
  color: #d1d5db;
}
.apkgo-icon-btn:hover {
  background: var(--emerald);
  color: #fff;
}
.apkgo-icon-btn svg { width: 1.25rem; height: 1.25rem; }
.apkgo-menu-btn { display: flex; }
@media (min-width: 1024px) {
  .apkgo-menu-btn { display: none; }
}

/* Search shutter */
.search-shutter {
  position: fixed;
  inset: 0;
  z-index: 100;
  height: 0;
  overflow: hidden;
  background: rgb(240 253 244 / 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: height 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}
html.dark .search-shutter { background: rgb(15 23 42 / 0.98); }
.search-shutter.is-open { height: 100vh; }
.search-shutter__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
}
.search-shutter__form {
  width: min(90%, 700px);
  text-align: center;
}
.search-shutter__form h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--emerald);
  margin: 0 0 0.5rem;
}
.search-shutter__form p { color: #6b7280; margin: 0 0 1.5rem; }
.search-shutter__input {
  width: 100%;
  font-size: 1.5rem;
  border: none;
  border-bottom: 2px solid var(--emerald);
  background: transparent;
  padding: 1rem 0;
  outline: none;
  color: #065f46;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.2s;
}
html.dark .search-shutter__input { color: #ecfdf5; }
.search-shutter.is-open .search-shutter__input {
  opacity: 1;
  transform: translateY(0);
}
.search-shutter__submit {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s;
}
.search-shutter.is-open .search-shutter__submit {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(24px);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
html.dark .mobile-drawer { background: rgb(15 23 42 / 0.95); }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.mobile-drawer__head span { font-weight: 800; font-size: 1.25rem; }
.mobile-drawer a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}
html.dark .mobile-drawer a { color: #fff; }

/* Main */
.apkgo-main {
  margin-top: 5rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .apkgo-main { margin-top: 6rem; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Glass section */
.glass-section {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.4));
  backdrop-filter: blur(5px);
  border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 15px 35px rgb(0 0 0 / 0.05), inset 0 0 20px rgb(255 255 255 / 0.5);
  border-radius: 1.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .glass-section { padding: 2rem; margin-bottom: 2rem; }
}
html.dark .glass-section {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.7), rgb(30 41 59 / 0.4));
  border-color: rgb(255 255 255 / 0.1);
  box-shadow: 0 15px 35px rgb(0 0 0 / 0.3), inset 0 0 20px rgb(255 255 255 / 0.05);
}

/* Trending slider */
.trending-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 320px;
}
@media (min-width: 768px) { .trending-wrap { height: 450px; } }
@media (min-width: 1024px) { .trending-wrap { height: 500px; } }

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}
.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(15 23 42 / 0.95) 0%, rgb(15 23 42 / 0.5) 50%, transparent 100%);
}
.slider-slide__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .slider-slide__content { padding: 3rem; }
}
.slider-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.slider-slide h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  text-shadow: 0 4px 6px rgb(0 0 0 / 0.15);
}
.slider-slide p {
  color: rgb(229 231 235);
  font-size: 0.875rem;
  margin: 0 0 1rem;
  max-width: 48rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .slider-slide p {
    font-size: 1.125rem;
    -webkit-line-clamp: 3;
  }
}
.slider-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow: 0 4px 15px rgb(16 185 129 / 0.3);
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(16 185 129 / 0.5);
}
.btn-ghost {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.1);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgb(255 255 255 / 0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.2); }

.slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.3);
  background: rgb(255 255 255 / 0.2);
  backdrop-filter: blur(5px);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s;
}
@media (min-width: 768px) { .slider-arrow { display: flex; } }
.slider-arrow:hover {
  background: rgb(16 185 129 / 0.8);
  border-color: var(--emerald);
}
.slider-arrow--prev { left: 1rem; }
.slider-arrow--next { right: 1rem; }
.slider-arrow svg { width: 1.5rem; height: 1.5rem; }

.slide-content-inner {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s, transform 0.7s;
}
.slide-content-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section head */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.section-head__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1f2937;
}
html.dark .section-head__title { color: #fff; }
.section-head__icon {
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  display: flex;
}
.section-head__icon svg { width: 1.5rem; height: 1.5rem; }
.link-view-all {
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.5);
  align-self: flex-start;
}
html.dark .link-view-all {
  background: rgb(30 41 59 / 0.5);
  color: #fff;
}

/* Featured grid */
.grid-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid-featured { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .grid-featured { grid-template-columns: repeat(3, 1fr); }
}

.card-featured {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.3));
  border: 2px solid rgb(255 255 255 / 0.6);
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
html.dark .card-featured {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.6), rgb(30 41 59 / 0.3));
  border-color: rgb(255 255 255 / 0.08);
}
.card-featured:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: 0 20px 40px rgb(16 185 129 / 0.15);
}
.card-featured__top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-featured__icon {
  position: relative;
  flex-shrink: 0;
}
.card-featured__icon img {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
  transition: transform 0.3s;
}
@media (min-width: 768px) {
  .card-featured__icon img { width: 5rem; height: 5rem; }
}
.card-featured:hover .card-featured__icon img { transform: scale(1.05); }
.card-featured__icon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: var(--emerald);
  border: 2px solid #fff;
  border-radius: 50%;
}
.card-featured__meta h3 {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}
html.dark .card-featured__meta h3 { color: #fff; }
.card-featured__rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #eab308;
  font-size: 0.875rem;
  font-weight: 700;
}
.card-featured__rating svg { width: 1rem; height: 1rem; }
.card-featured__excerpt {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html.dark .card-featured__excerpt { color: #9ca3af; }
.card-featured__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgb(229 231 235 / 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
html.dark .card-featured__foot { border-color: rgb(55 65 81 / 0.5); }
.card-featured__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #4b5563;
}
html.dark .card-featured__stats { color: #d1d5db; }
.card-featured__stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.card-featured__stats svg { width: 1rem; height: 1rem; color: var(--emerald); }
.card-featured__dl {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: none;
}

/* Latest Games — 2 column list (screenshot) */
.grid-games-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .grid-games-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.5rem;
  }
}

.card-list-game {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.45));
  border: 2px solid rgb(255 255 255 / 0.55);
  transition: all 0.25s ease;
}
html.dark .card-list-game {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.55), rgb(30 41 59 / 0.25));
  border-color: rgb(255 255 255 / 0.06);
}
.card-list-game:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(16 185 129 / 0.12);
}
.card-list-game__icon {
  position: relative;
  flex-shrink: 0;
}
.card-list-game__icon img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}
@media (min-width: 768px) {
  .card-list-game__icon img { width: 4rem; height: 4rem; }
}
.card-list-game__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #3ddc84, #34a853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid #fff;
}
html.dark .card-list-game__badge { border-color: #1e293b; }
.card-list-game__badge svg { width: 11px; height: 11px; }
.card-list-game__body { min-width: 0; flex: 1; }
.card-list-game__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
html.dark .card-list-game__body h3 { color: #f1f5f9; }
.card-list-game__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}
html.dark .card-list-game__meta { color: #94a3b8; }
.card-list-game__genre {
  background: rgb(0 0 0 / 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
html.dark .card-list-game__genre { background: rgb(255 255 255 / 0.08); }
.card-list-game__ver { font-size: 0.75rem; color: #9ca3af; margin-top: 0.2rem; }

/* Latest Apps — 3 column grid */
.grid-apps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .grid-apps-list { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) {
  .grid-apps-list { grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; }
}

/* Compact list cards (apps) */
.grid-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid-compact { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .grid-compact { grid-template-columns: repeat(3, 1fr); }
}

.card-compact {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.4));
  border: 2px solid rgb(255 255 255 / 0.5);
  transition: all 0.3s;
}
html.dark .card-compact {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.5), rgb(30 41 59 / 0.2));
  border-color: rgb(255 255 255 / 0.05);
}
.card-compact:hover {
  transform: translateY(-4px);
  border-color: var(--emerald);
  box-shadow: 0 10px 25px rgb(16 185 129 / 0.15);
}
.card-compact__icon {
  position: relative;
  flex-shrink: 0;
}
.card-compact__icon img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}
@media (min-width: 768px) {
  .card-compact__icon img { width: 4rem; height: 4rem; }
}
.card-compact__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3ddc84, #34a853);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
}
.card-compact__badge svg { width: 12px; height: 12px; }
.card-compact__body { min-width: 0; flex: 1; }
.card-compact__body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.dark .card-compact__body h3 { color: #f1f5f9; }
.card-compact__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
html.dark .card-compact__row { color: #94a3b8; }
.card-compact__genre {
  background: rgb(0 0 0 / 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}
html.dark .card-compact__genre {
  background: rgb(255 255 255 / 0.1);
}
.card-compact__ver { color: #9ca3af; font-size: 0.75rem; }

/* Category pills row */
.category-row { margin-bottom: 1.5rem; }
.category-row h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 1rem;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pill-cat {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.3));
  border: 1px solid rgb(255 255 255 / 0.5);
  transition: all 0.3s;
}
html.dark .pill-cat {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.6), rgb(30 41 59 / 0.3));
  border-color: rgb(255 255 255 / 0.1);
  color: #e2e8f0;
}
.pill-cat:hover {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgb(16 185 129 / 0.4);
}

/* Footer */
.apkgo-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.9));
  border: 2px solid rgb(255 255 255 / 0.6);
  border-radius: 1.5rem 1.5rem 0 0;
}
html.dark .apkgo-footer {
  background: linear-gradient(180deg, rgb(30 41 59 / 0.6), rgb(15 23 42 / 0.95));
  border-color: rgb(255 255 255 / 0.05);
}
.apkgo-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .apkgo-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.apkgo-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.apkgo-footer__links a {
  color: #6b7280;
  font-size: 0.875rem;
  text-decoration: none;
  padding-left: 1rem;
  position: relative;
}
.apkgo-footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
}
.apkgo-footer__links a:hover { color: var(--emerald); }

/* Articles section */
.grid-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .grid-articles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-articles { grid-template-columns: repeat(3, 1fr); }
}

.card-article {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgb(16 185 129 / 0.15);
}
.card-article__media {
  position: relative;
  height: 14rem;
}
@media (min-width: 768px) {
  .card-article__media { height: 11rem; }
  .grid-articles .card-article:first-child .card-article__media {
    height: 14rem;
  }
  .grid-articles .card-article:first-child {
    grid-column: span 2;
  }
}
.card-article__media img,
.card-article__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-article__placeholder {
  background: linear-gradient(135deg, #10b981, #3b82f6);
}
.card-article__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(15 23 42 / 0.92) 0%, rgb(15 23 42 / 0.4) 45%, transparent 100%);
}
.card-article__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.15rem;
  color: #fff;
}
.card-article__caption time {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}
.card-article__caption h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .card-article__caption h3 { font-size: 1.1rem; }
}

.hidden { display: none !important; }
