/*v2-core.css*/

:root {
  --bg: #ffffff;
  --fg: #111827;
  --muted: #4b5563;
  --card: #f3f4f6;
  --border: rgba(0, 0, 0, .08);

  --max: 1280px;
  --pad: 16px;
  --tap: 44px;

  --radius: 14px;

  --brand: #004080;
  --brand-2: #D93641;
  --brand-soft: rgba(0, 64, 128, .10);

  --brand-blue: #004080;
  --brand-red: #c34039;

  --nav-bg: #f8f9fb;
  --nav-border: #e1e4ea;
  --nav-text: #111827;
  --nav-muted: #6b7280;
}

body.dark-mode {
  --bg: #0b0f14;
  --fg: #e9eef5;
  --muted: #a7b0be;
  --card: #121826;
  --border: rgba(255, 255, 255, .08);

  --nav-bg: #0f1522;
  --nav-border: rgba(255, 255, 255, .08);
  --nav-text: #e9eef5;
  --nav-muted: #a7b0be;
  --nav-hover: #1b2534;
  --nav-hover-text: #e9eef5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
}

.v2-home.container{
  padding-left:0;
  padding-right:0;
}

.v2-card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
}

.v2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media(min-width:900px) {
  .v2-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Home top layout */
.v2-home-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.v2-home-title {
  position: relative;
  grid-column: 1 / -1;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .2px;
  text-transform: uppercase;
  padding: 10px 0 10px 14px;
  margin: 0;
  border-top: 1px solid var(--brand-red);
}

.v2-home-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand-red);
}

.v2-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.v2-hero-slides {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  height: 100%;
}

.v2-hero-slide {
  display: none;
}

.v2-hero-slide.is-active {
  display: block;
  height: 100%;
}

.v2-hero-link {
  display: block;
  position: relative;
  color: inherit;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.v2-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  background: #e5e7eb;
  object-fit: cover;
}

.v2-hero-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .85) 100%);
  color: #fff;
  z-index: 3;
  border-radius: 0 0 12px 12px;
}

.v2-hero-headline {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.v2-hero-controls {
  position: absolute;
  inset: 50% 12px auto 12px;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.v2-hero-btn {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.v2-top-news {
  padding: 0;
}

.v2-top-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.v2-top-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.v2-news-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.v2-news-link {
  display: block;
  padding: 0 0 10px;
  color: inherit;
}

.v2-card-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.v2-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.v2-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, .85);
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  z-index: 3;
}

.v2-video-icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 16px;
  border-radius: 5px;
  background: #e0001a;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  z-index: 4;
}

.v2-hero .v2-video-icon {
  right: 12px;
  bottom: 12px;
}

.v2-video-icon svg {
  width: 14px;
  height: 14px;
}

.is-video .v2-video-icon {
  display: flex;
}

.v2-news-title {
  margin: 8px 0 6px;
  font-size: 15px;
  line-height: 1.3;
}

.v2-news-meta {
  font-size: 12px;
  color: var(--muted);
}

.v2-aside {
  display: grid;
  gap: 12px;
}

.v2-aside-block {
  padding: 0;
}

.v2-aside-title {
  margin: 0 0 6px;
  margin-top: 0px;
  padding-top: 8px;
  border-top: 2px solid var(--brand-blue);
  font-size: 16px;
  font-weight: 700;
}

.v2-aside-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.v2-aside-media {
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}

.v2-aside-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.v2-card-media,
.v2-aside-media {
  aspect-ratio: 16 / 9;
}

.v2-hero-slides {
  aspect-ratio: 4 / 5;
}

.v2-news-city {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
}

@media(min-width:900px) {
  .v2-home-top {
    grid-template-columns: 2.2fr 1.2fr 1fr;
    align-items: start;
  }

  .v2-home-title {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .v2-hero {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .v2-top-news {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .v2-aside {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
  }

  .v2-hero-headline {
    font-size: 20px;
  }

  .v2-top-cards {
    grid-template-columns: 1fr 1fr;
  }

  .v2-hero-slides {
    aspect-ratio: 16 / 9;
  }
}

@media(max-width:899px) and (orientation:landscape) {
  .v2-hero-slides {
    aspect-ratio: 16 / 9;
  }
}
