
/* =========================================================
   GLOBAL COMPETITION
========================================================= */

.competition-page {
    width: 100%;
    overflow: hidden;
    background: var(--bg);
}

.competition-container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.competition-section-heading {
    max-width: 850px;
    margin-bottom: 52px;
}

.competition-section-heading .section-label {
    margin-bottom: 12px;

    color: var(--accent);

    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.competition-section-heading h2 {
    margin: 0;

    color: var(--ink);

    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.08;

    font-weight: 900;
    letter-spacing: 2px;
}

.competition-section-heading p {
    max-width: 680px;

    margin-top: 16px;

    color: var(--ink-soft);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   HERO
========================================================= */

.competition-hero {
    width: 100%;
    min-height: 610px;

    padding: 110px 24px 90px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(57, 133, 179, 0.10),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f5f7f8 100%
        );

    border-bottom: 1px solid var(--line);
}

.competition-hero .competition-container {
    position: relative;
}


/* LABEL */

.competition-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;
    padding: 7px 12px;

    border: 1px solid #cfe3ed;
    border-radius: 999px;

    background: var(--accent-light);
    color: var(--accent-dark);

    font-family: ui-monospace, monospace;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
}


/* TITLE */

.competition-hero h1 {
    max-width: 900px;

    margin: 0;

    color: var(--ink);

    font-size: clamp(58px, 8vw, 105px);
    line-height: 0.92;

    font-weight: 900;
    letter-spacing: 2px;
}


/* DESCRIPTION */

.competition-hero p {
    max-width: 650px;

    margin-top: 28px;

    color: var(--ink-soft);

    font-size: 16px;
    line-height: 1.8;
}


/* BUTTON AREA */

.hero-actions {
    margin-top: 34px;

    display: flex;
    align-items: center;

    gap: 22px;
}


/* PRIMARY BUTTON */

.competition-button {
    min-height: 48px;

    padding: 13px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--accent);
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.competition-button:hover {
    background: var(--accent-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(57, 133, 179, 0.2);
}


/* SECONDARY LINK */

.text-button {
    color: var(--ink);

    font-size: 13px;
    font-weight: 800;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.text-button:hover {
    color: var(--accent);

    transform: translateX(4px);
}


/* =========================================================
   TENTANG KOMPETISI
========================================================= */

.competition-about {
    width: 100%;

    padding: 90px 24px 120px;

    margin-top: 0;
    background: #ffffff;
}


/*
   Dibuat seperti screenshot referensi:
   heading di kiri,
   isi berada di area kanan,
   tetapi tetap mempunyai garis alignment
   yang rapi.
*/

.competition-about .competition-container {
    display: grid;

    grid-template-columns: minmax(300px, 0.8fr) minmax(500px, 1.2fr);

    column-gap: 80px;

    align-items: start;
}


/* HEADING */

.competition-about .competition-section-heading {
    margin: 0;

    max-width: 600px;
}

.competition-about .competition-section-heading h2 {
    font-size: clamp(38px, 4vw, 52px);

    line-height: 1.08;
}


/* TEXT */

.competition-about-content {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 24px;

    padding-top: 55px;
}

.competition-about-content p {
    max-width: 720px;

    margin: 0;

    color: var(--ink-soft);

    font-size: 16px;
    line-height: 1.9;
}


/* =========================================================
   CABANG KOMPETISI
========================================================= */

.competition-branches {
    width: 100%;

    padding: 115px 24px;

    background: var(--surface);
}

.competition-branches .competition-section-heading {
    margin-bottom: 48px;
}


/* GRID */

.branch-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


/* CARD */

.branch-card {
    position: relative;

    min-height: 285px;

    padding: 30px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--line);
    border-radius: var(--radius-large);

    background: #ffffff;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

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

    border-color: #cbdde6;

    box-shadow:
        0 16px 35px rgba(27, 35, 39, 0.09);
}


/* NUMBER */

.branch-card > span {
    display: block;

    margin-bottom: 22px;

    color: var(--accent);

    font-family: ui-monospace, monospace;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.08em;
}


/* TITLE */

.branch-card h3 {
    margin: 0 0 12px;

    color: var(--ink);

    font-size: 21px;
    line-height: 1.25;

    font-weight: 900;
}


/* DESCRIPTION */

.branch-card p {
    margin: 0;

    color: var(--ink-soft);

    font-size: 13px;
    line-height: 1.75;
}


/* LINK */

.branch-card a {
    width: fit-content;

    margin-top: auto;
    padding-top: 22px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.branch-card a:hover {
    color: var(--accent-dark);

    transform: translateX(4px);
}


/*
   Kalau satu card punya dua link:
   Daftar
   Pengumpulan Karya
*/

.branch-card a + a {
    margin-top: 8px;
    padding-top: 0;
}


/* =========================================================
   TIMELINE — MATCH INDEX STYLE
========================================================= */

.competition-timeline {
    width: 100%;
    padding: 110px 24px;
    background: #ffffff;
}

.competition-timeline .competition-section-heading {
    margin-bottom: 60px;
}

.competition-timeline .timeline-list {
    width: min(900px, 100%);
    margin: 0 auto;
}

.competition-timeline .timeline-item {
    position: relative;
    min-height: 130px;
    display: grid;
    grid-template-columns: 62px 120px 1fr;
    gap: 24px;
    padding-bottom: 38px;
}

.competition-timeline .timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 62px;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        var(--theme-accent, var(--accent)) 0 8px,
        transparent 8px 15px
    );
    opacity: .7;
}

/* Square date marker, matching the homepage timeline */
.competition-timeline .timeline-number {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 4px;
    background: linear-gradient(145deg, #303234 0%, #151719 100%);
    color: #fff;
    font-family: "Minecraft Seven", ui-monospace, monospace;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 3px 0 rgba(0,0,0,.45),
        0 8px 18px rgba(0,0,0,.22);
}

.competition-timeline .timeline-date {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
}

.competition-timeline .timeline-date strong {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.competition-timeline .timeline-date span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.competition-timeline .timeline-item > div:last-child {
    padding-top: 7px;
}

.competition-timeline .timeline-category {
    color: var(--theme-accent, var(--accent));
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.competition-timeline .timeline-item h3 {
    margin-top: 5px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 900;
}

.competition-timeline .timeline-item p {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
}

.competition-timeline .timeline-note {
    width: min(900px, 100%);
    margin: 10px auto 0;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   JUKNIS / DOCUMENT
========================================================= */

.competition-documents {
    width: 100%;

    padding: 105px 24px;

    background: var(--surface);
}


.document-box {
    position: relative;

    width: 100%;

    padding: 52px;

    display: grid;

    grid-template-columns: 1.4fr 0.8fr;

    align-items: center;

    gap: 60px;

    overflow: hidden;

    border-radius: var(--radius-large);

    background: var(--surface-dark);

    color: #ffffff;
}


/* DECORATION */

.document-box::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -120px;
    top: -150px;

    border-radius: 50%;

    background: rgba(57, 133, 179, 0.18);
}


.document-box > div {
    position: relative;

    z-index: 2;
}


/* LABEL */

.document-box .section-label {
    color: #83c3e7;
}


/* TITLE */

.document-box h2 {
    margin-top: 5px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.08;

    letter-spacing: 2px;

    font-weight: 900;
}


/* TEXT */

.document-box p {
    max-width: 600px;

    margin-top: 18px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    line-height: 1.8;
}


/* BUTTON AREA */

.document-actions {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* BUTTON */

.document-button {
    min-height: 48px;

    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;

    border-radius: 10px;

    background: var(--accent);

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    text-align: center;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.document-button:hover {
    background: var(--accent-dark);

    transform: translateY(-2px);
}


/* SECONDARY */

.document-button.secondary {
    border-color: rgba(255, 255, 255, 0.15);

    background: rgba(255, 255, 255, 0.06);
}

.document-button.secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);

    background: rgba(255, 255, 255, 0.1);
}
