/* Hero Section Styles for Forex Page - Simple Centered Design */

.hero-section {
    position: relative;
    width: 100%;
    background: #020814;
    color: #f8fbff;
    display: grid;
    grid-template-columns: 1fr;
}

/* Background image container */
.hero-bg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 20, 0); /* transparent by default */
    z-index: 2;
    pointer-events: none;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-bg::after {
    display: none;
}


/* Small/medium device image cropping: show cropped hero (not full image) */
@media (max-width: 1024px) {
    /* .hero-bg {
        height: 80vh;
    } */

    .hero-bg img,
    .hero-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
}

@media (max-width: 480px) {
    /* .hero-bg {
        height: 70vh;
    } */

    .hero-bg img,
    .hero-bg video {
        object-position: center top;
    }
}


/* Two-Column Grid Container */
.hero-container {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    /* max-width: 1320px; */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}


/* Content container */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 580px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: #edf5ff;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #7be8ff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(123, 232, 255, 0.65);
}

.hero-content h1 {
    font-size: clamp(3.2rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    max-width: 680px;
}

.hero-content h1 span {
    background: linear-gradient(90deg, #c5a021, #e6c34c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: clamp(1rem, 1.05vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c5a021, #e6c34c);
    border-radius: 100px;
    color: #082046;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 40px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(197, 160, 33, 0.2);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(197, 160, 33, 0.4);
    color: #082046;
}

/* Image container (Right Side) */
.hero-image {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 50px rgba(197, 160, 33, 0.25));
    /* animation: premiumFloat 6s ease-in-out infinite; */
}

@keyframes premiumFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Floating Coins */
.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.coin {
    position: absolute;
    opacity: 0.4;
    animation: simpleFloat 10s ease-in-out infinite;
}

.coin-1 {
    top: 15%;
    left: 10%;
    color: #f7931a;
    font-size: 50px;
}

.coin-2 {
    top: 20%;
    right: 10%;
    color: #627eea;
    font-size: 60px;
}

.coin-3 {
    bottom: 20%;
    left: 15%;
    width: 40px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fadeIn 2s ease-in-out;
}

.scroll-indicator span {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 22px;
    height: 35px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s linear infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.7;
    }
}

@media (max-width: 1400px) {
    .hero-container {
        padding: 50px 32px;
    }

    .hero-content {
        max-width: 560px;
        padding-top: 80px;
    }
}

@media (max-width: 1200px) {
    /* enable semi-transparent overlay on background image */
    .hero-bg::before {
        background: rgba(2, 8, 20, 0.643);
    }

    /* ensure hero occupies a comfortable viewport height on small/medium devices */
    .hero-section {
        min-height: 80vh;
    }

    .hero-container {
        padding: 40px 28px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-description {
        max-width: 900px;
        margin: 0 auto 24px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        padding: 40px 24px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        max-width: 500px;
    }

    .hero-description {
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .hero-bg::before {
        background: rgba(2, 8, 20, 0.69);
    }
    .hero-container {
        padding: 30px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .glow-btn {
        width: 100%;
    }
}

.live-market-data {
    padding: 80px 0;
    background: #fcfcfc;
}

.live-market-data .title {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: var(--clr-navy);
    margin-bottom: 50px;
}

.live-market-data .title span {
    color: var(--clr-blue-light);
}

.widget-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .live-market-data {
        padding: 60px 0;
    }

    .live-market-data .title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .widget-wrapper {
        padding: 10px;
    }
}

/* ----- TABS SECTION ----- */
.tabs-box {
    max-width: 100%;
    margin: 40px auto 0 auto;
    padding: 0 24px;
    position: sticky;
    top: 120px; /* sits just below the fixed header */
    z-index: 100;
    background: #ffffff;
    /* border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(8, 32, 70, 0.06); */
}

.tabs-container {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.tabs-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.tabs-wrapper {
    display: inline-flex;
    gap: 30px;
    padding: 0 10px;
    white-space: nowrap;
}

.tab-item {
    display: inline-block;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tab-item.active {
    color: #082046;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #c5a021;
}

.tab-item:hover:not(.active) {
    color: #082046;
}

/* ----- "Why Trade CFDs on Forex?" section ----- */
.trade-mkt {
    padding: 140px 0;
    background: #f8fbff;
    color: #082046;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trade-mkt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(8, 32, 70, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.trade-mkt .title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    color: #082046;
    margin-bottom: 30px;
    letter-spacing: -2px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    z-index: 1;
}

.trade-mkt .title span {
    background: linear-gradient(135deg, #c5a021, #e6c34c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trade-mkt .text {
    font-size: 19px;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
}

.trade-mkt .text.tips {
    font-weight: 700;
    color: #082046;
    margin-bottom: 60px;
    font-size: 24px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.trade-mkt .text.tips span {
    color: #c5a021;
}

/* card grid */
.card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1240px;
    margin: 60px auto 0;
}

.card-list .item {
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid rgba(8, 32, 70, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    min-height: 480px;
    box-shadow: 0 15px 35px rgba(8, 32, 70, 0.05);
}

.card-list .item:hover {
    transform: translateY(-15px);
    border-color: rgba(197, 160, 33, 0.3);
    box-shadow: 0 40px 80px rgba(8, 32, 70, 0.1), 0 0 20px rgba(197, 160, 33, 0.1);
}

.card-list .item .bg {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    z-index: 1;
}

.card-list .item .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
    opacity: 0.95;
}

.card-list .item:hover .bg img {
    transform: scale(1.08);
    opacity: 1;
}

.card-list .item .bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #ffffff, transparent);
    z-index: 2;
}

.card-list .item .layer {
    position: relative;
    width: 100%;
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    z-index: 3;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
}

/* Premium Shine Effect */
.card-list .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-25deg);
    transition: 0.8s;
    z-index: 5;
    pointer-events: none;
}

.card-list .item:hover::before {
    left: 150%;
}

.card-list .item .layer h3.text {
    font-size: 19px;
    line-height: 1.6;
    font-weight: 500;
    color: #4a5568;
    margin: 0;
    transform: none !important;
}

.card-list .item .layer h3.text span {
    display: block;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #c5a021, #e6c34c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Consolidated Responsive Overrides for Trade Market Section */
@media (max-width: 1024px) {
    .trade-mkt {
        padding: 80px 24px;
    }

    .trade-mkt .title {
        font-size: 42px;
    }

    .card-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-list .item {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .trade-mkt {
        padding: 60px 20px;
    }

    .trade-mkt .title {
        font-size: 34px;
        letter-spacing: -1px;
        margin-bottom: 25px;
    }

    .trade-mkt .text {
        font-size: 17px;
        margin-bottom: 30px;
        line-height: 1.6;
    }

    .trade-mkt .text.tips {
        font-size: 20px;
        margin-bottom: 40px;
    }

    .card-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-list .item {
        height: 340px;
    }

    .card-list .item .layer {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .trade-mkt {
        padding: 50px 16px;
    }

    .trade-mkt .title {
        font-size: 28px;
        line-height: 1.2;
    }

    .trade-mkt .text {
        font-size: 15px;
    }

    .trade-mkt .text.tips {
        font-size: 18px;
    }

    .card-list .item .layer h3.text span {
        font-size: 24px;
    }

    .card-list .item .layer h3.text {
        font-size: 19px;
    }
}

/* ----- "How Forex Trading Works" section - Unique Atmospheric Design ----- */
.forex-pople {
    position: relative;
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    background: #040d1a;
    /* Deeper midnight blue */
    display: flex;
    align-items: center;
}

/* Atmospheric Glow Elements */
.forex-pople::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 33, 0.12) 0%, transparent 70%);
    z-index: 1;
    filter: blur(80px);
    pointer-events: none;
}

.forex-pople::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 78, 138, 0.2) 0%, transparent 70%);
    z-index: 1;
    filter: blur(80px);
    pointer-events: none;
}

.forex-pople .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.25;
    filter: saturate(0.5) brightness(0.7);
    pointer-events: none;
}

.forex-pople .info {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 80px auto;
    padding: 80px 60px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border-left: 5px solid #c5a021;
    text-align: left;
    transition: all 0.3s ease;
}

/* Unique Grid Texture Overlay */
.forex-pople .info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

.forex-pople .info .title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
    color: #fff;
    margin-bottom: 40px;
    max-width: 1100px;
    margin-left: 0;
    margin-right: auto;
    letter-spacing: -1.5px;
}

.forex-pople .info .title span {
    display: block;
    font-size: 64px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #c5a021, #f1d279);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 10px;
}

.forex-pople .info .text {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    font-weight: 400;
    position: relative;
}

/* Subtle decoration for the first text block */
.forex-pople .info .text:first-of-type::before {
    content: 'TECHNICAL INSIGHT';
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 11px;
    font-weight: 800;
    color: #c5a021;
    letter-spacing: 3px;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .forex-pople {
        min-height: auto;
    }

    .forex-pople .info {
        margin: 60px 20px;
        padding: 60px 40px;
        max-width: calc(100% - 40px);
    }

    .forex-pople .info .title {
        font-size: 42px;
    }

    .forex-pople .info .title span {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .forex-pople .info {
        padding: 50px 20px;
        border-left: none;
        border-top: 3px solid #c5a021;
        padding-left: 24px;
        text-align: center;
    }

    .forex-pople .info .title {
        font-size: 34px;
        text-align: center;
        margin: 0 auto 30px auto;
    }

    .forex-pople .info .title span {
        font-size: 40px;
        margin-top: 5px;
    }

    .forex-pople .info .text {
        font-size: 16px;
        text-align: center;
        margin: 0 auto 24px auto;
    }

    .forex-pople .info .text:first-of-type::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .forex-pople .info .title {
        font-size: 28px;
    }

    .forex-pople .info .title span {
        font-size: 32px;
    }

    .forex-pople .info::before {
        background-size: 20px 20px;
    }
}

/* ----- Trade Card Section (Flip Cards) ----- */
.trade-card {
    max-width: 1260px;
    margin: 0 auto;
    padding: 100px 24px;
}

.trade-card .title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    color: #082046;
    margin-bottom: 60px;
}

.trade-card .title span {
    color: #c5a021;
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.flip-card {
    background-color: transparent;
    height: 320px;
    /* Increased height for bigger images */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.flip-front {
    background: #fff;
    border: 1px solid rgba(8, 32, 70, 0.05);
    border-bottom: 4px solid var(--card-color, #c5a021);
}

.flip-back {
    background: var(--card-gradient, linear-gradient(135deg, #082046, #060b1a));
    color: #fff;
    transform: rotateY(180deg);
}

.flip-front .icon {
    width: 160px;
    height: 160px;
    /* background: var(--icon-bg, rgba(197, 160, 33, 0.1)); */
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    overflow: hidden;
    padding: 10px;
    /* Reduced padding to make image look bigger */
}

/* Color Coding for Cards */
.flip-card:nth-child(1) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(2) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(3) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(4) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(5) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(6) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(7) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-card:nth-child(8) {
    --card-color: #3b82f6;
    /* --icon-bg: rgba(59, 130, 246, 0.1); */
    --card-gradient: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.flip-front .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flip-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--icon-bg);
}

.flip-front .name {
    font-size: 20px;
    font-weight: 700;
    color: #082046;
}

.flip-back .description {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
}

/* FAQ SECTION */
.faq-section {
    padding: 100px 0;
    background: #f8fbff;
}

.faq-section .title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    color: #082046;
    margin-bottom: 60px;
}

.faq-section .title span {
    color: #c5a021;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(8, 32, 70, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(197, 160, 33, 0.3);
    box-shadow: 0 10px 30px rgba(8, 32, 70, 0.05);
}

.faq-header {
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-title {
    font-size: 18px;
    font-weight: 700;
    color: #082046;
}

.faq-header i {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
    color: #c5a021;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #fcfcfc;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding: 0 30px 30px;
}

.faq-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

@media (max-width: 768px) {

    .trade-card .title,
    .faq-section .title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .flip-card {
        height: 280px;
    }
}

/* Responsive Overrides for Flip Grid */
@media (max-width: 1200px) {
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .flip-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 260px;
    }

    .flip-front .icon {
        width: 100px;
        height: 100px;
    }
}

/* ----- TABS SECTION — Mobile Responsive ----- */

/* Wrap the container in a fade-right gradient to hint at scrollability */
@media (max-width: 768px) {
    .tabs-box {
        padding: 0;
        margin: 0;
        top: 80px; /* matches header height at tablet */
    }

    /* Fade-out gradient on the LEFT edge */
    .tabs-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 32px;
        height: 100%;
        background: linear-gradient(to left, transparent, #ffffff);
        pointer-events: none;
        z-index: 1;
    }

    /* Fade-out gradient on the RIGHT edge */
    .tabs-box::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 32px;
        height: 100%;
        background: linear-gradient(to right, transparent, #ffffff);
        pointer-events: none;
        z-index: 1;
    }

    .tabs-container {
        justify-content: flex-start;
        padding: 0;
        /* smooth momentum scroll on iOS */
        -webkit-overflow-scrolling: touch;
    }

    .tabs-wrapper {
        gap: 0;
        padding: 0 24px;
    }

    .tab-item {
        font-size: 13px;
        padding: 10px 14px;
        letter-spacing: 0.3px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .tabs-box {
        top: 70px; /* matches header height on small phones */
    }

    .tabs-container {
        padding: 0 12px;
    }

    .tab-item {
        font-size: 12px;
        padding: 10px 12px;
        letter-spacing: 0.2px;
    }
}
