/* --- Outlands Page Specific Styles --- */

:root {
    --outlands-green: #00A651;
    --grad-start: #88C544;
    --grad-end: #008218;
}

/* Sub-Navigation */
.outlands-subnav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    z-index: 990;
    transition: none;
    /* Disable transition to prevent gap jitters */
}

/* Ensure no gap on scroll by forcing top position */
header.scrolled+.outlands-subnav {
    top: 90px !important;
}

.outlands-subnav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    margin: 0;
    list-style: none;
}

.outlands-subnav ul li {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.outlands-subnav ul li a {
    color: inherit;
    text-decoration: none;
}

.outlands-subnav ul li.active {
    color: var(--text-main);
    position: relative;
}

.outlands-subnav ul li.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-main);
}

/* Hero Section */
.outlands-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.outlands-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-text-col {
    max-width: 900px;
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-green {
    background: linear-gradient(to bottom, var(--grad-start) 0%, var(--grad-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.1em; /* Membuka sedikit area di bawah agar huruf g, y, j, dsb tidak terpotong (Isi Gradient Clipping Bug) */
    margin-bottom: -0.1em; /* Mengimbangi padding agar layout tidak terdorong */
}

.hero-desc {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Action Row */
.hero-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-action-row p {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0px;
    /* Removed margin bottom as requested */
    color: rgba(255, 255, 255, 0.8);
}

.hero-pills-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.btn-join-pill {
    background: var(--outlands-green);
    color: #fff;
    width: 158px;
    height: 60px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}

.btn-join-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(136, 197, 68, 0.3);
}

.info-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 212px;
    height: 65px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    text-align: left;
}

.info-pill i {
    font-size: 20px;
    color: #fff;
}

.pill-text {
    display: flex;
    flex-direction: column;
}

.pill-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.pill-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-top: 4px;
}

/* Countdown Section */
.countdown-minimal {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 508px;
    height: 135px;
    margin: 40px auto 0;
}

.min-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    height: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.min-box .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 100%;
    text-align: center;
}

.min-box .unit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200; /* Extra Light / Tipis sekali */
    font-style: normal;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
    color: rgba(255, 255, 255, 1);
    margin-top: 8px;
}

/* --- Event Overview Section --- */
.outlands-overview {
    padding: 100px 0;
    background-color: #fff;
}

.overview-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.overview-content {
    flex: 1;
}

.overview-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
}

.overview-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #929AA7;
    text-align: justify;
}

.overview-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 480px;
    flex-shrink: 0;
}

.img-wide {
    width: 100%;
    height: 199px;
    border-radius: 16px;
    object-fit: cover;
}

.img-row {
    display: flex;
    gap: 20px;
}

.img-tall {
    width: 230px;
    height: 277px;
    border-radius: 16px;
    object-fit: cover;
}

.overview-cards {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    width: 100%;
}

.o-card {
    background: #ffffff;
    border-radius: 16px;
    flex: 1;
    min-height: 221px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.o-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.1);
}

.o-card-icon {
    font-size: 32px;
    color: #159C33;
    margin-bottom: 0;
}

.o-card-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.o-card-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: var(--text-muted);
}

/* --- Race Category Section --- */
.race-category {
    background-color: #F3F4F5;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
}

.race-container {
    width: 100%;
    max-width: 1440px;
    padding-left: 160px;
    padding-right: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.race-header {
    margin-bottom: 30px;
}

.race-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 42px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: var(--text-main);
    margin-bottom: 10px;
}

.race-header p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0px;
    color: #929AA7;
}

.race-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap; 
    justify-content: center;
}

.race-card {
    background: #fff;
    border-radius: 16px;
    width: calc(25% - 18px); 
    min-width: 260px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 16px;
    border-radius: 12px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #fff !important;
    background: #88C544;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-distance {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #008218;
    margin-bottom: 20px;
}

.card-details {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.card-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.card-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.p-label-alt {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: 1px;
    vertical-align: middle;
    text-transform: uppercase;
    color: var(--text-muted);
}

.p-value-alt {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.btn-card-details {
    background: var(--outlands-green);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 48px; /* Diperkecil dari 62px agar tidak terlalu besar */
    border-radius: 999px;
    gap: 10px;
    
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 14px; /* Sedikit dikecilkan agar proporsional dengan tombol baru */
    line-height: normal;
    letter-spacing: 0.5px;
    vertical-align: middle;
    
    transition: var(--transition);
    margin-top: auto;
}

.btn-card-details:hover {
    background: #008218;
}

/* --- Merchandise Section --- */
.merch-section {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
}

.merch-container {
    width: 100%;
    max-width: 1440px;
    padding-left: 160px;
    padding-right: 160px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.merch-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 42px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 10px;
}

.merch-header p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #929AA7;
}

.merch-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.merch-card {
    background: #fff;
    border-radius: 16px;
    width: calc(25% - 18px);
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.merch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.m-card-img {
    width: 100%;
    height: 180px;
    background: #f1f5f9;
}

.m-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.m-card-body h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.m-card-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #929AA7;
    margin-bottom: 16px;
    line-height: 1.5;
}

.m-card-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #008218;
    margin-top: auto;
}

.merch-action {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-more-merch {
    background: var(--outlands-green);
    color: #fff;
    padding: 16px 36px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.btn-more-merch:hover {
    background: #008218;
    transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }

    .countdown-minimal {
        width: 100%;
        max-width: 508px;
    }

    .overview-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 50px;
    }

    .overview-content {
        width: 100%;
    }

    .overview-images {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .outlands-subnav {
        top: 80px !important;
        padding: 0;
    }

    header.scrolled+.outlands-subnav {
        top: 80px !important;
    }

    .outlands-subnav ul {
        justify-content: center;
        flex-wrap: wrap; 
        gap: 10px 10px;
        padding: 12px 10px;
    }

    .outlands-subnav ul li {
        font-size: 11px;
        flex: 1 1 calc(33.333% - 15px);
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .outlands-subnav ul li.active::after {
        bottom: -5px;
        height: 2px;
        width: 80%;
        left: 10%;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-action-row {
        flex-direction: row;
        gap: 10px;
    }

    .hero-action-row p {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero-pills-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .hero-pills-group .btn-join-pill {
        flex: 1.2;
        width: auto;
        min-width: 0;
        height: auto;
        font-size: 10px;
        padding: 8px 6px;
        text-align: center;
        justify-content: center;
    }

    .hero-pills-group .info-pill {
        flex: 1.5;
        width: auto;
        min-width: 0;
        height: auto;
        padding: 5px 6px;
        gap: 5px;
    }

    .hero-pills-group .info-pill i {
        font-size: 13px;
        flex-shrink: 0;
    }

    .hero-pills-group .pill-text {
        overflow: hidden;
    }

    .hero-pills-group .pill-label {
        font-size: 7px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .hero-pills-group .pill-value {
        font-size: 9px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        margin-top: 2px;
    }

    .countdown-minimal {
        width: 100%;
        height: auto;
        gap: 8px;
    }

    .min-box {
        height: 90px;
        padding: 10px 0;
    }

    .min-box .num {
        font-size: 28px;
    }

    .min-box .unit {
        font-size: 16px;
    }

    .overview-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .overview-content {
        width: 100%;
    }

    .overview-title {
        font-size: 32px;
        text-align: left;
    }

    .overview-images {
        width: 100%;
        max-width: 100%;
    }

    .img-row {
        gap: 15px;
        width: 100%;
    }

    .img-tall {
        flex: 1;
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 230/277;
        object-fit: cover;
    }

    .img-wide {
        width: 100%;
        height: auto;
        aspect-ratio: 480/199;
        object-fit: cover;
    }

    .overview-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .o-card {
        width: 100%;
        height: auto;
        padding: 24px;
        align-items: flex-start;
        text-align: left;
    }

    .race-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .race-header h2 {
        font-size: 32px;
    }

    .race-card {
        width: 100%;
        min-width: 0;
    }

    .btn-card-details {
        font-size: 14px;
        height: 50px;
        padding: 12px;
    }

    .merch-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .merch-header h2 {
        font-size: 32px;
    }

    .merch-card {
        width: 100%;
        min-width: 0;
    }

    .btn-more-merch {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 13px;
    }

}

@media (max-width: 480px) {
    .outlands-subnav {
        top: 70px !important;
    }

    header.scrolled+.outlands-subnav {
        top: 70px !important;
    }

    .hero-title {
        font-size: 32px;
    }
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Extracted Inline Styles from outlands.blade.php --- */

/* Style untuk Tombol Join Utama */
.btn-premium-join {
    background: linear-gradient(135deg, #159C33 0%, #0d7a26 100%);
    color: white !important;
    padding: 16px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(21, 156, 51, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-premium-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(21, 156, 51, 0.5);
    background: linear-gradient(135deg, #18b33a 0%, #159C33 100%);
}

/* Style untuk Info Box (Date & Location) */
.info-pill-premium {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: all 0.3s ease;
}

.info-pill-premium:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.info-pill-premium .icon-box {
    background: rgba(21, 156, 51, 0.2);
    color: #159C33;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.info-pill-premium .pill-label {
    font-size: 9px;
    opacity: 0.7;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-pill-premium .pill-value {
    font-size: 13px;
    font-weight: 700;
}

/* Style untuk Tombol Track (Memanjang di Bawah) */
.btn-premium-track {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white !important;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-premium-track:hover {
    background: rgba(21, 156, 51, 0.15);
    border-color: #159C33;
    color: #159C33 !important;
    transform: translateY(-2px);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.text-green {
    color: #159C33;
}

/* Responsif untuk Layar Kecil (Mobile) */
@media (max-width: 576px) {
    .main-action-grid {
        grid-template-columns: 1fr;
    }
    .btn-premium-join {
        grid-column: span 1;
    }
}

/* Partner & Sponsor Styling */
.partners-sponsors-section {
    background: #F3F4F5;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.logo-box {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    min-width: 220px;
    height: 120px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(21, 156, 51, 0.1);
    border-color: rgba(21, 156, 51, 0.2);
}

.logo-box img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps blend white-background logos with the card */
}

.logo-box.sponsor {
    min-width: 280px;
    height: 160px; /* Much larger for sponsors */
    padding: 15px 30px;
}

.logo-box.sponsor img {
    max-width: 90%;
    max-height: 90%;
}

@media (max-width: 768px) {
    .logo-grid {
        gap: 15px;
    }

    .logo-box {
        min-width: calc(50% - 10px);
        height: 110px;
    }

    .logo-box.sponsor {
        min-width: 100%; /* Wider on small screens */
        height: 140px;
    }
}

@media (max-width: 480px) {
    .logo-box {
        min-width: 100%;
        height: 100px;
    }
}