@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --pphm-primary: #0D5C3A;
    --pphm-primary-hover: #09472c;
    --pphm-secondary: #15803D;
    --pphm-accent: #D97706;
    --pphm-accent-light: #FEF3C7;
    --pphm-dark: #0B291B;
    --pphm-light-bg: #F8FAF8;
    --pphm-border: #E2E8F0;
    --pphm-text: #1E293B;
    --pphm-muted: #64748B;
    --pphm-card-shadow: 0 10px 25px -5px rgba(13, 92, 58, 0.08), 0 8px 10px -6px rgba(13, 92, 58, 0.04);
    --pphm-hover-shadow: 0 20px 30px -10px rgba(13, 92, 58, 0.16);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pphm-text);
    background-color: #FFFFFF;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--pphm-dark);
}

/* Ensure headings with text-white or inside dark/gradient sections are clean white */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero-wrapper h1, .hero-wrapper h2, .hero-wrapper h3,
.page-header-banner h1, .page-header-banner h2, .page-header-banner h3,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
    color: #FFFFFF !important;
}

/* PAGE HEADER BANNER (Consistent with pphmsuka Islamic green gradient) */
.page-header-banner {
    background: linear-gradient(135deg, #072e1c 0%, #0D5C3A 100%) !important;
    color: #FFFFFF !important;
}

/* TOP BAR */
.top-bar {
    background-color: var(--pphm-dark);
    color: #E2E8F0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--pphm-accent);
}

.top-bar a {
    color: #E2E8F0;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--pphm-accent);
}

/* NAVBAR */
.navbar-custom {
    background-color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--pphm-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--pphm-primary), var(--pphm-secondary));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(13, 92, 58, 0.25);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--pphm-primary) !important;
    background-color: #F0FDF4;
}

/* BUTTONS */
.btn-pphm-primary {
    background-color: var(--pphm-primary);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(13, 92, 58, 0.25);
}

.btn-pphm-primary:hover {
    background-color: var(--pphm-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 92, 58, 0.35);
}

.btn-pphm-outline {
    background-color: transparent;
    color: var(--pphm-primary);
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    border: 2px solid var(--pphm-primary);
    transition: all 0.25s ease;
}

.btn-pphm-outline:hover {
    background-color: var(--pphm-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-pphm-gold {
    background-color: var(--pphm-accent);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-pphm-gold:hover {
    background-color: #B45309;
    color: #FFFFFF;
}

/* HERO SECTION */
.hero-wrapper {
    position: relative;
    background: linear-gradient(135deg, #072e1c 0%, #0D5C3A 60%, #15803D 100%);
    color: #FFFFFF;
    padding: 90px 0 100px;
    overflow: hidden;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FEF08A;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    color: #FFFFFF;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #E2E8F0;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-card-img {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    width: 100%;
    height: 380px;
}

/* STATS BAR */
.stats-bar {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    box-shadow: var(--pphm-card-shadow);
    border: 1px solid rgba(13, 92, 58, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pphm-hover-shadow);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pphm-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pphm-muted);
    margin-top: 0.4rem;
}

/* SECTION TITLES */
.section-badge {
    display: inline-block;
    background-color: #F0FDF4;
    color: var(--pphm-primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    border: 1px solid #BBF7D0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pphm-dark);
    margin-bottom: 0.8rem;
}

.section-desc {
    color: var(--pphm-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 3rem;
}

/* CARDS */
.pphm-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid var(--pphm-border);
    box-shadow: var(--pphm-card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pphm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pphm-hover-shadow);
    border-color: #A7F3D0;
}

.pphm-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.category-berita { background: #E0E7FF; color: #3730A3; }
.category-pengumuman { background: #FEF3C7; color: #92400E; }
.category-pkm { background: #DCFCE7; color: #166534; }
.category-fasilitas { background: #E0F2FE; color: #0369A1; }
.category-kegiatan { background: #FCE7F3; color: #9D174D; }

/* SAMBUTAN PENGASUH */
.quote-card {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
    border-left: 6px solid var(--pphm-primary);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: var(--pphm-card-shadow);
}

/* ASATIDZ CARD */
.asatidz-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid var(--pphm-border);
    box-shadow: var(--pphm-card-shadow);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.asatidz-card:hover {
    transform: translateY(-5px);
    border-color: var(--pphm-secondary);
}

.asatidz-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #DCFCE7;
    margin: 0 auto 1.2rem;
}

/* GALLERY GRID */
.gallery-grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--pphm-card-shadow);
    cursor: pointer;
}

.gallery-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-grid-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 46, 28, 0.9) 0%, rgba(7, 46, 28, 0.2) 60%, transparent 100%);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-grid-item:hover .gallery-overlay {
    opacity: 1;
}

/* FOOTER */
.site-footer {
    background-color: var(--pphm-dark);
    color: #CBD5E1;
    padding-top: 70px;
    padding-bottom: 30px;
    border-top: 5px solid var(--pphm-primary);
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--pphm-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #94A3B8;
}

/* ADMIN PANEL STYLING */
.admin-sidebar {
    background: #0B291B;
    min-height: 100vh;
    color: #E2E8F0;
}

.admin-sidebar .nav-link {
    color: #94A3B8 !important;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem !important;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: #0D5C3A;
    color: #FFFFFF !important;
}

.admin-topbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--pphm-border);
    padding: 1rem 1.5rem;
}

.upload-dropzone {
    border: 2px dashed #93C5FD;
    background-color: #F8FAFC;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover {
    border-color: var(--pphm-primary);
    background-color: #F0FDF4;
}
