﻿/* =============================================
   EVENTS MODULE - ENGLISH LAYOUT
   Author: Denny A Devassy
   Date: 2025-10-09
   ============================================= */

/* ========== HOME PAGE - EVENTS TAB ========== */
.events-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .event-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .event-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c41e3a;
    line-height: 1.2;
}

.event-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.event-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(196, 30, 58, 0.9);
    color: #fff;
    padding: 0.35rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-location, .event-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

    .event-location i, .event-duration i {
        color: #c41e3a;
        font-size: 0.875rem;
    }

.event-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

 

.event-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 0px solid #eee;
}

.event-learn-more {
    color:#666666 !important;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

    .event-learn-more:hover {
        gap: 0.75rem;
    }

.add-to-calendar, .btn-add-calendar {
    background: transparent;
    border: 1px solid #ffffff;
    color: #c41e3a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .add-to-calendar:hover, .btn-add-calendar:hover {
        background: #c41e3a;
        color: #fff;
    }

    .add-to-calendar i, .btn-add-calendar i {
        font-size: 1rem;
    }




/* ==================== NEWS LISTING PAGE ==================== */
.events-listing-page {
    padding: 0 0 60px;
    background: #f8f9fa !important;
    min-height: 100vh;
    margin-top: 0px;
    position: relative;
    z-index: 10;
}

/* Search Header */
.events-search-header {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    margin-top: -50px;
    backdrop-filter: blur(10px);
}

    .events-search-header h1 {
        font-size: 42px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 30px;
    }

/* Search Filters */
.search-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
    
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
     
    font-size: 16px;
    transition: all .3s ease;
    
}

    .search-input:focus {
        outline: none;
        border-color: #c41e3a;
        box-shadow: 0 0 0 3px rgba(196,30,58,.1);
    }

.search-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: stretch;
}

.filter-select, .filter-date {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: all .3s ease;
    width: 100%;
    height: 48px;
}

    .filter-select:focus, .filter-date:focus {
        outline: none;
        border-color: #c41e3a;
    }

.search-btn {
    padding: 12px 30px;
    background: #c41e3a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    width: 100%;
}

    .search-btn:hover {
        background: #a01730;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(196,30,58,.3);
    }





/* Responsive: stack filters on small screens */
@media (max-width: 992px) {
    .filter-group {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .filter-group {
        grid-template-columns: 1fr;
    }
}
/* ========== EVENT DETAIL PAGE ========== */
.event-detail-page {
  /*  padding: 2rem 0;*/
    background: #f8f9fa !important;
}

.event-article {
    background: #f8f9fa !important;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.article-category {
    display: inline-block;
    background: #c41e3a;
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 1rem 0 1.5rem 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.event-date-info, .event-location-info, .event-venue-info, .meta-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

    .event-date-info i, .event-location-info i, .event-venue-info i, .meta-views i {
        color: #c41e3a;
    }

.event-actions-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.btn-add-calendar-large {
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .btn-add-calendar-large:hover {
        background: #a01629;
        transform: translateY(-2px);
    }

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .share-btn:hover {
        background: #c41e3a;
        color: #fff;
        border-color: #c41e3a;
    }

.article-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

    .article-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #333;
}

.article-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid #c41e3a;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
}

.article-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.event-details-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

    .event-details-box h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1.5rem;
    }

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    gap: 1rem;
}

    .detail-item i {
        font-size: 1.25rem;
      /*  color: #c41e3a;*/
        margin-top: 0.25rem;
    }

    .detail-item strong {
        display: block;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 0.5rem;
    }

    .detail-item p {
        margin: 0;
        color: #666;
        font-size: 0.875rem;
    }

.btn-add-calendar-full {
    width: 100%;
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

    .btn-add-calendar-full:hover {
        background: #a01629;
    }

.related-events {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    margin-bottom:150px;
}

    .related-events .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 2rem;
        order: 1;
    }

    .related-events h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
        text-align: left;
    }

.view-all {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    text-align: right;
    margin-left: auto;
}

    .view-all:hover {
        gap: 0.75rem;
    }

.related-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed from auto-fill to fixed 3 columns */
    gap: 2rem;
    width: 100%;
    order: 2;
}

/* ========== LOADING & EMPTY STATES ========== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c41e3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-content, .no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

    .no-content i, .no-results i {
        font-size: 4rem;
        color: #ddd;
        margin-bottom: 1rem;
    }

.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

    .not-found i {
        font-size: 5rem;
        color: #c41e3a;
        margin-bottom: 1.5rem;
    }

    .not-found h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1rem;
    }

    .not-found p {
        color: #666;
        margin-bottom: 2rem;
    }

.btn-primary {
    background: #c41e3a;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: #a01629;
        transform: translateY(-2px);
    }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 100px;
}

.pagination-btn, .pagination-number {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .pagination-btn:hover:not(:disabled), .pagination-number:hover {
        background: #f8f9fa;
        border-color: #c41e3a;
    }

    .pagination-number.active {
        background: #c41e3a;
        color: #fff;
        border-color: #c41e3a;
    }

    .pagination-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    color: #666;
}

    .breadcrumb a {
        color: #c41e3a;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

    .breadcrumb span {
        color: #999;
    }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .filter-group {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-events-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .events-gallery-grid,
    .events-grid,
    .related-events-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .event-actions-header {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    .btn-add-calendar-large {
        width: 100%;
        justify-content: center;
    }

    .filter-group {
        grid-template-columns: 1fr;
    }

    .search-input {
        padding: 15px 50px 15px 20px;
    }
    .related-events-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

@media (max-width: 480px) {
    .events-search-header h1 {
        font-size: 1.75rem;
    }

    .related-events .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-all {
        margin-left: 0;
        align-self: flex-end;
    }
}




/* =============================================
   EVENTS MODULE - ARABIC RTL LAYOUT
   Author: Denny A Devassy
   Date: 2025-10-09
   ============================================= */

/* Apply RTL direction to Arabic content */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

    /* ========== EVENT DATE BADGE - RTL ========== */
    [lang="ar"] .event-date-badge {
        left: auto;
        right: 1rem;
    }

    [lang="ar"] .event-category {
        right: auto;
        left: 1rem;
    }

    /* ========== EVENT ACTIONS - RTL ========== */
    [lang="ar"] .event-actions {
       direction: rtl;
    }

    [lang="ar"] .event-learn-more {
       direction: rtl;
    }

        [lang="ar"] .event-learn-more i {
            transform: rotate(180deg);
        }

        [lang="ar"] .event-learn-more:hover {
            gap: 0.75rem;
        }

    /* ========== SEARCH FILTERS - RTL ========== */
    [lang="ar"] .search-input-wrapper i {
        left: auto;
        right: 20px;
    }

    [lang="ar"] .search-input {
        padding: 15px 20px 15px 50px;
        text-align: right;
    }

    /* ========== ARTICLE META - RTL ========== */
    [lang="ar"] .article-meta {
       direction: rtl;
    }

    [lang="ar"] .event-actions-header {
        margin-left: 0;
        margin-right: auto;
    }

    [lang="ar"] .share-buttons {
       direction: rtl;
    }

    /* ========== ARTICLE CONTENT - RTL ========== */
    [lang="ar"] .article-lead {
        padding-left: 0;
        padding-right: 1.5rem;
        border-left: none;
        border-right: 4px solid #c41e3a;
    }

    [lang="ar"] .article-body ul {
        padding-left: 0;
        padding-right: 1.5rem;
    }

    /* ========== DETAILS GRID - RTL ========== */
    [lang="ar"] .detail-item {
       direction: rtl;
        text-align: right;
    }

    /* ========== VIEW ALL LINK - RTL ========== */
    [lang="ar"] .view-all {
       direction: rtl;
    }

        [lang="ar"] .view-all i {
            transform: rotate(180deg);
        }

        [lang="ar"] .view-all:hover {
            gap: 0.75rem;
        }

    /* ========== BREADCRUMB - RTL ========== */
    [lang="ar"] .breadcrumb {
       direction: rtl;
    }

        [lang="ar"] .breadcrumb span {
            transform: rotate(180deg);
        }

    /* ========== TYPOGRAPHY - ARABIC FONTS ========== */
    [lang="ar"] body,
    [lang="ar"] .event-title,
    [lang="ar"] .article-title,
    [lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
       font-family: 'JF Flat Regular', Arial, sans-serif;
    }

    [lang="ar"] .event-title,
    [lang="ar"] .article-title {
        line-height: 1.6;
    }

    [lang="ar"] .article-content,
    [lang="ar"] .event-excerpt,
    [lang="ar"] p {
        line-height: 2;
    }

    /* ========== BUTTONS - RTL ========== */
    [lang="ar"] .btn-add-calendar-large,
    [lang="ar"] .btn-add-calendar-full,
    [lang="ar"] .add-to-calendar,
    [lang="ar"] .search-btn {
       direction: rtl;
    }

    /* ========== PAGINATION - RTL ========== */
    [lang="ar"] .pagination {
       direction: rtl;
    }

    /* ========== FILTERS - RTL ========== */
    [lang="ar"] .filter-group {
       direction: rtl;
    }

/* ========== RESPONSIVE ADJUSTMENTS - RTL ========== */
@media (max-width: 768px) {
    [lang="ar"] .event-actions-header {
        margin-right: 0;
    }

    [lang="ar"] .article-meta {
        align-items: flex-end;
    }
}

/* ========== ARABIC NUMBER STYLING ========== */
[lang="ar"] .event-day,
[lang="ar"] .pagination-number {
    font-family: 'JF Flat Regular', Arial, sans-serif;
    font-feature-settings: "ss02";
}

/* ========== ICONS - RTL ADJUSTMENTS ========== */
[lang="ar"] .event-date-info i,
[lang="ar"] .event-location-info i,
[lang="ar"] .event-venue-info i,
[lang="ar"] .meta-views i {
    margin-left: 0;
    margin-right: 0;
}

[lang="ar"] .detail-item i {
    margin-left: 0;
    margin-right: 0;
}

/* ========== GRID ALIGNMENT - RTL ========== */
[lang="ar"] .events-gallery-grid,
[lang="ar"] .events-grid,
[lang="ar"] .related-events-grid {
    direction: rtl;
}

/* ========== FORM ELEMENTS - RTL ========== */
[lang="ar"] .search-input,
[lang="ar"] .filter-select,
[lang="ar"] .filter-date {
    text-align: right;
}

[lang="ar"] select {
    background-position: left 1rem center;
    padding-left: 2.5rem;
    padding-right: 1rem;
}

/* ========== CARD HOVER EFFECTS - RTL ========== */
[lang="ar"] .event-card:hover .event-learn-more {
    gap: 0.75rem;
}

/* ========== SECTION HEADER - RTL ========== */
[lang="ar"] .section-header {
   direction: rtl;
}

[lang="ar"] .related-events .section-header {
   direction: rtl;
}
[lang="ar"] .related-events {
    flex-direction: column;
}

    [lang="ar"] .related-events .section-header {
       direction: rtl;
        order: 1;
    }

[lang="ar"] .related-events-grid {
    order: 2;
}
/* ========== EVENT CONTENT - RTL ========== */
[lang="ar"] .event-content {
    text-align: right;
}

[lang="ar"] .event-location,
[lang="ar"] .event-duration {
   direction: rtl;
}

/* ========== NOT FOUND - RTL ========== */
[lang="ar"] .not-found,
[lang="ar"] .no-results,
[lang="ar"] .no-content {
    text-align: center;
}

/* ========== ARTICLE BODY - RTL ========== */
[lang="ar"] .article-body h3 {
    text-align: right;
}

[lang="ar"] .article-body ul li {
    text-align: right;
}

/* ========== GALLERY - RTL ========== */
[lang="ar"] .gallery-grid {
    direction: rtl;
}

/* ========== SEARCH HEADER - RTL ========== */
[lang="ar"] .events-search-header h1 {
    text-align: right;
}

/* ========== DETAILS BOX - RTL ========== */
[lang="ar"] .event-details-box h3 {
    text-align: right;
}

/* ========== MOBILE RESPONSIVE - RTL ========== */
@media (max-width: 768px) {
    [lang="ar"] .event-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    [lang="ar"] .event-learn-more {
        justify-content: center;
    }

    [lang="ar"] .article-meta {
        align-items: flex-start;
    }

    [lang="ar"] .event-actions-header {
        align-items: stretch;
    }
}

/* ========== PRINT STYLES - RTL ========== */
@media print {
    [lang="ar"] * {
        direction: rtl !important;
        text-align: right !important;
    }
}

/* ========== CALENDAR BUTTON ICONS - RTL ========== */
[lang="ar"] .add-to-calendar i,
[lang="ar"] .btn-add-calendar i,
[lang="ar"] .btn-add-calendar-large i,
[lang="ar"] .btn-add-calendar-full i {
    margin-left: 0;
    margin-right: 0;
}

/* ========== LOADING SPINNER - CENTER ========== */
[lang="ar"] .loading-spinner {
    text-align: center;
}

/* ========== FEATURED IMAGE - RTL ========== */
[lang="ar"] .article-image {
    direction: ltr;
}

/* ========== EVENT CARD CONTENT - RTL ========== */
[lang="ar"] .event-card {
    direction: rtl;
}

/* ========== SEARCH BUTTON - RTL ========== */
[lang="ar"] .search-btn i {
    order: 2;
}

/* ========== TABS - RTL ========== */
[lang="ar"] .highlights-tabs {
   direction: rtl;
}

/* ========== SMOOTH TRANSITIONS ========== */
[lang="ar"] .event-learn-more,
[lang="ar"] .view-all,
[lang="ar"] .event-card {
    transition: all 0.3s ease;
}

/* ========== ACCESSIBILITY - RTL ========== */
[lang="ar"] *:focus {
    outline-offset: 2px;
}

[lang="ar"] .event-card:focus,
[lang="ar"] .btn-add-calendar:focus,
[lang="ar"] .search-btn:focus {
    outline: 2px solid #c41e3a;
}

/* ========== TEXT OVERFLOW - RTL ========== */
[lang="ar"] .event-title,
[lang="ar"] .event-excerpt {
    direction: rtl;
    text-overflow: ellipsis;
}

/* ========== SPACING ADJUSTMENTS - RTL ========== */
[lang="ar"] .article-title {
    margin-right: 0;
}

[lang="ar"] .article-content {
    padding-right: 0;
}

/* ========== BORDER RADIUS - RTL ========== */
[lang="ar"] .event-card,
[lang="ar"] .event-article,
[lang="ar"] .event-details-box {
    border-radius: 12px;
}

/* ========== FLEX DIRECTION OVERRIDES - RTL ========== */
[lang="ar"] .search-filters {
    direction: rtl;
}

[lang="ar"] .filter-group {
    justify-content: flex-start;
}
/* ========== ARTICLE GALLERY WITH NAVIGATION ========== */
.article-gallery {
    margin: 2rem 0;
    position: relative;
}

    .article-gallery h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1.5rem;
    }

.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-grid {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    width: 100%;
}

.gallery-item {
    min-width: calc(33.333% - 0.667rem);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.05);
    }

    .gallery-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #c41e3a;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

    .gallery-nav-btn:hover {
        background: #a01629;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
    }

    .gallery-nav-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: #999;
    }

        .gallery-nav-btn:disabled:hover {
            transform: translateY(-50%);
            box-shadow: 0 4px 12px rgba(153, 153, 153, 0.3);
        }

    .gallery-nav-btn i {
        font-size: 1.25rem;
    }

.gallery-prev {
    left: -25px;
}

.gallery-next {
    right: -25px;
}

/* Gallery Counter */
.gallery-counter {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.875rem;
    font-weight: 600;
}

/* RTL Support */
[lang="ar"] .article-gallery h3 {
    text-align: right;
}

[lang="ar"] .gallery-grid {
    direction: rtl;
}

[lang="ar"] .gallery-prev {
    left: auto;
    right: -25px;
}

[lang="ar"] .gallery-next {
    right: auto;
    left: -25px;
}

[lang="ar"] .gallery-prev i {
    transform: rotate(180deg);
}

[lang="ar"] .gallery-next i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-item {
        min-width: calc(50% - 0.5rem);
    }

    .gallery-nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        min-width: 100%;
    }

        .gallery-item img {
            height: 200px;
        }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    [lang="ar"] .gallery-prev {
        right: 10px;
        left: auto;
    }

    [lang="ar"] .gallery-next {
        left: 10px;
        right: auto;
    }
}

/* Lightbox Effect (Optional) */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 30, 58, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(196, 30, 58, 0.1);
}