/* Homepage V2 — minimal white + yellow (with digiyazd_master) */

:root {
    --hv2-yellow: #fbc42f;
    --hv2-yellow-soft: #fff9e8;
    --hv2-dark: #383838;
    --hv2-text: #333333;
    --hv2-muted: #777777;
    --hv2-border: #ececec;
    --hv2-radius: 16px;
    --hv2-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --hv2-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.hv2-page {
    direction: rtl;
    font-family: yekan, Tahoma, Arial, sans-serif;
    color: var(--hv2-text);
    background: #fafafa;
    padding: 24px 0 48px;
}

.hv2-mobile-search {
    display: none;
}

.hv2-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hv2-section {
    margin-bottom: 40px;
}

.hv2-cat {
    margin-bottom: 28px;
}

.hv2-section-head {
    margin-bottom: 16px;
}

.hv2-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--hv2-dark);
}

.hv2-section-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--hv2-muted);
}

.hv2-link-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--hv2-dark);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--hv2-border);
    background: #fff;
}

.hv2-link-more:hover {
    border-color: var(--hv2-yellow);
    background: var(--hv2-yellow-soft);
    text-decoration: none;
    color: var(--hv2-dark);
}

/* Brands — زدلرن و زدفان */
.hv2-brand-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hv2-brand-strip--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.hv2-brand-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    background: #fff;
    border-radius: var(--hv2-radius);
    border: 1px solid var(--hv2-border);
    text-decoration: none;
    color: var(--hv2-dark);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    position: relative;
    overflow: hidden;
    min-height: 92px;
}

.hv2-brand-strip--duo .hv2-brand-pill {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 22px 24px;
    min-height: 104px;
}

.hv2-brand-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--hv2-shadow);
    border-color: rgba(251, 196, 47, 0.5);
    text-decoration: none;
    color: var(--hv2-dark);
}

.hv2-brand-pill__surface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.22s ease;
    z-index: 1;
}

.hv2-brand-strip--duo .hv2-brand-pill__surface {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.hv2-brand-pill--has-hover:hover .hv2-brand-pill__surface {
    opacity: 0;
}

.hv2-brand-pill__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(255, 249, 232, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    z-index: 2;
}

.hv2-brand-pill--has-hover:hover .hv2-brand-pill__hover,
.hv2-brand-pill--has-hover:focus-visible .hv2-brand-pill__hover {
    opacity: 1;
    transform: translateY(0);
}

.hv2-brand-pill__hover-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: #5c5345;
    text-align: center;
    max-width: 34ch;
}

.hv2-brand-pill__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.hv2-brand-pill__icon i {
    display: block;
    line-height: 1;
}

.hv2-brand-pill__label {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.hv2-brand-pill__label--mobile {
    display: none;
}

/* Category cards */
.hv2-pop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hv2-pop-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    background: #fff;
    border-radius: var(--hv2-radius);
    border: 1px solid var(--hv2-border);
    text-decoration: none;
    color: var(--hv2-dark);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hv2-pop-card:hover {
    border-color: rgba(251, 196, 47, 0.5);
    box-shadow: var(--hv2-shadow);
    text-decoration: none;
    color: var(--hv2-dark);
}

.hv2-pop-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.hv2-pop-card__label {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

/* Page promo banners (not header) */
.hv2-banner-section .hv2-section-title {
    font-size: 16px;
}

.hv2-banner-wrap {
    border-radius: var(--hv2-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hv2-border);
}

.hv2-banner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hv2-banner-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    /* Reserve space before image decode — prevents CLS */
    aspect-ratio: 3 / 1;
    max-height: 200px;
    background: #f3f4f6;
    overflow: hidden;
}

.hv2-banner-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

/* Class hero */
.hv2-class-hero {
    margin-bottom: 36px;
    padding: 20px 0 8px;
    background: linear-gradient(180deg, var(--hv2-yellow-soft) 0%, transparent 85%);
    border-radius: 20px;
}

.hv2-hero-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--hv2-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.hv2-hero-card:hover {
    text-decoration: none;
    color: inherit;
    border-color: rgba(251, 196, 47, 0.55);
}

.hv2-hero-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 0;
    background: #f0f0f0;
    overflow: hidden;
}

.hv2-hero-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hv2-hero-card__body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hv2-hero-card__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--hv2-dark);
    line-height: 1.4;
}

.hv2-hero-card__subtitle {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--hv2-muted);
}

.hv2-hero-card__meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--hv2-dark);
}

.hv2-banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
}

.hv2-banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: 0;
    background: #ddd;
    padding: 0;
    cursor: pointer;
}

.hv2-banner-dot.active {
    width: 20px;
    background: var(--hv2-yellow);
}

/* Sliders */
.hv2-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.hv2-slider-wrap {
    position: relative;
    padding-bottom: 4px;
}

.hv2-slider-navbar {
    margin-top: 10px;
    padding: 0 42px 2px;
}

.hv2-slider-rail {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 18px;
    cursor: pointer;
    padding: 4px 0;
}

.hv2-slider-seg {
    flex: 1;
    max-width: 52px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: #d8d8d8;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, max-width 0.2s ease;
}

.hv2-slider-seg:hover {
    background: #c8c8c8;
}

.hv2-slider-seg.active {
    background: var(--hv2-yellow);
    max-width: 64px;
    transform: scaleY(1.15);
}

.hv2-slider-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    scrollbar-width: none;
}

.hv2-slider-wrap--flat .hv2-slider-nav {
    box-shadow: none;
    border-color: var(--hv2-border);
}

.hv2-card--flat {
    box-shadow: none !important;
}

.hv2-card--flat:hover {
    box-shadow: none !important;
    transform: none;
    border-color: rgba(251, 196, 47, 0.55);
}

/* Class slider — horizontal cards (works with standard card markup) */
.hv2-slider-wrap--class .hv2-slider-track {
    gap: 12px;
    padding-bottom: 14px;
}

.hv2-slider-wrap--class .hv2-slider-nav {
    border-color: rgba(251, 196, 47, 0.4);
    background: #fffdf6;
}

.hv2-slider-wrap--class .hv2-slider-track > .hv2-card,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-slider-track > .hv2-card {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: stretch !important;
    flex: 0 0 348px !important;
    width: 348px;
    max-width: 88vw;
    min-height: 118px;
    padding: 10px !important;
    gap: 12px;
    border-radius: 16px !important;
    border: 1px solid #e8e8e8 !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hv2-slider-wrap--class .hv2-slider-track > .hv2-card:hover,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-slider-track > .hv2-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(251, 196, 47, 0.45) !important;
}

.hv2-slider-wrap--class .hv2-card-media,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-media {
    position: relative;
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 100px !important;
    min-height: 100px;
    border-radius: 12px !important;
    overflow: hidden;
    background: #f0f0f0;
}

.hv2-slider-wrap--class .hv2-card-media img,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.hv2-slider-wrap--class .hv2-card-badge,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-badge {
    display: none !important;
}

.hv2-slider-wrap--class .hv2-card-body,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 2px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.hv2-slider-wrap--class .hv2-card-title,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-slider-wrap--class .hv2-card-subtitle,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-subtitle {
    margin: 0;
    font-size: 11px;
    color: #8a8a8a;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv2-slider-wrap--class .hv2-card-subtitle::before,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-subtitle::before {
    content: "\f02b";
    font-family: FontAwesome;
    font-size: 10px;
    color: #b5b5b5;
    flex-shrink: 0;
}

.hv2-slider-wrap--class .hv2-card-meta,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-meta {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: #7a7a7a;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv2-slider-wrap--class .hv2-card-meta::before,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-meta::before {
    content: "\f007";
    font-family: FontAwesome;
    font-size: 10px;
    color: #b5b5b5;
    flex-shrink: 0;
}

.hv2-slider-wrap--class .hv2-card-meta.is-price,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-meta.is-price {
    color: #2e7d32;
    font-weight: 700;
}

.hv2-slider-wrap--class .hv2-card-meta.is-price::before,
.hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-meta.is-price::before {
    content: "\f0d6";
    color: #6fae73;
}

/* Legacy class-card BEM (if ascx with new markup is deployed) */
.hv2-class-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 2px;
}

.hv2-class-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    color: var(--hv2-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-class-card__instructor {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv2-class-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin-top: auto;
}

.hv2-class-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #7a7a7a;
    line-height: 1.35;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv2-class-card__stat i {
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    font-size: 11px;
    color: #b0b0b0;
}

.hv2-class-card__media {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    align-self: center;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.hv2-class-card__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.hv2-card--class {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 12px;
}

/* School cards — clean flat cards */
.hv2-card--school.hv2-card--flat {
    flex: 0 0 220px;
    border-radius: var(--hv2-radius);
    border-color: var(--hv2-border);
}

.hv2-card--school .hv2-card-badge {
    background: var(--hv2-dark);
    color: var(--hv2-yellow);
    border-radius: 6px;
}

.hv2-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--hv2-radius);
    border: 1px solid var(--hv2-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.hv2-card:hover {
    border-color: rgba(251, 196, 47, 0.55);
    text-decoration: none;
    color: inherit;
}

.hv2-card-media {
    height: 140px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

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

.hv2-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--hv2-dark);
    color: var(--hv2-yellow);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.hv2-card-body {
    padding: 14px;
}

.hv2-card-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
    color: var(--hv2-dark);
    line-height: 1.45;
}

.hv2-card-subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--hv2-muted);
}

.hv2-card-meta {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--hv2-dark);
}

.hv2-card-meta.is-price {
    color: #2e7d32;
}

.hv2-slider-nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hv2-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}

.hv2-slider-nav.prev { right: -6px; }
.hv2-slider-nav.next { left: -6px; }

/* Topics slider */
.hv2-chip-slider-wrap {
    padding: 0 24px;
}

.hv2-chip-slider-wrap .hv2-slider-nav {
    top: 8px;
    transform: none;
}

.hv2-topic-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.hv2-topic-track::-webkit-scrollbar {
    display: none;
}

.hv2-topic-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 11px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--hv2-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--hv2-dark);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.hv2-topic-chip:hover {
    border-color: var(--hv2-yellow);
    background: var(--hv2-yellow-soft);
    text-decoration: none;
    color: var(--hv2-dark);
}

/* Articles — homepage blog cards */
.hv2-section--articles .hv2-section-head {
    margin-bottom: 18px;
}

.hv2-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.hv2-article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--hv2-radius);
    border: 1px solid var(--hv2-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hv2-article-card:hover {
    box-shadow: var(--hv2-shadow-lg);
    border-color: #f3df9b;
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.hv2-article-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 150px;
    background: linear-gradient(135deg, var(--hv2-yellow-soft), #f0f0f0);
    overflow: hidden;
}

.hv2-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hv2-article-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.94);
    color: #7a5a00;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ffe08a;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hv2-article-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hv2-section--articles .hv2-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
    color: var(--hv2-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-article-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--hv2-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-section--articles .hv2-card-meta {
    margin-top: auto;
    font-size: 12px;
    color: #999;
}

/* Events */
.hv2-event-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-radius: var(--hv2-radius);
    border: 1px solid var(--hv2-border);
}

.hv2-event-date {
    min-width: 68px;
    text-align: center;
    padding: 8px;
    border-radius: 12px;
    background: var(--hv2-yellow-soft);
    font-size: 11px;
    font-weight: 800;
    color: var(--hv2-dark);
}

.hv2-event-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
}

.hv2-event-desc {
    margin: 0;
    font-size: 12px;
    color: var(--hv2-muted);
}

.hv2-event-list {
    display: grid;
    gap: 10px;
}

/* CTA panel — ثبت آگهی / کسب‌وکار */
.hv2-cta-section {
    margin-bottom: 32px;
}

.hv2-cta-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 24px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--hv2-border);
    box-shadow: var(--hv2-shadow);
    overflow: hidden;
}

.hv2-cta-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hv2-yellow) 0%, #ffe08a 100%);
}

.hv2-cta-panel__intro {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hv2-cta-panel__badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hv2-yellow-soft);
    color: var(--hv2-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(251, 196, 47, 0.35);
}

.hv2-cta-panel__badge i {
    display: block;
    line-height: 1;
}

.hv2-cta-panel__title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: var(--hv2-dark);
    line-height: 1.4;
}

.hv2-cta-panel__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--hv2-muted);
}

.hv2-cta-panel__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hv2-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid var(--hv2-border);
    text-decoration: none;
    color: var(--hv2-dark);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hv2-action-card:hover {
    border-color: rgba(251, 196, 47, 0.6);
    background: #fff;
    box-shadow: 0 4px 16px rgba(251, 196, 47, 0.12);
    text-decoration: none;
    color: var(--hv2-dark);
    transform: translateY(-1px);
}

.hv2-action-card--primary {
    background: var(--hv2-yellow);
    border-color: var(--hv2-yellow);
}

.hv2-action-card--primary:hover {
    background: #f5bc1f;
    border-color: #f5bc1f;
    box-shadow: 0 6px 20px rgba(251, 196, 47, 0.28);
}

.hv2-action-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(56, 56, 56, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.hv2-action-card__icon i {
    display: block;
    line-height: 1;
}

.hv2-action-card--primary .hv2-action-card__icon {
    background: rgba(255, 255, 255, 0.45);
}

.hv2-action-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hv2-action-card__label {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.hv2-action-card__hint {
    font-size: 11px;
    color: var(--hv2-muted);
    line-height: 1.45;
}

.hv2-action-card--primary .hv2-action-card__hint {
    color: rgba(56, 56, 56, 0.72);
}

.hv2-action-card__arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(56, 56, 56, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hv2-action-card__arrow i {
    display: block;
    line-height: 1;
}

.hv2-action-card--primary .hv2-action-card__arrow {
    background: rgba(255, 255, 255, 0.4);
}

.hv2-action-card:hover .hv2-action-card__arrow {
    opacity: 1;
    background: rgba(56, 56, 56, 0.1);
}

.hv2-action-card--primary:hover .hv2-action-card__arrow {
    background: rgba(255, 255, 255, 0.55);
}

/* Discover grid */
.hv2-discover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hv2-discover-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hv2-border);
    transition: border-color 0.2s, transform 0.2s;
}

.hv2-discover-card:hover {
    border-color: rgba(251, 196, 47, 0.55);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
}

.hv2-discover-card__art {
    padding: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    min-height: 0;
    overflow: hidden;
}

.hv2-discover-card__art img {
    width: 100%;
    max-width: 230px;
    height: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.hv2-discover-card__btn {
    display: block;
    margin: 0 8px 8px;
    padding: 10px 8px;
    background: #383838;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    border-radius: 10px;
    line-height: 1.5;
}

/* Guide banners (two columns like cards) */
.hv2-guide-banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hv2-guide-banner {
    display: block;
    width: 100%;
    border: none;
    background: #f3f4f6;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 21 / 9;
    border-radius: 22px;
    overflow: hidden;
}

.hv2-guide-banner:hover {
    text-decoration: none;
}

.hv2-guide-banner img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    transition: opacity 0.2s;
}

.hv2-guide-banner:hover img {
    opacity: 0.92;
}

.hv2-guide-banner--button {
    width: 100%;
}

/* Guide cards */
.hv2-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.hv2-guide-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 22px 20px;
    border-radius: 22px;
    border: 1px solid var(--hv2-border);
    text-decoration: none;
    color: var(--hv2-dark);
    text-align: right;
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.hv2-guide-card--warm {
    background: #fff4df;
}

.hv2-guide-card--cool {
    background: #f3f3f3;
}

.hv2-guide-card:hover {
    text-decoration: none;
    color: var(--hv2-dark);
    border-color: rgba(251, 196, 47, 0.45);
}

.hv2-guide-card__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
}

.hv2-guide-card__text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--hv2-muted);
}

.hv2-guide-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hv2-guide-card__action--dark {
    background: #383838;
    color: #fff;
}

.hv2-guide-card__action--light {
    background: #fff;
    color: #383838;
    border: 1px solid #383838;
}

.hv2-guide-card__illus {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    position: relative;
}

.hv2-guide-card__illus--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hv2-guide-card__illus--path::before {
    content: "";
    position: absolute;
    width: 34px; height: 34px;
    top: 18px; right: 8px;
    border-radius: 8px;
    background: var(--hv2-yellow);
    box-shadow: -18px 18px 0 0 #383838;
}

.hv2-guide-card__illus--path::after {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    bottom: 16px; left: 16px;
    border-radius: 50%;
    background: #383838;
    box-shadow: 14px -20px 0 0 var(--hv2-yellow), 28px -8px 0 0 #383838;
}

.hv2-guide-card__illus--bot::before {
    content: "";
    position: absolute;
    width: 52px; height: 40px;
    top: 22px; left: 12px;
    border-radius: 16px 16px 8px 8px;
    background: #383838;
}

.hv2-guide-card__illus--bot::after {
    content: "...";
    position: absolute;
    top: 30px; right: 10px;
    width: 28px; height: 20px;
    border-radius: 12px;
    background: #fff;
    color: #383838;
    font-weight: 800;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

/* Legacy CTA (unused) */
.hv2-cta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 22px;
    background: linear-gradient(135deg, #fff9e8 0%, #ffffff 55%);
    border-radius: 20px;
    border: 1px solid rgba(251, 196, 47, 0.45);
    box-shadow: var(--hv2-shadow-lg);
}

.hv2-cta-box__main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 4px;
}

.hv2-cta-box__badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--hv2-yellow);
    color: var(--hv2-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.hv2-cta-box__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--hv2-dark);
    line-height: 1.4;
}

.hv2-cta-box__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--hv2-muted);
}

.hv2-cta-box__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hv2-cta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--hv2-border);
    text-decoration: none;
    color: var(--hv2-dark);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-height: 120px;
}

.hv2-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hv2-shadow);
    border-color: rgba(251, 196, 47, 0.55);
    text-decoration: none;
    color: var(--hv2-dark);
}

.hv2-cta-card--primary {
    background: var(--hv2-yellow);
    border-color: var(--hv2-yellow);
}

.hv2-cta-card--primary:hover {
    background: #e5ad1a;
    border-color: #e5ad1a;
}

.hv2-cta-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(56, 56, 56, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hv2-cta-card--primary .hv2-cta-card__icon {
    background: rgba(255, 255, 255, 0.35);
}

.hv2-cta-card__label {
    font-size: 14px;
    font-weight: 800;
}

.hv2-cta-card__hint {
    font-size: 11px;
    color: var(--hv2-muted);
    line-height: 1.5;
}

.hv2-cta-card--primary .hv2-cta-card__hint {
    color: rgba(56, 56, 56, 0.75);
}

/* Legacy CTA (unused) */
.hv2-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 24px 28px;
    background: #fff;
    border-radius: var(--hv2-radius);
    border: 2px solid var(--hv2-yellow);
}

.hv2-cta__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--hv2-dark);
}

.hv2-cta__text {
    margin: 0;
    font-size: 13px;
    color: var(--hv2-muted);
}

.hv2-cta__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    border: 0;
}

.hv2-btn--primary {
    background: var(--hv2-yellow);
    color: var(--hv2-dark);
}

.hv2-btn--primary:hover {
    background: #e5ad1a;
    text-decoration: none;
    color: var(--hv2-dark);
}

.hv2-btn--ghost {
    background: #fff;
    color: var(--hv2-dark);
    border: 1px solid var(--hv2-border);
}

.hv2-btn--ghost:hover {
    border-color: var(--hv2-dark);
    text-decoration: none;
    color: var(--hv2-dark);
}

.hv2-empty {
    display: none;
}

@media (max-width: 768px) {
    .hv2-page {
        display: flex;
        flex-direction: column;
        padding: 10px 0 calc(30px + env(safe-area-inset-bottom, 0px));
        background: #f7f7f7;
    }

    .hv2-page > .hv2-section { order: 5; }
    .hv2-page > .hv2-mobile-search { order: 1; }
    .hv2-page > .hv2-cat { order: 2; }
    .hv2-page > .hv2-cta-section { order: 10; }

    .hv2-container {
        width: 100%;
        padding-right: 14px;
        padding-left: 14px;
    }

    .hv2-section {
        margin-bottom: 26px;
    }

    .hv2-section-head {
        align-items: center;
        margin-bottom: 12px;
    }

    .hv2-section-title {
        font-size: 16px;
        line-height: 1.45;
    }

    .hv2-section-subtitle {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.65;
    }

    .hv2-link-more {
        padding: 6px 10px;
        border-color: #eadcae;
        color: #6a5100;
        background: #fff9e7;
        font-size: 10px;
    }

    .hv2-article-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hv2-article-thumb {
        min-height: 170px;
    }

    .hv2-section--articles .hv2-card-title {
        font-size: 14px;
    }

    .hv2-mobile-search {
        display: block;
        margin-bottom: 18px;
    }

    .hv2-mobile-search__panel {
        position: relative;
        overflow: hidden;
        padding: 16px 14px 14px;
        border: 1px solid #efdfa7;
        border-radius: 18px;
        background: linear-gradient(145deg, #fff9e5 0%, #fff 72%);
        box-shadow: 0 8px 24px rgba(87, 66, 0, .08);
    }

    .hv2-mobile-search__panel::before {
        position: absolute;
        top: -38px;
        left: -28px;
        width: 100px;
        height: 100px;
        content: '';
        border-radius: 50%;
        background: rgba(251, 196, 47, .17);
        pointer-events: none;
    }

    .hv2-mobile-search__eyebrow {
        display: none;
    }

    .hv2-mobile-search__title {
        margin: 0 0 3px;
        color: #2f2f2f;
        font-size: 15px;
        font-weight: 900;
        line-height: 1.5;
    }

    .hv2-mobile-search__intro {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .hv2-mobile-search__art {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: #3c3008;
        background: var(--hv2-yellow);
        box-shadow: 0 5px 14px rgba(196, 145, 0, .2);
        font-size: 18px;
        transform: rotate(-3deg);
    }

    .hv2-mobile-search__text {
        margin: 0;
        color: #766f5e;
        font-size: 10px;
        line-height: 1.6;
    }

    .hv2-mobile-search__form {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 0;
        padding: 4px;
        border: 1px solid #dedede;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(56, 56, 56, .06);
        direction: rtl;
    }

    .hv2-mobile-search__form input {
        flex: 1 1 auto;
        min-width: 0;
        height: 38px;
        padding: 0 10px;
        border: 0;
        outline: 0;
        color: #333;
        background: transparent;
        font: inherit;
        font-size: 12px;
        text-align: right;
    }

    .hv2-mobile-search__form button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        color: #2d2407;
        background: var(--hv2-yellow);
        font: inherit;
        font-size: 16px;
        font-weight: 400;
    }

    .hv2-cat {
        margin-bottom: 24px;
    }

    .hv2-cat .hv2-section-title,
    .hv2-cat .hv2-section-subtitle {
        font-size: 0;
    }

    .hv2-cat .hv2-section-title::after {
        content: 'چه چیزی می‌خواهی پیدا کنی؟';
        color: var(--hv2-dark);
        font-size: 16px;
        font-weight: 800;
    }

    .hv2-cat .hv2-section-subtitle::after {
        content: 'یکی از مسیرهای زیر را انتخاب کن';
        color: var(--hv2-muted);
        font-size: 11px;
    }

    .hv2-brand-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hv2-brand-strip--duo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .hv2-brand-strip--duo .hv2-brand-pill {
        min-height: 72px;
        padding: 11px 10px;
        border-radius: 14px;
    }

    .hv2-brand-strip--duo .hv2-brand-pill__surface {
        gap: 9px;
    }

    .hv2-brand-pill__icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .hv2-brand-pill__label {
        font-size: 12px;
    }

    .hv2-brand-pill__label--desktop {
        display: none;
    }

    .hv2-brand-pill__label--mobile {
        display: inline;
    }

    .hv2-hero-card {
        grid-template-columns: 1fr;
    }

    .hv2-hero-card__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .hv2-card {
        flex-basis: min(286px, 84vw);
        border-radius: 14px;
    }

    .hv2-slider-wrap--class .hv2-slider-track > .hv2-card,
    .hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-slider-track > .hv2-card {
        flex-basis: min(300px, 88vw) !important;
        width: min(300px, 88vw);
        min-height: 112px;
        padding: 8px !important;
        gap: 10px;
    }

    .hv2-slider-wrap--class .hv2-card-media,
    .hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-media {
        flex-basis: 88px !important;
        width: 88px !important;
    }

    .hv2-slider-wrap--class .hv2-card-title,
    .hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-card-title {
        font-size: 13px;
    }

    .hv2-slider-nav {
        display: none;
    }

    .hv2-slider-track {
        gap: 10px;
        padding: 2px 1px 8px;
        scroll-padding-inline: 14px;
    }

    .hv2-slider-navbar {
        display: none;
    }

    .hv2-chip-slider-wrap {
        padding: 0;
    }

    .hv2-chip-slider-wrap .hv2-slider-nav {
        display: none;
    }

    .hv2-cta-box {
        grid-template-columns: 1fr;
    }

    .hv2-cta-box__actions {
        grid-template-columns: 1fr;
    }

    .hv2-cta-panel {
        padding: 18px 16px 20px;
        gap: 16px;
    }

    .hv2-cta-panel__intro {
        align-items: flex-start;
    }

    .hv2-cta-panel__cards {
        grid-template-columns: 1fr;
    }

    .hv2-action-card {
        padding: 12px 14px;
    }

    .hv2-discover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hv2-discover-card {
        border-radius: 14px;
    }

    .hv2-topic-chip {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 8px 13px;
        border-color: #e9debd;
        background: #fff;
        font-size: 11px;
    }

    /* کارت‌ها در موبایل کامل دیده شوند؛ بدون کارت نصفه در دو طرف */
    .hv2-slider-wrap:not(.hv2-chip-slider-wrap) .hv2-slider-track {
        width: 100%;
        padding-inline: 0;
        scroll-padding-inline: 0;
    }

    .hv2-slider-wrap:not(.hv2-chip-slider-wrap) .hv2-slider-track > .hv2-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        scroll-snap-align: center;
    }

    .hv2-slider-wrap--class .hv2-slider-track > .hv2-card,
    .hv2-slider-wrap[data-hv2-slider-variant="class"] .hv2-slider-track > .hv2-card {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    .hv2-mobile-search__form input,
    .hv2-mobile-search__form input[type="search"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
        background: transparent !important;
    }

    .hv2-mobile-search__form button,
    .hv2-mobile-search__form button[type="submit"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        border: 0 !important;
        color: #2d2407 !important;
        background: var(--hv2-yellow) !important;
        box-shadow: none !important;
    }

    #hv2MobileSearchForm > #hv2MobileSearchInput {
        width: auto !important;
        flex: 1 1 auto !important;
        height: 40px !important;
        padding: 0 14px !important;
        border: 0 !important;
        background: transparent !important;
        font-family: inherit !important;
        font-size: 12px !important;
    }

    #hv2MobileSearchForm > #hv2MobileSearchButton {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        color: #332800 !important;
        background-color: #fbc42f !important;
        background-image: none !important;
        font-family: inherit !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
    }

    #hv2MobileSearchForm > #hv2MobileSearchButton .fa-search {
        display: block !important;
        margin: 0 !important;
        color: #332800 !important;
        font-family: FontAwesome !important;
        font-size: 16px !important;
        font-weight: normal !important;
        line-height: 1 !important;
    }

    /* ارتفاع صفحه کنترل شود و مهم‌ترین گزینه‌های کشف در نگاه اول دیده شوند */
    .hv2-banner-item {
        aspect-ratio: auto;
        height: 112px;
        max-height: 112px;
    }

    .hv2-banner-item img {
        height: 100%;
        max-height: none;
        object-fit: cover;
    }

    .hv2-guide-banner {
        aspect-ratio: 2 / 1;
    }

    .hv2-guide-banner img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
    }

    .hv2-section--class-slider .hv2-slider-wrap::after,
    .hv2-section--school-slider .hv2-slider-wrap::after {
        display: block;
        margin-top: 7px;
        color: #8a8068;
        content: 'برای دیدن موارد بیشتر، ورق بزنید  ↔';
        font-size: 9px;
        text-align: center;
    }

    .hv2-cta-panel {
        border-radius: 16px;
    }

    .hv2-cta-panel__text,
    .hv2-action-card__hint {
        font-size: 10px;
        line-height: 1.55;
    }

    .hv2-guide-banner-grid {
        grid-template-columns: 1fr;
    }

    .hv2-guide-grid {
        grid-template-columns: 1fr;
    }

    .hv2-guide-card {
        grid-template-columns: 1fr;
    }

    .hv2-guide-card__illus {
        display: none;
    }

    .hv2-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .hv2-cta__actions {
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .hv2-slider-wrap {
        padding: 0 24px;
    }
}
