/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    background: #f7f9fc;
    color: #172033;

    line-height: 1.7;

    overflow-x: hidden;
}


/* =========================================================
   HERO / BAGIAN ATAS UNDANGAN
========================================================= */

.hero {
    position: relative;

    width: 100%;
    min-height: 75vh;

    background: linear-gradient(
        180deg,
        #28558f 0%,
        #346db7 100%
    );

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 55px 20px 100px;

    color: #ffffff;

    overflow: hidden;
}


/* optional overlay supaya biru lebih elegan */
.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(0,47,115,0.05)
    );

    pointer-events: none;
}


.hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 850px;

    margin: auto;

    text-align: center;

    color: #ffffff;
}


/* =========================================================
   FOTO EVENT
========================================================= */

.photo {
    width: 150px;
    height: 150px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid rgba(255,255,255,0.7);

    margin: 0 auto 20px;

    display: block;
}


/* =========================================================
   TEKS HERO
========================================================= */

.hero .large {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 600;

    letter-spacing: 7px;

    line-height: 1.3;
}


.hero h1 {
    margin: 8px 0;

    color: #ffffff;

    font-size: clamp(36px, 7vw, 62px);

    line-height: 1.2;
}


.hero h2 {
    margin: 8px 0 15px;

    color: #ffffff;

    font-size: clamp(27px, 5vw, 38px);

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   NAMA TAMU
========================================================= */

.hero .guest {
    display: inline-block;

    margin: 5px auto 22px;

    padding: 9px 30px;

    border: 1px solid rgba(255,255,255,0.55);

    border-radius: 40px;

    background: rgba(255,255,255,0.08);

    color: #ffffff;

    font-size: 24px;
    font-weight: bold;

    line-height: 1.5;
}


/* =========================================================
   INTRO UNDANGAN
========================================================= */

.hero .intro {
    max-width: 720px;

    margin: 10px auto 0;

    color: #ffffff;

    font-size: 20px;

    line-height: 1.8;

    text-align: center;
}


.hero .intro strong {
    color: #ffffff;
    font-weight: 700;
}


.small,
.small-blue {
    font-weight: bold;
    letter-spacing: 5px;
}

.small-blue {
    color: #0047AB;
}


/* =========================================================
   MAIN
========================================================= */

main {
    position: relative;
    z-index: 5;

    width: calc(100% - 32px);
    max-width: 950px;

    margin: -70px auto 0;
}


/* =========================================================
   CARD
========================================================= */

.card,
.admin-card {
    background: #ffffff;

    color: #172033;

    border-radius: 30px;

    padding: 35px;

    box-shadow:
        0 20px 55px rgba(0,47,115,0.15);

    margin-bottom: 25px;
}


/* =========================================================
   DETAIL ACARA
========================================================= */

.row {
    display: grid;

    grid-template-columns: 150px 20px 1fr;

    gap: 0;

    padding: 20px 10px;

    border-bottom: 1px solid #dce5f2;

    color: #172033;

    font-size: 17px;
}


.row:last-child {
    border-bottom: none;
}


.row b {
    color: #0047AB;
    font-weight: 700;
}


/* =========================================================
   RSVP
========================================================= */

.rsvp {
    text-align: center;

    margin-top: 25px;
}


.rsvp h2 {
    color: #172033;

    margin-top: 0;

    line-height: 1.4;
}


.rsvp p {
    color: #667085;
}


.buttons {
    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-top: 20px;
}


.btn {
    display: inline-block;

    padding: 13px 24px;

    border-radius: 30px;

    border: 0;

    text-decoration: none;

    font-family: Arial, sans-serif;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.25s ease;
}


.btn:hover {
    transform: translateY(-2px);
}


.primary {
    background: #0047AB;
    color: #ffffff;
}


.outline {
    background: #ffffff;

    color: #0047AB;

    border: 2px solid #0047AB;
}


/* =========================================================
   DEADLINE
========================================================= */

.deadline {
    margin-top: 22px;

    text-align: center;

    color: #667085;

    font-size: 14px;

    line-height: 1.6;
}


.deadline strong {
    color: #0047AB;

    font-size: 15px;
}


/* =========================================================
   ANIMASI REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   SPONSOR
========================================================= */

.sponsor-section {
    width: 100%;

    background: #ffffff;

    padding: 35px 0 30px;

    overflow: hidden;

    margin-top: 30px;
}


.sponsor-title {
    text-align: center;

    margin-bottom: 22px;
}


.sponsor-title span {
    color: #0047AB;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 4px;
}


.sponsor-slider {
    position: relative;

    width: 100%;

    overflow: hidden;
}


.sponsor-track {
    display: flex;

    align-items: center;

    width: max-content;

    animation: sponsorJalan 20s linear infinite;
}


.sponsor-item {
    width: 90px;
    height: 65px;

    margin: 0 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}


.sponsor-item img {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 70px !important;
    max-height: 55px !important;

    object-fit: contain;
}


@keyframes sponsorJalan {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


.sponsor-track:hover {
    animation-play-state: paused;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    text-align: center;

    padding: 25px 15px;

    color: #667085;

    background: #ffffff;

    font-size: 14px;
}


/* =========================================================
   LOGIN
========================================================= */

.login-page,
.thanks {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #002F73,
            #0047AB
        );

    padding: 20px;
}


.login-card,
.thanks-card {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    padding: 35px;

    border-radius: 22px;

    color: #172033;
}


.brand,
.check {
    width: 65px;
    height: 65px;

    border-radius: 16px;

    background: #0047AB;

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;

    font-size: 24px;
}


.login-card input {
    width: 100%;

    padding: 12px;

    margin: 5px 0 14px;

    border: 1px solid #dce5f2;

    border-radius: 9px;
}


.login-card label {
    font-weight: bold;
}


.full {
    width: 100%;
}


.error {
    background: #fef3f2;

    color: #b42318;

    padding: 10px;

    border-radius: 8px;
}


.thanks-card {
    text-align: center;
}


.check {
    margin: auto;

    font-size: 34px;
}


/* =========================================================
   ADMIN
========================================================= */

.admin-page {
    padding: 30px 20px;
}


.admin-container {
    max-width: 1250px;

    margin: auto;
}


.top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}


.add-form {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.add-form input {
    flex: 1;

    min-width: 250px;

    padding: 12px;

    border: 1px solid #dce5f2;

    border-radius: 9px;
}


.table-wrap {
    overflow: auto;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 20px 55px rgba(0,47,115,0.15);
}


table {
    width: 100%;

    border-collapse: collapse;
}


th,
td {
    padding: 12px;

    border-bottom: 1px solid #dce5f2;

    text-align: left;
}


th {
    background: #0047AB;

    color: #ffffff;
}


.linkbox {
    display: flex;

    min-width: 320px;
}


.linkbox input {
    width: 100%;

    padding: 8px;
}


.linkbox button,
.delete {
    border: 0;

    padding: 8px 10px;

    color: #ffffff;

    background: #0047AB;
}


.delete {
    background: #b42318;

    border-radius: 7px;
}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 640px) {

    .hero {
        min-height: auto;

        padding:
            45px
            22px
            105px;

        align-items: flex-start;
    }


    .hero-inner {
        max-width: 100%;
    }


    .photo {
        width: 115px;
        height: 115px;

        margin-bottom: 15px;
    }


    .hero .large {
        font-size: 14px;

        letter-spacing: 6px;

        margin-bottom: 24px;
    }


    .hero h2 {
        font-size: 28px;

        margin: 5px 0 16px;
    }


    .hero .guest {
        font-size: 22px;

        padding: 8px 28px;

        margin-bottom: 24px;
    }


    .hero .intro {
        font-size: 18px;

        line-height: 1.75;

        margin-top: 5px;
    }


    main {
        width: calc(100% - 32px);

        margin-top: -70px;
    }


    .card {
        padding: 25px 20px;

        border-radius: 28px;
    }


    .row {
        grid-template-columns:
            105px
            15px
            1fr;

        padding: 18px 5px;

        font-size: 15px;

        line-height: 1.6;
    }


    .buttons {
        flex-direction: column;
    }


    .buttons .btn {
        width: 100%;
    }


    .sponsor-section {
        padding: 28px 0 25px;
    }


    .sponsor-item {
        width: 65px;
        height: 55px;

        margin: 0 10px;
    }


    .sponsor-item img {
        max-width: 52px !important;
        max-height: 42px !important;
    }


    .sponsor-track {
        animation-duration: 15s;
    }
}


/* =========================================================
   HP KECIL
========================================================= */

@media screen and (max-width: 390px) {

    .hero {
        padding-left: 18px;
        padding-right: 18px;
    }


    .hero h2 {
        font-size: 25px;
    }


    .hero .guest {
        font-size: 20px;
    }


    .hero .intro {
        font-size: 16px;
    }


    .row {
        grid-template-columns:
            90px
            12px
            1fr;

        font-size: 14px;
    }
}