/* New Gallery General Styles */
.gallery-page-main {
    background-color: var(--bg-color);
    /* Light background for the entire page */
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gallery Hero Section */
.gallery-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/Images/hero-cow-bg.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gallery-hero .page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
    /* Use accent color for title */
}

.gallery-hero .page-description {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
}

/* Section Heading */
.section-heading {
    text-align: center;
    font-size: 2.8rem;
    color: var(--dark-brown);
    margin: 60px 0 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Gallery Tabs (New Design) */
.gallery-tabs-new {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tab-button-new {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button-new::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-button-new:hover {
    color: var(--dark-brown);
}

.tab-button-new:hover::before {
    width: 100%;
}

.tab-button-new.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.tab-button-new.active::before {
    width: 0;
    /* Hide underline when active, as background fills */
}

/* Tab Content (New Design) */
.tab-content-new {
    display: none;
    animation: fadeIn 0.6s ease-out;
    padding: 20px;
    /* Default padding for tab content */
    border-radius: 15px;
    margin-bottom: 30px;
}

.tab-content-new.active {
    display: block;
}

.tab-content-new h3 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 35px;
    font-weight: 700;
}

/* Specific Backgrounds for Gallery Tabs */
#photo-gallery,
#video-gallery,
#bhamashah-gallery {
    background-color: #f9f9f9;
    /* Lighter background for media galleries */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

#updates-section {
    background: linear-gradient(to bottom right, var(--light-cream), #fff8e1);
    /* Existing gradient for updates */
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}


/* --- Horizontal Photo Grid --- */
.photo-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 25px;
    padding: 20px;
    /* Changed: Added equal padding on all sides */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    justify-content: flex-start;
    /* Keep flex-start for scrolling behavior */
    align-items: center;
    /* Center items vertically within the row */
}

.photo-grid::-webkit-scrollbar {
    height: 8px;
}

.photo-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.photo-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.photo-item {
    flex-shrink: 0;
    width: 300px;
    height: 250px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Added for share button positioning */
    justify-content: space-between;
    /* To push button to bottom */
    align-items: center;
}

.photo-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s infinite linear;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.photo-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Share Button for Photo, Video, Bhamashah Cards */
.share-item-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    /* Space from content above */
    margin-bottom: 15px;
    /* Space from card bottom */
    align-self: center;
    /* Center horizontally in flex column */
}

.share-item-btn i {
    font-size: 1.1rem;
}

.share-item-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Specific adjustments for photo item share button */
.photo-item .share-item-btn {
    position: absolute;
    /* Position over the image */
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    /* Ensure it's above the image */
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent background */
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    /* Smaller padding */
    font-size: 0.85rem;
    gap: 6px;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-item:hover .share-item-btn {
    opacity: 1;
    /* Show on hover */
    transform: translateX(-50%) translateY(-5px);
    /* Lift slightly */
}

/* Specific adjustments for video card share button */
.video-card .share-item-btn {
    margin-top: auto;
    /* Push to the bottom */
    margin-bottom: 15px;
    background-color: var(--primary-color);
}

/* Specific adjustments for bhamashah share button */
.bhamashah-profile-card .share-item-btn {
    margin-top: auto;
    /* Push to the bottom */
    margin-bottom: 15px;
    background-color: var(--primary-color);
}


/* Today's Update Section (New Design) */
.update-card-new {
    background: linear-gradient(to bottom right, var(--light-cream), #fff8e1);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    max-width: 950px;
    margin: 40px auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 350px;
}

.update-image-container-new {
    flex-shrink: 0;
    width: 40%;
    max-width: 350px;
    height: 300px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee;
}

.update-image-container-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.update-image-skeleton {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s infinite linear;
}

.update-content-new {
    flex-grow: 1;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

.update-text-new {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    min-height: 120px;
    text-align: left;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-text-new.loading-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s infinite linear;
    height: 120px;
    border-radius: 8px;
    line-height: 1.5;
    color: transparent;
}

.update-text-new.typing-active {
    border-right: 2px solid rgba(0, 0, 0, 0.7);
    animation: blink-caret 0.75s step-end infinite;
}

.update-text-new.typing-done {
    border-right: none;
    animation: none;
}

.read-more-btn-new {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.read-more-btn-new:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.update-date-new {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
    text-align: right;
    font-weight: 500;
}

.update-date-new.loading-date {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s infinite linear;
    height: 18px;
    width: 60%;
    margin-left: auto;
    border-radius: 5px;
    color: transparent;
}

.update-actions-new {
    margin-top: 25px;
    text-align: center;
}

.share-whatsapp-btn-new {
    background-color: var(--light-green-whatsapp);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-whatsapp-btn-new:hover {
    background-color: var(--dark-green-whatsapp);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.share-whatsapp-btn-new i {
    font-size: 1.4rem;
}


/* --- Horizontal Bhamashah Gallery --- */
.bhamashah-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px;
    /* Changed: Added equal padding on all sides */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    justify-content: flex-start;
    /* Keep flex-start for scrolling behavior */
    align-items: center;
    /* Center items vertically within the row */
}

.bhamashah-list::-webkit-scrollbar {
    height: 8px;
}

.bhamashah-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.bhamashah-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.bhamashah-profile-card {
    flex-shrink: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px;
    justify-content: space-between;
    /* Added for share button positioning */
}

.bhamashah-profile-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s infinite linear;
}

.bhamashah-profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.bhamashah-profile-card h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.bhamashah-profile-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 8px;
}

.bhamashah-profile-card .donation-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-top: 15px;
}

.bhamashah-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

/* Load More Button (Remains the same, but will only appear if there are more items *after* horizontal scroll ends) */
.load-more-btn {
    display: block;
    margin: 40px auto 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.load-more-btn:hover {
    background-color: var(--dark-brown);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* Lightbox (Refined for new design) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1060;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
    margin: auto;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease-out;
}

/* Lightbox Controls */
.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 55px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 11;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.prev-media,
.next-media {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 25px 20px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    z-index: 10;
    border-radius: 8px;
}

.prev-media {
    left: 20px;
}

.next-media {
    right: 20px;
}

.prev-media:hover,
.next-media:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-actions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 11;
}

.lightbox-actions button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.lightbox-actions button:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-actions button i {
    font-size: 1.2rem;
}

/* Common loading animation */
@keyframes loadingGradient {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: rgba(0, 0, 0, 0.7)
    }
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .gallery-hero .page-title {
        font-size: 3rem;
    }

    .gallery-hero .page-description {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 2.3rem;
    }

    .gallery-tabs-new {
        gap: 10px;
        padding: 10px;
    }

    .tab-button-new {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .tab-content-new h3 {
        font-size: 1.8rem;
    }

    /* Adjust widths for horizontal scroll on smaller screens */
    .photo-item {
        width: 250px;
        height: 200px;
    }

    .video-card {
        width: 280px;
    }

    .bhamashah-profile-card {
        width: 250px;
    }


    .update-card-new {
        flex-direction: column;
        align-items: center;
        padding: 25px;
        gap: 25px;
    }

    .update-image-container-new {
        width: 80%;
        max-width: 400px;
        height: 250px;
        border-radius: 18px;
    }

    .update-image-container-new img {
        border-radius: 18px;
    }

    .update-text-new {
        font-size: 1.1rem;
        min-height: 100px;
    }

    .read-more-btn-new {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .share-whatsapp-btn-new {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .lightbox-actions {
        flex-direction: column;
        gap: 10px;
        bottom: 15px;
    }

    .lightbox-actions button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .photo-item .share-item-btn {
        opacity: 1;
        /* Always show on smaller screens */
        transform: translateX(-50%) translateY(0);
        /* No hover lift */
        padding: 5px 10px;
        /* Even smaller padding */
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        padding: 60px 15px;
        margin-bottom: 30px;
    }

    .gallery-hero .page-title {
        font-size: 2.5rem;
    }

    .gallery-hero .page-description {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 2rem;
        margin: 40px 0 30px;
    }

    .gallery-tabs-new {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        border-radius: 10px;
    }

    .tab-button-new {
        width: 100%;
        max-width: 200px;
        font-size: 0.95rem;
        padding: 10px 15px;
    }

    .tab-content-new h3 {
        font-size: 1.6rem;
    }

    /* Centering and fixed widths for horizontal scroll on very small screens */
    .photo-grid,
    .video-grid,
    .bhamashah-list {
        padding: 20px;
        /* Keep padding for mobile as well for "centered" start */
        /* To simulate centering, especially if there are few items,
           we need to conditionally change justify-content OR use a wrapper.
           For scrollable lists, adding equal left/right padding is the best CSS-only method
           to give a centered appearance at the start/end of the scroll. */
    }

    /* More granular control for photo and video grids on small screens */
    .photo-grid {
        padding-left: calc(50% - (220px / 2));
        /* Half of container width minus half of item width */
        padding-right: calc(50% - (220px / 2));
        justify-content: flex-start;
        /* Important for scrolling */
    }

    .video-grid {
        padding-left: calc(50% - (260px / 2));
        padding-right: calc(50% - (260px / 2));
        justify-content: flex-start;
        /* Important for scrolling */
    }

    .photo-item {
        width: 220px;
        height: 180px;
    }

    .video-card {
        width: 260px;
    }

    .bhamashah-profile-card {
        width: 220px;
        padding: 20px;
    }


    .update-card-new {
        padding: 20px;
        gap: 20px;
    }

    .update-image-container-new {
        width: 95%;
        height: 200px;
        border-radius: 15px;
    }

    .update-image-container-new img {
        border-radius: 15px;
    }

    .update-text-new {
        font-size: 1rem;
        line-height: 1.7;
        min-height: 80px;
    }

    .bhamashah-profile-card h4 {
        font-size: 1.5rem;
    }

    .bhamashah-profile-card img {
        width: 100px;
        height: 100px;
    }

    .load-more-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .close-lightbox {
        font-size: 45px;
        top: 15px;
        right: 20px;
    }

    .prev-media,
    .next-media {
        font-size: 30px;
        padding: 15px 10px;
    }

    .prev-media {
        left: 10px;
    }

    .next-media {
        right: 10px;
    }

    .lightbox-actions {
        gap: 8px;
        bottom: 10px;
    }

    .lightbox-actions button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .photo-item .share-item-btn {
        opacity: 1;
        /* Always show on smaller screens */
        transform: translateX(-50%) translateY(0);
        /* No hover lift */
        padding: 5px 10px;
        /* Even smaller padding */
        font-size: 0.8rem;
    }
}

/* --- Specific Adjustments for Today's Update Section (Mobile) --- */
@media (max-width: 768px) {
    /* Keep existing responsive adjustments for overall layout */

    /* Ensure the update card adapts better on very small screens */
    .update-card-new {
        flex-direction: column;
        /* Stack image and content vertically */
        align-items: center;
        /* Center items horizontally */
        padding: 20px;
        /* Adjust padding for smaller screens */
        gap: 15px;
        /* Reduce gap between image and text */
        margin: 20px auto;
        /* Adjust margin for mobile */
        min-height: unset;
        /* Allow height to adjust based on content */
        width: calc(100% - 40px);
        /* Adjust width to account for padding */
        box-sizing: border-box;
        /* Include padding in width calculation */
        text-align: center;
        /* Center text within the card */
    }

    .update-image-container-new {
        width: 100%;
        /* Make image container full width on mobile */
        max-width: 300px;
        /* Keep a sensible max-width if needed for portrait images */
        height: 180px;
        /* Slightly smaller height for mobile images */
        border-radius: 12px;
        /* Slightly smaller border-radius */
        /* To center the image within its container if it's smaller than max-width */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .update-image-container-new img,
    .update-image-skeleton {
        border-radius: 12px;
        /* Match container border-radius */
    }

    .update-content-new {
        padding-top: 0;
        /* Remove top padding to reduce space */
        text-align: center;
        /* Center text for better mobile presentation */
        width: 100%;
        /* Ensure content takes full width */
    }

    .update-text-new {
        font-size: 0.95rem;
        /* Slightly smaller text for readability */
        line-height: 1.6;
        margin-bottom: 15px;
        /* Reduce bottom margin */
        min-height: 60px;
        /* Adjusted min-height for mobile skeleton */
        text-align: center;
        /* Ensure text is centered */
    }

    .read-more-btn-new {
        align-self: center;
        /* Center the button on mobile */
    }

    .update-date-new {
        text-align: center;
        /* Center the date */
        margin-top: 10px;
        /* Adjust margin */
    }

    .share-whatsapp-btn-new {
        font-size: 0.9rem;
        /* Smaller share button text */
        padding: 10px 20px;
    }
}
/* --- Horizontal Video Grid --- */
.video-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    justify-content: flex-start;
    align-items: center;
}

.video-grid::-webkit-scrollbar {
    height: 8px;
}

.video-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.video-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.video-card {
    flex-shrink: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    justify-content: space-between;
}

.video-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingGradient 1.5s infinite linear;
}

.video-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
    /* Apply border-radius only to top corners */
    transition: transform 0.4s ease; /* Added for hover effect */
}

/* Ensure video controls are hidden by default in the card view */
.video-card video::-webkit-media-controls {
    display: none !important;
}
.video-card video::--webkit-media-controls-enclosure {
    display: none !important;
}

.video-card .video-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.video-card .video-info h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.video-card .video-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

/* Play/Pause button overlay for video cards */
.video-card .play-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Match video height */
    background-color: rgba(0, 0, 0, 0.4); /* Darker overlay for better contrast */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    z-index: 1; /* Ensure it's above the video */
    transition: background-color 0.3s ease;
}

.video-card .play-pause-overlay::after {
    content: "\f04b"; /* Font Awesome play icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-card .play-pause-overlay.playing::after {
    content: "\f04c"; /* Font Awesome pause icon when playing */
}

.video-card .play-pause-overlay:hover::after {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Hide play/pause overlay when video is actually playing in the card */
.video-card.video-playing .play-pause-overlay {
    background-color: transparent;
}
.video-card.video-playing .play-pause-overlay::after {
    opacity: 0; /* Hide icon when playing */
}

.video-card:hover .play-pause-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Revert overlay on hover of card */
}

/* Lightbox video adjustments */
.lightbox-content video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease-out;
}
/* Responsive Adjustments */
@media (max-width: 992px) {
    /* Existing responsive rules for general elements */

    /* Adjust widths for horizontal scroll on smaller screens */
    .video-card {
        width: 280px; /* Slightly smaller width for tablets and smaller desktops */
        min-height: 250px; /* Adjust min-height as needed */
    }

    .video-card video,
    .video-card .play-pause-overlay {
        height: 180px; /* Adjust video height and overlay height */
    }

    .video-card .play-pause-overlay::after {
        font-size: 2rem; /* Slightly smaller icon */
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    /* Existing responsive rules for general elements */

    /* More granular control for video grids on small screens */
    .video-grid {
        /* Centering single visible item with overflow */
        padding-left: calc(50% - (260px / 2)); /* Half of container width minus half of item width */
        padding-right: calc(50% - (260px / 2));
        justify-content: flex-start; /* Important for scrolling */
        gap: 20px; /* Reduce gap on smaller screens */
    }

    .video-card {
        width: 260px; /* Smaller fixed width for mobile */
        min-height: 230px; /* Adjust min-height for mobile */
    }

    .video-card video,
    .video-card .play-pause-overlay {
        height: 160px; /* Further reduce video height and overlay height for mobile */
    }

    .video-card .play-pause-overlay::after {
        font-size: 2.2rem; /* Adjust icon size for mobile visibility */
        width: 60px;
        height: 60px;
        top: 80px; /* Center it vertically within the new 160px height (160/2) */
    }

    /* Ensure share button adjusts for smaller cards */
    .video-card .share-item-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        gap: 6px;
    }

    /* Lightbox controls for mobile */
    .close-lightbox {
        font-size: 45px;
        top: 15px;
        right: 20px;
    }

    .prev-media,
    .next-media {
        font-size: 30px;
        padding: 15px 10px;
    }

    .prev-media {
        left: 10px;
    }

    .next-media {
        right: 10px;
    }

    .lightbox-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 8px;
        bottom: 10px;
    }

    .lightbox-actions button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* --- Specific Adjustments for Today's Update Section (Mobile) --- */
@media (max-width: 768px) {
    /* Keep existing responsive adjustments for overall layout */

    /* Ensure the update card adapts better on very small screens */
    .update-card-new {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 15px;
        margin: 20px auto;
        min-height: unset;
        width: calc(100% - 40px);
        box-sizing: border-box;
        text-align: center;
    }

    .update-image-container-new {
        width: 100%;
        max-width: 300px;
        height: 180px;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .update-image-container-new img,
    .update-image-skeleton {
        border-radius: 12px;
    }

    .update-content-new {
        padding-top: 0;
        text-align: center;
        width: 100%;
    }

    .update-text-new {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
        min-height: 60px;
        text-align: center;
    }

    .read-more-btn-new {
        align-self: center;
    }

    .update-date-new {
        text-align: center;
        margin-top: 10px;
    }

    .share-whatsapp-btn-new {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
