* {
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #0059FF;
    --primary-dark: #003d99;
    --secondary: #eb670e;
    --dark: #1a1a1a;
    --gray: #6b7280;
}

body {
    color: var(--dark);
    line-height: 1.6;
}

/* Header Carousel */
#carouselExampleSlidesOnly .carousel-inner {
    height: 600px;
}

#carouselExampleSlidesOnly .carousel-item {
    height: 600px;
}

#carouselExampleSlidesOnly img {
    height: 600px;
    object-fit: cover;
}

#carouselExampleSlidesOnly .bg-black {
    background: linear-gradient(135deg, rgba(0,89,255,0.85) 0%, rgba(0,61,153,0.85) 100%) !important;
}

#carouselExampleSlidesOnly .text-white h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

#carouselExampleSlidesOnly .text-white p {
    font-size: 1.25rem;
    font-weight: 400;
}

/* About Section */
#about {
    padding: 5rem 0;
}

#about .bg-light {
    background: white !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: none;
    padding: 3rem !important;
}

#about h2 {
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    padding-left: 1rem;
}

#about img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#about p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Visi Misi Section */
.section {
    padding: 5rem 0;
}

.section h2 {
    font-weight: 700;
    font-size: 2.5rem;
}

#vmanimasi {
    background: white !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#vmanimasi:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

#vmanimasi h3 {
    font-weight: 700;
    font-size: 1.75rem;
}

#vmanimasi p, #vmanimasi li {
    color: var(--gray);
    line-height: 1.8;
}

#vmanimasi ul {
    list-style: none;
    padding-left: 0;
}

#vmanimasi li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 1.5rem;
}

#vmanimasi li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Warga Stats Section */
#warga {
    padding: 5rem 0;
}

#wanimasi {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#wanimasi:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.2) !important;
}

#wanimasi h3 {
    font-size: 3rem;
    font-weight: 800;
}

#wanimasi h5 {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Guru Section */
.section-guru {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s ease;
}

.foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.swiper-slide-active .foto {
    width: 230px;
    height: 230px;
}

.swiper-slide h3 {
    color: white;
    margin-top: 1.5rem;
    font-weight: 600;
}

.swiper-slide p {
    color: rgba(255,255,255,0.9);
}

/* Kegiatan Section */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.card-text {
    color: var(--gray);
    line-height: 1.6;
}

/* Carousel Partner */
#carousel {
    margin: 100px auto;
    width: 100%;
    display: flex;
    overflow-x: auto;
}

#carousel::-webkit-scrollbar {
    display: none;
}

#group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: spin 5s infinite linear;
    padding-right: 2rem;
}

#card {
    flex: 0 0 150px;
    height: 150px;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

#card img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: none;
}

@keyframes spin {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Berita Section */
.card.h-100 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.h-100:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
}

.card-title.fw-bold {
    font-weight: 700 !important;
    font-size: 1.5rem;
}

/* Section Headers */
.d-flex.align-items-center h2 {
    font-weight: 700;
    font-size: 2rem;
}

/* Button Styles */
.btn-light.btn-lg {
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-light.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Testimoni Section */
.card.p-3 {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card.p-3:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.card.p-3 .card-img-top {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.card.p-3 .card-title {
    font-weight: 600;
    margin-top: 1rem;
}

.img-box {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Overlay teks */
.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    color: #fff;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7),
        rgba(0,0,0,0)
    );

    transform: translateY(100%);
    transition: transform 0.4s ease;
}

/* Hover effect */
.img-box:hover .img-overlay {
    transform: translateY(0);
}

.img-box:hover img {
    transform: scale(1.05);
}

/* Teks */
.img-overlay h5 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.img-overlay p {
    margin: 4px 0 0;
    font-size: 20px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    #carouselExampleSlidesOnly .text-white h1 {
        font-size: 2rem;
    }

    #carouselExampleSlidesOnly .text-white p {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    #wanimasi h3 {
        font-size: 2rem;
    }
}

    .youtube-search {
      max-width: 600px;
      width: 100%;
    }
    
    .youtube-search input {
      border-radius: 999px 0 0 999px;
      padding-left: 20px;
    }
    
    .youtube-search button {
      border-radius: 0 999px 999px 0;
      padding: 0 22px;
    }
    
    .youtube-search input:focus {
      box-shadow: none;
      border-color: #ced4da;
    }