/* Academy Blue Theme Styles */

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

.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 Customization */
.swiper-button-next,
.swiper-button-prev {
    color: #3b82f6 !important;
    background: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #eff6ff !important;
    transform: scale(1.1);
}

/* Course Card Hover Effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Backdrop Blur Support */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* RTL Support */
[dir="rtl"] .swiper-button-next {
    left: 10px !important;
    right: auto !important;
}

[dir="rtl"] .swiper-button-prev {
    right: 10px !important;
    left: auto !important;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Selection Styles */
::selection {
    background-color: #3b82f6;
    color: white;
}

::-moz-selection {
    background-color: #3b82f6;
    color: white;
}

/* Primary Colors - Academy Blue Theme */
.bg-primary-600 {
    background-color: #3b82f6 !important;
}

.bg-primary-500 {
    background-color: #3b82f6 !important;
}

.text-primary-600 {
    color: #3b82f6 !important;
}

.text-primary-100 {
    color: #dbeafe !important;
}

.text-primary-500 {
    color: #3b82f6 !important;
}

.border-primary-600 {
    border-color: #3b82f6 !important;
}

.border-t-primary-600 {
    border-top-color: #3b82f6 !important;
}

.hover\:bg-primary-600:hover {
    background-color: #3b82f6 !important;
}

.hover\:bg-primary-700:hover {
    background-color: #2563eb !important;
}

/* Secondary Colors */
.text-secondary-100 {
    color: #e0e7ff !important;
}

.bg-secondary-100 {
    background-color: #e0e7ff !important;
}

/* Academy Theme Specific Colors */
.bg-\[#203526\] {
    background-color: #203526 !important;
}

.text-\[#203526\] {
    color: #203526 !important;
}

.bg-\[#45a565\] {
    background-color: #45a565 !important;
}

.hover\:bg-\[#45a565\]:hover {
    background-color: #45a565 !important;
}

.bg-\[#51ba74\] {
    background-color: #51ba74 !important;
}
