:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --dark: #212529;
    --light: #f8f9fa;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.hero-slider {
    position: relative;
}

.hero-slider .item {
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-slider .overlay-content {
    max-width: 800px;
    color: #ffffff;
}

.hero-slider h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-slider p {
    font-size: 1.2rem;
}

.sambutan-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow);
}

.foto-kepsek-container {
    text-align: center;
}

.foto-kepsek {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid var(--light);
    box-shadow: var(--shadow-sm);
}

.nama-kepsek {
    margin-top: 15px;
    font-weight: 700;
    color: var(--dark);
}

.isi-sambutan {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.card-berita {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: #ffffff;
}

.card-berita:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-berita .img-wrapper {
    overflow: hidden;
}

.card-berita img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-berita:hover img {
    transform: scale(1.1);
}

.card-berita .card-body {
    padding: 20px;
}

.card-berita .kategori-badge {
    background: var(--primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
}

.card-berita .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-berita .card-text {
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agenda-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.agenda-item:hover {
    transform: translateX(10px);
    color: inherit;
}

.agenda-date {
    background: var(--primary);
    color: #ffffff;
    min-width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.agenda-date .day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.agenda-date .month-year {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.agenda-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.agenda-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

.footer-section {
    background-color: var(--dark);
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}