@import 'variables.css';

/* =========================================
   Hero Design
   ========================================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 14rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(6, 40, 50, 0.8) 0%, rgba(6, 40, 50, 0) 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 26, 36, 0.5);
    backdrop-filter: blur(0.7px);
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: center;
    max-width: 70.625rem;
    margin: 0 auto;
    z-index: 2;
    padding: 0 var(--spacing-md);
}

.hero-text h1 {
    font-size: 5.125rem;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-main);
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    margin-top: 2.5rem;
}

.dragon-left,
.dragon-right {
    position: absolute;
}

.dragon-left {
    left: -10%;
    top: 40%;
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 1200px) {

    .dragon-left,
    .dragon-right {
        width: 12.5rem;
        /* Resize dragons on smaller desktops */
    }
}

@media (max-width: 900px) {
    .hero-text h1 {
        font-size: 3.5rem;
        /* Smaller heading on tablet */
    }

    .hero-text p {
        font-size: 1.1rem;
    }



    .dragon-left,
    .dragon-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.5rem;
        /* Mobile heading */
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }
}

.dragon-right {
    right: -10%;
    bottom: 0%;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1.25rem);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================
   Empire Section
   ========================================= */

.empire-section {
    position: relative;
    padding: 6.25rem 0 10rem;
    background: transparent;
    overflow: hidden;
}

.torch {
    position: absolute;
    top: 0;
    width: 12.5rem;
    /* 200px */
    z-index: 1;
}

.torch-left {
    top: 5rem;
    left: -4rem;
}

.torch-right {
    top: 5rem;
    right: -4rem;
    transform: scaleX(-1);
}

.empire-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.empire-header {
    margin-bottom: 3.75rem;
}

.empire-header h2 {
    font-family: var(--font-oswald);
    font-size: 3rem;
    font-weight: bold;
    text-transform: capitalize;
    color: #fff;
    margin-bottom: 1.875rem;
    line-height: 1.2;
}

.empire-card-wrapper {
    position: relative;
    max-width: 82.5rem;
    margin: 0 auto;
    padding: 0.625rem;
}

.empire-card-wrapper::before {
    content: '';
    position: absolute;
    background-image: url(../img/gold_gror.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    top: -24rem;
    left: -24rem;
    width: 60rem;
    height: 60rem;
    z-index: -1;
}

.empire-card-wrapper::after {
    content: '';
    position: absolute;
    background-image: url(../img/gold_gror.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    bottom: -13rem;
    right: -19rem;
    width: 46rem;
    height: 46rem;
    z-index: -1;
}

.deco-corner {
    position: absolute;
    height: auto;
    z-index: 3;
}

.deco-top-left {
    top: -0.9375rem;
    left: 1rem;
}

.deco-bottom-right {
    bottom: -0.9375rem;
    /* -15px */
    right: 1rem;
}

.empire-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 8.125rem 6.3125rem;
    /* 130px 117px */
    min-height: 37.5rem;
    /* 600px */
    clip-path: polygon(5rem 0,
            /* 80px */
            calc(100% - 5rem) 0,
            100% 2.5rem,
            /* 40px */
            100% calc(100% - 2.5rem),
            calc(100% - 5rem) 100%,
            5rem 100%,
            0 calc(100% - 2.5rem),
            0 2.5rem);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.empire-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-gold-gradient);
    z-index: -2;
}

.empire-card::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: linear-gradient(180deg, #2E1E00 0%, #634100 100%);
    z-index: -1;
    clip-path: polygon(5rem 0,
            calc(100% - 5rem) 0,
            100% 2.5rem,
            100% calc(100% - 2.5rem),
            calc(100% - 5rem) 100%,
            5rem 100%,
            0 calc(100% - 2.5rem),
            0 2.5rem);
}

.empire-card-left,
.empire-card-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.empire-card-left img {
    height: auto;
}

.empire-card-right {
    flex-direction: column;
}

.empire-card-right h3 {
    font-family: var(--font-redhat);
    font-size: 2rem;
    color: #fff;
    text-transform: capitalize;
    line-height: 1.5;
}

.text-gold {
    color: var(--primary-gold) !important;
}

.empire-card-center {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.play-button img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-button img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
    .empire-card {
        flex-direction: column;
        padding: 2.5rem 1.25rem;
        gap: 1.875rem;
        text-align: center;
        clip-path: polygon(3.75rem 0,
                calc(100% - 3.75rem) 0,
                100% 1.875rem,
                100% calc(100% - 1.875rem),
                calc(100% - 3.75rem) 100%,
                3.75rem 100%,
                0 calc(100% - 1.875rem),
                0 1.875rem);
    }

    .empire-card::after {
        clip-path: polygon(3.75rem 0,
                calc(100% - 3.75rem) 0,
                100% 1.875rem,
                100% calc(100% - 1.875rem),
                calc(100% - 3.75rem) 100%,
                3.75rem 100%,
                0 calc(100% - 1.875rem),
                0 1.875rem);
    }

    .empire-card-left {
        width: 10rem;
        /* 200px */
    }

    .play-button {
        width: 85px;
    }


    .empire-card-right h3 {
        font-size: 1.5rem;
    }

    .empire-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .empire-card {
        clip-path: polygon(2.5rem 0,
                calc(100% - 2.5rem) 0,
                100% 1.25rem,
                100% calc(100% - 1.25rem),
                calc(100% - 2.5rem) 100%,
                2.5rem 100%,
                0 calc(100% - 1.25rem),
                0 1.25rem);
    }

    .empire-card::after {
        clip-path: polygon(2.5rem 0,
                calc(100% - 2.5rem) 0,
                100% 1.25rem,
                100% calc(100% - 1.25rem),
                calc(100% - 2.5rem) 100%,
                2.5rem 100%,
                0 calc(100% - 1.25rem),
                0 1.25rem);
    }

    .empire-card-left {
        width: 12.5rem;
        /* 200px */
    }

    .deco-top-left {
        width: 15rem;
        /* 300px */
        top: -0.5rem;
        left: -0.625rem;
    }

    .deco-bottom-right {
        width: 15rem;
        /* 300px */
        bottom: -0.5rem;
        right: -0.625rem;
    }

    .torch {
        display: none;
    }
}

/* =========================================
   Evaluation Process Design
   ========================================= */

.evaluation-section {
    margin: 6.25rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    /* 48px */
    color: #fff;
    margin-bottom: 3.75rem;
    /* 60px */
    font-family: var(--font-oswald);
    text-transform: capitalize;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.875rem;
    margin: 0 auto;
}

.evaluation-card {
    background: url(../img/evaluation_process_fram.png) no-repeat center center;
    background-size: 100% 100%;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    position: relative;
    color: #fff;
    cursor: pointer;
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.25rem;
    /* 20px */
}

.card-number-wrapper {
    position: relative;
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.625rem;
    /* 10px */
}

.number-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.card-number {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-oswald);
    color: #ffffff;
}

.card-phase {
    font-size: 1.125rem;
    text-transform: capitalize;
    color: #fff;
    font-family: var(--font-oswald);
    letter-spacing: 1px;
    margin-bottom: 0.3125rem;
    /* 5px */
    font-weight: 300;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-gold);
    font-family: var(--font-oswald);
}

.card-body {
    padding: 0 2rem;
}

.card-body p {
    font-size: 1rem;
    /* 16px */
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-weight: 300;
    font-family: var(--font-redhat);
}

.card-vector {
    width: 100%;
    height: auto;
}

.card-vector-2 {
    transform: scaleY(-1);
}

.evaluation-image {
    position: relative;
    width: 100%;
}

.evaluation-img {
    width: 100%;
}

.evaluation-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.evalution-dragon {
    position: absolute;
    top: 15%;
    right: 20%;
    z-index: 0;
    animation: float 5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .evaluation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .evaluation-grid {
        grid-template-columns: 1fr;
        max-width: 31.25rem;
    }

    .evaluation-card {
        padding: 1rem;
    }

    .evalution-dragon {
        width: 25%;
        height: auto;
        object-fit: cover;
    }
}

/* =========================================
   Join Kingdom Section
   ========================================= */

.kingdom-section {
    margin: 6.25rem 0;
    position: relative;
}

.kingdom-card {
    position: relative;
    background: url(../img/join_our_kingdom_bg.png);
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 44.0625rem;
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-gold);
}


.kingdom-content {
    max-width: 50rem;
    margin: 0 auto;
}

.kingdom-content h2 {
    font-family: var(--font-oswald);
    font-size: 3rem;
    /* 48px */
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.kingdom-content p {
    font-family: var(--font-redhat);
    font-size: 1.25rem;
    /* 20px */
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.kingdom-btns {
    display: flex;
    gap: 5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Kingdom */
@media (max-width: 900px) {
    .kingdom-content h2 {
        font-size: 1.5rem;
        /* 24px */
    }

    .kingdom-card {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .kingdom-content h2 {
        font-size: 1.25rem;
        /* 20px */
    }

    .kingdom-btns {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
}

/* =========================================
   Become TFT Trader Section
   ========================================= */

.become-trader-section {
    position: relative;
    padding: 6.25rem 0;
    overflow-x: hidden;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 3.75rem;
}

.trader-config-container {
    position: relative;
    background: rgb(21 39 53 / 50%);
    background: rgb(21 39 53 / 50%);
    box-shadow: 0 0 0.25rem 0.0625rem rgba(255, 217, 158, 0.5);
    border-radius: 1.25rem;
    padding: 3.125rem 5.625rem;
    backdrop-filter: blur(0.625rem);
}

.trader-config-container::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: -5rem;
    width: 12.5rem;
    height: 12.5rem;
    background: url(../img/become_tread_1.png) no-repeat center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.trader-config-container::after {
    content: '';
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 12.5rem;
    height: 12.5rem;
    background: url(../img/become_tread_2.png) no-repeat center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 3.5rem;
    width: calc(100% - 5rem);
    height: 0.5rem;
    background: linear-gradient(90deg, rgba(255, 217, 158, 1) 0%, rgba(14, 26, 36, 0.5) 100%);
    transform: translateY(-50%);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* .step.active .step-icon img {
    box-shadow: 0 0 50px 0 rgba(223, 191, 141, 0.2);
} */

.step-icon {
    position: relative;
    width: 5rem;
    height: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-oswald);
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--primary-gold);
}

.step-icon img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.step-icon span {
    position: relative;
    z-index: 1;
}

.step-label {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #fff;
    font-family: var(--font-oswald);
    text-transform: uppercase;
    font-weight: 500;
}

/* Configuration Grid */
.config-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.config-grid {
    display: flex;
    gap: 10rem;
    justify-content: space-between;
}

.config-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wide-col {
    flex: 3;
}

.mt-large {
    margin-top: 3rem;
}

/* Config Groups */
.config-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-label-group {
    text-align: center;
}

.group-title {
    display: block;
    font-family: var(--font-oswald);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.group-subtitle {
    font-family: var(--font-noto);
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-config {
    position: relative;
    background: var(--btn-gold-gradient);
    color: var(--primary-gold);
    border: none;
    border-radius: 50px;
    font-family: var(--font-oswald);
    font-size: 1rem;
    text-transform: capitalize;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    width: 100%;
    height: 40px;
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

.btn-config:hover,
.btn-config.active {
    box-shadow: 0 0 0.9375rem 0 rgba(255, 215, 0, 0.2);
    border-width: 2px;
    color: #fff;
}

.btn-config::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 50px;
    z-index: -1;
    pointer-events: none;
}


/* Platform Cards */
.platform-cards {
    display: flex;
    gap: 4.375rem;
    justify-content: space-between;
}

.platform-card {
    position: relative;
    background: linear-gradient(180deg, #2E1E00 0%, #634100 100%);
    border: 1px solid var(--primary-gold);
    border-radius: 0.625rem;
    width: 100%;
    height: 9.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    padding: 0.625rem;
    text-align: center;

}

.platform-card:hover,
.platform-card.active {
    box-shadow: 0 0 1.25rem 0 rgba(255, 215, 0, 0.2);
}


.platform-card::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/become_tread_vector_1.png) no-repeat top center;
    background-size: 100% auto;
    pointer-events: none;
}

.platform-card::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/become_tread_vector_3.png) no-repeat bottom center;
    background-size: 100% auto;
    pointer-events: none;
}

.plat-title {
    font-family: var(--font-oswald);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.plat-desc {
    font-family: var(--font-noto);
    font-size: 0.875rem;
    font-weight: 400;
    color: #fff;
    position: absolute;
    bottom: 0.75rem;
}

/* Account Summary Card */
.summary-col {
    position: relative;
    z-index: 1;
}

.summary-col::before {
    content: '';
    position: absolute;
    top: -0.5625rem;
    left: 1.5625rem;
    width: 9.375rem;
    height: 0.625rem;
    background: url(../img/become_tread_vector_4.png) no-repeat center center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 5;
}

.summary-card {
    position: relative;
    background: var(--btn-gold-gradient);
    border: none;
    border-radius: 0;
    padding: 2rem;
    color: #fff;
    z-index: 1;
    clip-path: polygon(3.75rem 0, calc(100% - 3.75rem) 0, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 3.75rem) 100%, 3.75rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
}

.summary-card::before {
    content: '';
    position: absolute;
    inset: 5px;
    background: linear-gradient(180deg, #2E1E00 0%, #634100 100%);
    border-radius: 0;
    z-index: -1;
    clip-path: polygon(3.75rem 0, calc(100% - 3.75rem) 0, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 3.75rem) 100%, 3.75rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
}

.summary-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.summary-left {
    flex: 1;
}

.summary-title {
    font-family: var(--font-oswald);
    font-size: 18px;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-noto);

}

.summary-row {
    display: flex;
    justify-content: space-between;
}

.summary-row span:first-child {
    color: #fff;
}

.text-gold {
    color: var(--primary-gold);
}

.summary-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.more-details {
    color: var(--primary-gold);
    text-decoration: underline;
    font-size: 1rem;
    font-family: var(--font-noto);
    font-weight: 500;
}

.price-box {
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.price-label {
    display: block;
    font-size: 1rem;
    color: #fff;
    font-family: var(--font-noto);
    margin-bottom: 5px;
}

.price-value {
    display: block;
    font-size: 1.125rem;
    color: #fff;
    font-family: var(--font-noto);
    font-weight: 700;
}

.summary-action {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {
    .config-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 4rem;
    }

    .config-col {
        width: 100%;
        align-items: stretch;
    }

    .config-group {
        align-items: center;
    }

    .btn-group-vertical {
        width: 100%;
        max-width: 31.25rem;
        margin: 0 auto;
    }

    .platform-cards {
        justify-content: center;
        gap: 1.5rem;
    }

    .platform-card {
        flex: 1;
        min-width: 12.5rem;
    }

    .summary-card {
        max-width: 37.5rem;
    }
}

@media (max-width: 768px) {
    .trader-config-container {
        padding: 3rem 0.5rem 4rem;
    }

    /* Steps */
    .progress-steps {
        margin-bottom: 4rem;
        gap: 0.5rem;
    }

    .progress-steps::before {
        top: 1.75rem;
        left: 1.75rem;
        width: calc(100% - 3.5rem);
    }

    .step-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
        text-align: center;
        max-width: 80px;
        line-height: 1.2;
    }

    /* Platform Cards Stack */
    .platform-cards {
        flex-direction: column;
        align-items: center;
    }

    .platform-card {
        width: 100%;
        max-width: 25rem;
        min-width: 12.5rem;
        min-height: 9.375rem;
        height: 100%;
    }

    /* Summary Card */
    .summary-content {
        flex-direction: column;
        gap: 2rem;
    }

    .summary-right {
        width: 100%;
        gap: 1.5rem;
    }

    .summary-card {
        clip-path: polygon(1.875rem 0, calc(100% - 1.875rem) 0, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 1.875rem) 100%, 1.875rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
        padding: 2rem 1.5rem;
    }

    .summary-card::before {
        clip-path: polygon(1.875rem 0, calc(100% - 1.875rem) 0, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 1.875rem) 100%, 1.875rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
    }

    .trader-config-container::before,
    .trader-config-container::after {
        width: 9rem;
    }

    .trader-config-container::before {
        left: -4rem;
    }

    .trader-config-container::after {
        right: -4rem;
    }
}

/* =========================================
   Top Rankers Section
   ========================================= */

.text-center {
    text-align: center;
}

.text-red {
    color: var(--accent-red) !important;
}

.text-green {
    color: var(--accent-green) !important;
}

.top-rankers-section {
    padding: 6.25rem 0;
    position: relative;
}

.rankers-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.rankers-image {
    position: relative;
    width: 100%;
    margin-bottom: -13rem;
    pointer-events: none;
    z-index: 0;
}

.rankers-image img {
    width: 100%;
    height: auto;
}

.rankers-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 79.375rem;
    padding: 3rem 4rem;
}

.rankers-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-gold-gradient);
    z-index: -2;
    clip-path: polygon(3.75rem 0, calc(100% - 3.75rem) 0, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 3.75rem) 100%, 3.75rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
}

.rankers-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: linear-gradient(180deg, #0E1A24 0%, #062832 100%);
    border-radius: 0;
    z-index: -1;
    clip-path: polygon(3.75rem 0, calc(100% - 3.75rem) 0, 100% 1.25rem, 100% calc(100% - 1.25rem), calc(100% - 3.75rem) 100%, 3.75rem 100%, 0 calc(100% - 1.25rem), 0 1.25rem);
}



/* Corners */
.ranker-corner {
    position: absolute;
    height: auto;
    z-index: 2;
    width: 14.375rem;
}

.ranker-top-left {
    top: 0px;
    left: 0px;
}

.ranker-bottom-right {
    bottom: 0px;
    right: 0px;
}

/* Header */
.rankers-card .section-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

/* Grid */
.rankers-grid-header,
.rankers-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.rank-info-group {
    display: flex;
    align-items: center;
    gap: 7rem;
    max-width: 400px;
    width: 100%;
    flex: 1;
}

.rank-info-group .rank-col:first-child {
    width: 4.0625rem;
    flex-shrink: 0;
}

.rank-group-header .rank-col {
    font-family: var(--font-oswald);
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
}

.rank-info-group-row .rank-col {
    font-family: var(--font-noto);
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
}

.rank-stats-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 20rem;
    width: 100%;
    flex-shrink: 0;
}

.rankers-grid-header {
    font-family: var(--font-oswald);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.rankers-grid-header .rank-col {
    color: #fff;
}

.rank-col {
    color: #fff;
    text-align: left;
}

.rankers-list-container {
    position: relative;
    padding: 1rem 0;
    min-height: 300px;
}

.rankers-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    z-index: 0;
    width: 21.875rem;
}

.rankers-watermark img {
    margin: 0 auto;
}


.rankers-row:last-child {
    border-bottom: none;
}

.rankers-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rankers-action {
    text-align: center;
    margin: 2rem 0 3rem;
}

/* Responsive */
@media (max-width: 900px) {
    .rankers-card {
        padding: 2.5rem 1.5rem;
    }

    .rankers-grid-header,
    .rankers-row {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .rank-info-group {
        gap: 1rem;
    }

    .rank-stats-group {
        width: 15.625rem;
    }

    .rank-col {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rankers-image {
        margin-bottom: -5rem;
    }

    .ranker-corner {
        width: 9rem;
    }
}

@media (max-width: 600px) {

    .rankers-grid-header,
    .rankers-row {
        font-size: 0.8rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .rank-info-group,
    .rank-stats-group {
        width: 100%;
        justify-content: space-between;
    }
}


/* Cta Section */
.cta-section {
    margin: 6.25rem 0;
    position: relative;
    background: url(../img/cta_bg.png);
    background-size: cover;
    background-position: center;
}

.cta-card {
    position: relative;
    width: 100%;
    min-height: 44.0625rem;
    padding: 2rem;
    border-radius: 1.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta-content {
    max-width: 52.8125rem;
    margin: 0;
}

.cta-content h2 {
    font-family: var(--font-oswald);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-content p {
    font-family: var(--font-redhat);
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-btns {
    display: flex;
    gap: 3rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Responsive CTA */
@media (max-width: 900px) {
    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-card {
        padding: 4rem 1.5rem;
        text-align: center;
        align-items: center;
        height: auto;
    }

    .cta-content {
        margin: 0 auto;
    }

    .cta-btns {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* =========================================
   FAQ Section
   ========================================= */

.faq-section {
    margin: 6.25rem 0 8.25rem;
    position: relative;
    color: #fff;
}

.faq-section .section-title {
    margin-bottom: 4rem;
    font-size: 3rem;
    text-transform: capitalize;
    font-family: var(--font-oswald);
}

.faq-grid {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-category-title {
    font-family: var(--font-oswald);
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.faq-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.faq-answer p {
    margin-top: 1rem;
    font-family: var(--font-noto);
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 31.25rem;
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.faq-question {
    font-family: var(--font-noto);
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.faq-icon {
    font-family: var(--font-oswald);
    font-size: 1.5rem;
    color: #fff;
    margin-left: 1rem;
    transition: transform 0.5s ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg);
    color: var(--primary-gold);
}

.faq-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive FAQ */
@media (max-width: 1024px) {
    .faq-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .faq-section .section-title {
        margin-bottom: 2rem;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .faq-item {
        padding: 0.75rem 0;
    }

    .faq-question {
        font-size: 0.85rem;
    }

    .faq-section {
        padding: 4rem 0;
    }
}

/* =========================================
   Comparison Section
   ========================================= */
.comparison-section {
    padding: 6.25rem 0;
    position: relative;
    overflow-x: hidden;
}

.comparison-wrapper {
    position: relative;
    max-width: 67.5rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.comparison-wrapper::before {
    content: '';
    position: absolute;
    top: -1.4375rem;
    left: 0;
    width: 18.75rem;
    height: 3.125rem;
    background: url(../img/why_choose_vector_1.png) no-repeat top left;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.comparison-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1.4375rem;
    width: 18.75rem;
    height: 3.125rem;
    background: url(../img/why_choose_vector_2.png) no-repeat bottom right;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.torch {
    position: absolute;
    top: 0;
    width: 12.5rem;
    /* 200px */
    z-index: 1;
}

.torch-left {
    top: 5rem;
    left: -4rem;
}

.torch-right {
    top: 5rem;
    right: -4rem;
    transform: scaleX(-1);
}

.torch img {
    width: 100%;
}


.comparison-card {
    position: relative;
    background: url(../img/why_choose_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    border-radius: 1.25rem;
    padding: 4rem 2rem;
    z-index: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 50rem;
}

.comp-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.comp-row:last-child {
    border-bottom: none;
}

.comp-header {
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.comp-col {
    flex: 1;
    text-align: center;
    color: #fff;
    font-family: var(--font-noto);
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comp-label {
    flex: 2.5;
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
    padding-left: 1rem;
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.comp-logo img {
    max-width: 7.5rem;
    max-height: 3.125rem;
    object-fit: contain;
    transition: 0.3s;
}

.main-logo {
    transform: scale(1.1);
}

.comp-info,
.comp-info-head {
    flex: 0.5;
}

.icon-info {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--primary-gold);
    cursor: pointer;
}

.status-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
    font-weight: bold;
}

.icon-check {
    background: #00C853;
    color: #fff;
}

.icon-cross {
    background: #FF5252;
    color: #fff;
}

/* Highlight our column */
.comp-col:nth-child(4) {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .comparison-card {
        padding: 3rem 1rem;
        overflow-x: auto;
    }

    .comp-col {
        font-size: 0.9rem;
        min-width: 6.25rem;
        /* Ensure content doesn't squash too much */
    }

    .comp-logo img {
        max-width: 5rem;
    }

    .torch {
        width: 6.25rem;
    }

    .comp-label {
        font-size: 0.9rem;
        flex: 1;
        min-width: 12.5rem;
        /* Keep label readable */
    }

    .comparison-table {
        min-width: 50rem;
        /* Force table width for scroll */
    }
}

@media (max-width: 600px) {
    .comparison-wrapper {
        padding: 0;
    }

    .comparison-card {
        padding: 2rem 0.5rem;
        border-radius: 0.625rem;
    }

    .torch {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   Global Mobile Adjustments (Responsiveness)
   ========================================= */
@media (max-width: 600px) {

    /* Reduce excessive spacing on mobile */
    .hero {
        padding-top: 13rem;
    }

    .empire-section {
        padding: 4rem 0 6rem;
    }

    .evaluation-section,
    .kingdom-section,
    .cta-section,
    .faq-section {
        margin: 4rem 0;
    }

    .become-trader-section,
    .top-rankers-section,
    .comparison-section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Allow cards to fit content height on mobile */
    .kingdom-card,
    .cta-card {
        min-height: auto;
        height: auto;
        padding: 3rem 1.5rem;
    }

    .rankers-image {
        margin-bottom: -3rem;
        /* Adjust overlap */
    }

    .faq-section {
        margin-bottom: 4rem;
    }
}


/* =========================================
   Media Page
   ========================================= */

.other-torch {
    position: absolute;
    top: 0;
    width: 12.5rem;
    /* 200px */
    z-index: 1;
}

.other-torch-left {
    top: 10rem;
    left: -4rem;
}

.other-torch-right {
    top: 5rem;
    right: -4rem;
    transform: scaleX(-1);
}

@media (max-width: 600px) {
    .other-torch {
        display: none;
    }
}

/* Media Tabs Design */

.media-tabs-wrapper {
    display: flex;
    justify-content: space-between;
}

.media-tabs {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.tab-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-oswald);
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 1px;
    z-index: 1;
}

.tab-btn:hover {
    color: var(--primary-gold);
}

.tab-btn.active {
    color: var(--primary-gold);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background-image: url(../img/gold_gror.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
}



.media-tab-content-container {
    width: 100%;
    margin: 7rem auto 3rem;
    text-align: center;
    position: relative;
    min-height: 150px;
    /* Prevent layout shift */
}

.media-tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.media-tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: mediaFadeIn 0.5s ease forwards;
}

.tab-heading {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-family: var(--font-oswald);
}

.tab-text {
    font-size: 1.125rem;
    color: var(--text-main);
    font-family: var(--font-redhat);
    line-height: 1.6;
}

.media-tab-content-container .empire-card-wrapper::before {
    display: none;
}

@keyframes mediaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for tabs */
@media (max-width: 600px) {
    .media-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 1rem;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
        border-radius: 0.5rem;
    }
}

/* =========================================
   Media Grid Section Styles
   ========================================= */

.media-grid-section {
    padding-top: 10rem;
}

.media-section-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-family: var(--font-oswald);
    text-align: center;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.faded-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    pointer-events: none;
}

/* Base Card Style */
.media-card-mini {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--primary-gold);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-card-mini:hover {
    transform: translateY(-5px);
}

/* Gold Card Style */
.media-card-gold {
    background: linear-gradient(45deg, #3E2D08 0%, #785A28 100%);
}

.media-card-content {
    padding: 1rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.mini-logo img {
    height: 40px;
    width: auto;
}

.mini-play img {
    height: 30px;
    width: auto;
}

.mini-info {
    text-align: right;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-title {
    display: block;
    font-size: 0.8rem;
    color: var(--primary-gold);
}

.mini-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
}


/* Blue Card Style */
.media-card-blue {
    background: #0E1A24;
    position: relative;
}

/* Placeholder for background images */
.card-bg-wrapper {
    position: absolute;
    inset: 0;
    /* Use a default background if specific ones aren't set yet */
    background: #1a2b3c;
}

/* Specific background images per card would be set inline or via specific classes */
/* Example: .card-bg-Wrapper { background-image: url(...) } */

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 26, 36, 0.6);
}

.card-content-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-content-overlay h3 {
    color: #fff;
    font-family: var(--font-oswald);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.card-content-overlay span {
    color: #ccc;
    font-size: 0.9rem;
}

/* View More Section */
.media-grid-bottom-wrapper {
    position: relative;
}

.view-more-container {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.view-more-link {
    color: var(--primary-gold);
    font-family: var(--font-oswald);
    font-size: 1.2rem;
    text-transform: capitalize;
    text-decoration: underline;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 900px) {

    .media-grid,
    .faded-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .media-grid,
    .faded-grid-row {
        grid-template-columns: 1fr;
    }

    .view-more-container {
        position: relative;
        bottom: 0;
        margin-top: 1rem;
    }

    .faded-grid-row {
        display: none;
        /* Hide faded row on mobile to reduce scroll */
    }
}

/* =========================================
   Flip Card Styles
   ========================================= */

.flip-card {
    background-color: transparent;
    perspective: 1000px;
    /* height: 100%; - let aspect-ratio handle it */
    aspect-ratio: 16/9;
    border-radius: 12px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.flip-card-front {
    background-color: #0E1A24;
    color: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #785A28 0%, #3E2D08 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    /* Use flex to align content like empire-card */
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-gold);
}

/* Mini Empire Card Layout for Flip Back */
.mini-empire-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.mini-empire-card-left {
    flex: 0 0 auto;
}

.mini-empire-card-left img {
    height: 40px;
    /* Adjust size for mini card */
    width: auto;
}

.mini-empire-card-center {
    flex: 0 0 auto;
}

.mini-empire-card-center .play-button img {
    height: 30px;
    width: auto;
}

.mini-empire-card-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    /* Allow to take remaining space but right align content */
    align-items: flex-end;
    /* Right align text */
    padding-left: 0.5rem;
}

.mini-empire-card-right h3 {
    font-size: 0.8rem;
    /* Scaled down */
    margin: 0;
    line-height: 1.2;
    font-family: var(--font-oswald);
    color: #fff;
    white-space: nowrap;
    /* Prevent wrap if possible */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mini-empire-card-right .text-gold {
    color: var(--primary-gold);
    font-size: 0.7rem;
    margin-bottom: 2px;
}