@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

/* Style Navbar-User */
/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #f4f4f4;
}

.navbar {
    background: linear-gradient(
        to bottom,
        #ffffff 40%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    padding: 15px 50px 30px; /* Tambah padding bawah untuk area gradasi */
    /* Cara Fixed */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Tambahkan ini agar padding tidak merusak lebar 100% */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center; /* Menyeimbangkan logo dan teks di tengah secara vertikal */
}

.navbar-brand-image {
    width: 50px;
    height: auto;
    display: block;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column; /* Menyusun 'Naz' dan 'Hidrofarm' ke bawah */
    margin-left: 6px; /* Jarak rapat antara logo dan teks */
    line-height: 1; /* Menghilangkan ruang antar baris yang lebar */
    font-weight: bold;
    font-size: 20px; /* Ukuran teks 'Naz' */
    color: #1b3a1a; /* Forest Green */
}

.navbar-brand-text small {
    display: block;
    font-size: 12px; /* Ukuran teks bawah */
    text-transform: uppercase;
    letter-spacing: 0.5px; /* Memberi sedikit ruang antar huruf agar elegan */
    margin-top: 2px; /* Jarak antara 'Naz' dan 'Hidrofarm' */
    font-weight: normal;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* Jarak antar menu */
}

.nav-links li a {
    text-decoration: none;
    color: #1b3a1a;
    font-size: 1rem;
    font-weight: 500;
}

.nav-links li a:hover {
    color: #f2b50b;
}

.nav-links li a.active {
    font-weight: bold;
    color: #f2b50b;
}

.btn-akun {
    background-color: rgba(27, 58, 26, 0.05);
    color: #1b3a1a;
    padding: 8px 22px;
    border-radius: 100px; /* Pill shaped */
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1.5px solid #1b3a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-akun:hover {
    background-color: #1b3a1a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 58, 26, 0.15);
}

/* --- HOME PAGE SPECIFIC --- */
.home-hero {
    position: relative;
    min-height: 500px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("../image/5.png") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.home-hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 2px; /* Disesuaikan agar tidak berantakan di layar kecil */
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Container Foto Edukasi & Magang di Home */
.home-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    border-radius: 20px;
    height: 350px;
    overflow: hidden;
    position: relative;
    background-color: #eee; /* Fallback color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

/* =========================================
   FOOTER MODERN - RESPONSIVE DENGAN FONT SIZE YANG MENYESUAIKAN
   ========================================= */
.footer-modern {
    background: #dce5dd;
    padding: 60px 20px 30px;
    color: #1b3a1a;
    border-top: 1px solid #c8d4c9;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 40px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1b3a1a;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-details i {
    color: #1b3a1a;
    margin-top: 4px;
}

/* Container utama untuk info kontak */
.contact-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

/* Penyelaras Ikon dan Judul (Alamat/Jam Kerja) */
.contact-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #1b3a1a;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Detail teks di bawah label */
.contact-detail {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1b3a1a;
    margin-left: 0;
    margin-bottom: 15px;
}

/* Styling Ikon agar lebih modern */
.contact-label i {
    width: 20px;
    text-align: center;
}

/* Maps Minimalis */
.maps-wrapper {
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.maps-iframe {
    display: block;
    width: 100%;
    height: 120px;
}

.maps-btn-minimal {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #1b3a1a;
    text-decoration: none;
    padding-top: 8px;
    font-weight: 600;
}

/* Sosmed Minimalis */
.social-links-minimal {
    display: flex;
    gap: 12px;
}

.social-links-minimal a {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #1b3a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-links-minimal a:hover {
    background: #1b3a1a;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom-minimal {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #c8d4c9;
    text-align: center;
    font-size: 0.8rem;
    color: #1b3a1a;
}

/* =========================================
   PENYESUAIAN UKURAN KALENDER (FullCalendar)
   ========================================= */

#calendar {
    max-width: 800px;
    margin: 20px auto;
    font-size: 0.85rem;
}

/* Menandai Hari Sabtu dan Minggu sebagai Libur (Merah) secara umum */
#calendar .fc-day-sat,
#calendar .fc-day-sun {
    background-color: #fff1f1 !important;
}

#calendar .fc-day-sat .fc-daygrid-day-number,
#calendar .fc-day-sun .fc-daygrid-day-number {
    color: #d9534f !important;
    font-weight: 700;
}

.fc .fc-toolbar-title {
    font-size: 1.2rem !important;
}

.fc .fc-button {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
}

.fc .fc-daygrid-day-number {
    font-size: 0.8rem;
}

/* =========================================
   RESPONSIVE PATCH v4 - FOOTER RESPONSIVE DENGAN FONT SIZE
   ========================================= */

/* =========================================
   TABLET (641px – 1024px)
   ========================================= */
@media (min-width: 641px) and (max-width: 1024px) {
    .navbar {
        padding: 12px 24px 16px;
    }

    .logo { flex-shrink: 0; }
    .nav-action { flex-shrink: 0; }

    .nav-links {
        gap: clamp(8px, 1.5vw, 20px);
    }

    .nav-links li a {
        font-size: clamp(12px, 1.3vw, 15px);
        white-space: nowrap;
    }

    .btn-akun {
        padding: clamp(5px, 0.6vw, 8px) clamp(10px, 1.4vw, 18px);
        font-size: clamp(10px, 1vw, 13px);
    }

    .navbar-brand-text {
        font-size: clamp(14px, 1.8vw, 20px);
    }

    .navbar-brand-text small {
        font-size: clamp(9px, 1vw, 12px);
    }

    .navbar-brand-image {
        width: clamp(36px, 4vw, 50px);
    }

    /* ===== FOOTER TABLET ===== */
    .footer-modern {
        padding: 50px 20px 30px;
    }

    .footer-modern .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-section.social {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Ukuran font footer tablet */
    .footer-title {
        font-size: clamp(1rem, 2vw, 1.1rem);
        margin-bottom: 16px;
    }

    .contact-label {
        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    }

    .contact-detail {
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    }

    .maps-btn-minimal {
        font-size: clamp(0.7rem, 1.3vw, 0.8rem);
    }

    .footer-bottom-minimal {
        font-size: clamp(0.7rem, 1.3vw, 0.8rem);
        margin-top: 40px;
    }

    .social-links-minimal a {
        width: clamp(34px, 4vw, 38px);
        height: clamp(34px, 4vw, 38px);
        font-size: clamp(14px, 2vw, 16px);
    }

    .contact-group {
        gap: 16px;
    }

    .contact-label,
    .social-links-minimal {
        justify-content: center;
    }

    .contact-detail {
        text-align: center;
    }

    .maps-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .maps-wrapper iframe {
        width: 100%;
    }
}

/* =========================================
   MOBILE (≤ 640px)
   ========================================= */
@media (max-width: 640px) {

    /* ---- NAVBAR ---- */
    .navbar {
        padding: 0;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo action"
            "links links";
        align-items: center;
        padding: 10px 16px 0;
        gap: 0;
    }

    .logo {
        grid-area: logo;
        display: flex;
        align-items: center;
    }

    .nav-action {
        grid-area: action;
    }

    /* Nav links baris ke-2, TERPUSAT */
    .nav-links {
        grid-area: links;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 8px 0 10px;
        margin-top: 8px;
        border-top: 1px solid rgba(27, 58, 26, 0.08);
        justify-content: center;
    }

    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links li { flex-shrink: 0; }

    .nav-links li a {
        display: block;
        font-size: clamp(11px, 3vw, 13px);
        padding: 4px 12px;
        border-radius: 20px;
        white-space: nowrap;
    }

    .nav-links li a.active,
    .nav-links li a.active-kuning {
        background: rgba(242, 181, 11, 0.12);
    }

    .btn-akun {
        padding: 6px 14px;
        font-size: clamp(9px, 2.5vw, 11px);
        letter-spacing: 0.3px;
    }

    .navbar-brand-text {
        font-size: clamp(13px, 4vw, 16px);
    }

    .navbar-brand-text small {
        font-size: clamp(8px, 2.5vw, 11px);
    }

    .navbar-brand-image {
        width: 32px;
    }

    /* ---- FOOTER MOBILE ---- */
    .footer-modern {
        padding: 40px 16px 25px;
    }

    .footer-modern .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Semua section footer center di mobile */
    .footer-section {
        text-align: center;
    }

    .footer-section.social {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ukuran font mobile - lebih kecil dan proporsional */
    .footer-title {
        font-size: clamp(0.9rem, 4vw, 1rem);
        margin-bottom: 14px;
    }

    .contact-label {
        font-size: clamp(0.8rem, 3.5vw, 0.85rem);
        justify-content: center;
    }

    .contact-detail {
        font-size: clamp(0.75rem, 3vw, 0.8rem);
        margin: 0 auto 12px;
        text-align: center;
        line-height: 1.5;
    }

    .maps-btn-minimal {
        font-size: clamp(0.7rem, 2.8vw, 0.75rem);
        padding-top: 8px;
    }

    .footer-bottom-minimal {
        font-size: clamp(0.65rem, 2.5vw, 0.7rem);
        margin-top: 30px;
        padding-top: 16px;
    }

    /* Ikon sosial media */
    .social-links-minimal {
        justify-content: center;
        gap: 10px;
    }

    .social-links-minimal a {
        width: clamp(32px, 8vw, 36px);
        height: clamp(32px, 8vw, 36px);
        font-size: clamp(13px, 3vw, 14px);
    }

    /* Maps wrapper */
    .maps-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 6px;
    }

    .maps-iframe {
        height: 90px !important;
        border-radius: 10px !important;
    }

    /* Contact group */
    .contact-group {
        gap: 20px;
        align-items: center;
    }

    .contact-item {
        width: 100%;
    }

    /* Spacing antar elemen */
    .contact-label i {
        width: 18px;
        font-size: 0.8rem;
    }
}

/* =========================================
   LAYAR SANGAT KECIL (≤ 360px)
   ========================================= */
@media (max-width: 360px) {
    .nav-container {
        padding: 8px 10px 0;
    }

    .nav-links li a {
        font-size: 10px;
        padding: 4px 8px;
    }

    .btn-akun {
        font-size: 9px;
        padding: 5px 10px;
    }

    /* Footer untuk layar sangat kecil */
    .footer-modern {
        padding: 30px 12px 20px;
    }

    .footer-modern .footer-container {
        gap: 25px;
    }

    .footer-title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .contact-label {
        font-size: 0.75rem;
        gap: 6px;
    }

    .contact-detail {
        font-size: 0.7rem;
    }

    .social-links-minimal a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .maps-iframe {
        height: 80px !important;
    }

    .footer-bottom-minimal {
        font-size: 0.6rem;
        margin-top: 25px;
    }
}
