/* Google Fonts: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variabel Desain — Indigo Primary */
:root {
    /* Primary Indigo */
    --primary-blue:       #4F46E5;
    --primary-blue-light: #818CF8;
    --primary-blue-dark:  #4338CA;
    --primary-blue-50:    #EEF2FF;
    --primary-blue-100:   #E0E7FF;
    --primary-blue-200:   #C7D2FE;
    --primary-blue-300:   #A5B4FC;
    --primary-blue-400:   #818CF8;
    --primary-blue-500:   #6366F1;
    --primary-blue-600:   #4F46E5;
    --primary-blue-700:   #4338CA;
    --primary-blue-800:   #3730A3;
    --primary-blue-900:   #312E81;

    /* Semantic */
    --secondary-blue: #3B82F6;
    --accent-blue:    #06B6D4;
    --success-green:  #10B981;
    --warning-orange: #F59E0B;
    --danger-red:     #EF4444;

    /* Neutral */
    --heading-color:    #111827;
    --text-color:       #374151;
    --text-muted:       #6B7280;
    --surface-color:    #FFFFFF;
    --background-color: #F9FAFB;
    --border-color:     #E5E7EB;
    --border-light:     #F3F4F6;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -2px rgba(0,0,0,.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.07), 0 8px 10px -6px rgba(0,0,0,.04);

    /* Border Radius */
    --border-radius:    0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;

    /* Transitions */
    --transition:      all 0.2s ease;
    --transition-fast: all 0.15s ease;
}

/* --- Global Styling --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
}

.main-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* --- Navbar Modern --- */
.navbar-simak {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    transition: all 0.4s ease-in-out;
}

.navbar-simak.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.navbar-simak .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue-800);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-simak .navbar-brand img {
    height: 80px;
    width: auto;
    transition: all 0.4s ease-in-out;
}

.navbar-simak.scrolled .navbar-brand img {
    height: 55px;
}

.navbar-simak .nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.navbar-simak .nav-link:hover,
.navbar-simak .nav-link.active {
    color: var(--primary-blue-600);
    background-color: var(--primary-blue-50);
}

.navbar-simak .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue-500), var(--secondary-blue));
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-simak .nav-link:hover::after,
.navbar-simak .nav-link.active::after {
    width: 80%;
}

/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue-600), var(--primary-blue-700));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-700), var(--primary-blue-800));
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue-500);
    color: var(--primary-blue-600);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue-500);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-orange), #d97706);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red), #dc2626);
    color: white;
}

/* --- Hero Section Modern --- */
.hero-carousel-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-carousel-section .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-carousel-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.8) 0%, 
        rgba(59, 130, 246, 0.6) 50%, 
        rgba(14, 165, 233, 0.4) 100%);
    z-index: 2;
}

.hero-carousel-section .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-carousel-section .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s both;
}

.hero-carousel-section .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s 0.3s both;
}

.hero-carousel-section .hero-content .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    animation: fadeInUp 1s 0.6s both;
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Section Styling --- */
.section-fresh {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Card Styling --- */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue-500), var(--primary-blue-600));
    color: white;
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* --- Kegiatan Cards --- */
.kegiatan-card {
    min-height: 520px;
    height: auto;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: var(--border-radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.kegiatan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.kegiatan-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.kegiatan-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.kegiatan-card:hover .kegiatan-card-img {
    transform: scale(1.05);
}

.kegiatan-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
    overflow: hidden;
}

.kegiatan-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kegiatan-card .card-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.kegiatan-card .card-info i {
    color: var(--primary-blue-500);
    width: 16px;
    margin-right: 0.5rem;
}

.kegiatan-card .list-unstyled {
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
}

.kegiatan-card .list-unstyled li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.kegiatan-card .list-unstyled li:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(3px);
}

.kegiatan-card .list-unstyled li:nth-child(1) {
    color: var(--primary-blue-700);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: var(--primary-blue-500);
}

.kegiatan-card .list-unstyled li:nth-child(2) {
    color: var(--info-blue-700);
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: var(--info-blue-500);
}

.kegiatan-card .list-unstyled li:nth-child(3) {
    color: var(--danger-red-700);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: var(--danger-red-500);
}

.kegiatan-card .list-unstyled li:nth-child(4) {
    color: var(--success-green-700);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: var(--success-green-500);
}

.kegiatan-card .list-unstyled li:nth-child(5) {
    color: var(--warning-orange-700);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: var(--warning-orange-500);
}

.kegiatan-card .list-unstyled li:nth-child(6) {
    color: var(--success-green-700);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: var(--success-green-500);
}

.kegiatan-card .list-unstyled li i {
    color: inherit;
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 16px;
    text-align: center;
}

.kegiatan-card .list-unstyled li strong {
    font-weight: 600;
    margin-right: 0.25rem;
}

.kegiatan-card .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    border-radius: 6px;
}

.kegiatan-card .text-end .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
}

.kegiatan-card .text-end small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kegiatan-card .card-text {
    color: var(--text-muted);
    line-height: 1.5;
}

.kegiatan-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

.kegiatan-card .btn {
    margin-top: auto;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: none;
    text-align: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.kegiatan-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Footer Modern --- */
.footer-simak {
    background: linear-gradient(135deg, var(--primary-blue-900), var(--primary-blue-800));
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0 0;
    margin-top: 5rem;
}

.footer-simak h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-simak a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-simak a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

/* --- Auth Modal Styling --- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue-50), var(--primary-blue-100));
}

.auth-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-blue-600), var(--primary-blue-700));
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
}

.auth-body {
    padding: 2rem;
}

.auth-card .form-label {
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.auth-card .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary-blue-500);
    box-shadow: 0 0 0 3px var(--primary-blue-100);
}

.auth-card .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

.auth-footer {
    text-align: center;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid var(--border-light);
}

.auth-card a {
    color: var(--primary-blue-600);
    text-decoration: none;
    font-weight: 500;
}

.auth-card a:hover {
    color: var(--primary-blue-700);
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-carousel-section .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-carousel-section .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-simak .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-simak .navbar-brand img {
        height: 32px;
    }
    
    .kegiatan-card {
        min-height: 460px;
    }
    
    .kegiatan-card-img-wrapper {
        height: 180px;
    }
    
    .kegiatan-card .list-unstyled li {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-carousel-section .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-fresh {
        padding: 3rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .kegiatan-card {
        min-height: 420px;
    }
    
    .kegiatan-card-img-wrapper {
        height: 160px;
    }
    
    .kegiatan-card .card-body {
        padding: 1rem;
    }
    
    .kegiatan-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .kegiatan-card .list-unstyled li {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .kegiatan-card .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* --- Utility Classes --- */
.text-primary-blue {
    color: var(--primary-blue-600) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue-600) !important;
}

.border-primary-blue {
    border-color: var(--primary-blue-600) !important;
}

.shadow-blue {
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15) !important;
}

.gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue-500), var(--primary-blue-700));
}

.gradient-blue-light {
    background: linear-gradient(135deg, var(--primary-blue-50), var(--primary-blue-100));
}
