/**
 * Kontingen Indonesia Asian Games 2026
 * Full Homepage Redesign V3
 */

:root {
    --agv3-red: #d71920;
    --agv3-red-dark: #a70f16;
    --agv3-navy: #071b3a;
    --agv3-navy-2: #0d2b52;
    --agv3-gold: #f3b72b;
    --agv3-orange: #f39a24;
    --agv3-white: #ffffff;
    --agv3-soft: #f5f7fb;
    --agv3-ink: #0b1c38;
    --agv3-muted: #63708a;
    --agv3-line: #dce2eb;
    --agv3-container: 1440px;
    --agv3-radius: 18px;
    --agv3-shadow: 0 18px 50px rgba(7, 27, 58, 0.13);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--agv3-soft);
    color: var(--agv3-ink);
    font-family: Inter, Arial, sans-serif;
}

body .ag-container {
    width: min(calc(100% - 48px), var(--agv3-container));
    margin-inline: auto;
}

body.home .agv3-home {
    overflow: hidden;
    background:
        radial-gradient(circle at 0 45%, rgba(243, 183, 43, 0.08), transparent 18%),
        linear-gradient(#fff, #fff);
}

body.home .agv3-home *,
body.home .agv3-home *::before,
body.home .agv3-home *::after {
    box-sizing: border-box;
}

/* =========================================================
   HEADER — TARGET MOCKUP
   ========================================================= */

body .ag-site-header {
    position: relative;
    z-index: 2000;
    background: #fff;
}

body .ag-topbar {
    min-height: 31px !important;
    background: linear-gradient(90deg, #9e0711, #d71920) !important;
    border: 0 !important;
    color: #fff !important;
}

body .ag-topbar__inner {
    min-height: 31px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

body .ag-topbar a,
body .ag-topbar span {
    color: rgba(255,255,255,.94) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

body .ag-social-mini a {
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(255,255,255,.3) !important;
    font-size: 9px !important;
}

body .ag-navbar {
    position: relative !important;
    background: rgba(255,255,255,.98) !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e7ee !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 22px rgba(7,27,58,.06) !important;
    backdrop-filter: blur(14px);
}

body .ag-navbar__inner {
    min-height: 82px !important;
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
}

body .ag-brand {
    min-width: 285px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--agv3-navy) !important;
    text-decoration: none !important;
}

body .ag-navbar .ag-brand__logo,
body .ag-navbar .ag-brand__logo img.custom-logo {
    display: inline-flex !important;
}

body .ag-navbar .ag-brand__logo img.custom-logo {
    width: auto !important;
    max-width: 86px !important;
    max-height: 68px !important;
    object-fit: contain !important;
}

body .ag-brand__text {
    display: flex !important;
    flex-direction: column !important;
    line-height: .94 !important;
}

body .ag-brand__text small {
    color: var(--agv3-navy) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .15em !important;
    text-transform: uppercase !important;
}

body .ag-brand__text strong {
    color: var(--agv3-red) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 29px !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    text-transform: uppercase !important;
}

body .ag-brand__text em {
    margin-top: 4px !important;
    color: var(--agv3-gold) !important;
    font-size: 9px !important;
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
}

body .ag-primary-nav {
    margin-left: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body .ag-primary-nav .ag-menu {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    list-style: none !important;
}

body .ag-primary-nav .ag-menu > li {
    position: relative !important;
    border: 0 !important;
}

body .ag-primary-nav .ag-menu > li > a {
    min-height: 82px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--agv3-navy) !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .035em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body .ag-primary-nav .ag-menu > li > a::after {
    position: absolute !important;
    right: 14px !important;
    bottom: 16px !important;
    left: 14px !important;
    height: 3px !important;
    background: var(--agv3-red) !important;
    border-radius: 99px !important;
    content: "" !important;
    opacity: 0 !important;
    transform: scaleX(.35) !important;
    transition: .2s ease !important;
}

body .ag-primary-nav .ag-menu > li.current-menu-item > a,
body .ag-primary-nav .ag-menu > li.current-menu-ancestor > a,
body .ag-primary-nav .ag-menu > li:hover > a {
    color: var(--agv3-red) !important;
}

body .ag-primary-nav .ag-menu > li.current-menu-item > a::after,
body .ag-primary-nav .ag-menu > li.current-menu-ancestor > a::after,
body .ag-primary-nav .ag-menu > li:hover > a::after {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

body .ag-search-button {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--agv3-navy) !important;
    box-shadow: none !important;
}

body .ag-search-button:hover {
    background: #f1f4f8 !important;
    color: var(--agv3-red) !important;
}

/* =========================================================
   HERO
   ========================================================= */

.agv3-hero {
    position: relative;
    min-height: 555px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 18%, rgba(215,25,32,.42), transparent 34%),
        linear-gradient(115deg, #061a38 0%, #071b3a 48%, #0d2b52 100%);
    color: #fff;
}

.agv3-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(3,14,34,.96) 0%, rgba(3,14,34,.72) 44%, rgba(3,14,34,.05) 76%),
        repeating-linear-gradient(125deg, transparent 0 26px, rgba(255,255,255,.025) 27px 28px);
    content: "";
}

.agv3-hero::after {
    position: absolute;
    left: -150px;
    bottom: -260px;
    width: 620px;
    height: 620px;
    border: 95px solid rgba(243,183,43,.07);
    border-radius: 50%;
    content: "";
}

.agv3-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, transparent 0 68%, rgba(243,183,43,.12) 69% 70%, transparent 71%),
        linear-gradient(35deg, transparent 0 76%, rgba(215,25,32,.14) 77% 79%, transparent 80%);
}

.agv3-hero__inner {
    position: relative;
    z-index: 2;
    min-height: 555px;
    display: grid;
    grid-template-columns: minmax(430px, .88fr) minmax(560px, 1.12fr);
    align-items: center;
    gap: 10px;
}

.agv3-hero__copy {
    max-width: 610px;
    padding: 64px 0 92px;
}

.agv3-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 0 12px;
    border-left: 3px solid var(--agv3-gold);
    color: var(--agv3-gold);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.agv3-hero h1 {
    max-width: 620px;
    margin: 0;
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(55px, 5.4vw, 86px);
    font-weight: 800;
    line-height: .84;
    letter-spacing: -.02em;
    text-transform: uppercase;
    text-shadow: 0 7px 22px rgba(0,0,0,.28);
}

.agv3-hero h1 span {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: .48em;
    line-height: 1;
}

.agv3-hero__copy > p {
    margin: 15px 0 0;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    font-weight: 700;
}

.agv3-countdown-wrap {
    margin-top: 24px;
}

.agv3-countdown-label {
    margin-bottom: 8px;
    color: rgba(255,255,255,.68);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.home .agv3-countdown {
    width: fit-content !important;
    display: grid !important;
    grid-template-columns: repeat(4, 74px) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 10px !important;
    background: rgba(3,14,34,.58) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.24) !important;
    backdrop-filter: blur(10px);
}

body.home .agv3-countdown > div {
    min-width: 0 !important;
    padding: 10px 8px 9px !important;
    border-right: 1px solid rgba(255,255,255,.15) !important;
    text-align: center !important;
}

body.home .agv3-countdown > div:last-child {
    border-right: 0 !important;
}

body.home .agv3-countdown strong {
    display: block !important;
    color: #fff !important;
    font-family: "Barlow Condensed", sans-serif !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.home .agv3-countdown span {
    display: block !important;
    margin-top: 5px !important;
    color: rgba(255,255,255,.62) !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
}

.agv3-primary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 28px;
    margin-top: 16px;
    padding: 0 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--agv3-red), #ef2b32);
    box-shadow: 0 12px 28px rgba(215,25,32,.35);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
}

.agv3-primary-button:hover {
    color: #fff;
    transform: translateY(-2px);
}

.agv3-hero__visual {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
}

.agv3-hero__visual img {
    width: min(920px, 128%);
    max-width: none;
    max-height: 555px;
    margin-right: -92px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 28px 32px rgba(0,0,0,.32));
}

/* =========================================================
   SHARED COMPONENTS
   ========================================================= */

.agv3-section {
    padding: 22px 0;
}

.agv3-section-heading,
.agv3-card__header,
.agv3-dark-heading,
.agv3-media-box > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.agv3-section-heading {
    margin-bottom: 15px;
}

.agv3-section-heading h2,
.agv3-card__header h2,
.agv3-dark-heading h2,
.agv3-media-box h3 {
    margin: 0;
    color: var(--agv3-navy);
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.agv3-section-heading h2 {
    font-size: 24px;
}

.agv3-card__header h2,
.agv3-dark-heading h2 {
    font-size: 20px;
}

.agv3-section-heading a,
.agv3-card__header a,
.agv3-dark-heading a,
.agv3-media-box > header a {
    color: var(--agv3-red);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

.agv3-card {
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid #dde3ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--agv3-shadow);
}

.agv3-empty {
    padding: 28px 14px;
    color: var(--agv3-muted);
    font-size: 13px;
    text-align: center;
}

/* =========================================================
   THREE OVERLAP CARDS
   ========================================================= */

.agv3-summary-wrap {
    position: relative;
    z-index: 12;
    margin-top: -43px;
}

.agv3-summary-grid {
    display: grid;
    grid-template-columns: 1.03fr .95fr 1.02fr;
    gap: 0;
}

.agv3-summary-grid > .agv3-card {
    min-height: 285px;
    border-radius: 0;
    box-shadow: 0 18px 42px rgba(7,27,58,.15);
}

.agv3-summary-grid > .agv3-card:first-child {
    border-radius: 18px 0 0 18px;
}

.agv3-summary-grid > .agv3-card:last-child {
    border-radius: 0 18px 18px 0;
}

.agv3-summary-grid > .agv3-card + .agv3-card {
    border-left: 0;
}

.agv3-medal-head,
.agv3-medal-row {
    display: grid;
    grid-template-columns: 30px minmax(110px, 1fr) 32px 32px 32px 40px;
    align-items: center;
    gap: 6px;
}

.agv3-medal-head {
    margin-top: 16px;
    padding: 0 6px 8px;
    color: var(--agv3-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.agv3-medal-row {
    min-height: 42px;
    padding: 0 6px;
    border-top: 1px solid #e6eaf0;
    color: #23324d;
    font-size: 12px;
}

.agv3-medal-row strong {
    font-size: 12px;
}

.agv3-medal-row.is-indonesia {
    margin-inline: -7px;
    padding-inline: 13px;
    border-color: transparent;
    border-radius: 7px;
    background: var(--agv3-red);
    color: #fff;
}

.agv3-compact-list,
.agv3-news-list {
    margin-top: 13px;
}

.agv3-schedule-row {
    min-height: 53px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e6eaf0;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-schedule-row time {
    color: var(--agv3-navy);
    font-size: 11px;
    font-weight: 800;
}

.agv3-schedule-row span {
    min-width: 0;
}

.agv3-schedule-row strong,
.agv3-schedule-row small {
    display: block;
}

.agv3-schedule-row strong {
    overflow: hidden;
    color: var(--agv3-ink);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agv3-schedule-row small {
    margin-top: 3px;
    color: var(--agv3-muted);
    font-size: 9px;
}

.agv3-schedule-row em {
    padding: 4px 6px;
    border: 1px solid #f5a330;
    border-radius: 99px;
    color: #dc7800;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.agv3-news-item {
    min-height: 63px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e6eaf0;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-news-item img {
    width: 58px;
    height: 45px;
    border-radius: 7px;
    object-fit: cover;
}

.agv3-news-item span {
    min-width: 0;
}

.agv3-news-item small,
.agv3-news-item strong {
    display: block;
}

.agv3-news-item small {
    margin-bottom: 3px;
    color: var(--agv3-muted);
    font-size: 8px;
}

.agv3-news-item strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.agv3-news-item em {
    padding: 4px 6px;
    border: 1px solid var(--agv3-red);
    border-radius: 99px;
    color: var(--agv3-red);
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================================================
   ATHLETES + TODAY SCHEDULE
   ========================================================= */

.agv3-athlete-schedule {
    padding: 10px 0 0;
}

.agv3-athlete-schedule__grid {
    display: grid;
    grid-template-columns: 1.75fr .75fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: linear-gradient(135deg, #071b3a, #0b2850);
    box-shadow: 0 18px 40px rgba(7,27,58,.18);
}

.agv3-athletes-panel,
.agv3-today-panel {
    min-width: 0;
    padding: 17px;
}

.agv3-today-panel {
    border-left: 1px solid rgba(255,255,255,.12);
}

.agv3-dark-heading h2,
.agv3-dark-heading a {
    color: #fff;
}

.agv3-dark-heading a {
    opacity: .8;
}

.agv3-athlete-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.agv3-athlete-card {
    overflow: hidden;
    border-radius: 11px;
    background: #fff;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-athlete-card__image {
    display: block;
    aspect-ratio: 4 / 4.6;
    overflow: hidden;
    background: #e9edf4;
}

.agv3-athlete-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    transition: transform .28s ease;
}

.agv3-athlete-card:hover img {
    transform: scale(1.04);
}

.agv3-athlete-card strong,
.agv3-athlete-card small {
    display: block;
    padding-inline: 9px;
}

.agv3-athlete-card strong {
    margin-top: 9px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 14px;
    line-height: 1.05;
}

.agv3-athlete-card small {
    padding-top: 3px;
    padding-bottom: 9px;
    color: var(--agv3-muted);
    font-size: 8px;
    text-transform: uppercase;
}

.agv3-today-list {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.agv3-today-list > a {
    min-height: 54px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #fff;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-today-list time {
    color: var(--agv3-navy);
    font-size: 10px;
    font-weight: 800;
}

.agv3-today-list strong,
.agv3-today-list small {
    display: block;
}

.agv3-today-list strong {
    font-size: 10px;
}

.agv3-today-list small {
    margin-top: 3px;
    color: var(--agv3-muted);
    font-size: 8px;
}

.agv3-today-list em {
    padding: 3px 5px;
    border-radius: 99px;
    background: #fff5e7;
    color: #d27900;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.agv3-empty--dark {
    color: rgba(255,255,255,.7);
}

/* =========================================================
   SPORT MEDALS
   ========================================================= */

.agv3-medal-sports {
    padding-top: 13px;
}

.agv3-sport-medal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--agv3-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(7,27,58,.06);
}

.agv3-sport-medal-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 4px 9px;
    padding: 14px;
    border-right: 1px solid var(--agv3-line);
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-sport-medal-item:last-child {
    border-right: 0;
}

.agv3-sport-medal-icon {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef3f9;
    color: var(--agv3-navy);
}

.agv3-sport-medal-item strong {
    overflow: hidden;
    color: var(--agv3-navy);
    font-size: 10px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.agv3-sport-medal-item div {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
}

.agv3-sport-medal-item b {
    margin-left: auto;
    font-size: 12px;
}

/* =========================================================
   MEDIA
   ========================================================= */

.agv3-media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.agv3-media-box {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--agv3-line);
    border-radius: 13px;
    background: #fff;
}

.agv3-media-box h3 {
    font-size: 16px;
}

.agv3-media-list-item {
    min-height: 58px;
    display: grid;
    grid-template-columns: 20px 54px 1fr;
    align-items: center;
    gap: 7px;
    border-top: 1px solid #e8ecf2;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-media-list-item:first-of-type {
    margin-top: 10px;
}

.agv3-media-list-item > b {
    color: var(--agv3-red);
    font-size: 12px;
}

.agv3-media-list-item img {
    width: 54px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.agv3-media-list-item strong,
.agv3-media-list-item small {
    display: block;
}

.agv3-media-list-item strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.agv3-media-list-item small {
    margin-top: 3px;
    color: var(--agv3-muted);
    font-size: 7px;
}

.agv3-document-item {
    min-height: 62px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 9px;
    border-top: 1px solid #e8ecf2;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-document-item:first-of-type {
    margin-top: 10px;
}

.agv3-document-item > span {
    width: 38px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eef1f6;
    color: var(--agv3-red);
    font-size: 8px;
    font-weight: 800;
}

.agv3-document-item strong,
.agv3-document-item small {
    display: block;
}

.agv3-document-item strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.agv3-document-item small {
    margin-top: 4px;
    color: var(--agv3-muted);
    font-size: 7px;
}

.agv3-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 11px;
}

.agv3-photo-grid a {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 7px;
}

.agv3-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agv3-video-item {
    min-height: 67px;
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 9px;
    border-top: 1px solid #e8ecf2;
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-video-item:first-of-type {
    margin-top: 10px;
}

.agv3-video-item > span {
    position: relative;
    width: 90px;
    height: 51px;
    overflow: hidden;
    border-radius: 7px;
    background: var(--agv3-navy);
}

.agv3-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agv3-video-item i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-style: normal;
    text-shadow: 0 2px 8px #000;
}

.agv3-video-item strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* =========================================================
   PROFILE STRIP
   ========================================================= */

.agv3-profile-strip {
    padding-top: 2px;
}

.agv3-profile-strip > .ag-container {
    padding: 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, #071b3a, #0c2a52);
}

.agv3-profile-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr 1.05fr;
    gap: 10px;
    margin-top: 12px;
}

.agv3-profile-card {
    position: relative;
    min-height: 146px;
    overflow: hidden;
    padding: 17px;
    border-radius: 12px;
    background: #fff;
}

.agv3-profile-card small {
    color: var(--agv3-red);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.agv3-profile-card h3 {
    margin: 6px 0 7px;
    color: var(--agv3-navy);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
}

.agv3-profile-card p {
    max-width: 78%;
    margin: 0;
    color: var(--agv3-muted);
    font-size: 10px;
    line-height: 1.45;
}

.agv3-profile-card > a,
.agv3-profile-card > div > a {
    display: inline-block;
    margin-top: 12px;
    color: var(--agv3-red);
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.agv3-profile-card--cdm {
    display: grid;
    grid-template-columns: 1fr 125px;
    padding-right: 0;
}

.agv3-profile-card--cdm p {
    max-width: 100%;
}

.agv3-profile-card--cdm img {
    align-self: end;
    width: 125px;
    height: 145px;
    object-fit: cover;
    object-position: center top;
}

.agv3-sport-icons {
    display: grid;
    grid-template-columns: repeat(4, 30px);
    gap: 6px;
    margin-top: 10px;
}

.agv3-sport-icons span,
.agv3-avatar-stack span {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f7;
}

.agv3-sport-icons span {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.agv3-avatar-stack {
    display: flex;
    margin-top: 12px;
}

.agv3-avatar-stack span {
    width: 38px;
    height: 38px;
    margin-left: -7px;
    border: 3px solid #fff;
}

.agv3-avatar-stack span:first-child {
    margin-left: 0;
}

.agv3-avatar-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   ABOUT + FAN ZONE + SPONSORS
   ========================================================= */

.agv3-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--agv3-line);
    border-radius: 14px;
    background: #fff;
}

.agv3-about-item {
    min-height: 116px;
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-right: 1px solid var(--agv3-line);
    color: var(--agv3-ink);
    text-decoration: none;
}

.agv3-about-item:last-child {
    border-right: 0;
}

.agv3-about-item > span {
    width: 96px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f7;
}

.agv3-about-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agv3-about-item small,
.agv3-about-item strong,
.agv3-about-item p {
    display: block;
}

.agv3-about-item small {
    color: var(--agv3-red);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.agv3-about-item strong {
    margin-top: 5px;
    font-size: 12px;
}

.agv3-about-item p {
    margin: 5px 0 0;
    color: var(--agv3-muted);
    font-size: 9px;
    line-height: 1.4;
}

.agv3-fan-zone {
    padding-top: 2px;
}

.agv3-fan-grid {
    display: grid;
    grid-template-columns: 1.1fr repeat(4, 1fr);
    gap: 10px;
}

.agv3-fan-social,
.agv3-fan-card {
    min-height: 126px;
    padding: 17px;
    border: 1px solid var(--agv3-line);
    border-radius: 13px;
    background: #fff;
}

.agv3-fan-social small,
.agv3-fan-card small {
    color: var(--agv3-red);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.agv3-fan-social h3,
.agv3-fan-card h3 {
    margin: 5px 0 12px;
    color: var(--agv3-navy);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 19px;
    text-transform: uppercase;
}

.agv3-fan-social > div {
    display: flex;
    gap: 7px;
}

.agv3-fan-social > div span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--agv3-navy);
    color: #fff;
    font-size: 11px;
}

.agv3-fan-social b {
    display: block;
    margin-top: 10px;
    color: var(--agv3-red);
    font-size: 8px;
}

.agv3-fan-card a {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 7px;
    background: var(--agv3-red);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.agv3-sponsors {
    padding-top: 5px;
    padding-bottom: 26px;
}

.agv3-sponsor-row {
    display: grid;
    grid-template-columns: repeat(10, minmax(90px, 1fr));
    gap: 8px;
}

.agv3-sponsor-row a {
    min-height: 70px;
    display: grid;
    place-items: center;
    padding: 9px;
    border: 1px solid var(--agv3-line);
    border-radius: 10px;
    background: #fff;
    color: var(--agv3-navy);
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.agv3-sponsor-row img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}

/* Existing footer polish */
body .ag-footer {
    background: linear-gradient(135deg, #06182f, #0b2850) !important;
    border-top: 3px solid var(--agv3-red) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1320px) {
    body .ag-primary-nav .ag-menu > li > a {
        padding-inline: 9px !important;
        font-size: 13px !important;
    }

    body .ag-brand {
        min-width: 250px !important;
    }

    .agv3-hero__inner {
        grid-template-columns: minmax(400px, .9fr) minmax(500px, 1.1fr);
    }

    .agv3-hero__visual img {
        width: min(830px, 122%);
    }
}

@media (max-width: 1120px) {
    body .ag-primary-nav {
        display: none !important;
    }

    body .ag-menu-toggle {
        display: inline-flex !important;
        margin-left: auto !important;
    }

    .agv3-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .agv3-summary-grid > .agv3-card,
    .agv3-summary-grid > .agv3-card:first-child,
    .agv3-summary-grid > .agv3-card:last-child {
        border: 1px solid var(--agv3-line);
        border-radius: 16px;
    }

    .agv3-news-card {
        grid-column: 1 / -1;
    }

    .agv3-athlete-schedule__grid {
        grid-template-columns: 1fr;
    }

    .agv3-today-panel {
        border-top: 1px solid rgba(255,255,255,.12);
        border-left: 0;
    }

    .agv3-media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agv3-sport-medal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .agv3-sport-medal-item:nth-child(3) {
        border-right: 0;
    }

    .agv3-sport-medal-item:nth-child(n+4) {
        border-top: 1px solid var(--agv3-line);
    }

    .agv3-fan-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .agv3-sponsor-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    body .ag-topbar__links {
        display: none !important;
    }

    body .ag-topbar__inner {
        justify-content: flex-end !important;
    }

    .agv3-hero,
    .agv3-hero__inner {
        min-height: auto;
    }

    .agv3-hero__inner {
        grid-template-columns: 1fr;
    }

    .agv3-hero__copy {
        max-width: 720px;
        padding: 58px 0 10px;
    }

    .agv3-hero__visual {
        min-height: 360px;
        justify-content: center;
    }

    .agv3-hero__visual img {
        width: min(760px, 100%);
        max-height: 400px;
        margin-right: 0;
    }

    .agv3-summary-wrap {
        margin-top: 0;
        padding-top: 18px;
    }

    .agv3-athlete-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .agv3-profile-grid,
    .agv3-about-grid {
        grid-template-columns: 1fr;
    }

    .agv3-about-item,
    .agv3-about-item:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--agv3-line);
    }

    .agv3-about-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 680px) {
    body .ag-container {
        width: min(calc(100% - 28px), var(--agv3-container));
    }

    body .ag-topbar {
        display: none !important;
    }

    body .ag-navbar__inner {
        min-height: 70px !important;
        gap: 11px !important;
    }

    body .ag-brand {
        min-width: 0 !important;
        margin-right: auto !important;
    }

    body .ag-navbar .ag-brand__logo img.custom-logo {
        max-width: 55px !important;
        max-height: 48px !important;
    }

    body .ag-brand__text small,
    body .ag-brand__text em {
        display: none !important;
    }

    body .ag-brand__text strong {
        font-size: 22px !important;
    }

    body .ag-search-button {
        display: none !important;
    }

    .agv3-hero__copy {
        padding-top: 43px;
    }

    .agv3-eyebrow {
        font-size: 13px;
    }

    .agv3-hero h1 {
        font-size: clamp(44px, 14vw, 60px);
    }

    .agv3-hero__copy > p {
        font-size: 12px;
    }

    body.home .agv3-countdown {
        width: 100% !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .agv3-hero__visual {
        min-height: 280px;
    }

    .agv3-hero__visual img {
        max-height: 300px;
    }

    .agv3-summary-grid,
    .agv3-media-grid,
    .agv3-sport-medal-grid,
    .agv3-fan-grid {
        grid-template-columns: 1fr;
    }

    .agv3-summary-grid > .agv3-card {
        min-height: auto;
    }

    .agv3-athlete-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .agv3-athlete-card {
        min-width: 175px;
        scroll-snap-align: start;
    }

    .agv3-sport-medal-item,
    .agv3-sport-medal-item:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid var(--agv3-line);
    }

    .agv3-sport-medal-item:last-child {
        border-bottom: 0;
    }

    .agv3-profile-card--cdm {
        grid-template-columns: 1fr 105px;
    }

    .agv3-profile-card--cdm img {
        width: 105px;
    }

    .agv3-about-item {
        grid-template-columns: 78px 1fr;
    }

    .agv3-about-item > span {
        width: 78px;
        height: 64px;
    }

    .agv3-sponsor-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
