/* ========================================================================
   PROJECTS PAGE STYLES
   Organized by section order as they appear in Projects views
   Hero section styles are in shared.css
   ======================================================================== */

/* HERO STATS moved to shared.css */


/* ============================================
   1. FILTER BAR SECTION - Glassmorphic Dock Design
   ============================================ */
.projects-filter-section {
    padding: 0.85rem 0;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 36, 70, 0.08);
    position: sticky;
    top: var(--header-offset, 68px);
    z-index: 90;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ============================================
   SECTOR PILLS - Sleek Rounded Pill Design
   ============================================ */
.filter-sectors {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
}

.filter-sectors::-webkit-scrollbar {
    display: none;
}

.sector-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 36, 70, 0.08);
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.sector-pill i {
    font-size: 0.85rem;
    color: #1d9fda;
    transition: all 0.25s ease;
}

.sector-pill:hover {
    color: #fff;
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 159, 218, 0.3);
}

.sector-pill:hover i {
    color: #fff;
    transform: scale(1.08);
}

.sector-pill.active {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(29, 159, 218, 0.35);
    transform: translateY(-1px);
}

.sector-pill.active i {
    color: #fff;
}

.pill-count {
    background: rgba(15, 36, 70, 0.06);
    color: #5a6a85;
    padding: 0 0.45rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 22px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.sector-pill:hover .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.sector-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* ============================================
   FILTER ICONS - Search & Featured Toggle
   ============================================ */
.filter-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Icon Button Base Style */
.filter-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    background: #ffffff;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-icon-btn i {
    font-size: 0.9rem;
    color: #1d9fda;
    transition: all 0.25s ease;
}

.filter-icon-btn:hover {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 159, 218, 0.3);
}

.filter-icon-btn:hover i {
    color: #ffffff;
    transform: scale(1.08);
}

.filter-icon-btn.active {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(29, 159, 218, 0.35);
}

.filter-icon-btn.active i {
    color: #ffffff;
}

/* Search Toggle Button */
.search-toggle-btn {
    position: relative;
}

.search-toggle-btn.has-query::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Featured Toggle */
.featured-toggle-btn i.fa-star {
    color: #94a3b8;
}

.featured-toggle-btn.active i.fa-star {
    color: #ffffff;
    animation: starPulse 0.4s ease;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Clear Filter Button */
.clear-filter-btn {
    background: #fff5f5;
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.clear-filter-btn i {
    color: #dc3545;
}

.clear-filter-btn:hover {
    background: #dc3545;
    border-color: transparent;
    color: #ffffff;
}

.clear-filter-btn:hover i {
    color: #ffffff;
}

/* ============================================
   VIEW MODE SWITCHER (GRID vs LIST)
   ============================================ */
.view-mode-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 50px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    gap: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.view-mode-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-mode-btn:hover {
    color: #0f2446;
    background: rgba(255, 255, 255, 0.7);
}

.view-mode-btn.active {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(29, 159, 218, 0.35);
}

/* ============================================
   EXPANDABLE SEARCH BOX
   ============================================ */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search {
    position: absolute;
    right: 100%;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #1d9fda;
    border-radius: 50px;
    overflow: hidden;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(29, 159, 218, 0.2);
}

[dir="rtl"] .filter-search {
    right: auto;
    left: 100%;
    margin-right: 0;
    margin-left: 0.5rem;
}

.filter-search.expanded {
    width: 190px;
    opacity: 1;
    visibility: visible;
}

.filter-search .search-input {
    border: none;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    flex: 1;
    min-width: 0;
    background: transparent;
    color: #0f2446;
}

.filter-search .search-submit-btn {
    background: var(--main-color);
    border: none;
    color: #fff;
    padding: 0 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 36px;
}

.filter-search .search-submit-btn:hover {
    background: var(--accent-color);
    color: var(--main-color);
}

/* ============================================
   FILTER DIVIDER
   ============================================ */
.filter-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(var(--main-color-rgb), 0.15), transparent);
    margin: 0 0.25rem;
}

/* ============================================
   MOBILE RESPONSIVE FILTER DESIGN
   ============================================ */
@media (max-width: 991px) {
    .filter-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-sectors {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
    }

    .filter-icons {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(var(--main-color-rgb), 0.08);
    }

    .filter-search.expanded {
        position: relative;
        right: auto;
        left: auto;
        margin: 0;
        width: 100%;
        max-width: 300px;
    }

    [dir="rtl"] .filter-search.expanded {
        position: relative;
        right: auto;
        left: auto;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .projects-filter-section {
        position: static;
        padding: 1rem 0;
    }

    .filter-bar {
        gap: 0.75rem;
    }

    /* Mobile: Horizontal scroll with text visible */
    .filter-sectors {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        overflow-x: visible;
        justify-content: center;
    }

    .sector-pill {
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
        border-radius: 6px;
        gap: 0.25rem;
    }

    /* Show sector text on mobile */
    .sector-pill span:not(.pill-count) {
        display: inline;
        font-size: 0.65rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sector-pill .pill-count {
        display: inline-flex;
        padding: 0.1rem 0.35rem;
        font-size: 0.6rem;
        min-width: 16px;
        border-radius: 4px;
    }

    .sector-pill i {
        font-size: 0.8rem;
    }

    /* Hide filter icons on mobile */
    .filter-icons {
        display: none;
    }

    .filter-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .filter-icon-btn i {
        font-size: 1rem;
    }

    /* Increase gap between search box and search button */
    .search-wrapper {
        gap: 0.5rem;
    }

    .filter-search {
        margin-right: 0.75rem;
    }

    [dir="rtl"] .filter-search {
        margin-right: 0;
        margin-left: 0.75rem;
    }

    .filter-search.expanded {
        position: relative;
        right: auto;
        left: auto;
        margin: 0 0.75rem 0 0;
        width: calc(100vw - 180px);
        max-width: 280px;
    }

    [dir="rtl"] .filter-search.expanded {
        margin: 0 0 0 0.75rem;
    }

    .filter-divider {
        display: none;
    }
}

/* ============================================
   IMPACT STATS SECTION - Large Cards Grid
   ============================================ */
.impact-stats-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.impact-stats-section .impact-stats-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--main-color) 0%, #1a5276 40%, #0d7a3e 100%);
}

.impact-stats-section .impact-stats-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}



/* Stats Grid - 3 columns */
.impact-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Individual Card */
.impact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.impact-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(var(--accent-color-rgb), 0.3);
}

/* Icon Circle */
.impact-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    margin-bottom: 0.25rem;
}

.impact-card:hover .impact-card__icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.45);
}

.impact-card__icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.impact-card:hover .impact-card__icon i {
    color: #fff;
}

/* Number */
.impact-card__number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.impact-card__number small {
    font-size: 0.55em;
    font-weight: 700;
    color: var(--accent-color);
}

/* Label */
.impact-card__label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 991px) {
    .impact-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .impact-card {
        padding: 1.5rem 1rem;
    }

    .impact-card__number {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .impact-stats-section {
        padding: 3rem 0;
    }

    .impact-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .impact-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .impact-card__icon {
        width: 50px;
        height: 50px;
    }

    .impact-card__icon i {
        font-size: 1.2rem;
    }

    .impact-card__number {
        font-size: 1.75rem;
    }

    .impact-card__label {
        font-size: 0.85rem;
    }

    .impact-stats-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   2. PROJECTS MAIN SECTION
   ============================================ */
.projects-main-section {
    padding: 4.5rem 0 5.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
    position: relative;
    border-top: 1px solid rgba(15, 36, 70, 0.06);
}

.projects-main-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--main-color-rgb), 0.12), transparent);
}

/* Humanitarian Inspiration Section - Styles moved to shared.css */

/* ============================================
   3. PROJECTS LIST - HORIZONTAL ROW LAYOUT
   ============================================ */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

/* ============================================
   PROJECT ROW - Alternating Horizontal Card
   ============================================ */
.project-row {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    overflow: hidden;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 20px rgba(15, 36, 70, 0.04);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 280px;
    will-change: transform;
}

.project-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(15, 36, 70, 0.12);
    border-color: rgba(29, 159, 218, 0.35);
}

/* Alternating: even rows flip image to right */
.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

[dir="rtl"] .project-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .project-row:nth-child(even) {
    flex-direction: row;
}

/* --- Image Side --- */
.project-row__image {
    position: relative;
    width: 45%;
    min-height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-row__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-row:hover .project-row__image img {
    transform: scale(1.08);
}

/* Hardware-accelerated Smooth Crossfade Preview Layers */
.project-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: scale(1.02);
    transition: opacity 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.project-preview-img.is-active {
    opacity: 1;
    transform: scale(1.04);
}

.project-row:hover .project-preview-img.is-active {
    transform: scale(1.08);
}

.project-row__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb), 0.15) 0%, transparent 60%);
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.project-row:hover .project-row__image-overlay {
    opacity: 0;
}

/* Placeholder (no image) */
.project-row__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb), 0.08) 0%, rgba(var(--accent-color-rgb), 0.08) 100%);
}

.project-row__placeholder .placeholder-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.25;
}

/* Featured Badge */
.project-row__badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    background: linear-gradient(135deg, var(--accent-color), #4aa32e);
    color: #ffffff;
    padding: 0.32rem 0.8rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(97, 178, 58, 0.35);
    z-index: 4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-row__badge i {
    color: #ffffff;
    font-size: 0.8rem;
}

/* ============================================
   SECTOR BADGE (FLOATING ON CARD IMAGE)
   - Styled after the camps badge in History
     (Clean frosted white pill + cyan border + deep navy text + cyan icon)
   ============================================ */
.project-card__sector-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f2446;
    border: 1px solid rgba(29, 159, 218, 0.5);
    padding: 0.32rem 0.8rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 36, 70, 0.14);
    z-index: 4;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__sector-badge i {
    color: #1d9fda;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.project-row:hover .project-card__sector-badge,
.project-card:hover .project-card__sector-badge {
    background: #ffffff;
    border-color: #1d9fda;
    color: #0f2446;
    box-shadow: 0 6px 18px rgba(29, 159, 218, 0.28);
    transform: translateY(-2px);
}

/* Status Badge Floating on Card Image Top-End */
.project-card__status-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.32rem 0.82rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 36, 70, 0.12);
    z-index: 4;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card__status-badge i {
    font-size: 0.82rem;
    flex-shrink: 0;
}

.project-card__status-badge.status-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.project-card__status-badge.status-completed i {
    color: #059669;
}

.project-card__status-badge.status-ongoing {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.35);
}

.project-card__status-badge.status-ongoing i {
    color: #0284c7;
}

.project-card__status-badge.status-inprogress {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.project-card__status-badge.status-inprogress i {
    color: #d97706;
}

.project-row:hover .project-card__status-badge,
.project-card:hover .project-card__status-badge {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 36, 70, 0.2);
}

/* Gallery on Image */
.project-row__gallery {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
}

.project-row__gallery .gallery-thumbs {
    display: flex;
    gap: 0.5rem;
}

.gallery-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.25s ease,
        box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: rgba(15, 36, 70, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    transform: scale(1.18) translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(29, 159, 218, 0.6);
    border-color: #1d9fda;
    z-index: 10;
}

.gallery-thumb:hover img,
.gallery-thumb.is-active img {
    transform: scale(1.1);
}

/* --- Content Side --- */
.project-row__content {
    flex: 1;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Orient Logo watermark */
.project-row__logo {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.project-row:hover .project-row__logo {
    opacity: 0.3;
}

.project-row__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   METADATA BAR & CHIPS (LOCATION, IMPACT, YEAR)
   ============================================ */
.project-card__meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.project-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.24rem 0.65rem;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(15, 36, 70, 0.08);
    transition: all 0.25s ease;
    line-height: 1.25;
}

.project-meta-chip.location-chip {
    background: #f8fafc;
}

.project-meta-chip.location-chip i {
    color: #ef4444;
    font-size: 0.76rem;
}

.project-meta-chip.impact-chip {
    background: rgba(29, 159, 218, 0.08);
    color: #0284c7;
    border-color: rgba(29, 159, 218, 0.24);
    font-weight: 700;
}

.project-meta-chip.impact-chip i {
    color: #1d9fda;
    font-size: 0.78rem;
}

.project-meta-chip.date-chip {
    background: #f8fafc;
    color: #64748b;
}

.project-meta-chip.date-chip i {
    color: #94a3b8;
    font-size: 0.74rem;
}

.project-row:hover .project-meta-chip.impact-chip {
    background: rgba(29, 159, 218, 0.16);
    border-color: rgba(29, 159, 218, 0.45);
    transform: translateY(-1px);
}

.project-row__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
    margin: 0 0 0.75rem;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.project-row:hover .project-row__title {
    color: var(--accent-color);
}

.project-row__summary {
    color: #5a6a7a;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 1.5rem;
    flex: 1;
}

/* CTA Button */
.project-row__footer {
    margin-top: auto;
}

.project-row__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--main-color);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.project-row__cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--main-color), var(--accent-color));
    transition: width 0.4s ease;
    border-radius: 2px;
}

[dir="rtl"] .project-row__cta::after {
    left: auto;
    right: 0;
}

.project-row:hover .project-row__cta::after {
    width: 100%;
}

.project-row__cta i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.project-row:hover .project-row__cta i {
    transform: translateX(5px);
}

[dir="rtl"] .project-row:hover .project-row__cta i {
    transform: translateX(-5px);
}

/* Side Accent Bar (Hover Border) - Fixed for RTL and LTR */
.project-row__accent {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 4.5px;
    background: linear-gradient(to bottom, #1d9fda, #38bdf8);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 5;
    border-radius: 0 4px 4px 0;
}

.project-row:nth-child(even) .project-row__accent {
    right: auto;
    left: 0;
    border-radius: 4px 0 0 4px;
}

/* 
   CRITICAL RTL FIX:
   In RTL, odd rows have flex-direction: row-reverse (content on RIGHT, image on LEFT).
   Even rows have flex-direction: row (content on LEFT, image on RIGHT).
   Therefore, to appear on the CONTENT side and NEVER on the IMAGE side:
   - Odd rows MUST have right: 0; left: auto;
   - Even rows MUST have left: 0; right: auto;
*/
[dir="rtl"] .project-row .project-row__accent {
    right: 0 !important;
    left: auto !important;
    border-radius: 4px 0 0 4px;
}

[dir="rtl"] .project-row:nth-child(even) .project-row__accent {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 4px 4px 0;
}

.project-row:hover .project-row__accent {
    transform: scaleY(1);
}

/* ============================================
   GRID MODE: 3 COLUMNS (.projects-list.is-grid)
   ============================================ */
.projects-list.is-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.85rem;
}

.projects-list.is-grid .project-row,
.projects-list.is-grid .project-row:nth-child(even),
.projects-list.is-grid [dir="rtl"] .project-row,
.projects-list.is-grid [dir="rtl"] .project-row:nth-child(even) {
    flex-direction: column !important;
    min-height: auto;
    height: 100%;
    border-radius: 18px;
    display: flex;
}

.projects-list.is-grid .project-row__image {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    border-radius: 18px 18px 0 0;
}

.projects-list.is-grid .project-row__content {
    width: 100% !important;
    padding: 1.35rem 1.35rem 1.25rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.projects-list.is-grid .project-row__logo {
    display: none;
}

.projects-list.is-grid .project-row__title {
    font-size: 1.12rem !important;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.6rem;
    color: #0f2446;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
    transition: color 0.25s ease;
}

.projects-list.is-grid .project-row:hover .project-row__title {
    color: #1d9fda;
}

.projects-list.is-grid .project-row__summary {
    font-size: 0.86rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.projects-list.is-grid .project-row__footer {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 36, 70, 0.07);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* In Grid Mode, the hover accent bar expands smoothly along the bottom edge */
.projects-list.is-grid .project-row .project-row__accent,
.projects-list.is-grid .project-row:nth-child(even) .project-row__accent,
.projects-list.is-grid [dir="rtl"] .project-row .project-row__accent,
.projects-list.is-grid [dir="rtl"] .project-row:nth-child(even) .project-row__accent {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #1d9fda, #38bdf8);
    transform: scaleX(0);
    transform-origin: center;
    border-radius: 0 0 18px 18px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.projects-list.is-grid .project-row:hover .project-row__accent {
    transform: scaleX(1);
}

.projects-list.is-grid .project-row__gallery {
    bottom: 8px;
    left: 8px;
    right: 8px;
}

.projects-list.is-grid .gallery-thumb {
    width: 34px;
    height: 26px;
}

/* Grid Mode Responsive */
@media (max-width: 1199px) {
    .projects-list.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .projects-list.is-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {

    .project-row,
    .project-row:nth-child(even),
    [dir="rtl"] .project-row,
    [dir="rtl"] .project-row:nth-child(even) {
        flex-direction: column;
    }

    .project-row__image {
        width: 100%;
        min-height: 220px;
        height: 220px;
    }

    .project-row__content {
        padding: 1.5rem;
    }

    .project-row__accent,
    .project-row:nth-child(even) .project-row__accent,
    [dir="rtl"] .project-row .project-row__accent,
    [dir="rtl"] .project-row:nth-child(even) .project-row__accent {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 4px;
        transform: scaleX(0);
        transform-origin: center;
        border-radius: 0 0 20px 20px;
    }

    .project-row:hover .project-row__accent {
        transform: scaleX(1);
    }
}

@media (max-width: 767px) {
    .projects-list {
        gap: 1.5rem;
    }

    .project-row {
        min-height: auto;
    }

    .project-row__image {
        height: 200px;
    }

    .project-row__title {
        font-size: 1.2rem;
    }

    .gallery-thumb {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
}

/* Hide overlay and button when previewing gallery image */
.project-row__image.preview-mode .project-row__image-overlay {
    opacity: 0 !important;
    pointer-events: none;
}

/* ============================================
   10. PROJECTS PAGINATION
   ============================================ */
.projects-pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3.5rem;
}

.projects-pagination .page-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    color: #0f2446;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 36, 70, 0.04);
    transition: all 0.25s ease;
    text-decoration: none;
}

.projects-pagination .page-btn:hover {
    background: rgba(2, 132, 199, 0.05);
    color: #0284c7;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.projects-pagination .page-btn.active {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(29, 159, 218, 0.35);
}

/* ============================================
   PROJECT DETAIL SECTION
   ============================================ */
.project-detail-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
    border-bottom: 1px solid rgba(15, 36, 70, 0.06);
}

/* ============================================
   FULLSCREEN SHOWCASE GALLERY
   Premium gallery for architectural projects
   ============================================ */
.fullscreen-showcase {
    margin: 0 0 3.5rem;
    background: linear-gradient(145deg, #091528 0%, #050d1a 100%);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 85px rgba(5, 13, 26, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
}

/* Expansive Wide Canvas on Large Viewports */
@media (min-width: 1200px) {
    .fullscreen-showcase {
        margin-inline-start: -2.5rem;
        margin-inline-end: -2.5rem;
        width: calc(100% + 5rem);
    }
}

@media (min-width: 1400px) {
    .fullscreen-showcase {
        margin-inline-start: -4rem;
        margin-inline-end: -4rem;
        width: calc(100% + 8rem);
    }
}

/* Autoplay Progress Line */
.showcase-autoplay-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 30;
    overflow: hidden;
}

.autoplay-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color, #1d9fda), #38bdf8);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    transition: width 0.05s linear;
}

/* Showcase Header */
.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.showcase-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.showcase-title-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--accent-color-rgb, 29, 159, 218), 0.15);
    border: 1px solid rgba(var(--accent-color-rgb, 29, 159, 218), 0.25);
    color: var(--accent-color, #1d9fda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.showcase-title-text h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
    letter-spacing: -0.01em;
}

.showcase-subtitle {
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 500;
    display: block;
}

/* Toolbar Controls */
.showcase-toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.showcase-ctrl-btn {
    height: 38px;
    padding: 0 0.95rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.showcase-ctrl-btn:hover {
    background: rgba(var(--accent-color-rgb, 29, 159, 218), 0.2);
    border-color: var(--accent-color, #1d9fda);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.showcase-ctrl-btn.active,
.showcase-ctrl-btn.is-playing {
    background: rgba(var(--accent-color-rgb, 29, 159, 218), 0.15);
    border-color: rgba(var(--accent-color-rgb, 29, 159, 218), 0.4);
    color: var(--accent-color, #1d9fda);
}

.showcase-counter {
    height: 38px;
    padding: 0 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.showcase-counter i {
    color: var(--accent-color, #1d9fda);
    font-size: 0.85rem;
}

.showcase-counter .current-index {
    color: var(--accent-color, #1d9fda);
    font-size: 1.15rem;
    font-weight: 800;
}

.showcase-counter .separator {
    color: rgba(255, 255, 255, 0.3);
}

.showcase-counter .total-count {
    color: rgba(255, 255, 255, 0.6);
}

/* Main Image Display */
.showcase-main {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 80vh;
    min-height: 460px;
    overflow: hidden;
    background: #050c18;
}

/* Ambient Blurred Backdrop */
.showcase-ambient-backdrop {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(55px) brightness(0.32) saturate(1.45);
    transform: scale(1.15);
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease, background-image 0.5s ease;
}

.showcase-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-main-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    transition: opacity 0.35s ease;
}

.showcase-main:hover .showcase-main-img {
    transform: none;
}

/* Ensure image is always displayed contained without cropping or expansion */
.showcase-main.mode-contain .showcase-main-img {
    object-fit: contain;
}

.showcase-main-img.loading {
    opacity: 0.3;
}

/* Slide Animation Classes (Fade transition without scaling/expansion) */
.showcase-main-img.slide-out-left,
.showcase-main-img.slide-out-right {
    animation: slideOut 0.25s ease forwards;
}

.showcase-main-img.slide-in-left,
.showcase-main-img.slide-in-right {
    animation: slideIn 0.25s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Floating Glassmorphic Caption Card */
.showcase-floating-caption {
    position: absolute;
    bottom: 1.5rem;
    inset-inline-start: 1.75rem;
    max-width: min(580px, calc(100% - 3.5rem));
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.25rem;
    background: rgba(7, 16, 31, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #fff;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.caption-badge {
    padding: 0.22rem 0.6rem;
    background: rgba(var(--accent-color-rgb, 29, 159, 218), 0.2);
    border: 1px solid rgba(var(--accent-color-rgb, 29, 159, 218), 0.45);
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--accent-color, #1d9fda);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.caption-badge .caption-num {
    color: #fff;
}

.caption-badge .caption-total {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
}

.caption-text-area {
    flex: 1;
    min-width: 0;
}

.caption-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.caption-zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.caption-zoom-btn:hover {
    background: var(--accent-color, #1d9fda);
    color: #fff;
    transform: scale(1.08);
}

.showcase-fullscreen-btn {
    display: none !important;
}

/* Navigation Arrows */
.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(7, 16, 31, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 12;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.showcase-main:hover .showcase-nav {
    opacity: 1;
}

.showcase-nav:hover {
    background: var(--accent-color, #1d9fda);
    border-color: var(--accent-color, #1d9fda);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(var(--accent-color-rgb, 29, 159, 218), 0.5);
}

.showcase-nav.prev {
    left: 1.5rem;
}

.showcase-nav.next {
    right: 1.5rem;
}

/* RTL Support for Nav Arrows */
[dir="rtl"] .showcase-nav.prev {
    left: auto;
    right: 1.5rem;
}

[dir="rtl"] .showcase-nav.next {
    right: auto;
    left: 1.5rem;
}

[dir="rtl"] .showcase-nav i {
    transform: scaleX(-1);
}

/* Thumbnails Carousel Wrapper */
.showcase-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(4, 10, 20, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    gap: 0.5rem;
}

.thumbs-nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    z-index: 3;
}

.thumbs-nav-arrow:hover {
    background: var(--accent-color, #1d9fda);
    border-color: var(--accent-color, #1d9fda);
    color: #fff;
    transform: scale(1.05);
}

[dir="rtl"] .thumbs-nav-arrow i {
    transform: scaleX(-1);
}

.showcase-thumbnails {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0.5rem;
}

.showcase-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnails-track {
    display: flex;
    justify-content: flex-start;
    gap: 0.85rem;
    min-width: max-content;
    margin: 0 auto;
    align-items: center;
}

.showcase-thumb {
    position: relative;
    width: 115px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.showcase-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-thumb .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.3s ease;
}

.showcase-thumb:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(var(--accent-color-rgb, 29, 159, 218), 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.showcase-thumb:hover .thumb-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.showcase-thumb:hover img {
    transform: scale(1.1);
}

.showcase-thumb.active {
    border-color: var(--accent-color, #1d9fda);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb, 29, 159, 218), 0.3), 0 8px 24px rgba(var(--accent-color-rgb, 29, 159, 218), 0.4);
    transform: translateY(-2px);
}

.showcase-thumb.active .thumb-overlay {
    background: transparent;
}

/* ── Video Thumbnail Distinction & Play Icon ── */
.media-thumb-video {
    border-color: rgba(239, 68, 68, 0.4);
}

.media-thumb-video.active {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4), 0 8px 24px rgba(239, 68, 68, 0.55) !important;
}

.thumb-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    padding-inline-start: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-thumb:hover .play-icon-btn,
.showcase-thumb.active .play-icon-btn {
    transform: scale(1.15);
    background: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7), 0 0 0 3px #ffffff;
}

/* ── Video-Active Responsive Mode (Consistent Height Matching Images, 16:9 Cinema Aspect Ratio) ── */
.showcase-main.has-video-active {
    background: #030812;
}

.showcase-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    overflow: hidden;
    background: rgba(3, 8, 18, 0.65);
    margin: 0 auto !important;
}

.showcase-video-container .video-player-responsive {
    position: relative;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    width: auto;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline: auto !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.75);
}

.showcase-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Completely eliminate enlarge / zoom button overlays blocking YouTube player & controls */
.showcase-main.has-video-active .showcase-fullscreen-btn,
.showcase-main.has-video-active:hover .showcase-fullscreen-btn {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Completely hide floating caption card across all modes as requested */
.showcase-floating-caption {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Nav arrows on video mode: unobtrusive edges */
.showcase-main.has-video-active .showcase-nav {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    background: rgba(7, 16, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 8;
}

@media (max-width: 767px) {
    .showcase-main.has-video-active .showcase-nav {
        display: none !important;
    }
    .showcase-main.has-video-active .showcase-floating-caption {
        top: 0.65rem;
        inset-inline-start: 0.65rem;
        padding: 0.25rem 0.65rem;
    }
}

/* Caption Type Tag in Badge */
.caption-type-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    margin-inline-start: 6px;
    letter-spacing: 0.3px;
}

/* ── Lightbox Video Container ── */
.lightbox-video-container {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.lightbox-video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Showcase */
@media (max-width: 991px) {
    .showcase-header {
        padding: 1rem 1.25rem;
    }

    .showcase-title-text h3 {
        font-size: 1.1rem;
    }

    .showcase-subtitle {
        display: none;
    }

    .showcase-ctrl-btn .ctrl-label {
        display: none;
    }

    .showcase-ctrl-btn {
        padding: 0 0.75rem;
    }

    .showcase-main {
        height: 480px;
        min-height: 380px;
    }

    .showcase-nav {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .showcase-nav.prev {
        left: 1rem;
    }

    .showcase-nav.next {
        right: 1rem;
    }

    [dir="rtl"] .showcase-nav.prev {
        right: 1rem;
    }

    [dir="rtl"] .showcase-nav.next {
        left: 1rem;
    }

    .showcase-thumb {
        width: 95px;
        height: 62px;
    }
}

@media (max-width: 575px) {
    .fullscreen-showcase {
        border-radius: 18px;
        margin: 0 -15px 2rem;
    }

    .showcase-header {
        padding: 0.85rem 1rem;
        gap: 0.65rem;
    }

    .showcase-title-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .showcase-title-text h3 {
        font-size: 1rem;
    }

    .showcase-main {
        height: 340px;
        min-height: 280px;
    }

    .showcase-floating-caption {
        bottom: 0.85rem;
        inset-inline-start: 0.85rem;
        max-width: calc(100% - 1.7rem);
        padding: 0.6rem 0.85rem;
        gap: 0.55rem;
        border-radius: 10px;
    }

    .caption-title {
        font-size: 0.82rem;
    }

    .showcase-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        opacity: 0.9;
    }

    .showcase-nav.prev {
        left: 0.5rem;
    }

    .showcase-nav.next {
        right: 0.5rem;
    }

    [dir="rtl"] .showcase-nav.prev {
        right: 0.5rem;
    }

    [dir="rtl"] .showcase-nav.next {
        left: 0.5rem;
    }

    .showcase-fullscreen-btn {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }

    .showcase-thumbnails-wrapper {
        padding: 0.65rem 0.5rem;
    }

    .thumbs-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .showcase-thumb {
        width: 75px;
        height: 50px;
        border-radius: 8px;
    }
}

/* ============================================
   DETAIL CARD BODY
   ============================================ */

.detail-card-body h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--main-color);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: var(--letter-spacing-tight);
}

.detail-card-body h3::after {
    content: "";
    display: inline-block;
    width: 56px;
    height: 3px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.15));
    transform: translateY(2px);
}

.detail-card-body li {
    position: relative;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    padding-block: 0.55rem;
    padding-inline-start: 2.1rem;
    padding-inline-end: 0.85rem;
    border-radius: 0.95rem;
    background: rgba(var(--main-color-rgb), 0.03);
    border: 1px solid rgba(var(--main-color-rgb), 0.08);
    color: rgba(var(--color-slate-900-rgb), 0.92);
    transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}

.detail-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.detail-card-body li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 0.95rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 0.22rem;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.35rem rgba(var(--accent-color-rgb), 0.18);
}

.detail-card-body li:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--main-color-rgb), 0.18);
    background: rgba(var(--accent-color-rgb), 0.06);
}

/* ============================================
   DETAIL SHARE INLINE
   ============================================ */

.detail-share-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-top: 3px solid var(--accent-color);
}

.detail-share-inline .share-label {
    font-weight: 600;
    color: var(--main-color);
}


/* ============================================
   RELATED PROJECTS SECTION (Bottom)
   ============================================ */
.related-projects-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.related-projects-section .related-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-color-lighter) 100%);
    z-index: 0;
}

/* Light variants for dark backgrounds - Styles in shared.css */

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.related-project-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.related-project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border-color: rgba(29, 159, 218, 0.5);
}

.related-project-item .related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-project-item .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-item:hover .related-image img {
    transform: scale(1.1);
}

.related-project-item .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.related-project-item .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.related-project-item .related-content {
    padding: 1.5rem;
}

.related-project-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--main-color);
    transition: color 0.25s ease;
}

.related-project-item:hover h4 {
    color: var(--accent-color, #1D9FDA);
}

.related-project-item .view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}


/* ============================================
   PROJECT BOTTOM SECTION
   ============================================ */
.project-bottom-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Bottom Sector Card */
.bottom-sector-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bottom-sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.sector-card-image {
    position: relative;
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.sector-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bottom-sector-card:hover .sector-card-image img {
    transform: scale(1.1);
}

.sector-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.sector-card-image .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}

.sector-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sector-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sector-card-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.sector-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--main-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.sector-link-arrow i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.bottom-sector-card:hover .sector-link-arrow i {
    transform: translateX(5px);
}

[dir="rtl"] .bottom-sector-card:hover .sector-link-arrow i {
    transform: translateX(-5px);
}

/* Bottom Contact Card */
.bottom-contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #1a6fa0 0%, var(--main-color) 40%, #0d7a3e 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(var(--main-color-rgb), 0.3);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    flex-shrink: 0;
}

.contact-card-content {
    flex: 1;
}

.contact-card-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.contact-card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: #fff;
}

.contact-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--main-color);
}

/* Back Link Button */
.back-to-projects {
    text-align: center;
    padding-top: 2rem;
}

.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #fff;
    border-radius: 50px;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-link-btn:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.3);
}


/* ============================================
   LIGHTBOX MODAL
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--accent-color);
    color: var(--main-color);
    transform: rotate(90deg);
}

/* RTL Support for close button */
[dir="rtl"] .lightbox-close {
    left: auto;
    right: 0;
}

/* Image rotation transition */
#lightbox-image {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================
   LIGHTBOX NAVIGATION - Premium Style
   ============================================ */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(var(--main-color-rgb), 0.8);
    color: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(var(--accent-color-rgb), 0);
    }
}

.lightbox-nav:hover {
    background: var(--accent-color);
    color: var(--main-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 15px 40px rgba(var(--accent-color-rgb), 0.5);
    animation: none;
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-nav i {
    transition: transform 0.3s ease;
}

.lightbox-nav:hover i {
    animation: arrowBounce 0.5s ease;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.lightbox-nav.prev:hover i {
    animation: arrowBouncePrev 0.5s ease;
}

@keyframes arrowBouncePrev {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

/* RTL Support for Lightbox */
[dir="rtl"] .lightbox-nav.prev {
    left: auto;
    right: 30px;
}

[dir="rtl"] .lightbox-nav.next {
    right: auto;
    left: 30px;
}

[dir="rtl"] .lightbox-nav i {
    transform: scaleX(-1);
}

[dir="rtl"] .lightbox-nav:hover i {
    animation: arrowBounceRTL 0.5s ease;
}

@keyframes arrowBounceRTL {

    0%,
    100% {
        transform: scaleX(-1) translateX(0);
    }

    50% {
        transform: scaleX(-1) translateX(-5px);
    }
}

/* ============================================
   LIGHTBOX MOBILE LANDSCAPE MODE
   Image rotates 90deg, arrows top/bottom, fullscreen
   ============================================ */
@media (max-width: 768px) {

    /* Lightbox fullscreen on mobile */
    .lightbox.active {
        padding: 0;
    }

    .lightbox.active .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        padding: 0;
    }

    /* Rotate image 90 degrees for landscape view */
    .lightbox.active #lightbox-image {
        transform: rotate(90deg);
        max-width: 95vh;
        max-height: 95vw;
        transition: none;
    }

    /* Hide caption on mobile for more space */
    .lightbox.active #lightbox-caption {
        display: none;
    }

    /* Close button - top right corner */
    .lightbox.active .lightbox-close {
        position: fixed;
        top: 15px;
        right: 15px;
        left: auto;
        z-index: 10003;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
    }

    /* Navigation arrows - top and bottom, horizontally centered */
    .lightbox.active .lightbox-nav {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        width: 60px;
        height: 60px;
    }

    .lightbox.active .lightbox-nav.prev {
        top: 20px !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
    }

    .lightbox.active .lightbox-nav.next {
        bottom: 20px !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
    }

    /* Rotate arrow icons to point up/down */
    .lightbox.active .lightbox-nav.prev i,
    .lightbox.active .lightbox-nav.next i {
        transform: rotate(90deg) !important;
    }

    /* Hover state - keep centered positioning, disable bounce animation */
    .lightbox.active .lightbox-nav:hover {
        transform: translateX(-50%) scale(1.1) !important;
    }

    .lightbox.active .lightbox-nav:hover i,
    .lightbox.active .lightbox-nav.prev:hover i,
    .lightbox.active .lightbox-nav.next:hover i {
        transform: rotate(90deg) !important;
        animation: none !important;
    }
}


/* ============================================
   RESPONSIVE - BOTTOM SECTIONS
   ============================================ */
@media (max-width: 991px) {
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .bottom-sector-card {
        flex-direction: column;
    }

    .sector-card-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-projects-section,
    .project-bottom-section {
        padding: 3rem 0;
    }

    .bottom-contact-card {
        flex-direction: column;
        text-align: center;
    }

    .detail-share-inline {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   AJAX LOADING STATE
   ============================================ */
.projects-content {
    transition: opacity 0.3s ease;
    position: relative;
    min-height: 200px;
}

.projects-content.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 100;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   PROJECT CONTENT COMPONENTS
   Styles for structured project detail content
   ============================================ */

/* Project Meta Grid – location, status, target info */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.75rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    box-shadow: 0 2px 6px rgba(15, 36, 70, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.meta-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color, #1d9fda), #0ea5e9);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 36, 70, 0.08);
    border-color: rgba(var(--accent-color-rgb, 29, 159, 218), 0.35);
}

.meta-item:hover::before {
    opacity: 1;
}

.meta-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb, 29, 159, 218), 0.08) 0%, rgba(var(--accent-color-rgb, 29, 159, 218), 0.16) 100%);
    color: var(--accent-color, #1d9fda);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.25s ease;
}

.meta-item:hover i {
    background: var(--accent-color, #1d9fda);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb, 29, 159, 218), 0.25);
}

.meta-item > span {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f2446;
    line-height: 1.45;
}

.meta-item strong {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    margin: 0;
    display: block;
    line-height: 1.3;
}

/* Holding Company Link */
.holding-company-link {
    color: var(--accent-color, #1d9fda);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.holding-company-link:hover {
    color: var(--main-color, #0f2446);
    text-decoration: underline;
}

/* Progress Bar Section */
.progress-section {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb), 0.04) 0%, rgba(var(--accent-color-rgb, 210, 38, 47), 0.04) 100%);
    border-radius: 12px;
    border-inline-start: 4px solid var(--accent-color);
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--main-color);
}

.progress-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(var(--main-color-rgb), 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: progressGrow 1.2s ease forwards;
}

@keyframes progressGrow {
    from {
        width: 0 !important;
    }
}

/* Project Quote Blockquote */
.project-quote {
    position: relative;
    margin: 2rem 0;
    padding: 1.35rem 1.5rem;
    padding-inline-start: 3.5rem;
    padding-inline-end: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    border-inline-start: 4px solid #059669;
    box-shadow: 0 4px 16px rgba(15, 36, 70, 0.03);
}

.project-quote::before {
    content: '"';
    position: absolute;
    inset-inline-start: 1.15rem;
    top: 0.4rem;
    font-size: 3.2rem;
    line-height: 1;
    color: #059669;
    opacity: 0.35;
    font-family: Georgia, serif;
}

[dir="rtl"] .project-quote {
    padding: 1.35rem 1.5rem;
    padding-inline-start: 3.5rem;
    padding-inline-end: 1.5rem;
    border-inline-start: 4px solid #059669;
    border-inline-end: none;
}

[dir="rtl"] .project-quote::before {
    content: '“';
    inset-inline-start: 1.15rem;
    inset-inline-end: auto;
    font-family: "Amiri", "Traditional Arabic", serif, Georgia;
    font-size: 3.2rem;
    top: 0.25rem;
}

.project-quote p {
    margin: 0;
    font-size: 1.05rem;
    font-style: italic;
    color: #0f2446;
    line-height: 1.75;
    font-weight: 600;
}

/* Project Section Title (e.g., for Medical Supply / Cemetery section headers) */
.project-section-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--main-color, #0f2446);
    margin: 2rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(15, 36, 70, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-section-title i {
    color: var(--accent-color, #1d9fda);
    font-size: 1.05rem;
}

/* Cemetery Target Cards Grid */
.cemetery-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0 1.75rem;
}

.cemetery-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    box-shadow: 0 3px 12px rgba(15, 36, 70, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cemetery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(var(--accent-color-rgb, 29, 159, 218), 0.12);
    border-color: rgba(var(--accent-color-rgb, 29, 159, 218), 0.35);
}

.cemetery-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--accent-color-rgb, 29, 159, 218), 0.1);
    color: var(--accent-color, #1d9fda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.cemetery-card:hover .cemetery-card-icon {
    background: var(--accent-color, #1d9fda);
    color: #ffffff;
}

.cemetery-card-content h5 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f2446;
    margin: 0 0 0.4rem;
}

.cemetery-card-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* Project Features List */
.project-features-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.project-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 36, 70, 0.06);
    box-shadow: 0 2px 8px rgba(15, 36, 70, 0.02);
    transition: all 0.2s ease;
}

.project-features-list li:hover {
    border-color: rgba(5, 150, 105, 0.25);
    background: #fcfdfd;
}

.project-features-list li i.fa-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.project-features-list li strong {
    color: #0f2446;
    display: block;
    font-size: 0.96rem;
    margin-bottom: 0.25rem;
}

.project-features-list li span {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #4b5563;
}

@media (max-width: 991px) {
    .cemetery-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Supply Chain Flow (Medical Supplies Project) */
.supply-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 10px;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.supply-chain span:not(.arrow) {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: white;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--main-color);
    border: 1px solid rgba(2, 132, 199, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.supply-chain .arrow {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.6;
}

/* Status Badges */
.status-completed {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.status-completed i {
    color: #059669;
}

.status-ongoing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(2, 132, 199, 0.35);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.status-ongoing i {
    color: #0284c7;
}

.status-inprogress {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.status-inprogress i {
    color: #d97706;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .meta-item {
        padding: 0.85rem 1rem;
    }

    .supply-chain {
        gap: 0.3rem;
    }

    .supply-chain span:not(.arrow) {
        font-size: 0.78rem;
        padding: 0.3rem 0.6rem;
    }

    .progress-section {
        padding: 1rem;
    }
}

/* ========================================================================
   PROJECT DETAILS PAGE ENHANCEMENTS (OVERHAUL)
   Key Metrics Strip, Video Theater, Quote Box, Project Navigation, Share & Badges
   ======================================================================== */

/* ── 1. Project Key Metrics Strip ── */
.project-metrics-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.25rem;
}

.project-metric-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(15, 36, 70, 0.08);
    box-shadow: 0 4px 18px rgba(15, 36, 70, 0.03);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-metric-card.status-completed .project-metric-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.project-metric-card.status-ongoing .project-metric-icon {
    background: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.project-metric-card.status-inprogress .project-metric-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.project-metric-card.status-completed::before {
    background: linear-gradient(180deg, #10b981, #047857);
}

.project-metric-card.status-ongoing::before {
    background: linear-gradient(180deg, #0284c7, #0369a1);
}

.project-metric-card.status-inprogress::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.project-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(29, 159, 218, 0.12);
    border-color: rgba(29, 159, 218, 0.3);
}

.project-metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1d9fda, #0f2446);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-metric-card:hover::before {
    opacity: 1;
}

.project-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(29, 159, 218, 0.1);
    color: #1d9fda;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.project-metric-card:hover .project-metric-icon {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #ffffff;
    transform: scale(1.05);
}

.project-metric-info {
    flex: 1;
    min-width: 0;
}

.project-metric-label {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.25rem;
    display: block;
}

.project-metric-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f2446;
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.project-metric-value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-metric-value a:hover {
    color: #1d9fda;
}

/* ── 2. Cinema Video Theater Section ── */
.project-video-section {
    margin: 2.75rem 0 2.5rem;
}

.video-theater-card {
    background: linear-gradient(145deg, #091528 0%, #0f2446 60%, #132f58 100%);
    border-radius: 22px;
    padding: 2.25rem 2.25rem 2rem;
    color: #ffffff;
    box-shadow: 0 25px 80px rgba(15, 36, 70, 0.3);
    border: 1px solid rgba(29, 159, 218, 0.22);
    position: relative;
    overflow: hidden;
}

.video-theater-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 159, 218, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.video-theater-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.75rem;
    position: relative;
    z-index: 2;
}

.video-theater-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.video-theater-badge i {
    color: #ef4444;
    font-size: 1.05rem;
}

.video-theater-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    letter-spacing: -0.3px;
}

.video-theater-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
}

/* Multi-Video Playlist Selector in Theater */
.video-theater-playlist {
    margin-top: 1.25rem;
    padding: 0.85rem 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.playlist-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.playlist-heading i {
    color: #1d9fda;
}

.playlist-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.theater-playlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: inherit;
}

.theater-playlist-btn i {
    color: #ef4444;
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.theater-playlist-btn .playlist-btn-badge {
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #93c5fd;
}

.theater-playlist-btn:hover {
    background: rgba(29, 159, 218, 0.25);
    border-color: rgba(29, 159, 218, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.theater-playlist-btn:hover i {
    transform: scale(1.15);
}

.theater-playlist-btn.active {
    background: linear-gradient(135deg, rgba(29, 159, 218, 0.85) 0%, rgba(14, 116, 144, 0.95) 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(29, 159, 218, 0.5);
}

.theater-playlist-btn.active .playlist-btn-badge {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.video-player-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
    z-index: 2;
}

.video-player-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.video-player-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-theater-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.video-footer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
}

.video-footer-info i {
    color: #10b981;
}

.video-youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.video-youtube-link:hover {
    background: #ef4444;
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* ── In-Article Embedded Video Card ── */
.content-embedded-video-card {
    margin: 2.25rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid rgba(29, 159, 218, 0.22);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 36, 70, 0.06);
    position: relative;
    overflow: hidden;
}

.content-embedded-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #1d9fda 0%, #ef4444 100%);
}

.embedded-video-header {
    margin-bottom: 1rem;
}

.embedded-video-header .video-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.embedded-video-header .video-badge i {
    font-size: 0.95rem;
    color: #ef4444;
}

.embedded-video-header h5 {
    color: #0f2446;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
}

.embedded-video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.embedded-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embedded-video-caption {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.55;
}

.embedded-video-caption i {
    color: #1d9fda;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ── 4. Humanitarian Quote Box ── */
.humanitarian-quote-box {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 36, 70, 0.03) 0%, rgba(29, 159, 218, 0.07) 100%);
    border-radius: 16px;
    padding: 1.6rem 2rem;
    margin: 1.25rem 0 2rem;
    border-inline-start: 4px solid #1d9fda;
    box-shadow: 0 4px 15px rgba(15, 36, 70, 0.02);
    overflow: hidden;
}

.humanitarian-quote-box .quote-icon-decor {
    position: absolute;
    inset-inline-end: 1.5rem;
    bottom: -0.5rem;
    font-size: 3.8rem;
    color: rgba(29, 159, 218, 0.08);
    pointer-events: none;
    line-height: 1;
}

[dir="rtl"] .humanitarian-quote-box .quote-icon-decor {
    transform: scaleX(-1);
}

.humanitarian-quote-box .quote-text p {
    font-size: 1.08rem;
    line-height: 1.8;
    font-weight: 600;
    color: #0f2446;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ── 5. Project Sequential Navigation Strip ── */
.project-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 36, 70, 0.08);
}

.proj-nav-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 36, 70, 0.08);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 14px rgba(15, 36, 70, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 44%;
}

.proj-nav-card:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 159, 218, 0.4);
    box-shadow: 0 10px 28px rgba(29, 159, 218, 0.15);
}

.proj-nav-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(15, 36, 70, 0.08);
}

.proj-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proj-nav-card:hover .proj-nav-thumb img {
    transform: scale(1.1);
}

.proj-nav-info {
    flex: 1;
    min-width: 0;
}

.proj-nav-dir {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #1d9fda;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.2rem;
}

.proj-nav-title {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f2446;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.proj-nav-card:hover .proj-nav-title {
    color: #1d9fda;
}

.proj-nav-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 36, 70, 0.1);
    color: #0f2446;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 36, 70, 0.04);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.proj-nav-all i {
    font-size: 1.2rem;
    color: #1d9fda;
    transition: transform 0.3s ease;
}

.proj-nav-all span {
    display: none;
}

.proj-nav-all:hover {
    background: linear-gradient(135deg, #0f2446, #1d9fda);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 24px rgba(29, 159, 218, 0.3);
}

.proj-nav-all:hover i {
    color: #ffffff;
    transform: rotate(90deg);
}

.proj-nav-placeholder {
    flex: 1;
    max-width: 44%;
}

/* ── 6. Related Project Location Badge ── */
.related-loc-badge {
    position: absolute;
    bottom: 0.75rem;
    inset-inline-start: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 50px;
    background: rgba(15, 36, 70, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    z-index: 2;
}

.related-loc-badge i {
    color: #1d9fda;
}

/* ── 7. Share Strip & Copy Link Button ── */
.detail-share-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    margin-top: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border-top: 3px solid #1d9fda;
    flex-wrap: wrap;
}

.detail-share-inline .share-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0f2446;
    font-size: 0.95rem;
}

.detail-share-inline .share-label i {
    color: #1d9fda;
}

.detail-share-inline .share-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.share-btn.copy-link {
    background: #0f2446;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.share-btn.copy-link:hover {
    background: #1d9fda;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 159, 218, 0.4);
}

.share-btn.copy-link.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.45);
    transform: scale(1.08);
}

/* ── 8. Responsive Adjustments ── */
@media (max-width: 991px) {
    .project-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-theater-card {
        padding: 1.75rem 1.5rem;
    }

    .video-theater-title {
        font-size: 1.45rem;
    }

    .proj-nav-card {
        max-width: 48%;
    }
}

@media (max-width: 640px) {
    .project-metrics-strip {
        grid-template-columns: 1fr;
    }

    .video-theater-card {
        padding: 1.25rem 1rem;
        border-radius: 16px;
    }

    .video-theater-title {
        font-size: 1.25rem;
    }

    .video-theater-subtitle {
        font-size: 0.88rem;
    }

    .video-theater-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .video-footer-info {
        justify-content: center;
    }

    .video-youtube-link {
        justify-content: center;
    }

    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .proj-nav-card {
        max-width: 100%;
        width: 100%;
    }

    .proj-nav-placeholder {
        display: none;
    }

    .proj-nav-all {
        order: -1;
        width: 100%;
        height: 44px;
        border-radius: 12px;
    }

    .proj-nav-all span {
        display: inline;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .detail-share-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}