/*
Custom style
*/

@media (min-width: 1024px) {
    .lg\:grid-cols-7 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Custom Scrollbar for Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1729; 
}

::-webkit-scrollbar-thumb {
    background: #4b5563; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6; 
}

/* Footer Widget Styling */
.footer-widget-col h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Lalezar', sans-serif !important;
}

/* RTL Footer Underline */
.footer-widget-col h3::after {
    content: '';
    position: absolute;
    right: 0; /* Right for RTL */
    left: auto;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #8b5cf6;
}

.footer-widget-col ul li {
    margin-bottom: 0.75rem;
}

.footer-widget-col ul li a {
    color: #9ca3af;
    transition: all 0.2s;
    display: inline-block;
    font-family: 'Changa', sans-serif;
}

.footer-widget-col ul li a:hover {
    color: #fff;
    transform: translateX(-5px); /* Move left for RTL hover effect */
}

/* Ensure body uses Arabic font */
body {
    font-family: 'Cairo', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lalezar', 'Changa', sans-serif;
}

/* RTL Specific Overrides if needed */
[dir="rtl"] .transform-flip {
    transform: scaleX(-1);
}

/* --- Professional Button Styles --- */

/* Primary Gradient Button (Violet/Indigo) */
.btn-pro-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Changa', sans-serif;
}

.btn-pro-primary:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(167, 139, 250, 0.8);
}

.btn-pro-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

/* Secondary Glass Button */
.btn-pro-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    transition: all 0.3s ease;
    font-family: 'Changa', sans-serif;
}

.btn-pro-glass:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Action Icon Button (Circle/Square) */
.btn-pro-icon {
    background: #1E2A45;
    color: #9CA3AF;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-pro-icon:hover {
    background: #2D3B5E;
    color: white;
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Play Now Button Specifics */
.btn-play-glow {
    position: relative;
    z-index: 1;
    font-family: 'Lalezar', sans-serif;
}

.btn-play-glow::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00ffcc, #ff00cc);
    z-index: -1;
    background-size: 400%;
    border-radius: 9999px;
    opacity: 0;
    transition: 0.5s;
}

.btn-play-glow:hover::before {
    opacity: 1;
    animation: glowing 20s linear infinite;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Typography Overrides for Article Content */
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Lalezar', sans-serif !important;
}
.prose p, .prose li {
    font-family: 'Cairo', sans-serif;
}

/* --- Skeleton Loading Effect --- */
.skeleton {
    background-color: #2A364F;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Ensure images fade in nicely when lazysizes loads them */
.lazyload, .lazyloading {
    opacity: 0;
}

.lazyloaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}