/* Portal CSS for Posyandu Soka Indah RW 012 */
/* Powered by Google Font Outfit */

:root {
    --primary: #7B2CBF;
    --primary-light: #9D4EDD;
    --primary-dark: #5A189A;
    --secondary: #4361EE;
    --secondary-light: #4CC9F0;
    --accent: #F72585;
    --success: #80ED99;
    --dark: #111827;
    --light: #F8F9FA;
    --gray-medium: #6C757D;
    --shadow-soft: 0 10px 30px rgba(123, 44, 191, 0.06);
    --shadow-hover: 0 15px 35px rgba(123, 44, 191, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-custom: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #2D3748;
    background-color: #FAF9FC;
    overflow-x: hidden;
}

/* 1. TYPOGRAPHY & SECTIONS */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 80px 0;
}

.bg-gradient-custom {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.03), rgba(67, 97, 238, 0.03));
}

/* 2. NAVBAR LAYOUT */
.navbar-portal {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 44, 191, 0.05);
    padding: 15px 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.navbar-portal.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.navbar-portal .navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-portal .navbar-brand i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-portal .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4A5568;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.navbar-portal .nav-link:hover, 
.navbar-portal .nav-link.active {
    color: var(--primary);
    background-color: rgba(123, 44, 191, 0.05);
}

.navbar-portal .btn-login-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: none;
    padding: 8px 24px !important;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.2);
    transition: var(--transition-smooth);
}

.navbar-portal .btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.3);
}

/* 3. HERO SLIDER */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.hero-slider .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.85), rgba(123, 44, 191, 0.4));
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    max-width: 650px;
    left: 8%;
    right: auto;
}

.hero-slider h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-slider p {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 4. PREMIUM CARDS */
.card-premium {
    background-color: white;
    border: 1px solid rgba(123, 44, 191, 0.04);
    border-radius: var(--border-radius-custom);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(123, 44, 191, 0.08);
}

.card-premium .card-img-holder {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-premium .card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-premium:hover .card-img-holder img {
    transform: scale(1.05);
}

.card-premium .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 5. SCHEDULES & CALENDAR */
.schedule-badge {
    background-color: rgba(123, 44, 191, 0.08);
    color: var(--primary);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.calendar-container {
    background-color: white;
    border-radius: var(--border-radius-custom);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.fc-theme-bootstrap5 a {
    color: var(--dark) !important;
    text-decoration: none;
}

.fc-event {
    border-radius: 6px !important;
    padding: 3px 6px !important;
    font-weight: 500 !important;
}

/* 6. BUTTONS & ACTIONS */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(123, 44, 191, 0.25);
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.35);
    color: white;
}

.btn-secondary-custom {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.btn-secondary-custom:hover {
    background-color: var(--primary);
    color: white;
}

/* 7. GALLERY & ALBUMS */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    background-color: white;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: var(--border-radius-custom);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    display: block;
    height: auto;
}

.gallery-item .gallery-info {
    padding: 15px;
}

/* 8. FOOTER STYLING */
.footer-portal {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-portal h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-portal h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-portal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-portal ul li {
    margin-bottom: 12px;
}

.footer-portal ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-portal ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-portal .social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-portal .social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.footer-portal .social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-portal .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* 9. REUSABLE ANIMATIONS & TIMELINES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 10. STATISTICS CHARTS PRETTIER */
.chart-box {
    background-color: white;
    border-radius: var(--border-radius-custom);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(123, 44, 191, 0.02);
}

/* =====================================================
   11. RESPONSIVE MOBILE FIXES (≤768px & ≤576px)
   ===================================================== */

/* Tablet (768px) */
@media (max-width: 768px) {
    /* Hero Slider */
    .hero-slider,
    .hero-slider .carousel-item {
        height: 420px;
    }

    .hero-slider h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .hero-slider p {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hero-slider .carousel-caption {
        left: 5%;
        right: 5%;
        max-width: 100%;
    }

    /* Section spacing */
    .section-padding {
        padding: 50px 0;
    }

    /* Contact form card padding */
    .card-premium.p-md-5 {
        padding: 1.5rem !important;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    /* Hero Slider */
    .hero-slider,
    .hero-slider .carousel-item {
        height: 340px;
    }

    .hero-slider h1 {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-slider p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .hero-slider .carousel-caption {
        left: 4%;
        right: 4%;
        max-width: 100%;
    }

    /* Section spacing tighter */
    .section-padding {
        padding: 36px 0;
    }

    /* Page H1 headings (kontak, profil, artikel, dll.) */
    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    /* Contact form: stacking fields nicely */
    #contactForm .form-control {
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }

    /* Remove extra gap between stacked cols */
    #contactForm .row.g-3 > [class*="col-"] {
        padding-bottom: 0;
    }

    /* Submit button full-width already, just reduce height */
    #btnSubmit {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Map height on mobile */
    .card-premium.overflow-hidden[style*="height: 250px"] {
        height: 180px !important;
    }

    /* Gallery grid - already 1 col, just ensure gap */
    .gallery-grid {
        column-count: 1;
        column-gap: 0;
    }

    /* Footer padding */
    .footer-portal {
        padding: 50px 0 20px;
    }
}

