:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* Ensure proper line clamping works */
.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;
}

body {
    font-family: 'Noto Naskh Arabic', serif;
    background-color: #f9f9f9;
}

h1,
h2,
h3,
h4,
h5,
h6,
.kufi {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.logo {
    font-family: 'Pacifico', serif;
}

.ticker {
    display: flex;
    align-items: center;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-checkbox {
    display: none;
}

.custom-checkbox+label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox+label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}

.custom-checkbox:checked+label:before {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox+label:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox:checked+label:after {
    opacity: 1;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    /* Adjust breaking news ticker for mobile */
    .ticker {
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    /* Adjust article content for better readability on mobile */
    .prose {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }
}