/* styles.css */
:root {
    --primary-color: #0058a3;
    --secondary-color: #dd5f1b;
    --background-color: #f0f4f8;
    --card-color: #767474;
    --button-color: #00b7ff;
    --text-color: #333;
    --box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    --gradient-blue: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
    --gradient-orange: linear-gradient(135deg, #d06a3b, #dd5f1b, #b8490f);
}
* {
  outline: 0px solid rgba(255, 0, 0, 0.3);
} /*sementara*/

html {
  scroll-behavior: smooth;
}


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* cegah scroll horizontal */
}

h4 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle, rgba(27, 27, 27, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%),
        url('https://asset-perbanas.netlify.app/banner/RPL.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    max-width: 100%;
    min-height: 80vh; height: auto;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.hero h3 {
    font-weight: normal;
    margin-bottom: 20px;
}

.hero p {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--background-color);
    font-size: 1.2rem;
    text-align: center;
}

.hero span {
    font-weight: normal;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.hero .btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: var(--box-shadow);
}

.hero .btn:hover {
    background: #931787;
    transition: all 0.3s ease;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--box-shadow);
}

.hero .logo-container {
    text-align: right;
    padding-right: 40px;
    padding-top: 0px;
    margin-top: -55px;
    margin-bottom: 150px;
}


.hero img {
    /*filter: brightness(0) invert(1);*/
    height: 40px;
    margin: 10px;
}

/* Section umum */
section {
    padding: 15px 100px;
    margin: auto;
}

/*section:nth-child(odd) {
    background: #e3e3e3;
    }*/


section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

section p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: justify;
}

/*jadwal kuliah*/
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom auto width */
    border-radius: 999px;
    /* radius sisi luar */
    border: 3px solid var(--primary-color);
    margin: auto;
    overflow: hidden;
    /* supaya radius keliatan */
    box-shadow: var(--box-shadow);
    background-color: var(--gradient-blue);
}

/* Kolom umum */
.col {
    display: flex;
    flex-direction: column;
    padding: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: normal;
    align-items: center;
    justify-content: center;
}

.col h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--background-color);
}

.col p {
    margin: 0;
    font-size: 1rem;
    color: var(--background-color);
}


/* Kolom pertama warna biru */
.col1 {
    background: var(--background-color);
    color: var(--primary-color);
}

.col1 h3 {
    color: var(--secondary-color);
}

/* Kolom kedua warna abu muda */
.col2 {
    background: var(--primary-color);
    color: var(--background-color);
    border-right: 2px solid #ddd;
}

/* Kolom ketiga warna putih */
.col3 {
    background: var(--primary-color);
    color: var(--background-color);
}

/* Info Singkat */
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.info-grid div {
    padding: 10px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.info-grid img {
    width: 80px;
    margin-bottom: 0px;
}

.info-grid p {
    margin: 0;
    color: #333;
    text-align: center;
}

.info-grid div:hover,
.reqs div:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.akreditasi {
    display: inline-block;
    background: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);

}

.baiksekali {
    background-color: var(--background-color);
    color: #000000;
    border: solid 1px var(--card-color);
}

.unggul {
    background-color: var(--background-color);
    color: #000000;
    border: solid 1px var(--card-color);
}

.iacbe {
    background-color: var(--background-color);
    color: #000000;
    border: solid 1px var(--card-color);
}

.iacbe::after {
    content: "";
    width: 60px;
    height: 20px;
    background-image: url('https://trial-uhwperbanas.netlify.app/asset/logo/iacbe-text.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    margin: 0px;
}


/* Program Studi */
.programs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.program-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 5px 15px 5px;
    text-align: center;
    background: #fff;
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.program-card h5 {
    color: #003366;
    margin-bottom: 10px;
    font-size: larger;
}
.program-card p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 10px;
    text-align: center;
}

/* Persyaratan */
.reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.reqs div {
    flex: 1 1 300px;
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    border: solid 2px var(--primary-color);
    box-shadow: var(--box-shadow);
}

.reqs h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
}

ul {
    list-style: none;
    /* hilangkan bullet bawaan */
}

ul li {
    position: relative;
    padding-left: 0px;
    /* kasih jarak untuk icon */
    margin-bottom: 10px;
}

ul li::before {
    content: "\f0da";    /* fa-caret-right */
    font-family: "Font Awesome 6 Free";    /* wajib */
    font-weight: 900;    /* solid */
    position: absolute;
    left: -30px;
    top: 0;
}

/*step daftar*/
.steps-horizontal {
    max-width: 100%;
    margin: auto;
    text-align: center;
}

.steps-horizontal h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.steps-row {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    overflow-x: hidden;

}

.step {
    display: flex;     /* sejajarkan isi horizontal */
    flex: 1 1 auto;  
    align-items: center;     /* biar rata tengah vertikal */
    background: linear-gradient(135deg, #a2b6c9, #ffffff, #96b3ce);
    border-radius: 12px;
    padding: 15px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 100%;
    word-wrap: break-word;      /* bungkus kata panjang */
    overflow-wrap: break-word;  /* modern support */
    white-space: normal;        /* biar teks bisa turun ke bawah */
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.step:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    position: absolute;
    /* jarak angka ke teks */
}

.step-text {
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: var(--text-color);
    max-width: 150px;
    padding: 5px 10px;
    position: relative;
    margin-left: 60px;
}

/* Panah penghubung */
.step::after {
    content: "\f0da";
    /* fa-play */
    font-family: "Font Awesome 6 Free";
    /* wajib */
    font-weight: 900;
    /* solid */
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    font-size: 40px;
    color: var(--primary-color);
    z-index: -10;
}


.step:last-child::after {
    content: "";
}

/*button*/
.btn-wa {
    display: inline-block;
    background: url("https://asset-perbanas.netlify.app/logo/WhatsAppButtonGreenSmall.png") no-repeat center center;
    background-size: contain;
    /* supaya pas */
    width: 200px;
    height: 50px;
    border: none;
    cursor: pointer;
    text-indent: -9999px;
    /* sembunyikan teks */
    overflow: hidden;
}

.btn-wa:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}



/* Kontak */
.kontak {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.kontak a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.kontak h2 {
    margin-bottom: 20px;
    color: var(--background-color);
}

.kontak p {
    font-size: 1.1rem;
    margin: 10px 0;
    text-align: center;
    color: var(--background-color);
}

.kontak p i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.kontak .btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--secondary-color);
    color: var(--background-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bolder;
    box-shadow: var(--box-shadow);
}

.kontak .btn:hover {
    color: var(--background-color);
    transition: all 0.3s ease;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);

}

/* Tombol Back to Top */
.back-to-top {
    position: fixed;
    bottom: 60px;
    left: 50%;                  /* posisikan di tengah */
    transform: translateX(-50%);/* geser setengah ukurannya biar benar2 center */
    text-align: center;
    align-items: center;
    background: var(--primary-color);
    opacity: 0.8;
    color: white;
    font-size: 20px;
    padding: 12px 20px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: none;
    /* default hidden */
    z-index: 1000;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    background: var(--primary-color);
}

/* Footer */
footer {
    background: #002244;
    color: #ffffff6c;
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
}

/* Responsif teks */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h3 {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 20px;
    }
    .container {
        grid-template-columns: 1fr;
        /* hp: 1 kolom */
        border-radius: 20px;
        /* radius dikurangi biar pas */
    }

    .hero .logo-container {
        text-align: center;
        padding: 0;
        margin: -20 0 120px 0;
    }

    .hero img {
        margin-bottom: 20px;
        /*filter: brightness(0) invert(1);*/
        height: 40px;
    }

    .info-grid {
        display: grid; /* wajib supaya grid aktif */
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* jarak antar item */
    }

    .info-grid div {
        text-align: center; /* bikin isi div (img + p) rata tengah */
    }

    .info-grid img {
        width: 60px;
        margin-bottom: 8px;
    }

    .info-grid p {
        margin: 0;
        color: #333;
        text-align: center;
    }


    .programs {
    grid-template-columns: 1fr;
    }

    .akreditasi {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .col {
        padding: 15px;
        font-size: 14px;
    }

    .col2 {
        background: var(--primary-color);
        color: var(--background-color);
        border-bottom: 2px solid #ddd;
        border-right: none;
    }

    .step {
        width: 80%;        /* biar full */
        max-width: 100%;        /* hilangkan batasan kalau ada */
        word-wrap: break-word;      /* bungkus kata panjang */
        overflow-wrap: break-word;  /* modern support */
        white-space: normal;        /* biar teks bisa turun ke bawah */        
    }

    .steps-row {
        flex-direction: column;
        gap: 30px;
    }

    .step-text {
        max-width: none;
        margin-left: 60px;
        /* hilangkan batasan kalau ada */
    }

    .step::after {
        content: "⬇";
        top: auto;
        right: 50%;
        bottom: -40px;
        transform: translateX(50%);
        font-size: 30px;
        z-index: 0;
    }

    section p {
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
        margin-top: 50px;
        align-items: none;
    }

    .hero h3 {
        font-size: 1rem;
    }

    .hero .logo-container {
        text-align: center;
        padding: 0 0 100px 0;

    }    
    .hero img {
        margin-bottom: 150px;
        /*filter: brightness(0) invert(1);*/
        height: 30px;
        margin: 0 0 0 0;
    }

    .back-to-top {
        bottom: 80px;
        padding: 10px 15px;
        font-size: 16px;
    }

}
/* akhir styles.css */
