@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

:root {
    --primary-color: #2887ff;
    --primary-color-dark: #2476da;
    --text-dark: #0a0a0a;
    --text-light: #737373;
    --extra-light: #f3f4f6;
    --white: #ffffff;
    --max-width: 1200px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.section__container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem 1rem;
}

.section__header {
    margin-bottom: 5px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.section__description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.btn:hover {
    background-color: var(--primary-color-dark);
}

.nav__logo a {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara logo dan teks */
}

.nav__logo img {
    max-height: 42px; 
    width: auto;
    object-fit: contain;
}

img {
    display: flex;
    width: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
}

nav {
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#2887ff;
    z-index:9999;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.nav__header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:1200px;
    margin:auto;
    height:70px;
    padding:0 20px;
}

.nav__logo .logo {
    display:flex;
    align-items:center;
    font-size: 1.5rem;
    color: var(--white);
}

.nav__menu__btn {
    font-size:28px;
    color:#fff;
    cursor:pointer;
}

.nav__links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;

    padding: 25px;
    background: #2887ff;

    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: .35s ease;
    z-index: 1000;
}

.nav__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav__links a {
    color:#fff;
    font-weight:600;
    font-size:15px;
}

.nav__links a:hover {
    color:#dbeafe;
}

.nav__btns {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header {
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding-inline: 0;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: url("../img/SIPABUS.png") no-repeat center center;
    background-size: 98% 98%; /* penuh kiri kanan */

    border-radius: 0px;
    z-index: -1;
}
.header__container {
    min-height: 600px;
    max-height: 100px;
}
.header__content {
    padding: 4rem 1rem;
}

.header__content p {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}
.header__content h1 {
    margin-bottom: 2rem;
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 5.5rem;
    text-align: center;
}

.header__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.header__btns .btn {
    padding: 1rem 2rem;
}
.header__btns a {
    padding: 9px 13px;
    font-size: 1, 5rem;
    color: var(--primary-color);
    background-color: var(--white);
    border-radius: 100%;
}
.header__btns a:hover {
    color: var(--white);
    background-color: var(--primary-color);
}

.destination__container :is(.section__header, .section__description) {
    text-align: center;
    margin-inline-start: unset;

}

.destination__grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 420px));
    justify-content: center;
    gap: 2rem;
}


.destination__card img {
    border-radius: 1.5rem;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    
}

.destination__card__details {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.destination__card__details h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    columns: var(--text-dark);
}
.destination__card__details p {
    columns: var(--text-light);
}
.destination__ratings {
    padding: 5px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 1rem;
    transition: 0.3s;
}

.destination__card:hover .destination__ratings {
    background-color: var(--primary-color-dark);
}

.journey__grid {
    margin-top: 2rem;
    display: grid;
    gap: 0 1rem;
}

.journey__card {
    position: relative;
    isolation: isolate;
    padding-top: 4rem;
    overflow: hidden;
}

.journey__card__bg {
    padding: 2rem;
    background-color: var(--extra-light);
    border-bottom-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.journey__card__bg span {
    display: inline-block;
    margin-bottom: 4rem;
    font-size: 1.75rem;
    color: var(--primary-color);
}

.journey__card__bg h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.journey__card__content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: var(--primary-color);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    transition: 0.3s;
}
.journey__card:hover .journey__card__content {
    top: 0;
}

.journey__card__content span {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 7px 9px;
    font-size: 1rem;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 100%;
}

.journey__card__content h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
}

.journey__card__bg p {
    color: var(--extra-light);
}

.showcase__container {
    display: grid;
    gap: 2rem;
    overflow: hidden;
}

.showcase__image img {
    max-width: 400px;
    margin-inline: auto;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

.showcase__content h4 {
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.showcase__content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.showcase__content .btn {
    width: 100%;
    margin-top: 2rem;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    background-image: url(img/showcase2.jpeg);
    background-size: cover;
    background-position: center center;
    background-repeat: repeat;
    border-radius: 5px;
}

.showcase__btn {
    margin-top: 1rem;  
    display: flex;
    justify-content: flex-start; /* tombol tidak melebar ke tengah */
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0.7rem 1.3rem; /* lebih kecil & compact */
    font-size: 0.95rem;

    width: fit-content; /* penting: biar tidak melebar */
    max-width: max-content;

    white-space: nowrap;

    color: #fff;
    background-color: var(--primary-color);
    border-radius: 5rem;
    border: none;

    cursor: pointer;
    transition: 0.3s ease;

    text-decoration: none;
}

.banner__container {
    display: grid;
    gap: 2rem;
}

.banner__card {
    padding: 2rem 1rem;
    text-align: center;
    background-color: var(--extra-light);
    border-radius: 2rem;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.banner__card h4 {
    font-size: 5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.banner__card p {
    color: var(--text-light);
}

.discover__grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

.discover__card {
    padding: 2rem 1rem;
    text-align: center;
    transition: 0.3s;
    border-radius: 1rem;
}

.discover__card:hover {
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.discover__card span {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 10px 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(40, 135, 255, 0.1);
    border-radius: 100%;
}

.discover__card h4 {
    max-width: 150px;
    margin-inline: auto;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.destination__card p {
    color: var(--text-light);
}

footer {
    background-color: var(--extra-light);
}

.footer__container {
    display: grid;
    gap: 4rem 2rem;
}

.footer__col p {
    max-width: 300px;
    margin-block: 2rem;
    color: var(--text-light);
}

.footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__socials a {
    display: inline-block;
    padding: 7px 10px;
    font-size: 1.25rem;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 100%;
}

.footer__socials a:hover {
    background-color: var(--primary-color-dark);
}

.footer__col h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.footer__links {
    display: grid;
    gap: 1rem;
}

.footer__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.footer__links a:hover {
    color: var(--primary-color);
}

.footer__links a span {
    font-size: 1.25rem;
}

.footer__col form {
    display: grid;
    gap: 1rem;
}

.footer__col input {
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--text-light);
    border-radius: 5px;
}

.footer__col input::placeholder {
    color: var(--text-light);
}

.footer__col .btn {
    border-radius: 5px;
}

.footer__bar {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

@media (width > 540px) {

    .journey__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase__container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .banner__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .discover__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__col:last-child {
        grid-area: 2/1/3/2;
    }
}
@media (width > 768px) {
     nav{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #2887ff;
        z-index: 999;
        padding: 0;
        height:80px;
    }
    .nav__header{
        max-width: 100%;
        width: 100%;
        overflow: visible;
        padding: 0 30px;
        display:flex;
        align-items:center;
        margin-left:auto;
    }
    .nav__logo .logo {
        color: var(--text-dark);
    }
    .nav__menu__btn {
        display: none;
    }

    .nav__links {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        width: auto;
        background: transparent;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav__links a {
        color: #fff;
    }

    .nav__links a:hover {
        color: #dbeafe;
    }

    .nav__btns {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
    }

    .nav__btns .button {
         padding: 10px 20px; /* BUKAN 75rem */
    }
    header {
        margin-top: 80px;
    }
    .header__container {
        grid-template-columns:
            minmax(0, 1fr)
            repeat(5, minmax(0, calc(var(--max-width) / 5)))
            minmax(0, 1fr);
    }
    .header__content {
        grid-column: 2/4;
        padding-block: 8rem;
    }
    .header__content :is(p, h1) {
        text-align: left;
    }
    .header__btns {
        justify-content: flex-start;
    }
    .header__image {
        grid-column: 4.5/8;
        position: relative;
        isolation: isolate;
        height: 100%;
    }
    .header__image img {
        position: absolute;
        top: 2rem;
        left: 0;
        height: 100%;
        width: unset;
    }
   
    .journey__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .showcase__container {
        grid-template-columns: repeat(3, 1fr);
    }

    .showcase__content {
        grid-column: 2/4;
    }

    .banner__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .discover__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .footer__col:last-child {
        grid-area: unset;
    }
}

@media (width > 1200px) {
    .header__content {
        padding-inline: 1rem 0;
    }

    .destination__grid {
        gap: 2rem;
    }
}

@media (min-width: 1400px){
    .header__container{
        min-height: 550px;
    }
}

.destination__card .detail-btn{
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #2887ff;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.destination__card .detail-btn:hover{
    background: #2476da;
    transform: translateY(-2px);
}

.user-profile{
    position:relative;
    cursor:pointer;
}

.profile-info{
    display:flex;
    align-items:center;
    gap:10px;
    background:rgba(255,255,255,.12);
    padding:8px 14px;
    border-radius:50px;
    transition:.3s;
}

.profile-info:hover{
    background:rgba(255,255,255,.2);
}

.profile-info img{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #fff;
}

.profile-text h5{
    color:#fff;
    margin:0;
    font-size:14px;
    font-weight:600;
}

.profile-text span{
    color:#e2e8f0;
    font-size:12px;
}

.profile-dropdown{
    position:absolute;
    top:60px;
    right:0;
    background:#fff;
    min-width:180px;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.15);

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:.3s;
}

.user-profile:hover .profile-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.profile-dropdown a{
    display:block;
    padding:12px 15px;
    text-decoration:none;
    color:#1e293b;
    font-size:14px;
}

.profile-dropdown a:hover{
    background:#f1f5f9;
}

/* Mobile */
@media (max-width: 768px) {

  .nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Profil/Login di paling kanan */
  .nav__btns {
    order: 3;
    margin-left: 10px;
  }

  /* Hamburger di tengah sebelum profil */
  .nav__menu__btn {
    order: 2;
    display: block;
    margin-left: auto;
  }

  /* Logo tetap di kiri */
  .nav__logo {
    order: 1;
  }

  /* Kecilkan ukuran profil */
  .user-profile {
    padding: 4px 8px;
  }

  .profile-info img {
    width: 32px;
    height: 32px;
  }

  .profile-text {
    display: none; /* hanya foto profil */
  }

  .nav__btns .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
.logout-form {
    margin: 0;
    padding: 0;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 8px;

    width: 100%;
    padding: 12px 15px;

    font-size: 14px;
    font-weight: 500;

    color: #1e293b;
    background: none;
    border: none;

    text-align: left;
    cursor: pointer;

    text-decoration: none;
    transition: 0.2s ease;
}

.logout-link:hover {
    background: #f1f5f9;
    color: #2563eb; /* sama kayak hover menu profile kamu */
}