:root {
    --primary: #24A6E0;
    --secondary: #007fb9;
    --footer: #4e4e4e;
    --white: #f7f8f3;
    --black: #000000;
    --bg: #ffffff;
    --transition: all 0.3s ease-in-out;
    --border-radius: 10px;

}

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&family=Noto+Sans+JP:wght@100..900&family=Poppins:wght@400;700&display=swap');

body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.container{
    padding-top: 6rem;
}

/* button */
.btn-brand{
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-brand:hover{
    background-color: var(--secondary);
    border-color:var(--secondary);
    color: var(--white);
}

/* Navbar */
.navbar-nav{
    gap: 45px;
}

.nav-link{
    font-weight: 600;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--black);
}

.no-arrow::after {
    display: none !important;
}

.no-bg {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.no-bg:hover, 
.no-bg:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}


/* Beranda */
#hero{
    min-height: 100vh;
    background: url(../img/hero.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/*  */
.sub {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  padding: 10px;
}

.sub::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background-color: var(--black);
}

.desc{
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem auto;
    color: #6c757d;
}

/* Galeri */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.20);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    transform: translateY(100%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 10px 15px;
}

/* Berita */
.card {
  border-radius: var(--border-radius);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-title {
  color: var(--primary);
}

.modal-header {
    border-bottom: none;
    padding: 15px 20px 0;
}

.modal-body {
    padding: 15px 15px;
}

.modal-body img {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit:contain;
}


.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.btn-close-modal:hover {
    color: #ff6b6b;
}

/* Berita dan informasi */
.news-box {
    max-height: 450px;      
    overflow-y: auto;      
    padding-right: 10px;
}

.news-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 10px;
    height: 185px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 18px;
    margin-left: 0;
    margin-right: 0;
}

.news-img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 165px;
    object-fit: cover;
}

.card1 h4{
    background-color: var(--primary);
}

/* Pencarian */
.search {
    max-width: 420px;
    position: relative;
}

.search input {
    height: 45px;
    padding-left: 45px;
    padding-right: 150px; /* ruang untuk tombol Cari + X */
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
}

.search .icon-search {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #777;
}

.search .btn-search {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    border-radius: 50px;
    padding: 6px 18px;
}

.search .btn-clear {
    position: absolute;
    top: 50%;
    right: 75px; /* posisinya di antara input & tombol cari */
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 0;
}

/* Footer */
footer{
    background-color: var(--footer);
}
footer, a{
    color: var(--white);
}

/* VISI MISI */
.visi-title,
.misi-title {
    font-size: 1.4rem;
}

.visi-text,
.misi-list li {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* STRUKTUR */
.struktur-img {
    width: 100%;
    border-radius: 10px;
}

/* TABLET */
@media (max-width: 992px) {
    .navbar-nav{
        gap: 3px;
    }
    .section-header h2.display-4 {
        font-size: 2rem;
    }

    .visi-title,
    .misi-title {
        font-size: 1.3rem;
    }

    .visi-text,
    .misi-list li {
        font-size: 1rem;
    }

    .kontak-title {
        font-size: 2rem;
    }

    .kontak-desc {
        font-size: 1rem;
    }

    .kontak-alamat,
    .kontak-form {
        padding: 25px !important;
    }

    .ratio {
        margin-top: 15px;
    }

    .news-img {
        width: 100%;  
        height: 100px;
    }

    .news-card {
        height: auto;
    }

    .news-card h5 {
        padding-top: 10px;
    }

    .flex-grow-1 {
    min-width: 0;
}

}

@media (max-width: 767.98px) { 
    .hero-anim h3 {
        font-size: 1.75rem !important; 
        padding-top: 1rem !important;
    }
    
    #berita .content,
    #bidang .content {
        text-align: center;
    }

    .news-box {
        padding: 1rem !important;
    }

    .news-card .col-md-8 {
        text-align: center;
    }
}

@media (max-width: 600px) {
	#hero h3 {
    	font-size: 2.1rem;
	}

	#hero p {
    	font-size: 1.1rem;
    	margin-bottom: 12px;
	}
    .section-header {
        padding-bottom: 20px !important;
    }

    .navbar img{
        width: 70px;
        height: 40px;
    }

    .section-header h2.display-4 {
        font-size: 1.6rem;
    }

    .sub {
        font-size: 1.1rem;
    }

    .section-header h5 {
        font-size: .95rem;
    }

    .visi-title,
    .misi-title {
        font-size: 1.2rem;
    }

    .visi-text,
    .misi-list li {
        font-size: .95rem;
    }

    .misi-list {
        padding-left: 18px;
    }

    .visi-misi-title {
        font-size: 1.4rem;
    }

    .struktur-title {
        font-size: 1.4rem;
    }

    #kontak {
        padding-top: 20px;
    }

    .kontak-title {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .kontak-desc {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .col-lg-5,
    .col-lg-7 {
        padding: 0 8px;
    }

    .kontak-alamat,
    .kontak-form {
        padding: 18px !important;
    }

    .kontak-alamat p {
        font-size: 0.95rem;
    }

    /* Form label & input */
    .form-label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 9px 12px;
    }

    /* Map */
    iframe {
        height: 260px !important;
    }
}
