/* Custom Styles */
.smooth-transition {
    transition: all 0.3s ease-in-out;
}

/* Custom colors for PPDB form section */
.bg-primary-dark {
    background-color: #0f172a; /* dark blue background */
}

.bg-teal-700 {
    background-color: #0d9488;
}

.bg-teal-700:hover {
    background-color: #0f766e;
}

/* Hero section overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slider Styles */
.slider-slide {
    transition: opacity 1s ease-in-out;
}

.slider-dot-active {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Smooth transitions for slider navigation */
#prev-slide, #next-slide {
    backdrop-filter: blur(10px);
}

/* Mobile responsiveness for slider */
@media (max-width: 768px) {
    #prev-slide, #next-slide {
        padding: 0.5rem;
    }
    
    #prev-slide svg, #next-slide svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Ensure images cover properly */
.slider-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Custom styles for Mahad section */
.video-thumbnail {
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.play-button {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* Smooth hover effects */
.info-link:hover {
    transform: translateX(5px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .mahad-content {
        text-align: center;
    }
    
    .info-links {
        justify-content: center;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Custom Shadow */
.shadow-3xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth transitions */
* {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #1e3a8a, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #d4af37, #f59e0b);
}

/* School Modal Styles */
#school-modal {
    backdrop-filter: blur(5px);
}

#school-modal > div {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design untuk modal */
@media (max-width: 768px) {
    #school-modal > div {
        margin: 1rem;
        max-height: 85vh;
    }
    
    #modal-title {
        font-size: 1.5rem;
    }
}

/* Hover effects untuk tombol detail */
.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Article Modal Styles */
#article-modal {
    backdrop-filter: blur(5px);
}

#article-modal > div {
    animation: modalSlideIn 0.3s ease-out;
}

/* Responsive design untuk article modal */
@media (max-width: 768px) {
    #article-modal > div {
        margin: 1rem;
        max-height: 95vh;
    }
    
    #modal-article-title {
        font-size: 1.25rem;
    }
}

/* Prose styling untuk konten artikel */
.prose {
    line-height: 1.6;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 600;
    color: #1e3a8a;
}

/* Cart Selection Styles */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hover effects untuk tombol hapus */
.cart-item button {
    transition: all 0.3s ease;
}

.cart-item button:hover {
    transform: scale(1.05);
}

/* Animation untuk cart items */
@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item {
    animation: slideInCart 0.5s ease-out;
}