/* ========================================
   WEBSITE STYLES - Pondok Pesantren Al-Ma'rufiyah
   ======================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ========== NAVBAR ========== */
.website-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.website-navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text h1 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.7rem;
    color: #059669;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #059669;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #059669, #10b981);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #059669;
}

.dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.dropdown-trigger:hover {
    color: #059669;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.75rem;
    width: 220px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: #f0fdf4;
    color: #059669;
    padding-left: 1.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    padding: 0.5rem 1.25rem;
    border: 1.5px solid #059669;
    color: #059669;
    background: transparent;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-dashboard {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #475569;
    font-size: 1.5rem;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding-top: 73px;
    min-height: calc(100vh - 300px);
}

/* ========== SLIDER ========== */
#mainSlider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide .bg-gradient-to-r {
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
}

.slide .transform {
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.7s ease;
}

#prevSlide, #nextSlide {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#prevSlide:hover, #nextSlide:hover {
    background-color: #059669;
    transform: scale(1.1);
}

.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background-color: white !important;
    transform: scale(1.2);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #059669);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #059669;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #10b981;
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ========== CAROUSEL ========== */
#galeriCarousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-slide {
    flex-shrink: 0;
    padding: 0 8px;
    transition: all 0.3s ease;
}

#carouselPrev, #carouselNext {
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

#carouselPrev:hover, #carouselNext:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 4px;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 12px;
    background-color: #059669;
}

/* ========== UTILITIES ========== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-text {
        display: none;
    }
    
    .nav-container {
        padding: 0.5rem 1rem;
    }
    
    .btn-login, .btn-dashboard {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .slide h1 {
        font-size: 1.75rem;
    }
    
    .slide p {
        font-size: 0.875rem;
    }
    
    #prevSlide, #nextSlide {
        width: 36px;
        height: 36px;
    }
    
    .slider-dot {
        height: 6px;
    }
    
    .carousel-slide {
        padding: 0 4px;
    }
    
    #carouselPrev, #carouselNext {
        width: 32px;
        height: 32px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
    
    .carousel-dot.active {
        width: 16px;
    }
}

/* ========================================
   PROFIL LEMBAGA ANIMATIONS
   ======================================== */

/* Hover effect untuk cards */
.group:hover .absolute {
    transition: all 0.5s ease;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation untuk decorative elements */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.group:hover .absolute {
    animation: pulse-slow 2s ease-in-out infinite;
}