/* ============================================
   RESET & BASE
   ============================================ */
html {
    scroll-behavior: smooth;
    font-size: 14px;
}

:root {
    --primary: #FF6B00;
    --primary-dark: #D45A00;
    --secondary: #1E3A8A;
    --accent: #F59E0B;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    color: #1a1a2e;
    line-height: 1.5;
    font-size: 14px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 500px;
    min-height: 320px;
    max-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-slide h2 {
    font-size: clamp(22px, 2.8vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero-slide p {
    font-size: clamp(14px, 1vw, 17px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    max-width: 500px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.1);
}

.slide-dot.active {
    background: #ffffff;
    border-color: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.25);
}

/* ============================================
   SECTION
   ============================================ */
section {
    padding: 40px 0;
}

section h2 {
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

section .w-16 {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 8px auto 14px;
    border-radius: 4px;
}

section .text-gray-600 {
    font-size: clamp(13px, 0.9vw, 15px);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   PROGRAM STUDI CARDS - PERBAIKAN
   ============================================ */
.program-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
    border-color: #FF6B00;
}

.program-card .program-image {
    height: 260px;
    overflow: hidden;
}

.program-card .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-card .card-content {
    padding: 20px 24px;
}

.program-card .program-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A8A;
    margin-bottom: 8px;
}

.program-card .program-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-card .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    background: #FF6B00;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.program-card .nav-button:hover {
    background: #D45A00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.25);
}

/* ============================================
   BERITA
   ============================================ */
#informasi .bg-white {
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#informasi .bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

#informasi .relative.h-48 {
    height: 200px;
}

#informasi h3 {
    font-size: clamp(15px, 1vw, 18px);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
}

#informasi h4 {
    font-size: clamp(13px, 0.85vw, 15px);
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.3;
}

#informasi .text-gray-600 {
    font-size: clamp(12px, 0.8vw, 14px);
    color: #64748b;
    line-height: 1.5;
}

/* ============================================
   PARTNER CARDS
   ============================================ */
.partner-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.partner-card .partner-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.partner-card .partner-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.partner-card .text-center p {
    font-size: clamp(10px, 0.7vw, 12px);
    font-weight: 600;
    color: var(--secondary);
}

/* ============================================
   TESTIMONI
   ============================================ */
.testimoni-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: all 0.4s ease;
}

.testimoni-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimoni-card .relative.h-56 {
    min-height: 200px;
}

.testimoni-card .relative img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimoni-card .absolute.bottom-0 {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 12px;
}

.testimoni-card .absolute.bottom-0 h4 {
    color: #ffffff;
    font-size: clamp(13px, 0.85vw, 15px);
    font-weight: 600;
}

.testimoni-card .absolute.bottom-0 p {
    color: rgba(255,255,255,0.7);
    font-size: clamp(10px, 0.7vw, 12px);
}

.testimoni-card .p-6 {
    padding: 16px 20px;
}

.testimoni-card .p-6 p {
    font-size: clamp(13px, 0.8vw, 15px);
    color: #475569;
    line-height: 1.7;
    font-style: italic;
}

.testimoni-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.testimoni-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.testimoni-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimoni-dot:hover {
    background: rgba(255, 107, 0, 0.35);
    transform: scale(1.1);
}

.testimoni-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

/* ============================================
   INSTAGRAM GALLERY
   ============================================ */
#instagram-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instagram-item:hover img {
    transform: scale(1.05);
}

.instagram-item .absolute {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-item:hover .absolute {
    background: rgba(0,0,0,0.25);
}

.instagram-item .absolute i {
    font-size: 22px;
    color: #ffffff;
    opacity: 0;
    transition: all 0.3s ease;
}

.instagram-item:hover .absolute i {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-slider {
        height: 380px;
    }
    section {
        padding: 32px 0;
    }
    #instagram-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 300px;
        min-height: 250px;
    }
    section {
        padding: 28px 0;
    }
    .program-card .program-image {
        height: 140px;
    }
    #informasi .relative.h-48 {
        height: 160px;
    }
    .partner-card {
        max-width: 90px;
        padding: 10px;
    }
    #instagram-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 260px;
        min-height: 200px;
    }
    .hero-slide h2 {
        font-size: 18px;
    }
    .hero-slide p {
        font-size: 12px;
    }
    section {
        padding: 24px 0;
    }
    section h2 {
        font-size: 18px;
    }
    .program-card .program-image {
        height: 120px;
    }
    #instagram-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .partner-card {
        max-width: 70px;
        padding: 8px;
    }
    .partner-card .partner-logo {
        height: 40px;
    }
    .partner-card .partner-logo img {
        max-height: 30px;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

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

.scroll-mt-20 {
    scroll-margin-top: 70px;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}