﻿h1.gldH1 span, .why-gold h2 {
    font-size: clamp(28px,2.67vw,44px);
    font-weight: 600;
    text-align: center;
    background:linear-gradient(90deg,#9e6602,#311f02);
    background-size: 200% !important;
    animation:text-colors 5s infinite linear;
    margin-bottom:0px;
}

.why-gold h2 {
    text-align:left;
}

h1.gldH1 {
    /*margin: 0px 0px 40px;*/
    font-size: clamp(16px,1.33vw,24px);
    color: #545454;
    line-height: unset;
}

.div-main-img img {
    position: relative;
    width: 80%;
    left: -7%;
    transform: translateY(-10%);
    z-index: 0;
}

.div-main-img .main-content {
    position: absolute;
    width: 28%;
    left: 67%;
    margin-top: 1rem;
    z-index: 1;
}

.mainp, .acc-comp p {
    font-size: clamp(14px,1.26vw,21px);
    line-height: 1.25em;
}

.why-trade-gold h2, .why-trade-gold h3 {
    color: var(--white);
    font-size: clamp(24px,1.96vw,36px);
    font-weight:500;
    line-height:1.1em;
    margin-bottom:0px;
}

.why-trade-gold p, .gold-benefits p {
    color: var(--white);
    font-size: clamp(12px,1vw,16px);
    font-weight: 400;
    line-height: 1.1em;
    margin-bottom: 0px;
}

.why-trade-gold-boxes {
    display: flex;
    gap: 1rem;
    row-gap: 2rem;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content:center;
}

.why-trade-gold-box {
    width: calc(33.33333% - 0.7rem);
    background: var(--black);
    color: var(--white);
    padding: 30px;
    border:solid 1px #737373;
    border-radius:10px;
    overflow:hidden;
}

.why-trade-gold-box:first-child {
    background-color:#fedead;
}

.why-trade-gold-box:first-child h3, .why-trade-gold-box:first-child p {
    color: var(--black);
}

.why-trade-gold-box-fut {
    position:absolute;
    left:30px;
    bottom:15%;
    width:calc(90% - 60px);
    z-index:2;
}

.gold-video h2 {
    font-size: clamp(28px,2.67vw,44px);
    font-weight: 600;
    text-align: center;
    margin-bottom: 0px;
}

.gold-benefits h2 {
    background: linear-gradient(90deg,#050505,#9c6405);
    background-size: 200% !important;
    font-weight: 600;
    animation: text-colors 5s infinite linear;
    font-size: clamp(24px,1.96vw,36px);
}

.gold-benefits p {
    color:var(--black);
}

.prd-acc-comp .row {
    row-gap: 75px;
}

.prd-acc-comp h3 {
    font-weight: 600;
    font-size: clamp(21px,1.70vw,30px);
}

.acc-comp div {
    border-bottom: solid 3px var(--black);
}

.know-gold h2 {
    color: var(--white);
    font-size: clamp(24px,1.96vw,36px);
    font-weight:500;
    line-height:1.1em;
    text-align:center;
    margin:0px auto;
    background:linear-gradient(90deg,#fffaa7,#ecca80,#fffbf2);
    background-size: 200% !important;
    animation:text-colors 5s infinite linear;
    max-width:45%;
}

.why-skyriss .container {
    position:absolute;
    top:0px;
    left:5%;
}

.why-skyriss h2 {
    color: var(--white);
    font-size: clamp(21px,1.70vw,30px);
    font-weight: 600;
    line-height: 1.1em;
    margin-bottom: 0px;
}

/* Card scroller: 1 card (sm) / 2 cards (md) / 3 cards (lg) with faded 40% edge peeks */
.gld-scroller {
    --gld-gap: 1rem;
    --gld-visible: 1;
    --gld-faded: 0.2;
    /* N cards + two 40% peeks fill the row: card = (width - gaps) / (N + 0.8) */
    --gld-card-w: calc((100cqw - (var(--gld-visible) - 1) * var(--gld-gap)) / (var(--gld-visible) + (var(--gld-faded) * 2)));
    container-type: inline-size;
    overflow: hidden;
}

.gld-scroller-track {
    display: flex;
    gap: var(--gld-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    /* inset equals exactly 40% of a card, so only 40% of prev/next shows */
    padding: 10px calc(var(--gld-faded) * var(--gld-card-w));
    /* fade the peeking card edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 calc(var(--gld-faded) * var(--gld-card-w)), #000 calc(100% - var(--gld-faded) * var(--gld-card-w)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 calc(var(--gld-faded) * var(--gld-card-w)), #000 calc(100% - var(--gld-faded) * var(--gld-card-w)), transparent);
}

.gld-scroller-track::-webkit-scrollbar {
    display: none;
}

.gld-card {
    box-sizing: border-box;
    flex: 0 0 var(--gld-card-w);
    scroll-snap-align: center;
    background: linear-gradient(180deg,#555555,#000000,#000000,#000000,#000000);
    border: solid 1px #737373;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
}

.gld-card h3 {
    color: var(--white);
    font-size: clamp(14px,1.26vw,21px);
    font-weight: 500;
    line-height: 1.1em;
    margin-bottom: 0;
}

.gld-card ul {
    margin-top:15px;
    padding-left:1rem;
}

.gld-card li:not(:last-of-type) {
    margin-bottom:10px;
}

.gld-card p, .gld-card li {
    color: var(--white);
    font-size: clamp(12px,1vw,16px);
    line-height: 1.25em;
}

.gld-card p:first-of-type {
    margin-top: 60px;
}

.gld-card p:last-of-type {
    margin-bottom: 0px;
}

/* Scroller buttons: #d9d9d9 circle, thick black line-arrow, halfway down, 10% from edge */
.gld-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: opacity 0.2s ease;
}

.gld-scroll-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--black);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gld-scroll-btn:hover {
    opacity: 0.85;
}

.gld-scroll-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.gld-scroll-prev {
    left: 5%;
}

.gld-scroll-next {
    right: 5%;
}

/* Medium: 2 cards */
@media (min-width:576px) {
    .gld-scroller {
        --gld-visible: 2;
        --gld-faded: 0.3;
    }
}

/* Large: 3 cards */
@media (min-width:992px) {
    .gld-scroller {
        --gld-visible: 3;
        --gld-faded: 0.4;
    }
}

@media (max-width:991.98px) {
    .why-trade-gold-box {
        width: calc(50% - 0.5rem);
    }

    .prd-acc-comp .row {
        row-gap: 50px;
    }

    .know-gold h2 {
        max-width:90%;
    }

    .div-main-img {
        display:flex;
        flex-direction:column;
    }

    .div-main-img .main-content {
        position: unset;
        width: 100%;
        left: unset;
        margin-top: 1.5rem;
        padding:0px 5%;
        z-index: 1;
        text-align:center;
        order:0;
    }

    .div-main-img img {
        order:1;
        width:95%;
        transform: translateY(-5%);
    }
}

@media (max-width:575.98px) {
    .why-trade-gold-box {
        width: 100%;
    }

    .why-trade-gold-box-fut {
        bottom: 5%;
    }

    .prd-acc-comp .acc-comp > .d-flex {
        padding-bottom: 10px;
    }

    .why-skyriss {
        display:flex;
        flex-direction:column;
    }

    .why-skyriss .container {
        position: unset;
        top: unset;
        left: 5%;
        order:0;
        padding-bottom:0px;
    }

    .why-skyriss img {
        order:1;
    }
}