/* =================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ================================= */

:root {
    --primary-color: #B71C1C;
    --secondary-color: #FFFFFF;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --text-color: #E0E0E0;
    --text-muted-color: rgba(255, 255, 255, 0.8);
    --heading-font: 'Anton', sans-serif;
    --body-font: 'Saira', sans-serif;
    --modern-radius: 0.75rem;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--secondary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

/* =================================
   2. LAYOUT & STRUCTURE
   ================================= */

.page-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.section {
    padding: 80px 0;
}

.page-header {
    padding: 120px 0 60px 0;
    text-align: center;
    background-color: var(--surface-color);
}

.page-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    letter-spacing: 2px;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    color: var(--secondary-color);
    text-transform: uppercase
}

.content-block {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--modern-radius);
}

.content-block h2,
.content-block h3 {
    color: var(--primary-color);
}

.content-block ul,
.content-block ol {
    padding-left: 1.5rem;
}

/* =================================
   3. NAVIGATION & TABS
   ================================= */

/* -- Navbar -- */
.navbar {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    max-height: 40px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none !important;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler .toggler-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.navbar-toggler .navbar-toggler-icon {
    display: none;
}

/* -- Nav Pills & Tabs -- */
.nav-pills .nav-link {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-radius: var(--modern-radius);
    font-family: var(--heading-font);
    letter-spacing: 1px;
    margin: 0 5px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.team-tabs {
    background-color: var(--surface-color);
    padding: 1rem;
    border-radius: var(--modern-radius);
    margin-top: -50px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.team-tabs .nav-link {
    color: var(--text-muted-color);
    font-family: var(--heading-font);
    letter-spacing: 1px;
    font-size: 1.25rem;
    border-radius: calc(var(--modern-radius) - 0.25rem);
}

.team-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.nav-tabs {
    border-bottom: 0px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.nav-tabs .nav-link {
    background-color: transparent;
    border: none;
    color: var(--text-muted-color);
    font-family: var(--heading-font);
    letter-spacing: 1px;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: var(--text-muted-color) !important;
    border-radius: 10px;
}

.tab-content {
    padding-top: 2rem;
}

/* -- Pagination -- */
.pagination {
    --bs-pagination-padding-x: 0.9rem;
    --bs-pagination-padding-y: 0.4rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--text-muted-color);
    --bs-pagination-bg: var(--surface-color);
    --bs-pagination-border-width: 1px;
    --bs-pagination-border-color: rgba(255, 255, 255, 0.1);
    --bs-pagination-border-radius: 0.5rem;
    --bs-pagination-hover-color: var(--secondary-color);
    --bs-pagination-hover-bg: var(--primary-color);
    --bs-pagination-hover-border-color: var(--primary-color);
    --bs-pagination-focus-color: var(--secondary-color);
    --bs-pagination-focus-bg: var(--primary-color);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(183, 28, 28, 0.5);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-disabled-color: rgba(255, 255, 255, 0.3);
    --bs-pagination-disabled-bg: transparent;
    --bs-pagination-disabled-border-color: rgba(255, 255, 255, 0.1);
}

/* =================================
   4. HERO & HEADER SECTIONS
   ================================= */

/* -- Main Hero -- */
.hero {
    
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.6) 0%, rgba(18, 18, 18, 0.7) 60%, var(--background-color) 95%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* -- Generic Hero Section -- */
.hero-section {
    position: relative;
    padding: 140px 0 80px 0;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.8) 50%, rgba(18, 18, 18, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-meta span {
    margin-right: 1.5rem;
    opacity: .8;
}

.hero-description {
    font-size: 1rem;
    max-width: 500px;
    opacity: .9;
}

.hero-stats {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: var(--modern-radius);
    padding: 1.5rem;
}

.stat-item h5 {
    font-family: var(--body-font);
    font-size: .8rem;
    color: var(--text-muted-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.stat-item p {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0;
    letter-spacing: 1px;
}

/* -- Division Hero -- */
.division-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.division-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 1) 5%, rgba(18, 18, 18, 0.5) 50%, rgba(18, 18, 18, 0.2) 100%);
}

.division-hero .content {
    position: relative;
    z-index: 2;
}

.division-hero h1 {
    font-size: 5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

/* -- Post Header -- */
.post-header {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.post-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.5) 0%, rgba(18, 18, 18, 0.9) 80%, var(--background-color) 100%);
}

.post-header .container {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.post-title {
    font-size: 3rem;
}

@media (min-width: 768px) {
    .post-title {
        font-size: 4.5rem;
    }
}

.post-meta {
    font-family: var(--body-font);
    color: var(--text-muted-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.post-meta span {
    margin-right: 1.5rem;
}

/* =================================
   5. COMPONENTS
   ================================= */

/* -- Buttons -- */
.btn-custom {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--modern-radius);
    padding: 12px 30px;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.btn-custom:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.2);
}

.btn-custom-outline-success {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid #28a745;
    border-radius: var(--modern-radius);
    padding: 12px 30px;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.btn-custom-outline-success:hover {
    background-color: #28a745;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-custom-success {
    background-color: #28a745;
    color: var(--secondary-color);
    border: 2px solid #28a745;
    border-radius: var(--modern-radius);
    padding: 12px 30px;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.btn-btn-custom {
    border-radius: var(--modern-radius);
    padding: 12px 30px;
    font-family: var(--heading-font) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.filter-buttons .btn {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    border: 0px solid rgba(255, 255, 255, 0.1);
    font-family: var(--heading-font) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    padding: .5rem 1.5rem;
    margin: .25rem;
    transition: all .3s ease
}

.filter-buttons .btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color)
}

.filter-buttons .btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.filter-buttons .btn {
    background-color: var(--surface-color);
    color: var(--text-muted-color);
    border: 0px;
    border-radius: 50px;
    padding: .5rem 1.5rem;
    margin: .25rem;
    transition: all .3s ease;
    text-decoration: none;
}

/* -- Cards -- */
.division-card {
    position: relative;
    border-radius: var(--modern-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.division-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.division-card .bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.division-card:hover .bg-image {
    transform: scale(1.05);
}

.division-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.division-card h3 {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.article-card {
    background-color: var(--surface-color);
    border: 0px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px) rotate(-2deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--primary-color);
}

.article-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-title {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.article-card .card-date {
    color: var(--text-muted-color);
}

.achievement-card {
    background-color: var(--background-color);
    border-radius: var(--modern-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-left: 2px solid var(--primary-color);
}

.achievement-card .logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.achievement-card .details {
    flex-grow: 1;
}

.achievement-card .details h5 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.achievement-card .details p {
    margin-bottom: 0;
    color: var(--text-muted-color);
}

.achievement-card .placement {
    text-align: center;
    font-family: var(--heading-font);
    color: var(--primary-color);
    line-height: 1;
}

.achievement-card .placement span {
    font-size: 2.5rem;
    display: block;
}

.achievement-card .placement p {
    font-size: 1rem;
    color: var(--text-muted-color);
    margin-bottom: 0;
}

.achievement-cards {
    background-color: var(--surface-color);
    border: 0px;
    border-radius: var(--modern-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.achievement-cards:hover {
    transform: translateY(-5px);
}

.achievement-cards .logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 5px;
}

.achievement-cards .details {
    flex-grow: 1;
}

.details .name {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.details .sub {
    color: var(--text-muted-color);
    margin-bottom: 0;
}

.achievement-cards .placements {
    text-align: center;
    font-family: var(--heading-font);
    line-height: 1;
    flex-shrink: 0;
}

.placements .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.placements .rank {
    font-size: 1.5rem;
    display: block;
}

.place-1 {
    border-left: 4px solid #FFD700;
}

.place-1 .placements {
    color: #FFD700;
}

.place-2 {
    border-left: 4px solid #C0C0C0;
}

.place-2 .placements {
    color: #C0C0C0;
}

.place-3 {
    border-left: 4px solid #CD7F32;
}

.place-3 .placements {
    color: #CD7F32;
}

.place-other .placements {
    color: var(--text-muted-color);
}

.tournament-card {
    background-color: var(--surface-color);
    border-radius: var(--modern-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.tournament-card:hover {
    background-color: rgba(99, 9, 9, 0.1);
}

.tournament-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: calc(var(--modern-radius) - 0.25rem);
}

.tournament-card .description {
    color: var(--text-muted-color);
}

@media (min-width: 768px) {
    .tournament-card img {
        width: 120px;
        height: 70px;
    }
}

.tournament-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tournament-cards {
    background-color: var(--surface-color);
    border: 0px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--modern-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tournament-link:hover .tournament-cards {
    border-bottom: 2px solid var(--primary-color);
}

.card-header-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.tournament-link:hover .card-header-image {
    transform: scale(1.05);
}

.tournament-cards .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-meta span {
    margin-right: 1rem;
}

.card-prizepool {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-prizepool small {
    color: var(--text-muted-color);
}

.card-prizepool .amount {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.player-card {
    background-color: var(--surface-color);
    border-radius: var(--modern-radius);
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.player-card:hover {
    transform: translateY(-5px);
    border-bottom: 2px solid var(--primary-color);
}

.player-card .player-image-wrapper {
    width: 150px;
    flex-shrink: 0;
    position: relative;
}

.player-card .player-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, var(--surface-color), transparent);
}

.player-card .player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card .player-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-card .player-ign {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.player-card .player-name {
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}

.player-card .player-role {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.player-card .social-icons a {
    color: var(--text-muted-color);
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.player-card .social-icons a:hover {
    color: var(--primary-color);
}

.match-card {
    background-color: var(--surface-color);
    border-radius: var(--modern-radius);
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 35%;
    text-align: center;
}

.team img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.team h5 {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.score {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
}

.winner-card {
    position: relative;
    background-color: var(--surface-color);
    border-radius: var(--modern-radius);
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.winner-card:hover {
    transform: translateY(-5px);
}

.placement-bg {
    position: absolute;
    top: -20px;
    right: 10px;
    font-family: var(--heading-font);
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    line-height: 1
}

.winner-card .card-content {
    position: relative;
    z-index: 2
}

.winner-card img {
    max-width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem
}

.winner-card .placement {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem
}

.winner-card .placement i {
    font-size: 1.5rem;
    margin-bottom: .25rem;
    display: block
}

.winner-card .team-name {
    font-family: var(--heading-font);
    letter-spacing: 1px;
    font-size: 1.75rem;
    color: var(--secondary-color)
}

.winner-card .points {
    color: var(--text-muted-color);
    font-size: 1rem
}

.first-place {
    background: linear-gradient(45deg, #2a2a2a, var(--surface-color));
    border-color: var(--primary-color);
}

.first-place .placement {
    color: #FFD700
}

.first-place .team-name {
    font-size: 2.25rem
}

.first-place img {
    max-width: 100px;
    height: 100px
}

.second-place .placement {
    color: #C0C0C0
}

.third-place .placement {
    color: #CD7F32
}

.management-card {
    background-color: var(--surface-color);
    border-radius: var(--modern-radius);
    text-align: center;
    padding: 2rem;
    height: 100%;
    border: 0px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.management-card:hover {
    transform: translateY(-5px);
}

.management-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--background-color);
}

.member-name {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.member-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.member-role {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}


/* -- Status Indicators -- */
.status-dot {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.status-ongoing {
    color: #28a745;
}

.status-upcoming {
    color: #ffc107;
}

.status-open {
    color: #17a2b8;
}

.live-indicator {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--primary-color);
    padding: .2rem .6rem;
    border-radius: 5px;
    animation: pulse 1.5s infinite;
}

.status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: var(--heading-font);
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    color: white;
    letter-spacing: 1px;
    z-index: 2;
}

.status-badge.ongoing {
    background-color: var(--primary-color);
}

.status-badge.open {
    background-color: #28a745;
}

.status-badge.upcoming {
    background-color: #ffc107;
    color: #000;
}

.status-badge.completed {
    background-color: #6c757d;
}

/* -- Logos -- */
.sponsor-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-height: 60px;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.team-logo {
    filter: grayscale(100%);
    opacity: .7;
    transition: all .3s ease;
    max-height: 60px;
}

/* -- Timeline -- */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--surface-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 2.5rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--surface-color);
    position: relative;
    border-radius: var(--modern-radius);
    border: 0px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-muted-color);
}

.timeline-content img {
    max-width: 100%;
    border-radius: var(--modern-radius);
    margin-top: 1rem;
}

/* -- Responsive Timeline untuk Mobile -- */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 30px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 12px; /* Diubah dari 21px ke 18px */
        right: auto;
    }

    .timeline-item:nth-child(even)::after {
        left: 12px; /* Diubah dari 21px ke 18px */
    }
}


/* -- Gallery & Lightbox Modal -- */
.gallery-grid-item {
    margin-bottom: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--modern-radius);
    cursor: pointer;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity .4s ease
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

.overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff
}

.overlay-title {
    color: #fff;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform .4s ease
}

.gallery-item:hover .overlay-title {
    transform: translateY(0)
}

.video-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center
}

.modal-backdrop.show {
    opacity: .8
}

.modal-content {
    background: 0 0;
    border: none
}

.modal-body img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--modern-radius)
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    opacity: .8;
    transition: opacity .2s ease
}

.btn-close-modal:hover {
    opacity: 1
}

/* =================================
   6. PAGE-SPECIFIC SECTIONS
   ================================= */

/* -- Tournaments Page Section -- */
#tournaments {
    position: relative;
    background: linear-gradient(rgba(18, 18, 18, 0.92), rgba(18, 18, 18, 0.98)), url('/assets/images/bg-tour.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

/* -- Post Detail Page Content -- */
.post-content {
    padding: 5px 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted-color);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--modern-radius);
    margin: 2rem 0;
}

.post-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.social-share a {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    background-color: var(--surface-color);
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.related-posts {
    padding-bottom: 80px;
}

/* -- Founder & Management Page Section -- */
.founder-section {
    background-color: var(--surface-color);
    padding: 4rem 0;
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--modern-radius);
}

.founder-title {
    font-family: var(--body-font);
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-name {
    font-family: var(--heading-font);
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--secondary-color);
}

.founder-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted-color);
}

.team-legacy {
    background-color: var(--surface-color);
    border-radius: var(--modern-radius);
}

.team-legacy h4 {
    color: var(--primary-color);
}

/* KARTU PRODUK (MERCHANDISE) */
.product-card {
    background-color: var(--surface-color);
    border: 0px;
    border-radius: var(--modern-radius);
    overflow: hidden;
    transition: transform .3s ease,box-shadow .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    overflow: hidden
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    transition: transform .4s ease
}

.product-card:hover .product-image {
    transform: scale(1.05)
}

.product-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column
}

.product-title {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    font-size: 1.5rem;
    letter-spacing: 1px
}

.product-price {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 1rem
}

.size-tags {
    margin-bottom: 1rem
}

.size-tag {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted-color);
    border-radius: 5px;
    padding: .2rem .6rem;
    font-size: .8rem;
    font-weight: 700;
    margin-right: .25rem;
    margin-bottom: .25rem
}

.product-description {
    font-size: .9rem;
    color: var(--text-muted-color);
    flex-grow: 1;
    margin-bottom: 1.5rem
}

.btn-order {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--modern-radius);
    padding: .75rem 1.5rem;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all .3s ease-in-out
}

.btn-order:hover {
    background-color: transparent;
    color: var(--primary-color)
}


/* =================================
   7. FOOTER
   ================================= */

footer {
    background-color: var(--surface-color);
    padding: 60px 0 20px 0;
    border-top: 0px;
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--text-muted-color);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.social-icons a {
    color: var(--text-muted-color);
    font-size: 1.25rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    color: var(--text-muted-color);
}

/* =================================
   8. ANIMATIONS & EFFECTS
   ================================= */

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* =================================
   9. MEDIA QUERIES
   ================================= */

/* -- General Tablet & Up -- */
@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1.5rem;
    }

    .team h5 {
        font-size: 1rem;
    }

    .team img {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem
    }

    .nav-tabs .nav-link {
        padding: .75rem 1.5rem
    }

    .team h5 {
        font-size: 1rem
    }

    .team img {
        width: 50px;
        height: 50px
    }
}

/* -- Timeline Mobile -- */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 10px;
    }
}