/* 
   Static CSS optimized for performance.
   Combines custom styles with necessary Tailwind utilities.
*/

/* --- Base & Reset --- */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

/* --- Custom Aesthetics (Restored) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    /* Royal Blue */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #172554;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

img {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

/* --- Tailwind Colors (Custom Config) --- */
:root {
    --color-primary: #1e3a8a;
    /* Royal Blue */
    --color-secondary: #334155;
    /* Slate */
    --color-accent: #CFB53B;
    /* Gold */
    --bg-slate-50: #f8fafc;
    --bg-slate-900: #0f172a;
    --text-slate-900: #0f172a;
    --text-slate-600: #475569;
    --text-slate-400: #94a3b8;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.flex {
    display: flex;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-6 {
    margin-right: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pb-8 {
    padding-bottom: 2rem;
}

.pr-4 {
    padding-right: 1rem;
}

.pr-5 {
    padding-right: 1.25rem;
}

.w-full {
    width: 100%;
}

.w-1\/2 {
    width: 50%;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

.w-48 {
    width: 12rem;
}

.h-1 {
    height: 0.25rem;
}

.h-1\.5 {
    height: 0.375rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-20 {
    height: 5rem;
}

.h-32 {
    height: 8rem;
}

.h-48 {
    height: 12rem;
}

.h-80 {
    height: 20rem;
}

.h-auto {
    height: auto;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-l-3xl {
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-r-4 {
    border-right-width: 4px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t-4 {
    border-top-width: 4px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-blue-100 {
    border-color: #dbeafe;
}

.border-blue-200 {
    border-color: #bfdbfe;
}

.border-blue-700 {
    border-color: #1d4ed8;
}

.border-indigo-500 {
    border-color: #6366f1;
}

.border-transparent {
    border-color: transparent;
}

.border-slate-800 {
    border-color: #1e293b;
}

.border-accent {
    border-color: var(--color-accent);
}

.border-primary {
    border-color: var(--color-primary);
}

.bg-white {
    background-color: #ffffff;
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-slate-50 {
    background-color: var(--bg-slate-50);
}

.bg-slate-900 {
    background-color: var(--bg-slate-900);
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-50\/50 {
    background-color: rgb(239 246 255 / 0.5);
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-800 {
    background-color: #1e40af;
}

.bg-blue-800\/50 {
    background-color: rgb(30 64 175 / 0.5);
}

.bg-blue-900 {
    background-color: #1e3a8a;
}

.bg-indigo-50 {
    background-color: #eef2ff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.bg-white\/5 {
    background-color: rgb(255 255 255 / 0.05);
}

.bg-white\/95 {
    background-color: rgb(255 255 255 / 0.95);
}

.text-white {
    color: #ffffff;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.text-slate-900 {
    color: var(--text-slate-900);
}

.text-slate-600 {
    color: var(--text-slate-600);
}

.text-slate-400 {
    color: var(--text-slate-400);
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-200 {
    color: #bfdbfe;
}

.text-blue-100 {
    color: #dbeafe;
}

.text-blue-600 {
    color: #2563eb;
}

.text-red-600 {
    color: #dc2626;
}

.text-green-600 {
    color: #16a34a;
}

.text-yellow-600 {
    color: #ca8a04;
}

.font-sans {
    font-family: 'Cairo', sans-serif;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:bg-primary:hover {
    background-color: var(--color-primary);
}

.hover\:text-primary:hover {
    color: var(--color-primary);
}

.group:hover .group-hover\:text-primary {
    color: var(--color-primary);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

/* --- Missing Utilities for Articles Page --- */
.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.object-cover {
    object-fit: cover;
}