/* ==================================================
   RESET
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #25352c;
    background: #ffffff;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==================================================
   GLOBAL
================================================== */
.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-heading {
    margin-bottom: 55px;
}

.section-heading > span,
.contact-heading > span {
    display: block;
    margin-bottom: 10px;
    color: #0ea5e9; /* Biru Aksen */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-heading h2,
.contact-heading h2 {
    color: #0f5132; /* Hijau Gelap */
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
}

.section-heading.center {
    text-align: center;
}

.section-heading.center p {
    max-width: 650px;
    margin: 15px auto 0;
    color: #68756e;
}

/* ==================================================
   HEADER & NAVIGASI
================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #edf0ed;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 250px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav > a {
    color: #35463d;
    font-size: 16px;
    transition: 0.3s;
    font-weight: 600;
}

.main-nav > a:hover {
    color: #0ea5e9;
}

.nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    padding-left: 25px;
    border-left: 1px solid #dfe5e0;
}

.login-link {
    padding: 5px 18px;
    background: #ffffff;
    color: #0f5132 !important;
    border: 2px solid #0f5132;
    border-radius: 5px;
    font-weight: 600;
}

.login-link:hover {
    background: #0f5132;
    color: #ffffff !important;
}

.register-btn {
	padding: 6px 18px;
    background: #0f5132;
    color: #ffffff !important;
    border-radius: 5px;
    font-weight: 600;
}

.register-btn:hover {
    background: #0ea5e9;
}

/* Hamburger Menu (Default Sembunyi di Desktop) */
.menu-toggle {
    display: none;
    border: 0;
    background: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: #0f5132;
    transition: 0.3s;
}

/* ==================================================
   HERO
================================================== */
.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('images/hero-mangrove.jpg') center / cover no-repeat;
}

/* Lapisan putih tipis biar teks tetap kebaca, fotonya tetap kelihatan */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.55) 0%,
        rgba(240,253,244,0.30) 50%,
        rgba(255,255,255,0.62) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-subtitle {
    margin-bottom: 18px;
    color: #0e7490;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero h1 {
    color: #0f5132;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    line-height: 1.05;
}

/* Garis tipis elegan di bawah BPGMN (Hanya satu aturan, warnanya biru) */
.title-divider {
    width: 64px;
    height: 2px;
    margin: 18px auto 0;
    background: #0ea5e9;
}

.hero-text {
    max-width: 620px;
    margin: 25px auto 35px;
    color: #43524a;
    font-size: 17px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    padding: 13px 27px;
    background: #0f5132;
    color: #ffffff;
    font-size: 15px;
    border-radius: 5px;
    border: 1px solid #0f5132;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #0e7490;
    border-color: #0e7490;
}

/* ==================================================
   ABOUT
================================================== */
.about-section {
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.about-intro {
    position: relative;
}

.about-intro p {
    color: #0f5132;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.5;
}

.about-intro::before {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    margin-bottom: 25px;
    background: #0ea5e9;
}

.about-text {
    color: #68756e;
    font-size: 15px;
}

.about-text p + p {
    margin-top: 20px;
}

/* ==================================================
   JOURNALS
================================================== */
.journals-section {
    background: #f8fafc;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.journal-card {
    position: relative;
    padding: 45px;
    background: #ffffff;
    border: 1px solid #e1e8e2;
    transition: 0.3s;
}

.journal-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-4px);
}

.journal-number {
    margin-bottom: 30px;
    color: #0ea5e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.journal-content h3 {
    color: #0f5132;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
}

.journal-content h3 strong {
    color: #0ea5e9;
    font-weight: 500;
}

.journal-content p {
    margin: 20px 0 30px;
    color: #68756e;
    font-size: 15px;
}

.journal-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0f5132;
    font-size: 14px;
    font-weight: 700;
}

.journal-link span {
    color: #0ea5e9;
    font-size: 18px;
    transition: 0.3s;
}

.journal-link:hover span {
    transform: translateX(5px);
}

/* ==================================================
   CONTACT
================================================== */
.contact-section {
    background: #ffffff;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 70px;
    background: #0f5132;
	border-radius: 10px;
}

.contact-heading h2 {
    color: #ffffff;
}

.contact-heading p {
    max-width: 500px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.72);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
}

.contact-item small {
    display: block;
    margin-bottom: 5px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
}

/* ==================================================
   FOOTER
================================================== */
.site-footer {
    background: linear-gradient(180deg, #0a3d29 0%, #062c1e 45%, #041f14 100%);
    color: #ffffff;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    padding: 40px 0 30px !important;
}

.footer-brand img {
    width: 250px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 400px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
}

.footer-brand .footer-address {
    margin-top: 15px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #38bdf8;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    width: fit-content;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.footer-bottom a {
    color: #38bdf8;
}

/* ==================================================
   DIVIDER GRADIENT & FLOATING WA
================================================== */
.footer-divider {
    width: 100%;
    max-width: 2000px;
    height: 4px;
    background: linear-gradient(90deg, #0f5132 0%, #0f5132 5%, #0ea5e9 20%, #0ea5e9 30%, #0ea5e9 50%, #0ea5e9 70%, #0ea5e9 80%, #0f5132 95%, #0f5132 100%);
    margin: 0 auto;
}

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    text-decoration: none;
}

.wa-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 2;
}

.wa-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    z-index: 1;
    animation: wa-glow 2s infinite;
}

@keyframes wa-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { transform: scale(1.15); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float:hover .wa-icon {
    transform: scale(1.05);
    transition: 0.2s;
}

/* ==================================================
   RESPONSIVE (MOBILE & TABLET)
================================================== */
@media (max-width: 850px) {
    .header-inner {
        min-height: 72px;
    }

    .logo img {
        width: 160px;
    }

    /* Tampilkan tombol hamburger */
    .menu-toggle {
        display: block;
    }

    /* Menu Dropdown di HP */
    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none; /* Sembunyi secara default */
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 20px 25px;
        background: #ffffff;
        border-bottom: 1px solid #e5ebe6;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        z-index: 999;
    }

    /* Class active akan ditambahkan Javascript saat diklik */
    .main-nav.active {
        display: flex !important;
    }

    .main-nav > a {
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-account {
        display: flex;
        flex-direction: row;
        margin: 15px 0 0;
        padding: 15px 0 0;
        border-left: 0;
        border-top: 1px solid #e1e6e2;
        justify-content: flex-start;
        gap: 10px;
    }

    .hero {
        min-height: 560px;
    }

    .section {
        padding: 75px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .journal-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 45px 30px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 550px) {
    .container {
        width: min(100% - 30px, 1180px);
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-text {
        font-size: 15px;
    }

    .section-heading h2,
    .contact-heading h2 {
        font-size: 34px;
    }

    .journal-card {
        padding: 30px;
    }

    .journal-content h3 {
        font-size: 21px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}