/* Custom styles for Zahra Sheikhi's website */

/* Navbar logo positioning - override default styles for RTL */
.header__main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Distribute space evenly */
}

.logo {
    margin-right: 0 !important; /* Override margin-right: auto */
    margin-left: 0 !important; /* Reset auto margin */
    order: 1 !important; /* First in RTL = rightmost position */
    flex-shrink: 0 !important; /* Prevent shrinking */
}

.header__navbar {
    order: 2 !important; /* Second = middle */
    flex-grow: 1 !important; /* Take available space */
    display: flex !important;
    justify-content: center !important; /* Center the nav items */
}

.header__action-items {
    order: 3 !important; /* Third = leftmost in RTL */
    margin-left: 0 !important; /* Reset margin-left: auto */
    flex-shrink: 0 !important; /* Prevent shrinking */
}

/* About page styles */
.about-us {
    text-align: center;
    margin-bottom: 60px;
}

.about-us__image {
    margin-bottom: 40px;
}

.about-us__img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(64, 81, 137, 0.2);
    border: 5px solid #405189;
}

.about-us__title {
    font-size: 48px;
    color: #131315;
    margin-bottom: 10px;
}

.about-us__text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
    text-align: justify;
}

.about-us__qoute {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    position: relative;
}

.about-us__qoute-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 60px;
    color: #405189;
    opacity: 0.2;
}

.about-us__qoute-text {
    font-size: 20px;
    font-style: italic;
    color: #405189;
    margin: 0;
}

/* About features */
.about-features {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

.about-features:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 81, 137, 0.1);
}

.about-features__icon {
    margin-bottom: 20px;
}

.about-features__title {
    color: #131315;
    margin-bottom: 20px;
}

.about-features__list li {
    text-align: right;
    color: #666;
    font-size: 14px;
}

/* Timeline styles */
.timeline-item {
    position: relative;
    padding-right: 30px;
    border-right: 3px solid #405189;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #405189;
    border-radius: 50%;
    right: -9px;
    top: 5px;
}

.timeline-date {
    font-weight: 700;
    text-align: left;
}

.timeline-title {
    color: #131315;
    margin-bottom: 10px;
}

.timeline-text {
    color: #666;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-us__title {
        font-size: 40px;
    }
    
    .about-us__text {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .about-us__qoute {
        margin: 30px 15px;
        padding: 25px;
    }
    
    .about-us__qoute-text {
        font-size: 18px;
    }
    
    .about-features {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-us__title {
        font-size: 32px;
    }
    
    .about-us__img {
        width: 160px;
        height: 160px;
        border-width: 4px;
    }
    
    h5 {
        font-size: 20px;
    }
    
    .about-us__text {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .about-us__qoute {
        padding: 20px;
        margin: 25px 10px;
    }
    
    .about-us__qoute-icon {
        font-size: 40px;
        top: -15px;
        right: 20px;
    }
    
    .about-us__qoute-text {
        font-size: 16px;
    }
    
    .timeline-item {
        border-right: none;
        padding-right: 0;
        padding-bottom: 25px;
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
    }
    
    .timeline-item:last-child {
        border-bottom: none;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-date {
        text-align: right;
        margin-bottom: 10px;
        font-size: 18px;
    }
    
    .timeline-title {
        font-size: 18px;
    }
    
    .timeline-text {
        font-size: 13px;
    }
    
    .about-features {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .about-features__icon i {
        font-size: 2rem !important;
    }
    
    .about-features__title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .about-features__list li {
        font-size: 13px;
        margin-bottom: 8px !important;
    }
    
    /* Expertise section mobile */
    .expertise-item {
        margin-bottom: 30px;
    }
    
    .expertise-item i {
        font-size: 2rem !important;
    }
    
    .expertise-item h6 {
        font-size: 16px;
        margin-top: 10px;
    }
    
    .expertise-item p {
        font-size: 12px;
    }
    
    /* Section spacing on mobile */
    section {
        margin-bottom: 40px !important;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 576px) {
    .mt-90 {
        margin-top: 100px;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .about-us__title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .about-us__img {
        width: 140px;
        height: 140px;
        border-width: 3px;
        margin-bottom: 25px;
    }
    
    .about-us__text {
        font-size: 14px;
        padding: 0 10px;
        text-align: justify;
        margin-bottom: 20px;
    }
    
    .about-us__qoute {
        padding: 15px;
        margin: 20px 5px;
        border-radius: 8px;
    }
    
    .about-us__qoute-icon {
        font-size: 30px;
        right: 15px;
        opacity: 0.1;
    }
    
    .about-us__qoute-text {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Mobile-optimized sections */
    .about-features {
        padding: 18px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(64, 81, 137, 0.08);
    }
    
    .about-features__icon i {
        font-size: 1.8rem !important;
    }
    
    .about-features__title {
        font-size: 16px;
        font-weight: 600;
    }
    
    .about-features__list li {
        font-size: 12px;
        line-height: 1.5;
        padding-right: 15px;
    }
    
    /* Timeline mobile optimization */
    .timeline-date {
        font-size: 16px;
        color: #405189;
        font-weight: 600;
    }
    
    .timeline-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .timeline-text {
        font-size: 12px;
        line-height: 1.5;
    }
    
    /* Expertise section on small mobile */
    .expertise-section {
        padding: 40px 0 !important;
    }
    
    h2 {
        font-size: 24px;
        font-weight: 700;
    }
    
    /* Newsletter section mobile */
    .newslettre {
        padding: 20px !important;
    }
    
    .newslettre__title {
        font-size: 20px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    
    .newslettre__desc {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .newslettre__form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newslettre__form-input {
        margin-bottom: 0;
        width: 100%;
        height: 45px;
        font-size: 14px;
        padding: 0 15px;
    }
    
    .newslettre__form-submit {
        width: 100%;
        margin-top: 0;
        height: 45px;
        font-size: 14px;
        font-weight: 600;
    }
}

@media (max-width: 375px) {
    .about-us__title {
        font-size: 24px;
    }
    
    .about-us__img {
        width: 120px;
        height: 120px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    .about-features__title {
        font-size: 15px;
    }
    
    .about-features__list li {
        font-size: 11px;
    }
}

/* RTL specific adjustments */
[dir="rtl"] .timeline-item {
    padding-left: 30px;
    padding-right: 0;
    border-left: 3px solid #405189;
    border-right: none;
}

[dir="rtl"] .timeline-item::before {
    left: -9px;
    right: auto;
}

[dir="rtl"] .about-us__qoute-icon {
    left: 30px;
    right: auto;
}

.mt-90 {
    margin-top: 130px;
}

/* Mobile-first animations and smooth scrolling */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Touch-friendly hover states */
@media (hover: none) {
    .about-features:hover {
        transform: none;
    }
    
    .social-media__link:active {
        transform: scale(0.95);
    }
}

/* Mobile optimized images */
@media (max-width: 768px) {
    img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
}

/* Smooth transitions for mobile */
.about-features,
.timeline-item,
.about-us__img {
    transition: all 0.3s ease;
}

/* Mobile-friendly spacing */
@media (max-width: 576px) {
    .row {
        --bs-gutter-x: 1rem;
    }
    
    /* Better touch targets */
    .nav-link,
    .social-media__link,
    .newslettre__form-submit {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Card shadows for depth on mobile */
    .about-features {
        background: #fff;
        box-shadow: 0 2px 15px rgba(64, 81, 137, 0.08);
        border: 1px solid rgba(64, 81, 137, 0.1);
    }
    
    /* Mobile-optimized margins */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
}

/* Gallery Page Styles */
.page-header-section {
    padding: 40px 0;
    margin-top: 90px;
    text-align: center;
}

.page-header-title {
    font-size: 48px;
    font-weight: 900;
    color: #131315;
    margin-bottom: 15px;
}

.page-header-desc {
    font-size: 20px;
    color: #666;
    font-weight: 400;
}

/* Gallery Categories */
.gallery-categories-section {
    padding: 30px 0 50px;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
    font-family: 'Shabnam', sans-serif;
}

.category-pill:hover {
    border-color: #405189;
    color: #405189;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 81, 137, 0.1);
}

.category-pill.active {
    background-color: #405189;
    border-color: #405189;
    color: #fff;
}

.category-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding-bottom: 80px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-card {
    width: calc(33.333% - 14px);
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(64, 81, 137, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-expand {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #405189;
    font-size: 20px;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
    text-decoration: none;
}

.gallery-card:hover .gallery-expand {
    transform: scale(1);
}

.gallery-expand:hover {
    background-color: #f8f9fa;
    color: #2d3a6b;
}

.gallery-card-body {
    padding: 20px;
    background-color: #fff;
}

.gallery-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #131315;
    margin-bottom: 8px;
    line-height: 1.4;
}

.gallery-card-date {
    font-size: 13px;
    color: #999;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-card-date i {
    font-size: 14px;
    color: #405189;
}

/* Load More Button */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    background-color: #fff;
    color: #405189;
    border: 2px solid #405189;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-load-more:hover {
    background-color: #405189;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(64, 81, 137, 0.2);
}

.btn-load-more i {
    font-size: 18px;
}

/* Animation for loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Fancybox Custom Styles */
.fancybox__caption {
    font-family: 'Shabnam', sans-serif;
    font-size: 16px;
    padding: 15px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .page-header-title {
        font-size: 40px;
    }
    
    .page-header-desc {
        font-size: 18px;
    }
    
    .gallery-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .page-header-section {
        padding: 30px 0;
    }
    
    .page-header-title {
        font-size: 32px;
    }
    
    .page-header-desc {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .categories-wrapper {
        padding: 0 15px;
        gap: 8px;
    }
    
    .category-pill {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .category-icon {
        font-size: 16px;
    }
    
    .gallery-container {
        gap: 15px;
        padding: 0 15px;
    }
    
    .gallery-card {
        width: calc(50% - 8px);
    }
    
    .gallery-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .page-header-section {
        margin-top: 100px;
    }
    
    .page-header-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .page-header-desc {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .gallery-categories-section {
        padding: 20px 0 30px;
    }
    
    .categories-wrapper {
        gap: 6px;
        padding: 0 10px;
    }
    
    .category-pill {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 25px;
    }
    
    .category-icon {
        font-size: 14px;
    }
    
    .category-text {
        display: none;
    }
    
    .category-pill.active .category-text {
        display: inline;
    }
    
    .gallery-container {
        gap: 10px;
        padding: 0 10px;
    }
    
    .gallery-card {
        width: 100%;
    }
    
    .gallery-image-wrapper {
        height: 220px;
    }
    
    .gallery-card-body {
        padding: 15px;
    }
    
    .gallery-card-title {
        font-size: 15px;
    }
    
    .gallery-card-date {
        font-size: 12px;
    }
    
    .btn-load-more {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .page-header-title {
        font-size: 24px;
    }
    
    .category-pill {
        padding: 7px 14px;
        font-size: 11px;
    }
    
    .category-text {
        display: inline;
    }
    
    .categories-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }
    
    .categories-wrapper::-webkit-scrollbar {
        height: 3px;
    }
    
    .categories-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .categories-wrapper::-webkit-scrollbar-thumb {
        background: #405189;
        border-radius: 3px;
    }
}

/* ========================================
   PROFESSIONAL LIGHTBOX2 STYLES
   ======================================== */

/* Main Overlay - Full Screen Dark Background */
.lb-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.92) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* Lightbox Container - Main Modal Box */
.lb-outerContainer {
    position: relative !important;
    max-width: 700px !important;
    max-height: 90vh !important;
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 10px !important;
}

/* Inner Container */
.lb-container {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
}

/* Image Display Area */
.lb-image {
    width: 100% !important;
    height: 500px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    border: none !important;
    background: #f8f9fa !important;
}

/* Navigation Arrows Container */
.lb-nav {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

/* Navigation Arrow Buttons */
.lb-nav a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #405189 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(64, 81, 137, 0.1) !important;
    z-index: 15 !important;
}

.lb-nav a.lb-prev {
    left: 20px !important;
}

.lb-nav a.lb-next {
    right: 20px !important;
}

/* Arrow Icons */
.lb-nav a.lb-prev:before {
    content: '‹' !important;
    margin-right: 2px !important;
}

.lb-nav a.lb-next:before {
    content: '›' !important;
    margin-left: 2px !important;
}

/* Arrow Hover Effects */
.lb-nav a:hover {
    background: #405189 !important;
    color: white !important;
    border-color: #405189 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 30px rgba(64, 81, 137, 0.3) !important;
}

/* RTL Navigation Adjustments */
[dir="rtl"] .lb-nav a.lb-prev {
    left: auto !important;
    right: 20px !important;
}

[dir="rtl"] .lb-nav a.lb-next {
    right: auto !important;
    left: 20px !important;
}

/* Description Box */
.lb-dataContainer {
    background: #ffffff !important;
    padding: 25px 30px !important;
    border-top: 1px solid #e5e7eb !important;
    text-align: center !important;
    position: relative !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px 20px 20px 20px !important;
}

/* Description Content */
.lb-data {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Image Caption */
.lb-data .lb-caption {
    font-family: 'Shabnam', sans-serif !important;
    font-size: 18px !important;
    color: #1f2937 !important;
    line-height: 1.6 !important;
    font-weight: 600 !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
    max-width: 100% !important;
}

/* Image Counter Badge */
.lb-data .lb-number {
    font-family: 'Shabnam', sans-serif !important;
    font-size: 14px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #405189 0%, #5a67a8 100%) !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    display: inline-block !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(64, 81, 137, 0.25) !important;
}

/* Close Button */
.lb-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    border: 2px solid rgba(239, 68, 68, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 20 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
}

.lb-close:before {
    content: '✕' !important;
    color: #ef4444 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.lb-close:hover {
    background: rgba(239, 68, 68, 0.95) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 30px rgba(239, 68, 68, 0.4) !important;
}

.lb-close:hover:before {
    color: white !important;
}

/* RTL Close Button */
[dir="rtl"] .lb-close {
    right: auto !important;
    left: 20px !important;
}

/* Loading Animation */
.lb-loader {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 40px !important;
    height: 40px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 3px solid #ffffff !important;
    border-radius: 50% !important;
    animation: lb-spin 1s linear infinite !important;
}

@keyframes lb-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet Styles */
@media (max-width: 768px) {
    .lb-overlay {
        padding: 15px !important;
    }
    
    .lb-outerContainer {
        max-width: 80vw !important;
        max-height: 95vh !important;
        border-radius: 16px !important;
    }
    
    .lb-image {
        height: 350px !important;
    }
    
    .lb-dataContainer {
        padding: 20px 25px !important;
        min-height: 70px !important;
    }
    
    .lb-data .lb-caption {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .lb-data .lb-number {
        font-size: 13px !important;
        padding: 7px 18px !important;
    }
    
    .lb-nav a {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .lb-nav a.lb-prev {
        left: 15px !important;
    }
    
    .lb-nav a.lb-next {
        right: 15px !important;
    }
    
    [dir="rtl"] .lb-nav a.lb-prev {
        left: auto !important;
        right: 15px !important;
    }
    
    [dir="rtl"] .lb-nav a.lb-next {
        right: auto !important;
        left: 15px !important;
    }
    
    .lb-close {
        width: 40px !important;
        height: 40px !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .lb-close:before {
        font-size: 16px !important;
    }
    
    [dir="rtl"] .lb-close {
        right: auto !important;
        left: 15px !important;
    }
}

/* Mobile Phone Styles */
@media (max-width: 480px) {
    .lb-overlay {
        padding: 10px !important;
    }
    
    .lb-outerContainer {
        max-width: 98vw !important;
        max-height: 98vh !important;
        border-radius: 12px !important;
    }
    
    .lb-image {
        height: 280px !important;
    }
    
    .lb-dataContainer {
        padding: 18px 20px !important;
        min-height: 65px !important;
        border-top: 1px solid #e5e7eb !important;
    }
    
    .lb-data .lb-caption {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }
    
    .lb-data .lb-number {
        font-size: 12px !important;
        padding: 6px 16px !important;
        border-radius: 20px !important;
    }
    
    .lb-nav a {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .lb-nav a.lb-prev {
        left: 12px !important;
    }
    
    .lb-nav a.lb-next {
        right: 12px !important;
    }
    
    [dir="rtl"] .lb-nav a.lb-prev {
        left: auto !important;
        right: 12px !important;
    }
    
    [dir="rtl"] .lb-nav a.lb-next {
        right: auto !important;
        left: 12px !important;
    }
    
    .lb-close {
        width: 36px !important;
        height: 36px !important;
        top: 12px !important;
        right: 12px !important;
    }
    
    .lb-close:before {
        font-size: 14px !important;
    }
    
    [dir="rtl"] .lb-close {
        right: auto !important;
        left: 12px !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .lb-image {
        height: 250px !important;
    }
    
    .lb-dataContainer {
        padding: 15px 18px !important;
        min-height: 60px !important;
    }
    
    .lb-data .lb-caption {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .lb-data .lb-number {
        font-size: 11px !important;
        padding: 5px 14px !important;
    }
    
    .lb-nav a {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    .lb-nav a.lb-prev {
        left: 10px !important;
    }
    
    .lb-nav a.lb-next {
        right: 10px !important;
    }
    
    [dir="rtl"] .lb-nav a.lb-prev {
        left: auto !important;
        right: 10px !important;
    }
    
    [dir="rtl"] .lb-nav a.lb-next {
        right: auto !important;
        left: 10px !important;
    }
    
    .lb-close {
        width: 32px !important;
        height: 32px !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    .lb-close:before {
        font-size: 12px !important;
    }
    
    [dir="rtl"] .lb-close {
        right: auto !important;
        left: 10px !important;
    }
}

/* ========================================
   LIGHTBOX EXTERNAL LINK ICON STYLES
   ======================================== */

/* External Link Icon */
.lb-external-link-active {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    background: rgba(64, 81, 137, 0.95) !important;
    color: #ffffff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.lb-external-link-active:hover {
    background: #405189 !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(64, 81, 137, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.lb-external-link-active:focus {
    outline: none !important;
    background: #405189 !important;
    color: #ffffff !important;
}

.lb-external-link-active i {
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Animation for external link appearance */
@keyframes externalLinkFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-external-link-active {
    animation: externalLinkFadeIn 0.3s ease-out !important;
}

/* Mobile Responsive for External Link */
@media (max-width: 768px) {
    .lb-external-link-active {
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
        top: 15px !important;
        right: 15px !important;
    }
    
    .lb-external-link-active i {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .lb-external-link-active {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
        top: 12px !important;
        right: 12px !important;
    }
    
    .lb-external-link-active i {
        font-size: 14px !important;
    }
}

/* ========================================
   NEWS SEARCH AND FILTER STYLES
   ======================================== */

/* Mobile Responsive for Search & Filter */
@media (max-width: 768px) {
    .search-filter-container {
        padding: 20px 15px !important;
        border-radius: 10px !important;
    }
    
    .search-input {
        height: 50px !important;
        font-size: 14px !important;
        padding: 12px 50px 12px 20px !important;
    }
    
    .search-btn {
        width: 40px !important;
        height: 35px !important;
        right: 7px !important;
        top: 7px !important;
    }
    
    .filter-categories {
        gap: 8px !important;
    }
    
    .filter-btn {
        padding: 6px 15px !important;
        font-size: 13px !important;
    }
    
    .sort-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        margin-bottom: 15px;
    }
    
    .results-count {
        text-align: right !important;
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .news-search-filter {
        padding: 30px 0 !important;
    }
    
    .search-filter-container {
        padding: 15px 10px !important;
        margin: 0 5px !important;
    }
    
    .search-input {
        height: 45px !important;
        font-size: 13px !important;
        padding: 10px 45px 10px 15px !important;
    }
    
    .search-btn {
        width: 35px !important;
        height: 30px !important;
        right: 5px !important;
        top: 7px !important;
    }
    
    .filter-categories {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding-bottom: 10px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .filter-btn {
        padding: 5px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    .filter-categories-wrapper h6 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .sort-wrapper span {
        font-size: 13px !important;
    }
    
    #sortSelect {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    
    /* RTL select adjustments for mobile */
    [dir="rtl"] #sortSelect {
        padding-left: 2rem !important;
        padding-right: 0.5rem !important;
        background-position: left 0.5rem center !important;
    }
    
    .results-count {
        font-size: 12px !important;
        margin-top: 10px !important;
    }
}

/* Search input focus effects */
.search-input:focus {
    outline: none !important;
    border-color: #405189 !important;
    box-shadow: 0 0 20px rgba(64, 81, 137, 0.1) !important;
}

/* RTL Select Dropdown Styling */
[dir="rtl"] #sortSelect,
[dir="rtl"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-left: 2.25rem !important;
    padding-right: 0.75rem !important;
}

/* Filter button animations */
.filter-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(64, 81, 137, 0.2) !important;
}

.filter-btn.active {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(64, 81, 137, 0.3) !important;
}

/* News item animation on load */
.news-item {
    transition: all 0.4s ease !important;
}

/* No results message styling */
.no-results-message {
    animation: fadeIn 0.5s ease-in-out !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Books Page */
/* -------------------- Books Hero Section -------------------- */
.books-hero {
    background: url('../img/custom/books-hero-bg.jpg') center/cover no-repeat;
    position: relative;
    padding: 100px 20px 80px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.books-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 244, 246, 0.65); /* semi-transparent overlay */
    z-index: 1;
}

.books-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.books-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.books-hero p.lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.books-hero h1,
.books-hero p.lead {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.books-hero p.lead {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .books-hero h1 {
        font-size: 2.5rem;
    }
    .books-hero p.lead {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .books-hero h1 {
        font-size: 2rem;
    }
    .books-hero p.lead {
        font-size: 1rem;
    }
}

/* -------------------- Books Filter Bar -------------------- */
.books-filter {
    background-color: #f5f6fa;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.books-filter .filter-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.books-filter .filter-list li {
    list-style: none;
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    color: #3F5189;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.books-filter .filter-list li:hover {
    background-color: #3F5189;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.books-filter .filter-list li.active {
    background-color: #3F5189;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    border-color: #3F5189;
}

@media (max-width: 768px) {
    .books-filter .filter-list {
        gap: 8px;
    }

    .books-filter .filter-list li {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
}


/* -------------------- Books Grid -------------------- */
.books-page .book-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.books-page .book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.book-cover {
    position: relative;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-cover:hover img {
    transform: scale(1.05);
}

.book-cover .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(63,81,137,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-cover:hover .overlay {
    opacity: 1;
}

.book-info {
    padding: 15px;
    text-align: right;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3F5189;
    margin-bottom: 6px;
}

.book-meta {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 10px;
}

.rating i {
    color: #f1c40f;
    font-size: 1rem;
    margin-left: 2px;
}

/* -------------------- Book Modal -------------------- */
.modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 25px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3F5189;
}

.modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #555;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
    color: #3F5189;
}

.modal-body {
    padding: 25px;
}

.modal-body .row {
    gap: 20px;
}

.modal-body img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-body p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.modal-body strong {
    color: #3F5189;
}

.modal-body .btn {
    margin-top: 10px;
    margin-right: 8px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-body .btn-primary {
    background-color: #3F5189;
    border: none;
}

.modal-body .btn-primary:hover {
    background-color: #2e386a;
    transform: translateY(-2px);
}

.modal-body .btn-outline-primary {
    color: #3F5189;
    border-color: #3F5189;
}

.modal-body .btn-outline-primary:hover {
    background-color: #3F5189;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .modal-body .row {
        flex-direction: column;
        text-align: center;
    }

    .modal-body img {
        max-width: 60%;
        margin: 0 auto 20px;
    }

    .modal-body .btn {
        width: 40%;
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   ARTICLE PAGE STYLES
   ======================================== */

/* Article Card Styling */
.article-card {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(64, 81, 137, 0.1);
    border-color: #405189;
}

.article-card .post-card__content {
    padding: 25px;
}

.article-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

/* Article Meta Wrapper */
.article-meta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px 0 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

.article-author,
.article-date,
.article-journal,
.article-download {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.article-author i,
.article-date i,
.article-journal i {
    color: #405189;
    font-size: 14px;
}

/* PDF Download Button */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #405189;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pdf-download-btn:hover {
    background: #2d3a6b;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 81, 137, 0.3);
}

.pdf-download-btn i {
    font-size: 13px;
}

/* Article Item Transitions */
.article-item {
    transition: all 0.3s ease;
}

/* RTL Select Dropdown Styling for Articles */
[dir="rtl"] .article-search-filter #sortSelect,
[dir="rtl"] .article-search-filter .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-left: 2.25rem !important;
    padding-right: 0.75rem !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-meta-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .article-card .post-card__content {
        padding: 20px;
    }
    
    .article-description {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .pdf-download-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    [dir="rtl"] .article-search-filter #sortSelect {
        padding-left: 2rem !important;
        padding-right: 0.5rem !important;
        background-position: left 0.5rem center !important;
    }
}

/* ========================================
   RTL SWIPER PAGINATION STYLES
   ======================================== */

/* RTL Swiper Button Positioning and Direction */
[dir="rtl"] .swiper-button-next,
[dir="rtl"] .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    border: 2px solid rgba(64, 81, 137, 0.1) !important;
    cursor: pointer !important;
}

/* RTL Button Positioning - Keep original positions for gallery */
[dir="rtl"] .swiper-button-next {
    right: 20px !important;
    left: auto !important;
}

[dir="rtl"] .swiper-button-prev {
    left: 20px !important;
    right: auto !important;
}

/* RTL Button Icons - Reverse arrow directions */
[dir="rtl"] .swiper-button-next:after {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #405189 !important;
    margin: 0 !important;
}

[dir="rtl"] .swiper-button-prev:after {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #405189 !important;
    margin: 0 !important;
}

/* Remove default Swiper icons */
[dir="rtl"] .swiper-button-next::before,
[dir="rtl"] .swiper-button-prev::before {
    display: none !important;
}

/* Hover Effects for RTL Buttons */
[dir="rtl"] .swiper-button-next:hover,
[dir="rtl"] .swiper-button-prev:hover {
    background: #405189 !important;
    border-color: #405189 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(64, 81, 137, 0.25) !important;
}

[dir="rtl"] .swiper-button-next:hover:after,
[dir="rtl"] .swiper-button-prev:hover:after {
    color: #ffffff !important;
}

/* Active/Focus States */
[dir="rtl"] .swiper-button-next:focus,
[dir="rtl"] .swiper-button-prev:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(64, 81, 137, 0.2) !important;
}

/* Disabled State */
[dir="rtl"] .swiper-button-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

[dir="rtl"] .swiper-button-disabled:hover {
    transform: translateY(-50%) scale(1) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Responsive for RTL Swiper Buttons */
@media (max-width: 768px) {
    [dir="rtl"] .swiper-button-next,
    [dir="rtl"] .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    [dir="rtl"] .swiper-button-next {
        right: 15px !important;
    }
    
    [dir="rtl"] .swiper-button-prev {
        left: 15px !important;
    }
    
    [dir="rtl"] .swiper-button-next:after,
    [dir="rtl"] .swiper-button-prev:after {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .swiper-button-next,
    [dir="rtl"] .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    [dir="rtl"] .swiper-button-next {
        right: 10px !important;
    }
    
    [dir="rtl"] .swiper-button-prev {
        left: 10px !important;
    }
    
    [dir="rtl"] .swiper-button-next:after,
    [dir="rtl"] .swiper-button-prev:after {
        font-size: 18px !important;
    }
}

/* Alternative approach for Swiper pagination bullets RTL */
[dir="rtl"] .swiper-pagination-bullet {
    margin: 0 4px !important;
}

[dir="rtl"] .swiper-pagination-bullet-active {
    background: #405189 !important;
}

/* RTL Gallery-specific Swiper adjustments */
[dir="rtl"] .post-single__gallery .swiper-button-next,
[dir="rtl"] .post-single__gallery .swiper-button-prev {
    margin-top: 0 !important;
}

/* Ensure proper z-index layering */
[dir="rtl"] .slider--five .swiper-button-next,
[dir="rtl"] .slider--five .swiper-button-prev {
    z-index: 15 !important;
}

/* ========================================
   DARK MODE SUPPORT FOR SEARCH & FILTER
   ======================================== */

/* Search Filter Container Dark Mode */
.dark .search-filter-container {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dark .news-search-filter,
.dark .article-search-filter {
    background: #0f0f0f !important;
}

/* Search Input Dark Mode */
.dark .search-input {
    background: #2a2a2a !important;
    border: 2px solid #404040 !important;
    color: #ffffff !important;
}

.dark .search-input::placeholder {
    color: #cccccc !important;
}

.dark .search-input:focus {
    border-color: #405189 !important;
    box-shadow: 0 0 20px rgba(64, 81, 137, 0.3) !important;
}

/* Search Button Dark Mode */
.dark .search-btn {
    background: #405189 !important;
    color: #ffffff !important;
    border: 2px solid #405189 !important;
}

.dark .search-btn:hover {
    background: #2d3a6b !important;
    border-color: #2d3a6b !important;
}

/* Filter Buttons Dark Mode */
.dark .filter-btn {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border: 2px solid #404040 !important;
}

.dark .filter-btn:hover {
    background: #405189 !important;
    color: #ffffff !important;
    border-color: #405189 !important;
}

.dark .filter-btn.active {
    background: #405189 !important;
    color: #ffffff !important;
    border-color: #405189 !important;
}

/* Filter Categories Wrapper Dark Mode */
.dark .filter-categories-wrapper h6 {
    color: #ffffff !important;
}

/* Filter Results Count Dark Mode */
.dark .results-count {
    color: #cccccc !important;
}

/* No Results Message Dark Mode */
.dark .no-results-message {
    background: #1a1a1a !important;
    color: #cccccc !important;
    border: 2px dashed #404040 !important;
}

.dark #noResults {
    color: #cccccc !important;
}

.dark #noResults h4 {
    color: #ffffff !important;
}

.dark #noResults i {
    color: #666666 !important;
}

/* Sort Select Dark Mode */
.dark #sortSelect,
.dark .form-select {
    background: #2a2a2a !important;
    color: #ffffff !important;
    border: 2px solid #404040 !important;
}

.dark #sortSelect:focus,
.dark .form-select:focus {
    border-color: #405189 !important;
    box-shadow: 0 0 0 0.2rem rgba(64, 81, 137, 0.25) !important;
}

/* Sort Wrapper Text Dark Mode */
.dark .sort-wrapper span {
    color: #cccccc !important;
}

/* Filter Categories Background Dark Mode */
.dark .filter-categories {
    background: transparent !important;
}

/* Additional Dark Mode Support for Search Box Wrapper */
.dark .search-box-wrapper {
    background: transparent !important;
}

/* Mobile Dark Mode Adjustments */
@media (max-width: 768px) {
    .dark .search-filter-container {
        background: #1a1a1a !important;
        border: 1px solid #333333 !important;
    }
    
    .dark .filter-btn {
        background: #2a2a2a !important;
        border: 1px solid #404040 !important;
    }
    
    .dark .search-input {
        background: #2a2a2a !important;
        border: 1px solid #404040 !important;
    }
}

/* ========================================
   DARK MODE SUPPORT FOR ABOUT PAGE
   ======================================== */

/* About Features Dark Mode */
.dark .about-features {
    background: #1a1a1a !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

.dark .about-features__title {
    color: #ffffff !important;
}

.dark .about-features__list li {
    color: #cccccc !important;
}

/* Expertise Section Dark Mode */
.dark .expertise-section {
    background-color: #0f0f0f !important;
}

.dark .expertise-item h6 {
    color: #ffffff !important;
}

.dark .expertise-item p {
    color: #cccccc !important;
}

.dark .expertise-item .text-muted {
    color: #cccccc !important;
}

/* Timeline Dark Mode */
.dark .timeline-title {
    color: #ffffff !important;
}

.dark .timeline-text {
    color: #cccccc !important;
}

.dark .timeline-date {
    color: #405189 !important;
}

/* About Us Section Dark Mode */
.dark .about-us__title {
    color: #ffffff !important;
}

.dark .about-us__text {
    color: #cccccc !important;
}

/* Section Headers Dark Mode */
.dark h2 {
    color: #ffffff !important;
}

.dark h5 {
    color: #ffffff !important;
}

.dark h6 {
    color: #ffffff !important;
}

/* ========================================
   DARK MODE SUPPORT FOR INDEX PAGE
   ======================================== */

/* News Headlines Section Dark Mode */
.dark .section-header h2 {
    color: #ffffff !important;
}

.dark .news-header-wrapper h2 {
    color: #ffffff !important;
}

/* News Accent Bar Dark Mode */
.dark .news-accent-bar {
    background-color: #405189 !important;
}

/* News Section Border Dark Mode */
.dark .section-header {
    border-bottom: 1px solid #333333 !important;
}

/* Additional Text Elements Dark Mode */
.dark .alert-info {
    background-color: #1a1a1a !important;
    color: #cccccc !important;
    border: 1px solid #333333 !important;
}

/* Mobile Dark Mode Adjustments for About/Index */
@media (max-width: 768px) {
    .dark .about-features {
        background: #1a1a1a !important;
        margin-bottom: 20px !important;
    }
    
    .dark .expertise-section {
        background-color: #0f0f0f !important;
        padding: 40px 0 !important;
    }
}

/* ========================================
   SMART PAGINATION STYLES
   ======================================== */

/* Pagination Ellipsis Styling */
.pagination__ellipsis .pagination__link {
    color: #666 !important;
    cursor: default !important;
    pointer-events: none !important;
    background: transparent !important;
    border: none !important;
    font-weight: bold !important;
}

.pagination__ellipsis:hover .pagination__link {
    color: #666 !important;
    background: transparent !important;
    transform: none !important;
}

/* Dark Mode for Pagination Ellipsis */
.dark .pagination__ellipsis .pagination__link {
    color: #999 !important;
}

.dark .pagination__ellipsis:hover .pagination__link {
    color: #999 !important;
}

/* Ensure proper spacing for ellipsis */
.pagination__ellipsis {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ========================================
   BIGGER VIDEO CARDS - LESS CROPPING
   ======================================== */

/* Increase overall card size for better image display */
.single-film {
    width: calc(33.333% - 10px) !important;
    margin: 5px !important;
}

/* Bigger thumbnail containers for less cropping */
.single-film .box {
    height: 320px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Responsive bigger sizes */
@media (max-width: 1200px) {
    .single-film .box {
        height: 220px !important;
    }
}

@media (max-width: 992px) {
    .single-film {
        width: calc(50% - 20px) !important;
    }
    .single-film .box {
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .single-film {
        width: calc(100% - 10px) !important;
    }
    .single-film .box {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .single-film .box {
        height: 180px !important;
    }
}
