
/* ==========================================
   WEBSITE H. USMAN MARHAM
   INNER HERO - 4 HALAMAN

   Tentang Usman
   Pengabdian
   Publikasi
   Kontak

   Background panorama merah putih
========================================== */

.inner-hero {
    --inner-navy: #071b40;
    --inner-yellow: #ffdf34;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;

    box-sizing: border-box;
    width: 100%;
    min-height: 350px;

    background-color: var(--inner-yellow);

    background-image:
        url('/assets/inner-hero-background.png');

    background-repeat: no-repeat;

    /*
       Menjaga lebar gambar mengikuti layar,
       tanpa memperbesar berdasarkan tinggi Hero.
    */
    background-size: 100% auto;
    background-position: center bottom;

    border-bottom: 8px solid var(--inner-navy);
}

/* DEKORASI CSS LAMA DINONAKTIFKAN */
.inner-hero::before,
.inner-hero::after {
    content: none !important;
    display: none !important;
}

/* AREA KONTEN */
.inner-hero .inner-hero-content {
    position: relative;
    z-index: 2;

    box-sizing: border-box;

    width: min(1200px, calc(100% - 48px));
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-top: 55px;
    padding-bottom: 145px;
}

/* LABEL */
.inner-hero .inner-hero-label {
    display: block;

    margin: 0 0 14px;

    color: var(--inner-navy);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* JUDUL */
.inner-hero h1 {
    display: block;

    max-width: 900px;

    margin: 0 0 17px;
    padding: 0;

    color: var(--inner-navy);

    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;

    line-height: 1.12;
    letter-spacing: -1.5px;

    text-align: left;
    overflow-wrap: break-word;
}

/* DESKRIPSI */
.inner-hero p {
    max-width: 680px;

    margin: 0;
    padding: 0;

    color: var(--inner-navy);

    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;

    text-align: left;
}

/* LAPTOP */
@media (max-width: 1200px) {
    .inner-hero .inner-hero-content {
        width: calc(100% - 64px);
    }

    .inner-hero h1 {
        font-size: clamp(36px, 4.5vw, 54px);
    }
}

/* TABLET */
@media (max-width: 920px) {
    .inner-hero {
        min-height: 320px;
        background-size: 100% auto;
        background-position: center bottom;
    }

    .inner-hero .inner-hero-content {
        width: calc(100% - 48px);

        padding-top: 48px;
        padding-bottom: 125px;
    }

    .inner-hero h1 {
        max-width: 100%;

        font-size: clamp(34px, 5vw, 48px);
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .inner-hero p {
        max-width: 600px;
        font-size: 15px;
        line-height: 1.65;
    }
}

/* SMARTPHONE */
@media (max-width: 640px) {
    .inner-hero {
        min-height: 300px;
        border-bottom-width: 6px;

        /*
           Sedikit diperbesar agar lengkungan
           tetap terlihat di layar kecil.
        */
        background-size: auto 100%;
        background-position: 62% bottom;
    }

    .inner-hero .inner-hero-content {
        width: calc(100% - 36px);

        padding-top: 40px;
        padding-bottom: 125px;
    }

    .inner-hero .inner-hero-label {
        font-size: 11px;
        letter-spacing: 1.2px;
        margin-bottom: 12px;
    }

    .inner-hero h1 {
        max-width: 100%;

        font-size: clamp(32px, 8vw, 42px);
        font-weight: 900;

        line-height: 1.15;
        letter-spacing: -1px;
        margin-bottom: 14px;
    }

    .inner-hero p {
        max-width: 100%;

        font-size: 14px;
        font-weight: 500;
        line-height: 1.65;
    }
}

/* SMARTPHONE KECIL */
@media (max-width: 380px) {
    .inner-hero {
        min-height: 290px;
    }

    .inner-hero .inner-hero-content {
        width: calc(100% - 30px);

        padding-top: 35px;
        padding-bottom: 120px;
    }

    .inner-hero h1 {
        font-size: 30px;
    }

    .inner-hero p {
        font-size: 13px;
    }
}
