@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.gt-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    color: #333333;
}

.gt-wrap, .gt-wrap h3, .gt-wrap p, .gt-wrap span, .gt-wrap button, .gt-wrap a {
    font-family: 'DM Sans', sans-serif !important;
}

/* Tabs Header */
.gt-tabs-header {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-bottom: 2px solid #EAEAEA;
    margin-bottom: 40px;
    position: relative;
}

.gt-tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #999999;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.gt-tab-btn:hover {
    color: #666666;
}

.gt-tab-btn.active {
    color: #f4701f !important;
    border-bottom-color: #f4701f !important;
}

/* Tab Content Visibility */
.gt-tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.gt-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid for Upcoming */
.gt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Upcoming Card */
.gt-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.gt-img-wrap {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gt-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFFFFF;
    color: #f4701f !important;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gt-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gt-card-body h3 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1A1A1A;
    line-height: 1.2;
}

.gt-meta {
    margin-bottom: 25px;
}

.gt-meta p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.gt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.gt-icon svg {
    stroke: #f4701f !important;
    fill: none !important;
}

.gt-card-footer {
    margin-top: auto;
    border-top: 1px solid #F0F0F0;
    padding-top: 20px;
}

.gt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1A1A1A;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.gt-cta-btn:hover {
    color: #f4701f !important;
}

.gt-cta-btn .arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.gt-cta-btn:hover .arrow {
    transform: translateX(4px);
}

/* ---- Past Tournaments (Horizontal Card) ---- */
.gt-list-past {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.gt-past-card {
    flex-direction: row; /* Horizontal */
    min-height: 200px;
}

.gt-past-card .gt-img-wrap {
    width: 35%;
    height: auto;
    min-height: 220px;
}

.gt-past-card .gt-card-body {
    width: 65%;
    padding: 30px;
    position: relative;
    justify-content: center;
}

.gt-date-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #f4701f !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.gt-past-card .gt-card-body h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.gt-champ-box {
    background: #F9F9F9;
    padding: 15px 20px;
    border-left: 4px solid #f4701f !important;
    border-radius: 4px;
    margin-bottom: 25px;
    max-width: 300px;
}

.gt-champ-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999999;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.gt-champ-name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 5px 0;
}

.gt-score-val {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.gt-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #999999;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.gt-cta-link:hover {
    color: #f4701f !important;
}

.gt-past-card .gt-card-footer {
    border-top: none;
    padding-top: 0;
}

/* Empty State */
.gt-empty {
    text-align: center;
    padding: 40px;
    color: #999999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .gt-past-card {
        flex-direction: column;
    }
    .gt-past-card .gt-img-wrap {
        width: 100%;
        height: 200px;
    }
    .gt-past-card .gt-card-body {
        width: 100%;
    }
}
