/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F8F9FA;
}

::-webkit-scrollbar-thumb {
    background: var(--wz-blue-500, #3B82F6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wz-blue-600, #2563EB);
}

.max-w-10xl{
    max-width: 1600px;
}

/* Video Background Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Pulse Animation for Play Button */
@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--wz-blue-500-rgb, 59, 130, 246), 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(var(--wz-blue-500-rgb, 59, 130, 246), 0);
    }
}

.pulse-blue {
    animation: pulse-blue 2s infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--wz-blue-500, #3B82F6), var(--wz-blue-600, #2563EB), var(--wz-blue-700, #1D4ED8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(var(--wz-blue-500-rgb, 59, 130, 246), 0.1);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #E5E7EB, transparent);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #F8F9FA 25%, #E5E7EB 50%, #F8F9FA 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================ */
/* LOGO SCROLL ANIMATION */
/* ============================================ */
.logo-scroll-track {
    animation: logoScroll 30s linear infinite;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.logo-scroll-track:hover {
    animation-play-state: paused;
}

/* ============================================ */
/* CAROUSEL STYLES */
/* ============================================ */
.carousel-container {
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.7s ease;
}

.carousel-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.3);
}

/* ============================================ */
/* BOOKS SWIPER STYLES */
/* ============================================ */
.books-swiper .swiper-slide {
        height: auto;
        display: flex;
    }
    
    .books-swiper .swiper-slide > div {
        width: 100%;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: var(--wz-blue-300, #93C5FD);
        opacity: 1;
        transition: all 0.3s ease;
    }
    
    .swiper-pagination-bullet-active {
        background: var(--wz-blue-600, #2563EB);
        width: 30px;
        border-radius: 5px;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 18px !important;
        font-weight: bold;
    }
    
    .line-clamp-4 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    @media (max-width: 640px) {
        .swiper-button-prev,
        .swiper-button-next {
            display: none !important;
        }
    }

    /* ============================================ */
/* MOBILE RESPONSIVE FIXES */
/* ============================================ */

/* General */
@media (max-width: 768px) {
    /* Section Padding */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Headings */
    h1 { font-size: 2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.35rem !important; }
    
    /* Text */
    .text-xl, .text-2xl { font-size: 1rem !important; }
    .text-lg { font-size: 0.95rem !important; }
    
    /* Grid fixes */
    .grid-cols-2 { grid-template-columns: repeat(1, 1fr) !important; }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Hero Slider Mobile */
@media (max-width: 1024px) {
    .slit-slide-content .slide-author {
        display: none !important;
    }
    
    .slit-slide-content {
        text-align: center;
        left: 5% !important;
        right: 5% !important;
    }
    
    .slit-slide-content .slide-heading {
        font-size: 2rem !important;
        max-width: 100% !important;
    }
    
    .slit-slide-content .slide-desc {
        max-width: 100% !important;
        font-size: 0.95rem !important;
    }
    
    .slit-slide-content .slide-buttons {
        justify-content: center !important;
    }
    
    .slit-arrows button {
        width: 36px !important;
        height: 36px !important;
    }
    
    .slit-nav {
        bottom: 20px !important;
    }
}

/* Video Section Mobile */
@media (max-width: 768px) {
    #watch-video .rounded-2xl {
        border-radius: 12px !important;
    }
    
    #watch-video img {
        height: 250px !important;
    }
    
    .pulse-blue {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Keynote Section Mobile */
@media (max-width: 1024px) {
    #keynote-counselor .grid {
        gap: 2rem !important;
    }
    
    #keynote-counselor img {
        height: 350px !important;
    }
}

/* Books Slider Mobile */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
    
    .books-swiper .swiper-slide > div {
        margin: 0 4px !important;
    }
    
    .swiper-pagination {
        margin-top: 1rem !important;
    }
}

/* Bestselling Author Mobile */
@media (max-width: 768px) {
    .carousel-container {
        min-height: 240px !important;
    }
    
    .carousel-slide p {
        font-size: 1rem !important;
    }
    
    .logo-scroll-track img {
        height: 28px !important;
    }
}

/* About Section Mobile */
@media (max-width: 1024px) {
    #about img {
        height: 400px !important;
    }
    
    #about .bg-blue-600 {
        right: 0 !important;
        bottom: -20px !important;
        padding: 12px 16px !important;
    }
}

/* Newsletter Mobile */
@media (max-width: 768px) {
    #newsletter .rounded-3xl {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    
    #newsletter .grid-cols-2 {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Footer Menu Links */
footer .footer-menu,
footer ul.menu,
footer .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .footer-menu li,
footer ul.menu li,
footer .menu li {
    margin-bottom: 0.75rem;
}

footer .footer-menu a,
footer ul.menu a,
footer .menu a {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

footer .footer-menu a:hover,
footer ul.menu a:hover,
footer .menu a:hover {
    color: #ffffff;
}

footer .footer-menu a:focus,
footer ul.menu a:focus,
footer .menu a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Footer Mobile */
@media (max-width: 768px) {
    footer .grid {
        gap: 2rem !important;
    }
    
    footer .text-center-mobile {
        text-align: center !important;
    }
    
    footer .flex.items-center.space-x-3 {
        justify-content: center !important;
    }
    
    footer .flex.space-x-3 {
        justify-content: center !important;
    }
}

/* Bulk Order Modal Mobile */
@media (max-width: 640px) {
    #bulk-order-modal .relative {
        margin: 0.5rem !important;
        padding: 1.25rem !important;
        max-height: 85vh !important;
        border-radius: 16px !important;
    }
    
    #bulk-order-modal .grid-cols-2 {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* Stats Counter Mobile */
@media (max-width: 640px) {
    .counter {
        font-size: 2rem !important;
    }
}

/* Fix tap targets on mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 40px;
    }
    
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* Smooth scroll offset for fixed header */
@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 80px;
    }
}