/*
Theme Name: Yhmm
Theme URI: http://example.com/
Author: Nama Anda
Author URI: http://example.com/
Description: Tema WordPress berbasis Bootstrap 5.
Version: 1.2.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive, modern
Text Domain: Yhmm
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-900: #0b1f35;
    --primary-700: #11385b;
    --primary-500: #1f6dc5;
    --primary-300: #5da2f0;
    --accent-500: #f5a524;
    --neutral-900: #111928;
    --neutral-700: #1f2a37;
    --neutral-500: #6b7688;
    --neutral-200: #e5e7eb;
    --neutral-100: #f5f7fb;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 24px 48px rgba(9, 20, 42, 0.12);
    --gradient-primary: linear-gradient(135deg, #0f4c81, #195b9a, #278bd6);
    --gradient-dark: linear-gradient(160deg, rgba(8, 17, 35, 0.95), rgba(12, 53, 109, 0.9));
}
/* === FIX BURGER MENU TIDAK MUNCUL & UBAH WARNA MENJADI HIJAU === */
/* HEADER – ukuran mengecil di mobile */
/* MOBILE (max 576px): kecil dan tetap rapi */
/* MOBILE */
@media (max-width: 576px) {

    /* Navbar tinggi lebih kecil */
    .navbar {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* Logo mengecil */
    .navbar .brand-logo {
        max-height: 28px !important;  /* atur sesuai kebutuhan */
    }

    /* Jika pakai brand text */
    .navbar .brand-mark {
        font-size: 16px !important;
    }

    /* Jarak antara logo & toggler */
    .navbar .navbar-brand {
        gap: 8px !important;
    }

    /* Toggler lebih kecil */
    .navbar-toggler {
        padding: 4px 8px !important;
        font-size: 14px !important;
    }

    .navbar-toggler-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /* Nav link lebih kecil */
    .navbar-nav .nav-link {
        font-size: 14px !important;
        padding: 6px 0 !important;
    }

    /* Tombol Hubungi Kami mengecil */
    .navbar .btn.btn-gradient {
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }

    /* Kurangi jarak menu ketika expand */
    .navbar-nav {
        gap: 6px !important;
    }
}
/* ===========================
   HERO MOBILE OPTIMIZATION
   =========================== */
@media (max-width: 576px) {

    /* Panel hero mengecil */
    .hero-actions-panel {
        padding: 12px 0 !important;
    }

    /* Wrapper lebih rapat */
    .hero-action-wrapper {
        gap: 10px !important;
    }

    /* Judul lebih kecil */
    .hero-action-wrapper h2 {
        font-size: 20px !important;
        line-height: 1.2 !important;
        margin-bottom: 4px !important;
    }

    /* Subjudul lebih kecil */
    .hero-action-wrapper p {
        font-size: 12px !important;
    }

    /* Tombol kecil & rapi */
    .hero-action-wrapper .btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }

    /* Jarak antar tombol lebih kecil */
    .hero-action-wrapper .d-flex {
        gap: 8px !important;
    }
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--neutral-100);
    color: var(--neutral-700);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.letter-spacing-1 {
    letter-spacing: 0.08em;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: #fff;
}

.site-header .top-bar {
    background: var(--gradient-primary);
    font-size: 0.85rem;
    padding: 0.65rem 0;
}

.navbar {
    border-bottom: 1px solid rgba(17, 24, 40, 0.05);
}

.navbar-brand .brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.navbar-brand .brand-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-900);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--neutral-700);
    padding: 0.5rem 0;
    margin: 0 0.85rem;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.current-menu-item .nav-link {
    color: var(--primary-500);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.current-menu-item .nav-link::after {
    transform: scaleX(1);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gradient:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 92, 211, 0.3);
}

.btn-outline-light:hover {
    color: #0f4c81;
    background-color: #fff;
}

/* Hero */
.hero-gallery {
    background: linear-gradient(180deg, #f5f8ff 0%, #ecf2f8 100%);
}

.hero-frame {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-shadow: 0 25px 60px rgba(7, 27, 47, 0.25);
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero-carousel .carousel-item,
.hero-carousel .carousel-inner,
.hero-carousel .carousel {
    min-height: 60vh;
}

.hero-slide {
    height: 60vh;
    background-size: cover;
    background-position: center;
}

.hero-floating-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    background: rgba(15, 76, 129, 0.85);
    color: #fff;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-frame .carousel-control-prev,
.hero-frame .carousel-control-next {
    width: auto;
    padding: 0px;
}

.hero-frame .carousel-control-prev-icon,
.hero-frame .carousel-control-next-icon {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.hero-actions-panel {
    position: absolute;
    left: clamp(1rem, 4vw, 3rem);
    right: clamp(1rem, 4vw, 3rem);
    bottom: clamp(7rem, 4vw, 3rem);
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.hero-action-wrapper {
    background: rgba(12, 38, 66, 0.85);
    border-radius: 30px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 20px 40px rgba(8, 41, 73, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-action-wrapper h2 {
    font-weight: 700;
}

.hero-frame:hover .hero-actions-panel,
.hero-frame:focus-within .hero-actions-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--accent-500);
}

/* Buttons */
.btn-primary:hover {
    background-color: #083a70;
    color: #fff;
}

.btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Cards */
.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.card {
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    border: none;
}

.card-title {
    font-weight: 600;
    color: var(--primary-900);
}

.card-text {
    font-size: 0.95rem;
    color: var(--neutral-500);
}

.section-heading h2 {
    font-weight: 700;
    color: var(--primary-900);
}

.unit-links {
    background: #fff;
    border-radius: var(--radius-lg);
    margin-top: -94px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.unit-subtitle {
    max-width: 520px;
}

.unit-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    border: 1px solid rgba(15, 76, 129, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.unit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 120, 196, 0.4);
    box-shadow: 0 20px 30px rgba(15, 76, 129, 0.18);
}

.unit-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(13, 110, 253, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-500);
}

.unit-label {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 1.05rem;
}

.unit-arrow {
    color: var(--neutral-500);
    font-size: 1.25rem;
}

.info-panels {
    margin-top: 2rem;
}

.info-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #fff;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.info-card.bg-white {
    background: #fff;
    color: var(--neutral-700);
}

.info-card.bg-white .info-badge {
    background: rgba(31, 109, 197, 0.12);
    color: var(--primary-500);
}

.info-card.bg-white .icon-circle {
    background: rgba(45, 120, 196, 0.1);
    color: var(--primary-500);
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
}

.info-qr {
    max-height: 200px;
    width: auto;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.mini-carousel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 35px rgba(15, 76, 129, 0.08);
}

.carousel-dots::before {
    content: '● ● ●';
    color: rgba(15, 76, 129, 0.2);
    letter-spacing: 0.35rem;
}

.mini-carousel img {
    height: 360px;
    object-fit: cover;
}

/* Footer */
.footer {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer p {
    color: #495057;
}

.footer-links a {
    color: #007bff;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0056b3;
}

.quicklinks nav ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.quicklinks nav ul li {
    margin-bottom: 8px;
}

.quicklinks nav ul li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.quicklinks nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.footer-bottom {
    font-size: 14px;
    color: #f8f9fa;
}

/* Sidebar berita */
#news-widget ul {
    padding-left: 0;
    margin: 0;
}

#news-widget li.media {
    display: flex;
    align-items: flex-start;
}

#news-widget li.media img {
    border-radius: 4px;
    border: 1px solid #ddd;
}

#news-widget li.media .media-body h6 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

#news-widget li.media .media-body small {
    font-size: 0.85rem;
    color: #6c757d;
}

#news-widget li.media + li.media {
    margin-top: 1rem;
}

#news-widget li.media .media-body a {
    text-decoration: none;
    color: #333;
}

#news-widget li.media .media-body a:hover {
    color: #0056b3;
    text-decoration: underline;
}

#news-widget .border-bottom {
    border-color: #ddd !important;
}

/* breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb .breadcrumb-item a {
    font-weight: 500;
}

.breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Dropdown */
.navbar-nav .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    border-radius: var(--radius-sm);
    border: none;
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
    padding: 0.75rem;
}

.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    margin-top: 0;
    left: 0;
    right: auto;
    z-index: 1000;
}

.navbar-nav .dropdown-menu .dropdown-item {
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: #333;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

.text-justify {
    text-align: justify;
}

.btn-responsive {
    font-size: 0.85rem;
}

@media (min-width: 576px) {
    .btn-responsive {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .btn-responsive {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .btn-responsive {
        font-size: 1.2rem;
    }
}

/* Gutenberg custom block */
.wp-block-media-text {
  margin: 20px 0;
  padding: 20px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  align-items: center;
}

.wp-block-media-text__media img {
  border-radius: 10px;
  border: 3px solid #ddd;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.wp-block-media-text__media img:hover {
  transform: scale(1.05);
}

.wp-block-media-text__content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.wp-block-media-text__content strong {
  font-size: 18px;
  color: #1d4ed8;
}

.wp-block-media-text__content a {
  color: #0f766e;
  font-weight: bold;
  text-decoration: none;
}

.wp-block-media-text__content a:hover {
  text-decoration: underline;
  color: #115e59;
}

@media (max-width: 768px) {
    .hero-frame {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-slider,
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide {
        height: 65vh;
    }
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel {
        min-height: 50vh;
    }

    .hero-slide {
        height: 50vh;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }


    .unit-links {
        margin-top: -40px;
    }

    .footer-heading {
        font-size: 16px;
    }

    .footer p {
        font-size: 14px;
    }

    .wp-block-media-text {
        flex-direction: column !important;
    }

    .wp-block-media-text__media,
    .wp-block-media-text__content {
        width: 100% !important;
        text-align: center !important;
    }

        .hero-actions-panel {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            pointer-events: auto;
            margin: -7.5rem 1.5rem 3rem;
        }
}

@media (max-width: 576px) {
    .info-card,
    .mini-carousel {
        padding: 1.75rem;
    }
}

