/* ============================================
   SSB KELUMBAYAN BARAT - MAIN STYLESHEET
   ============================================ */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #e9f0ff;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --gold: #ffd700;
    --gold-dark: #f0a500;
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --dark-third: #0f3460;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
    line-height: 1.6;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   SLIDER / HERO SECTION
   ============================================ */
.hero-slider {
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    min-height: 650px;
    height: 650px;
}

.slide-bg {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 650px;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: var(--dark-third);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
}

.slide-content {
    padding: 30px 0;
    max-width: 650px;
}

.slide-content .badge-slide {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.slide-content .slide-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.slide-content .slide-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

.slide-content .slide-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 550px;
}

.slide-content .slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slide-content .slide-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
}

.slide-content .slide-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.slide-content .slide-buttons .btn-warning {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.slide-content .slide-buttons .btn-warning:hover {
    background: #ffed4a;
    border-color: #ffed4a;
}

.slide-content .slide-buttons .btn-outline-light {
    border-width: 2px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin: 0 6px;
    opacity: 0.7;
}

.carousel-indicators button.active {
    background: var(--gold);
    border-color: var(--gold);
    opacity: 1;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* ============================================
   SLIDER RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .carousel-item {
        min-height: 600px;
        height: 600px;
    }
    .slide-bg {
        min-height: 600px;
    }
    .slide-content .slide-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
        height: 500px;
    }
    .slide-bg {
        min-height: 500px;
    }
    .slide-content .slide-title {
        font-size: 2.5rem;
    }
    .slide-content .slide-subtitle {
        font-size: 1.1rem;
    }
    .slide-content .slide-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 450px;
        height: 450px;
    }
    .slide-bg {
        min-height: 450px;
        background-size: cover !important;
        background-position: center !important;
    }
    .slide-content {
        max-width: 100%;
        padding: 20px;
        text-align: center;
    }
    .slide-content .slide-title {
        font-size: 2.2rem;
    }
    .slide-content .slide-subtitle {
        font-size: 1rem;
    }
    .slide-content .slide-desc {
        font-size: 0.9rem;
        max-width: 100%;
    }
    .slide-content .slide-buttons {
        justify-content: center;
    }
    .slide-content .badge-slide {
        font-size: 0.8rem;
        padding: 5px 16px;
    }
    .slide-content .slide-buttons .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        opacity: 0.5;
    }
    .carousel-control-prev {
        left: 10px;
    }
    .carousel-control-next {
        right: 10px;
    }
    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        min-height: 400px;
        height: 400px;
    }
    .slide-bg {
        min-height: 400px;
    }
    .slide-content .slide-title {
        font-size: 1.8rem;
    }
    .slide-content .slide-subtitle {
        font-size: 0.85rem;
    }
    .slide-content .slide-desc {
        font-size: 0.8rem;
    }
    .slide-content .badge-slide {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    .slide-content .slide-buttons .btn {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
        opacity: 0.3;
    }
    .carousel-control-prev {
        left: 5px;
    }
    .carousel-control-next {
        right: 5px;
    }
    .carousel-indicators {
        bottom: 15px;
    }
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

/* ============================================
   STATISTIK SECTION
   ============================================ */
.stats-section {
    padding: 70px 0;
    background: #fff;
}

.stat-item {
    padding: 20px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    color: var(--primary);
    font-size: 2.8rem;
}

.stat-item h3 {
    font-weight: 700;
    color: var(--dark);
    font-size: 2rem;
    margin-top: 15px;
}

.stat-item p {
    color: var(--gray);
    font-weight: 500;
    margin: 0;
}

/* ============================================
   ARTIKEL SECTION
   ============================================ */
.artikel-terbaru {
    padding: 70px 0;
}

.hover-card {
    transition: var(--transition);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.hover-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.hover-card .card-body .badge {
    font-weight: 600;
    padding: 5px 14px;
}

.hover-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}

.hover-card .card-text.text-muted {
    font-size: 0.85rem;
}

.hover-card .card-footer {
    background: transparent;
    border-top: 1px solid #f0f2f5;
}

/* ============================================
   GALERI SECTION
   ============================================ */
.galeri-section {
    padding: 70px 0;
}

.galeri-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.galeri-card:hover {
    transform: scale(1.03);
}

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

.galeri-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.galeri-caption small {
    font-weight: 500;
    font-size: 0.85rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    padding: 80px 0;
    color: #fff;
}

.cta-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
}

.cta-section .lead {
    color: rgba(255,255,255,0.8);
}

.cta-section .btn-light {
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold {
    color: var(--gold);
}

.bg-dark-custom {
    background: var(--dark);
}

.bg-dark-secondary {
    background: var(--dark-secondary);
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-hover);
}

.rounded-custom {
    border-radius: var(--radius);
}

.rounded-lg-custom {
    border-radius: var(--radius-lg);
}

/* ============================================
   RESPONSIVE UTILITY
   ============================================ */
@media (max-width: 992px) {
    .stats-section {
        padding: 50px 0;
    }
    .artikel-terbaru {
        padding: 50px 0;
    }
    .galeri-section {
        padding: 50px 0;
    }
    .cta-section {
        padding: 60px 0;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
    .stat-item h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 40px 0;
    }
    .artikel-terbaru {
        padding: 40px 0;
    }
    .galeri-section {
        padding: 40px 0;
    }
    .cta-section {
        padding: 50px 0;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .stat-item h3 {
        font-size: 1.3rem;
    }
    .stat-item i {
        font-size: 2.2rem;
    }
    .hover-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 30px 0;
    }
    .artikel-terbaru {
        padding: 30px 0;
    }
    .galeri-section {
        padding: 30px 0;
    }
    .cta-section {
        padding: 40px 0;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .cta-section .btn-light {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    .stat-item h3 {
        font-size: 1.1rem;
    }
    .stat-item i {
        font-size: 1.8rem;
    }
    .hover-card .card-img-top {
        height: 160px;
    }
    .hover-card .card-title {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .hero-slider {
        display: none;
    }
    .cta-section {
        display: none;
    }
    .navbar {
        display: none;
    }
    .footer {
        display: none;
    }
}