/* ============================================
   CUSTOM STYLES LBB RUMAH TOSCA
   ============================================ */

:root {
    --tosca: #20B2AA;
    --tosca-dark: #1a9e97;
    --tosca-light: #e6f7f5;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Warna kustom */
.bg-tosca { background-color: #20B2AA; }
.text-tosca { color: #20B2AA; }
.border-tosca { border-color: #20B2AA; }

.bg-gradient-tosca {
    background: linear-gradient(135deg, #20B2AA 0%, #1a9e97 100%);
}

/* Animasi */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(32, 178, 170, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(32, 178, 170, 0); }
}

.float-animation { animation: float 5s ease-in-out infinite; }
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.pulse-glow { animation: pulse-glow 2s infinite; }

/* Navbar rounded bottom */
.navbar-rounded {
    border-radius: 0 0 28px 28px;
}

/* Carousel container */
.carousel-container {
    margin-top: 24px;
    margin-left: 16px;
    margin-right: 16px;
    border-radius: 28px;
    overflow: hidden;
}

/* Horizontal scroll */
.scroll-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding: 8px 16px 20px;
    scrollbar-width: thin;
}

.scroll-horizontal::-webkit-scrollbar {
    height: 4px;
}

.scroll-horizontal::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.scroll-horizontal::-webkit-scrollbar-thumb {
    background: #20B2AA;
    border-radius: 10px;
}

.scroll-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 280px;
}

/* Card hover effects */
.service-card, .tutor-card, .berita-card, .testimonial-card {
    transition: all 0.3s ease;
}

.service-card:hover, .tutor-card:hover, .berita-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
}

/* Tutor card image */
.tutor-card .tutor-img {
    width: 100%;
    height: 192px;
    object-fit: cover;
}

/* Berita card image */
.berita-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Line clamp */
.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;
}

/* Swiper custom */
.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(32, 178, 170, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px;
}

.swiper-pagination-bullet-active {
    background: #20B2AA !important;
}

/* Glass effect */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Tutor avatar fallback */
.tutor-avatar-fallback {
    width: 100%;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f7f5, #b2dfdb);
    color: #20B2AA;
    font-size: 64px;
}

/* ===== SERVICE CARD ENHANCEMENT ===== */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.service-card .border-b-4 {
    transition: border-color 0.3s ease;
}

/* Badge styling */
.service-card .absolute.top-3.right-3 {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* List item hover */
.service-card ul li {
    transition: all 0.2s ease;
    padding: 2px 0;
    border-radius: 6px;
}

.service-card ul li:hover {
    background: rgba(32, 178, 170, 0.05);
    padding-left: 4px;
}

/* Tombol Detail hover */
.service-card button {
    position: relative;
    overflow: hidden;
}

.service-card button .relative.z-10 {
    transition: all 0.3s ease;
}

.service-card button:hover .relative.z-10 {
    transform: scale(1.02);
}

/* Shadow warna untuk setiap card */
.service-card:first-child:hover {
    box-shadow: 0 20px 40px -12px rgba(32, 178, 170, 0.3);
}

.service-card:nth-child(2):hover {
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.3);
}

.service-card:last-child:hover {
    box-shadow: 0 20px 40px -12px rgba(168, 85, 247, 0.3);
}

/* Level badge animation */
.service-card .inline-flex .bg-pink-100,
.service-card .inline-flex .bg-green-100,
.service-card .inline-flex .bg-purple-100 {
    transition: all 0.3s ease;
}

.service-card .inline-flex .bg-pink-100:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2);
}

.service-card .inline-flex .bg-green-100:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.service-card .inline-flex .bg-purple-100:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

/* ===== MODAL SCROLLBAR ===== */
#posterModal .overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}
#posterModal .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#posterModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #20B2AA;
    border-radius: 10px;
}
#posterModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #1a9e97;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-item {
        width: 260px;
    }
}

@media (max-width: 640px) {
    .service-card .absolute.top-3.right-3 {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .service-card .absolute.bottom-3.left-3 {
        font-size: 10px;
        padding: 2px 10px;
    }
}