/**
 * INFISA Website Stylesheet
 * Custom styles for INFISA Baru
 */

:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

/* Header Styles */
.main-header {
    position: relative;
}

.navbar {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Button Pengaduan */
.btn-pengaduan {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-pengaduan:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Header Spacer */
.header-spacer {
    height: 76px;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-section .carousel-item {
    height: 500px;
}

.hero-section .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.hero-section .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    bottom: 20%;
}

.hero-section .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* News Card */
.news-card {
    transition: var(--transition);
    border-radius: 1rem;
    overflow: hidden;
}

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

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    color: var(--white);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 991px) {
    .header-spacer {
        height: 70px;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-section .carousel-item {
        height: 350px;
    }
    
    .hero-section .carousel-caption {
        padding: 1rem;
        bottom: 10%;
    }
    
    .hero-section .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 767px) {
    .hero-section .carousel-caption {
        display: none !important;
    }
}
