/* Custom CSS untuk SD PAB 33 */

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C41E3A;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a01830;
}

/* Selection Color */
::selection {
    background-color: #C41E3A;
    color: white;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar Sticky Enhancement */
#mainNavbar {
    transition: all 0.3s ease;
}

#mainNavbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Banner Parallax */
#heroBanner {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #heroBanner {
        background-attachment: scroll;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #FFD700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Image Grid */
.photo-grid img {
    transition: all 0.5s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    #mainNavbar,
    #floatingWa,
    #belSekolah,
    .no-print {
        display: none !important;
    }
}