body {
    font-family: 'Inter', sans-serif;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}


/* Manual scroll wrapper with drag functionality */
.packages-scroll-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical panning */
}

/* Optimize for mobile - keep animation but ensure it doesn't interfere with scrolling */
@media (max-width: 767px) {
    .packages-scroll-wrapper {
        scroll-behavior: auto; /* Instant scrolling on mobile for better performance */
        cursor: default;
        will-change: scroll-position; /* Hint browser for optimization */
        touch-action: pan-x pan-y; /* Allow both horizontal and vertical scrolling */
    }

    .packages-scroll-container {
        transform: translateZ(0); /* Force hardware acceleration */
        backface-visibility: hidden;
        /* Remove pointer-events restrictions to allow page scrolling */
    }

    .packages-scroll-container .flex-shrink-0 {
        transform: translateZ(0); /* Hardware acceleration for cards */
        /* Remove pointer-events auto to allow natural touch behavior */
    }
}

/* Remove grab cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .packages-scroll-wrapper {
        cursor: default;
    }
}

.packages-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.packages-scroll-wrapper:active {
    cursor: grabbing;
}

/* Disable text selection while dragging */
.packages-scroll-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.packages-scroll-wrapper.dragging * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent any selection or dragging artifacts */
.packages-scroll-wrapper.dragging {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Announcement close button styling */
.announcement-close {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .announcement-close {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}
.announcement-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.dark .announcement-close:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile Layout Styles - 2 items per row */
@media (max-width: 767px) {
    /* Top Packages - 2 items at a time on mobile */
    .packages-scroll-container .flex-shrink-0 {
        width: calc((100vw - 48px - 16px) / 2) !important; /* 2 items: viewport - padding - gaps */
        margin: 0 4px !important;
    }
    
    /* Better badge sizing on mobile */
    .packages-scroll-container .absolute.top-3 {
        top: 0.5rem !important;
    }
    
    .packages-scroll-container .absolute.right-3 {
        right: 0.5rem !important;
    }
    
    .packages-scroll-container .absolute.left-3 {
        left: 0.5rem !important;
    }
    
    /* Featured Services & Products Mobile Layout */
    .mobile-grid-2 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Mobile responsive image sizing */
    .mobile-grid-2 .h-48 {
        height: 140px !important;
    }
    
    /* Adjust card widths for mobile grid layout */
    .mobile-grid-2 .w-80 {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Mobile text sizing adjustments */
    .mobile-grid-2 .text-base {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
    }
    
    .mobile-grid-2 .text-xl {
        font-size: 0.95rem !important;
        line-height: 1.4rem !important;
    }
    
    .mobile-grid-2 .text-sm {
        font-size: 0.8rem !important;
        line-height: 1.2rem !important;
    }
    
    .mobile-grid-2 .text-xs {
        font-size: 0.7rem !important;
        line-height: 1rem !important;
    }
    
    .mobile-grid-2 .p-6 {
        padding: 0.875rem !important;
    }
    
    .mobile-grid-2 .p-5 {
        padding: 0.75rem !important;
    }
    
    .mobile-grid-2 .px-4 {
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
    }
    
    .mobile-grid-2 .py-2\.5 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .mobile-grid-2 .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .mobile-grid-2 .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .mobile-grid-2 .mb-2 {
        margin-bottom: 0.375rem !important;
    }
    
    .mobile-grid-2 .mb-1 {
        margin-bottom: 0.25rem !important;
    }
    
    /* Ensure consistent heights */
    .mobile-grid-2 > a,
    .mobile-grid-2 > div {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-grid-2 .min-h-\[3rem\] {
        min-height: 2rem !important;
    }
    
    /* Better price display on mobile */
    .mobile-grid-2 .gap-2 {
        gap: 0.375rem !important;
    }
    
    /* Optimize card hover on mobile */
    @media (hover: none) {
        .mobile-card-link:active {
            opacity: 0.9;
            transform: scale(0.98);
        }
    }
    
    /* Top Packages mobile card adjustments */
    .packages-scroll-container .h-48 {
        height: 160px !important; /* Slightly larger than grid layout */
    }
    
    .packages-scroll-container .text-lg {
        font-size: 0.95rem !important;
        line-height: 1.4rem !important;
    }
    
    .packages-scroll-container .text-xl {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    
    .packages-scroll-container .text-sm {
        font-size: 0.8rem !important;
        line-height: 1.2rem !important;
    }
    
    .packages-scroll-container .text-xs {
        font-size: 0.7rem !important;
    }
    
    .packages-scroll-container .p-6 {
        padding: 0.875rem !important;
    }
    
    .packages-scroll-container .px-4 {
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
    }
    
    .packages-scroll-container .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Hide View Details button on mobile - card is clickable */
    .mobile-hide-btn {
        display: none !important;
    }
    
    /* Make entire card clickable on mobile */
    .mobile-card-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }
    
    .mobile-card-link:hover {
        text-decoration: none;
    }
}
