﻿/* ===== ویدیوی صفحه اصلی ===== */
.ghv-overlay {
    pointer-events: none;
}

.ghv-video {
    display: block;
    object-fit: cover;
    height: 500px;
    margin-bottom: -43px;
}

@media (max-width: 991px) {
    .ghv-video {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .ghv-video {
        height: auto;
        aspect-ratio: 16 / 9; /* نسبت واقعی ویدیو */
        margin-bottom: -20px;
    }
}


/**قسمت links*/

.ghl {
    --ghl-accent: var(--primary-color, #d4a017);
}

.ghl-head {
    margin-bottom: 36px;
}

    .ghl-head h2 {
        margin-bottom: 10px;
        color: inherit; /* قبلاً color:black بود؛ اگر پس‌زمینه روشن است #111 بگذار */
    }

.ghl-line {
    display: block;
    width: 56px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 3px;
    background: var(--ghl-accent);
}

.ghl-sub {
    margin: 0;
    font-size: 14px;
    opacity: .7;
}

/* ===== کارت ===== */
.ghl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 28px 20px 22px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

    /* نوار رنگی بالای کارت که موقع hover باز می‌شود */
    .ghl-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--ghl-accent);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .35s ease;
    }

    .ghl-card:hover,
    .ghl-card:focus-visible {
        transform: translateY(-6px);
        border-color: var(--ghl-accent);
        background: rgba(255, 255, 255, .08);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
    }

        .ghl-card:hover::before,
        .ghl-card:focus-visible::before {
            transform: scaleX(1);
        }

/* ===== لوگو: همه هم‌اندازه و هم‌تراز ===== */
.ghl-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 18px;
    background: #12132C;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

    .ghl-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.ghl-title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: inherit;
}

.ghl-desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.8;
    opacity: .7;
    min-height: 46px; /* برای هم‌ارتفاع شدن کارت‌ها */
}

/* ===== دکمه ورود ===== */
.ghl-go {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--ghl-accent);
    color: var(--ghl-accent);
    transition: background .3s ease, color .3s ease;
}

    .ghl-go svg {
        transition: transform .3s ease;
    }

.ghl-card:hover .ghl-go {
    background: var(--ghl-accent);
    color: #111;
}

    .ghl-card:hover .ghl-go svg {
        transform: translateX(-4px);
    }

@media (max-width: 575px) {
    .ghl-card {
        padding: 22px 16px 18px;
    }

    .ghl-desc {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ghl-card, .ghl-go, .ghl-go svg {
        transition: none;
    }
}
