/* Complete myportail_large.css with Modern Header and True Accordion */

/* Modern Header Styles */
header {
    font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-size: 1.5em;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #1e3a8a 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    direction: rtl;
    vertical-align: middle;
}

/* Add subtle animation overlay */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Logo container styling */
.logo-container {
    display: flex;
    align-items: center;
    z-index: 2;
}

header .logo img {
    height: 60px;
    margin: 0 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.05);
}

/* Modern navigation with equal width buttons */
header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
    gap: 15px; /* Add horizontal spacing between buttons */
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Equal width properties */
    display: inline-block;
    text-align: center;
    min-width: 120px; /* Set minimum width for all buttons */
    width: 120px; /* Set fixed width for all buttons */
}

header nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);    
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

header nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

header nav ul li a:hover::before {
    opacity: 1;
}

/* Updated Hero Section - Logo and H1 Alignment */
#hero {
    text-align: right; /* Changed from left to right for RTL */
    padding: 20px;
    direction: rtl; /* Add RTL direction */
}

/* Modified logo container to work with h1 alignment */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    direction: ltr; /* Reset direction for proper flex alignment */
}

/* Logo styling */
.logo-left {
    order: 1; /* Ensure logo is first in visual order */
}

.logo-left img {
    width: auto;
    max-height: 100px;
}

/* Updated H1 to align with logo */
#hero h1 {
    font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    margin: 0;
    padding: 0;
    color: #1e293b;
    text-align: right; 
    direction: rtl; 
    flex: 1; 
    margin-right: 20px; 
    order: 2; 
}

/* Alternative approach - put h1 inside logo-container */
.logo-container.with-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.logo-container.with-title h1 {
    font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    margin: 0;
    padding: 0;
    color: #1e293b;
    text-align: right;
    direction: rtl;
    flex: 1;
    margin-right: 20px;
}

/* Description paragraph */
#hero p {
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    margin: 0;
    padding: 0;   
    font-size: 0.9em; 
    text-align: right;    
    direction: rtl;
    margin-top: 20px; /* Add some space above */
    line-height: 1.6; /* Better readability */
    color: #475569; /* Better color contrast */
}

#hero img {
    max-height: 100px;
}

/* Articles Styles - Clean Title List */
.articles-list {
    display: flex;
    flex-direction: column;
    padding-right: 5px;
    gap: 2px !important; 
    margin-top: 5px !important; 
}

.article-item {
    background: transparent;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    margin: 0;
    direction: rtl;
}

.article-item::before {
    content: none; 
}

.article-item:hover {
    transform: translateX(-5px); /* RTL hover effect */
    box-shadow: none;
    border-color: transparent;
}

.article-item h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

.article-item h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    text-align: right;
    position: relative;    
    padding: 4px 0 !important; 
    line-height: 1.3 !important; 
}

.article-item h4 a::before {
    content: "•";
    color: #ec0b16e1;
    margin-left: 8px;
    font-weight: 600;
}

.article-item:hover h4 a::before {
    transform: scale(1.3); 
}

.article-item h4 a:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Multi Gallery Section */
#multi-gallery{
    text-align: center;
    background-color: #fff;
}

#multi-gallery h2{
    font-family: 'Cairo Play','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5em;
    margin: 0;
    padding: 0;
    color: #1e293b; 
    text-align: center;
    padding-bottom: 1.5em; 
}
body #multi-gallery h2 {
  color: #1e293b;
}

#multi-gallery p {
    font-family: 'Readex Pro', 'Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    padding: 5px;   
    font-size: 1.2rem;
    text-align: right;    
    direction: rtl;
    margin-top: 0px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #475569;
    font-weight: 400;
    letter-spacing: 0;
    background-color: white;
    font-size: 0.9em;
}

/* Tab Container for Multi Gallery */
.tab-container {
    margin: 20px 0;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.tab-container .tab-button {
    font-family: 'El Messiri','Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    font-size: 1.5em;
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 20px;
    transition: all 0.3s ease;
    color: #555;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    min-width: 120px;
}

.tab-container .tab-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.tab-container .tab-button.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Tab Content for Multi Gallery */
#multi-gallery .tab-content {
    display: none;
    padding: 25px;
    background: white;
    border-top: 3px solid #3498db;
    animation: fadeIn 0.3s ease-in-out;
}

#multi-gallery .tab-content h3 {
    font-family: 'Cairo Play', 'Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.5em;
}

#multi-gallery .tab-content p {
    color: #475569;
    line-height: 1.6;
    text-align: right;
    /*font-family: 'Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;*/
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body and General Styles */
body {
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    line-height: 1.6;
    color: #334155; /* Modern slate color instead of #333 */
    background-color: #f8fafc; /* Softer background */
    margin: 0;
    padding: 0;
    text-align: right;
}

a {
    color: #2563eb; /* Modern blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    border-radius: 16px; /* More rounded corners */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
    overflow: hidden;
}

/* 1️⃣  Make the bar tall enough to create vertical space */
header nav{
    height: 64px;          /* pick any height you like */
}

/* 2️⃣  Center the text inside the <li> */
header nav ul li:last-child{
    display: flex;
    align-items: center;   /* vertical centering   */
    justify-content: center; /* horizontal centering */
}

/* RTL Support */
body[dir="rtl"] nav ul li {
    margin-left: 0;
    margin-right: 20px;
}

/* CTA Button */
.cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Integration Section */
#integration h2 {
    margin-bottom: 15px;
    color: #2563eb; /* Updated to match modern theme */
}

#integration h3 {
    color: #64748b; /* Modern slate gray */
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 40px 20px;
    text-align: center;
}

#contact h2 {
    font-family: 'Markazi Text';
    font-weight: 1000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #1e293b;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

#contact form {
    display: flex;
    flex-direction: column;
}

#contact label {
    font-family: 'Markazi Text';
    margin-top: 15px;
    text-align: left;
    color: #475569;
    font-weight: 600; 
    font-size: 1.3em;
}

#contact input[type="text"],
#contact input[type="email"],
#contact input[type="tel"],
#contact textarea {
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact input[type="tel"]:focus,
#contact textarea:focus {
    border-color: #2563eb;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#contact textarea {
    resize: vertical;
}

#contact button[type="submit"] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-family: 'Markazi Text';
    font-weight: 600;
    font-size: 1.3em;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

#contact button[type="submit"]:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Gallery Section */
#gallery {
    padding: 20px 10px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

#gallery h2{
    color: #1e293b;
}

#gallery p{
    font-size: 13px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.gallery-container {
    overflow: hidden;
    white-space: nowrap;
}

.gallery-slide {
    display: inline-block;
    animation: slide 60s linear infinite;
}

.gallery-slide img {
    height: 250px;
    margin: 0 10px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.05);
}

@keyframes slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* List Titles */
li.titre {
    font-weight: bold;
    color: #475569; /* Modern slate */
    padding: 5px;
    margin: 5px 0;
    border-bottom: 1px solid #e2e8f0; /* Lighter border */
}

/* Footer */
footer {
    direction: rtl;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%); /* Match header theme */
    padding: 20px 10px;
    text-align: center;
}

.footer-content {
    text-align: center;
    width: 100%;
}

.colonne-adresse-liens {
    font-family: 'Readex Pro','Markazi Text', 'Noto Sans Arabic', Arial, sans-serif;
    line-height: 1.6; 
    font-size: 0.8em;
    color: #e2e8f0; /* Lighter text for better contrast */
    text-align: center;
    width: 100%; 
    margin: 0 auto; 
}

.colonne-adresse-liens .adresse {
    margin-bottom: 20px;
}

.colonne-adresse-liens .liens {
    margin-top: 30px;
}

footer-content h3 {
    text-align: center;
}

footer .liens a, footer .logiciels a {
    display: block;
    margin: 5px 0;
    text-decoration: none;
    color: #a9abad;
    transition: color 0.3s ease;
}

footer .liens a:hover, footer a:hover {
   color: #a9abad;
}

.adresse {
   color: #a9abad;
}

/* make every link inside the footer white */
footer a {
    color: #fff !important;      /* or #ffffff / white */
    text-decoration: none;
}

/* optional – keep the hover effect you already have */
footer a:hover {
    color: #b9b4b4 !important;
}

/* Article Preview Styles */
.article-preview {
    position: absolute;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px; /* Increased from 400px */
    min-width: 300px; /* Added minimum width */
    max-height: 300px; /* Added maximum height */
    overflow-y: auto; /* Allow scrolling if content is long */
    z-index: 10000;
    display: none;
    font-family: 'Markazi Text','Noto Sans Arabic',  Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.6; 
    color: #0c0c0e;
    text-align: right;
    direction: rtl;
    transition: opacity 0.3s ease;
}

.article-preview .preview-content {
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 1em; 
}

.article-preview .preview-more {
    display: block;
    margin-top: 0px; 
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9em;
    text-align: center;
    padding: 8px; 
    border: 1px solid #2563eb;
    border-radius: 4px;
    background-color: #f8fafc;
}

.article-preview .preview-more:hover {
    background-color: #2563eb;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        gap: 10px;
    }

    header nav ul li {
        margin: 5px 0;
    }

    header nav ul li a {
        padding: 10px 16px;
        font-size: 0.9em;
        width: 200px; /* Fixed width for mobile buttons */
        min-width: 200px; /* Ensure minimum width on mobile */
    }

    /* Mobile hero section */
    .logo-container,
    .logo-container.with-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #hero h1,
    .logo-container.with-title h1 {
        text-align: center;
        margin-right: 0;
        margin-top: 15px;
        font-size: 2em; /* Slightly smaller on mobile */
    }

    .logo-left img {
        max-height: 80px;
    }

    #hero img {
        max-height: 80px;
    }

    /* Mobile accordion styles */
    .accordion-button {
        font-size: 1em;
        padding: 15px 20px;
    }
    
    .accordion-inner {
        padding: 15px 25px !important; 
    }
    
    .accordion-content.active {
        max-height: 400px;
    }

    /* Mobile article styles */
    .articles-list {
        gap: 12px;
    }

    .article-item h4 {
        font-size: 1.1em;
    }

    .tab-container .tab-button {
        font-size: 1.2em;
        padding: 10px 15px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .contact-container {
        width: 90%;
    }
    
    .container {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-left, .logo-right {
        margin-bottom: 10px;
    }

    #hero h1,
    .logo-container.with-title h1 {
        font-size: 1.8em;
    }

    .logo-left img {
        max-height: 60px;
    }

    #hero img {
        max-height: 60px;
    }

    header nav ul li a {
        width: 180px;
        min-width: 180px;
    }

    .tab-container .tab-button {
        font-size: 1em;
        padding: 8px 12px;
        min-width: 80px;
    }

    /* Very small screen article adjustments */
    .article-item h4 {
        font-size: 1em;
    }
}

@media (max-width: 900px) {
    .video-container {
        max-width: 90%;
    }
}

@media (max-width: 600px) {
    .video-container {
        margin: 1em 0;
        max-width: 100%;
    }
}

/* 1️⃣  Make the li span the whole width on small screens */
@media (max-width: 768px){
    header nav ul li:last-child{
        width: 100%;        /* take the whole row */
        text-align: center; /* fall-back if flex is ignored */
    }
}

/* 2️⃣  Let the nav grow on mobile instead of a fixed height */
@media (max-width: 768px){
    header nav{
        height: auto;       /* remove the fixed height */
        padding: 12px 0;    /* keep some vertical space */
    }
}

h4 {
    display: flex;          
    align-items: center;    
    vertical-align: middle; 
    flex-wrap: wrap;   
     gap: 0.5rem;     
}

/* ---------- HEADER NAVIGATION ICONS ---------- */
.header-nav-icons {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
    .header-nav-icons {
        left: 20px;
    }
    
    .nav-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .header-nav-icons {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 1rem;
        gap: 0.75rem;
    }
    
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 1rem;
    }
    
    header span {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .header-nav-icons {
        order: 2;
    }
    
    .nav-icon {
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
    
    .nav-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/*** STYLE DATE / NBRE CONSULTATION****/
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 4px 0 0 0;
    font-size: 13px !important;
    flex-wrap: wrap;
    row-gap: 5px;
}

.article-date {
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.read-count {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.article-author {
    color: #8B5CF6;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    font-size: 12px !important;
}

.date-icon, .read-icon, .author-icon {
    flex-shrink: 0;
    opacity: 0.8;
    width: 14px;
    height: 14px;
}

.article-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
    border-bottom: none;
}

/* Faouzi section specific styles */
.faouzi-article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 4px 0 0 0;
    font-size: 13px !important;
}

/* Mobile responsiveness for article meta */
@media (max-width: 768px) {
    .article-meta {
        gap: 10px;
        font-size: 12px !important;
    }
    
    .article-author, .article-date, .read-count {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .article-author, .article-date, .read-count {
        min-width: auto;
    }
}

/* Author list styles */
/* Loading animation styles */
.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-animation p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #e53e3e;
}

/* Author list styles - Lightweight version */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.author-item {
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.author-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.author-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #1e293b;
}

.article-count {
    font-size: 13px;
    color: #64748b;
}

/* Lightweight style variations - Using simple borders and subtle backgrounds */
.author-item.style-1 { border-left: 4px solid #3b82f6; background-color: #f8fafc; }
.author-item.style-2 { border-left: 4px solid #f59e0b; background-color: #fffbeb; }
.author-item.style-3 { border-left: 4px solid #10b981; background-color: #ecfdf5; }
.author-item.style-4 { border-left: 4px solid #6366f1; background-color: #eef2ff; }
.author-item.style-5 { border-left: 4px solid #ec4899; background-color: #fdf2f8; }
.author-item.style-6 { border-left: 4px solid #8b5cf6; background-color: #f5f3ff; }
.author-item.style-7 { border-left: 4px solid #06b6d4; background-color: #ecfeff; }
.author-item.style-8 { border-left: 4px solid #f97316; background-color: #fff7ed; }
.author-item.style-9 { border-left: 4px solid #84cc16; background-color: #f7fee7; }
.author-item.style-10 { border-left: 4px solid #ef4444; background-color: #fef2f2; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .author-name {
        font-size: 18px;
    }
    
    .author-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }
}

/* Force article links to use Markazi Text, NOT Cairo Play */
.article-item h4,
.article-item h4 a {
    font-family: 'Markazi Text', 'Readex Pro', 'Noto Sans Arabic', Arial, sans-serif !important;
}


