/* ==========================================================================
   Roeya TV - Custom Article Layout CSS
   ========================================================================== */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

.article-page-wrapper {
    background-color: #fff;
    padding: 30px 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

/* Category Badge */
.article-cat-badge {
    display: inline-block;
    background-color: #17b332;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Titles */
.article-main-title {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin-bottom: 20px;
}

.article-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Author Block */
.article-meta-block {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #777;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar svg {
    fill: #999;
    width: 25px;
}

.author-info strong {
    color: #111;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.author-info .verified-badge {
    color: #17b332;
    margin-left: 5px;
    font-size: 0.9rem;
}

.author-stats {
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Share Box */
.article-share-box {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 40px;
    background-color: #fff;
}

.article-share-box span {
    font-weight: 600;
    margin-right: 20px;
    font-size: 0.95rem;
}

.article-share-box .share-icons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #fff;
}

.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-whatsapp { background-color: #25d366; }
.share-copy { background-color: #f1f1f1; color: #555 !important; }

/* Quote Block */
.article-quote {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    padding: 20px 0 20px 25px;
    border-left: 4px solid #f39c12;
    margin-bottom: 40px;
    position: relative;
    background-color: #fcfcfc;
    border-radius: 0 8px 8px 0;
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: -20px;
    font-family: serif;
    font-size: 4rem;
    color: #f39c12;
    opacity: 0.7;
    line-height: 1;
}

/* Content Area */
.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 25px;
}

/* Drop Cap */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Merriweather', serif;
    font-size: 4rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    color: #111;
}

[dir="rtl"] .article-content > p:first-of-type::first-letter,
html[dir="rtl"] .article-content > p:first-of-type::first-letter,
html[lang="ar"] .article-content > p:first-of-type::first-letter {
    float: right;
    font-family: 'Cairo', sans-serif;
    padding-right: 0;
    padding-left: 12px;
    line-height: 0.9;
}

.article-content h2, .article-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #111;
    margin-top: 40px;
    margin-bottom: 15px;
}

.article-content img {
    border-radius: 8px;
    margin: 30px 0;
    width: 100%;
    height: auto;
}

/* Main Featured Image (Right Column) */
.featured-image-wrapper {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Table of Contents / Dans cet article */
.toc-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.toc-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-number {
    width: 24px;
    height: 24px;
    border: 1px solid #17b332;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17b332;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Related Sidebar (À lire aussi) */
.sidebar-related {
    margin-bottom: 40px;
}

.sidebar-related h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.sidebar-related-item {
    display: flex;
    margin-bottom: 20px;
    gap: 15px;
}

.sidebar-related-img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-related-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.sidebar-related-content h5 a {
    color: #111;
    text-decoration: none;
}

.sidebar-related-content h5 a:hover {
    color: #17b332;
}

.sidebar-related-meta {
    font-size: 0.75rem;
    color: #888;
}

/* Most Read Bottom Section (Les plus lus) */
.most-read-bottom {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.most-read-bottom h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    border-bottom: 2px solid #17b332;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 30px;
}

.most-read-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.most-read-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
}

.most-read-number {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 900;
    color: #f39c12;
    line-height: 1;
    margin-bottom: 10px;
}

.most-read-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.most-read-title a {
    color: #111;
    text-decoration: none;
}

.most-read-title a:hover {
    color: #17b332;
}

.most-read-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
}

/* Footer Related Articles (ARTICLES LIÉS) */
.footer-related {
    background-color: #111;
    padding: 50px 0;
    border-top: 4px solid #333;
}

.footer-related h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.footer-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.footer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.footer-card:hover img {
    transform: scale(1.05);
}

.footer-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-cat-badge {
    background-color: #17b332;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.footer-card-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-card-title:hover {
    color: #17b332;
}

.footer-card-meta {
    color: #aaa;
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .article-main-title {
        font-size: 2.2rem;
    }
    .footer-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-page-wrapper {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .article-main-title {
        font-size: 1.8rem;
    }
    .article-share-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-related-grid {
        grid-template-columns: 1fr;
    }
    .most-read-grid {
        flex-direction: column;
    }
    .most-read-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    .most-read-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .most-read-number {
        margin-bottom: 0;
        font-size: 2rem;
        min-width: 25px;
    }
}

@media (max-width: 575px) {
    .article-page-wrapper {
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .article-main-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .article-subtitle {
        font-size: 0.95rem;
    }
    .article-share-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 15px;
    }
    .article-share-box .share-icons {
        flex-wrap: wrap;
        gap: 8px;
    }
    .article-quote {
        font-size: 1.05rem;
        padding: 15px 0 15px 18px;
    }
    .article-quote::before {
        font-size: 3rem;
        left: -14px;
    }
    .article-content {
        font-size: 0.97rem;
    }
    .article-content h2 { font-size: 1.2rem; margin-top: 28px; }
    .article-content h3 { font-size: 1.05rem; margin-top: 22px; }

    .toc-card { padding: 18px; }
    .toc-list li { font-size: 0.88rem; }

    .most-read-bottom { padding: 25px 15px; }
    .most-read-number { font-size: 1.8rem; min-width: 22px; }
    .most-read-title { font-size: 0.82rem; }

    .footer-related { padding: 30px 0; }
    .footer-related-grid { grid-template-columns: 1fr; gap: 15px; }
    .footer-card-title { font-size: 0.85rem; }

    .sidebar-related-img { width: 80px; height: 55px; }
    .sidebar-related-content h5 { font-size: 0.82rem; }

    .author-avatar { width: 38px; height: 38px; margin-right: 10px; }
    .author-info strong { font-size: 0.9rem; }
    .author-stats { font-size: 0.78rem; }
}

/* Drop cap — disable on very small screens to avoid layout break */
@media (max-width: 400px) {
    .article-content > p:first-of-type::first-letter {
        float: none;
        font-size: inherit;
        line-height: inherit;
        padding: 0;
    }
}

/* ==========================================================================
   PHOTO GALLERY SECTION (Matching Mockup)
   ========================================================================== */
.article-gallery-block {
    margin: 35px 0 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gallery-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.gallery-header-text .gallery-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
    font-family: 'Inter', sans-serif;
}

.gallery-header-text .gallery-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.gallery-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-photos-count {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.gallery-header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-nav-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    font-size: 11px;
}

.gallery-nav-circle:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-1px);
}

/* Gallery Grid Layout */
.gallery-grid {
    display: flex;
    gap: 10px;
    height: 300px;
    max-height: 300px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-grid.single-item {
    height: 340px;
    max-height: 340px;
}

/* Left Featured Box */
.gallery-featured-box {
    position: relative;
    flex: 1 1 52%;
    max-width: 52%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gallery-grid.single-item .gallery-featured-box {
    flex: 1 1 100%;
    max-width: 100%;
}

.gallery-featured-box img.gallery-featured-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    display: block !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.gallery-featured-box:hover img.gallery-featured-img {
    transform: scale(1.03);
}

.gallery-feat-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    padding: 0;
    font-size: 11px;
    opacity: 0.75;
}

.gallery-featured-box:hover .gallery-feat-nav {
    opacity: 0.95;
}

.gallery-feat-nav:hover {
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
}

.gallery-feat-prev {
    left: 10px;
}

.gallery-feat-next {
    right: 10px;
}

.gallery-pill-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-expand-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
    font-size: 11px;
}

.gallery-expand-icon:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: scale(1.08);
    color: #ffffff;
}

/* Right Column: Thumbs Grid */
.gallery-thumbs-col {
    flex: 1 1 48%;
    max-width: 48%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.gallery-thumbs-row {
    display: flex;
    gap: 8px;
    flex: 1 1 50%;
    height: calc(50% - 4px);
    max-height: calc(50% - 4px);
    min-height: 0;
}

.gallery-thumb-cell {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.gallery-thumb-cell.is-active-thumb {
    border-color: #17b332;
    box-shadow: 0 0 0 2px rgba(23, 179, 50, 0.3);
}

.gallery-thumb-cell:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #17b332;
}

.gallery-thumb-cell img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    display: block !important;
    transition: transform 0.35s ease;
}

.gallery-thumb-cell:hover img {
    transform: scale(1.06);
}

.gallery-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 1;
}

.gallery-thumb-cell:hover .gallery-thumb-overlay {
    opacity: 1;
}

.gallery-more-badge {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    transition: background 0.2s;
    z-index: 2;
}

.gallery-thumb-cell:hover .gallery-more-badge {
    background: rgba(15, 23, 42, 0.92);
}

/* RTL Adjustments */
[dir="rtl"] .gallery-pill-badge {
    left: auto;
    right: 10px;
}
[dir="rtl"] .gallery-expand-icon {
    right: auto;
    left: 10px;
}
[dir="rtl"] .gallery-feat-prev {
    left: auto;
    right: 10px;
}
[dir="rtl"] .gallery-feat-next {
    right: auto;
    left: 10px;
}

/* Fullscreen Lightbox */
.gallery-lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lbFadeIn 0.2s ease-out;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-dialog {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 24px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.lightbox-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.lightbox-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}

.lightbox-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: rotate(90deg);
    color: #ffffff;
}

.lightbox-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 16px 0;
}

.lightbox-img-holder {
    max-width: 90%;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxMainImg {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
    font-size: 18px;
}

.lightbox-nav-btn:hover {
    background: #17b332;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    display: flex;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbs-scroll {
    display: flex;
    gap: 8px;
    max-width: 100%;
}

.lightbox-thumb-btn {
    flex: 0 0 64px;
    height: 46px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: #1e293b;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.2s ease;
}

.lightbox-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumb-btn:hover {
    opacity: 0.85;
}

.lightbox-thumb-btn.active {
    border-color: #17b332;
    opacity: 1;
    transform: scale(1.06);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    .gallery-featured-box {
        flex: 1 1 auto;
        max-width: 100%;
        height: 240px;
    }
    .gallery-thumbs-col {
        flex: 1 1 auto;
        max-width: 100%;
        height: 140px;
    }
    .gallery-thumbs-row {
        height: 65px;
        max-height: 65px;
    }
    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
}

/* ==========================================================================
   COMMENT SECTION & FORM STYLES
   ========================================================================== */
.comment-form-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px 28px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.comment-form-wrap h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px !important;
}

.comment-form-wrap .form-control {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    height: auto !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-form-wrap textarea.form-control {
    height: 130px !important;
    min-height: 100px;
    resize: vertical;
}

.comment-form-wrap .form-control:hover {
    border-color: #9ca3af !important;
}

.comment-form-wrap .form-control:focus {
    border-color: #17b332 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(23, 179, 50, 0.15) !important;
    outline: none !important;
}

.single-comment {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    padding: 16px;
    gap: 14px;
    transition: border-color 0.2s;
}

.single-comment:hover {
    border-color: #d1d5db !important;
}
