:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #1a1c1f;
    --muted: #6b7078;
    --primary: #1677ff;
    --primary-700: #0d5fe0;
    --accent: #ff7d29;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}
* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    line-height: 1.6;
}

.page {
    padding: 24px;
}

.layout {
    display: grid;
    width: 1390px;
    grid-template-columns: 615px 510px 240px;
    gap: 12px;
    align-items: start;
    margin: 0 auto;
    transform-origin: top right;
}

@media (max-width: 1358px) and (min-width: 993px) {
    .layout {
        transform: scale(calc((100vw - 48px) / 1358));
    }
}

.profile__card {
    background: var(--card);
    border-radius: 24px;
    /* box-shadow: var(--shadow); */
    overflow: hidden;
}
.profile__avatar {
    padding: 18px 25px 0;
    display: flex;
    justify-content: center;
}
.profile__avatar img {
    width: 190px;
    height: 192px;
    border-radius: 20px;
    display: block;
}
.profile__body {
    padding: 16px 20px 20px;
}
.profile__name {
    margin: 0px 0 4px;
    font-weight: 800;
    font-size: 17px;
    text-align: center;
}
.profile__title {
    margin: 0;
    color: var(--muted);
    text-align: center;
    font-size: 15px;
}
.profile__actions {
    display: grid;
    grid-template-columns: -1fr 1fr;
    gap: 10px;
    margin: 22px 0;
}
.btn {
    appearance: none;
    border: 1px solid #e5e7ef;
    background: #fff;
    color: var(--text);
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}
.btn--primary:hover {
    background: var(--primary-700);
}
.profile__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 27px;
}
.social {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    background: #f0f3fa;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
}

.news {
    background: var(--card);
    border-radius: 24px;
    /* box-shadow: var(--shadow); */
    padding: 12px 16px;
    height: auto;
}
.news__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.news__tabs {
    margin-inline-start: auto;
    display: flex;
    gap: 8px;
}
.tab {
    border: 1px solid #e6e8f0;
    background: #fff;
    color: #2c2f36;
    border-radius: 20px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}
.tab.is-active {
    background: #eaf2ff;
    border-color: #cfe0ff;
    color: #0b57d0;
    font-weight: 700;
}
.news__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(440px - 54px);
    overflow: auto;
    padding: 4px;
}
.news-card {
    /* display: grid;
    grid-template-columns: 110px 1fr; */
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef1f6;
    background: #fff;
    transition: 0.2s box-shadow, 0.2s transform;
}
.news-card:hover {
    box-shadow: 0 10px 20px rgba(18, 36, 67, 0.06);
    transform: translateY(-2px);
}
.news-card__thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
}
.news-card__badge {
    /* display: inline-block; */
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
    background-color: var(--primary);
    color: var(--card);
}
.news-card__badge.news {
    background: #e6f4ff;
    color: #0842a0;
}
.news-card__badge.notice {
    background: #fff6e6;
    color: #a85608;
}
.news-card__badge.rules {
    background: #eafaf0;
    color: #0b6b3a;
}
.news-card__title {
    margin: 14px 0 4px;
    font-size: 13px;
}
.news-card__time {
    font-size: 12px;
    color: var(--muted);
    /* position: relative;
  right: 65%; */
}
.news-card__excerpt {
    margin: 6px 0 0;
    color: #4b5563;
}
.top_hero__caption {
    display: flex;
    justify-content: space-between;
}

.ticker {
    width: 110px;
    height: 36px;
    overflow: hidden;
    border-radius: 999px;
    background: #f2f5ff;
    border: 1px solid #e0e7ff;
    display: grid;
    place-items: center;
}
.ticker__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ticker__item {
    height: 36px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #0b57d0;
}

.hero {
    height: 100%;
    background: var(--card);
    border-radius: 24px;
    /* box-shadow: var(--shadow); */
    overflow: hidden;
}
.hero__viewport {
    position: relative;
}
.hero__track {
    position: relative;
    height: 470px;
}
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}
.hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}
.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__caption {
    position: absolute;
    inset-inline: 13px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero__title {
    margin: 0;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    font-size: 18px;
}
.hero__cta {
    margin-inline-start: auto;
    background: #000a;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 15px;
}
.hero__time {
    display: none;
}
.hero__badge {
    display: none;
}
.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
}
.hero__nav--prev {
    inset-inline-start: 12px;
}
.hero__nav--next {
    inset-inline-end: 12px;
}
.hero__dots {
    position: absolute;
    inset-inline: 0;
    bottom: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.hero__dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}
.hero__dots button[aria-selected="true"] {
    background: #fff;
    width: 28px;
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 992px) {
    .layout {
        width: auto;
        transform: none;
        grid-template-columns: 1fr;
    }
    .profile {
        order: 3;
    }
    .hero__track {
        height: 44vh;
    }
    .news__list {
        max-height: unset;
    }
    .hero__title {
        font-size: 13px;
    }
    .hero__cta {
        font-size: 12px;
    }
}
