/* ==================== HR ==================== */
.hr-primary {
    border: 2px solid #3a9bd5;
    width: 30%;
    margin-left: 0;
    margin-bottom: 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: relative;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
     display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffb700;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.navbar-brand img {
    height: 40px;
    
}

.site-info {
    display: flex;
    flex-direction: column;

    transition: all 0.3s ease-in-out;
}

.site-name {
    color: #000;
    font-size: 19px;
    font-weight: 700;
    line-height: 20px;
    margin: 0 0 3px;
}

.site-description {
    color: #2894af !important;
    font-size: 12px;
    line-height: 12px;
}

.navbar-toggler {
    margin-left: auto;
    display: none;
    border: none;
}
.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-collapse {
    align-items: center;
    justify-content: flex-end;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-nav {
    margin-left: auto;
}
.navbar-nav .nav-link {
	color:#ffb700;
    padding: 8px 15px;
    font-weight: 500;
	font-size: 16px;
}
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 10px;
}
.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #1a5276;
}

/* ==================== LOGO ==================== */
.desktop-only {
    display: flex;
    align-items: center;
    position: absolute;
    top: 10px;
    left: 20px;
}
.desktop-only img {
    height: 70px;
    margin-right: 10px;
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 10;
}
.mobile-only { display: none; }

/* Logo hover effect */
.logo-wrapper { width: 80px; height: 80px; position: relative; transition: transform 0.3s; }
.main-logo { width: 80px; height: 80px; border-radius: 10px; background-color: #199ec9; padding: 10px; z-index: 2; position: relative; transition: transform 0.3s; }
.bg-icon, .bg-icon2 { width: 80px; height: 80px; border-radius: 10px; background-color: rgba(25, 158, 201, 0.1); position: absolute; top: 0; left: 0; z-index: 1; transition: all 0.3s; transform: scale(0); }
.bg-icon { transform-origin: bottom left; }
.bg-icon2 { transform-origin: top right; }
.section-logo:hover .bg-icon { transform: scale(1) translate(-30px, 25px); }
.section-logo:hover .bg-icon2 { transform: scale(1) translate(25px, -30px); }
.section-logo:hover .main-logo { transform: scale(1.15); }

/* ==================== HERO SECTION ==================== */
.atas-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 80px;
    background: url('../../images/latar2.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
    flex-wrap: wrap;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 80% 100%, 0% 85%);
}
.atas-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: -1;
}
.atas-content { max-width: 100%; }
.atas-content h1 { font-size: 48px; margin-bottom: 20px; font-weight: bold; }
.atas-content h1 span { color: #1ab9d1; }
.atas-content p { font-size: 16px; line-height: 1.6; color: #ddd; }
.atas-content .btn {
    margin-top: 30px;
    display: inline-block;
    background-color: #1ab9d1;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s;
}
.atas-content .btn:hover { background-color: #1399aa; }
.atas-image { max-width: 45%; text-align: right; }
.atas-image img { width: 100%; max-width: 600px; height: auto; }
.wave-divider {
    position: relative;
    background: white;
    height: 80px;
    margin-top: -50px;
    z-index: 0;
    clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0% 100%);
}

/* ==================== SEJARAH ==================== */
.konten-sejarah { padding: 80px 20px; background-color: #f9f9f9; position: relative; z-index: 2; }
.konten-sejarah .container { max-width: 900px; margin: 0 auto; text-align: justify; }
.konten-sejarah h2 { font-size: 2.5rem; margin-bottom: 30px; color: #333; }
.konten-sejarah p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 20px; text-align: left; }

/* ==================== MENU ITEM ==================== */
.menu-item { background: #f8f9fa; border-radius: 16px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; height: 150px; padding: 10px; }
.menu-item:hover { background: #e9ecef; transform: translateY(-5px); box-shadow: 0 0 15px rgba(0,123,255,0.2); }
.menu-icon { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.menu-text { margin-left: 15px; font-size: 14px; font-weight: 700; color: #1a5276; transition: color 0.3s; }
.menu-text:hover { color: #0056b3; }
.menu-description { font-size: 12px; color: #6c757d; margin-left: 15px; margin-top: 5px; line-height: 1.4; transition: color 0.3s; }
.menu-description:hover { color: #495057; }

/* ==================== PETA ==================== */
.peta-item { cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; border-radius: 12px; overflow: hidden; }
.peta-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.peta-item img { height: 180px; object-fit: cover; border-radius: 12px 12px 0 0; }
.peta-item .card-body { padding: 12px; background: #f9f9f9; }
.peta-item h6 { font-size: 1rem; font-weight: 600; color: #333; }
#petaModal .modal-content { background: #000; border-radius: 0; }
#petaModal h5 { font-size: 1.25rem; color: #fff; }
#petaModal img { max-width: 100%; height: auto; border-radius: 8px; margin-top: 10px; }
.zoom-container { overflow: auto; max-height: 80vh; }
.zoom-image { transition: transform 0.3s; cursor: zoom-in; }
.zoomed { transform: scale(2); cursor: zoom-out; }

/* ==================== PROFILE ==================== */
.profile-img { width: 120px; height: 120px; object-fit: cover; border: 3px solid #ddd; }
.profile-card { transition: transform 0.2s, box-shadow 0.2s; }
.profile-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px rgba(0,0,0,0.1); }
#pemerintahan-section .card { transition: transform 0.3s; }
#pemerintahan-section .card:hover { transform: scale(1.03); }

/* ==================== PEJABAT SLIDE ==================== */
.pejabat-slide { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: transform 0.4s, box-shadow 0.4s; text-align: center; }
.pejabat-slide:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.pejabat-slide img { width: 100%; height: 250px; object-fit: cover; }
.pejabat-slide h5 { margin: 15px 0 5px; font-weight: 600; }
.pejabat-slide p { margin: 0 0 15px; font-size: 14px; color: #666; }

/* ==================== TOP BAR ==================== */
.top-bar { background: #022140; color: white; padding: 8px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar-contact span { margin-right: 15px; }
.top-bar-social a { color: white; display: inline-block; width: 25px; height: 25px; line-height: 25px; text-align: center; border-radius: 50%; transition: all 0.3s; }
.top-bar-social a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .navbar { justify-content: space-between; }
    .site-info { padding-left: 10px; }
    .desktop-only { display: none; }
    .mobile-only { display: flex !important; align-items: center; }
    .mobile-only img { height: 50px; margin-right: 10px; position: static; }

    .navbar-collapse {
        position: fixed; top: 0; left: 0; width: 75%; height: 100%;
        background: white; z-index: 1010; padding-top: 60px;
        transform: translateX(-100%); transition: transform 0.3s;
        overflow-y: auto; flex-direction: column !important;
    }
    .navbar-collapse.show { transform: translateX(0%); }
    .navbar-nav { flex-direction: column; padding: 20px; margin-left: 0; }
    .navbar-toggler { display: block; }
    .main-logo { width: 60px; height: 60px; padding: 8px; }

    .atas-section { flex-direction: column; text-align: center; padding: 40px 30px; }
    .atas-content h1 { font-size: 36px; }
    .atas-content p { font-size: 15px; }
    .atas-image { text-align: center; margin-top: 30px; }
}

@media (max-width: 767px) {
    .top-bar { display: none; }
    .atas-content h1 { font-size: 28px; }
    .atas-content p { font-size: 14px; }
    .atas-content .btn { padding: 10px 20px; font-size: 14px; }
    .wave-divider { height: 60px; clip-path: polygon(0 35%, 100% 0%, 100% 100%, 0% 100%); }
    .konten-sejarah { padding: 60px 15px; }
    .konten-sejarah h2 { font-size: 1.8rem; margin-bottom: 20px; }
    .konten-sejarah p { font-size: 1rem; line-height: 1.6; }
    .peta-item img { height: 140px; }
    .peta-item h6 { font-size: 0.9rem; }
    #petaModal h5 { font-size: 1rem; }
    .zoomed { transform: scale(2.5); }
    .profile-img { width: 80px; height: 80px; }
}
