/*.social-work-section {*/
/*    position: relative;*/
/*    padding-top: 50px;*/
/*    padding-bottom: 150px;*/
/*    min-height: 1000px;*/
/*}*/
.gallery-section {
    position: relative;
    padding-top: 20px;
    padding-bottom: 150px;
    min-height: 1000px;
}
.gallery-section::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://img.houseui.com/watchdroid/generated_images/image_1749293529323.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    opacity: 0.1;
    z-index: -1;
}

/* Header Styles */
.social-header-wrapper {
    background: linear-gradient(to bottom, #fff5eb, #ffffff);
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: none;
    border-bottom: 1px solid #ffefe6;
}

.social-header-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,116,51,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    display: block;
}

.social-header-wrapper::after {
    content: "";
    position: absolute;
    bottom: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,116,51,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    display: block;
}

.social-title-main {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.title-separator {
    display: none;
}

.social-title-main span {
    color: #ff7433;
}

.social-subtitle {
    font-size: 17px;
    color: #777;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.4;
}

/* Tab Styles */
.social-work-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.sw-tab-btn {
    padding: 8px 25px;
    border: 1px solid #eee;
    background: #fff;
    color: #666;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 14px;
}

.sw-tab-btn:hover {
    transform: none;
    box-shadow: none;
    color: #ff7433;
    background: #fff5f0;
    border-color: #ff7433;
}

.sw-tab-btn.active {
    background: #ff7433;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 116, 51, 0.2);
    transform: none;
    border-color: #ff7433;
}

/* Section Styles */
.sw-section {
    display: none;
    animation: fadeIn 0.6s ease;
    margin-bottom: 80px;
}

.sw-section.active {
    display: block;
}

.sw-section-header {
    position: relative;
    margin-bottom: 35px;
    padding-left: 20px;
    border-left: 5px solid #ff7433;
    display: flex;
    align-items: center;
}

.sw-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Gallery Card Styles (Copied and Adapted) */
.gallery-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-decoration: none !important;
    height: 100%;
    border: 1px solid #f0f0f0;
}

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

.gallery-img-wrapper {
    position: relative;
    padding-top: 60%; /* Adjusted for thumbnail aspect ratio */
    background: #f8f9fa; /* Light background for the wrapper */
    overflow: hidden;
    margin: 10px 10px 0; /* Margin around the image */
    border-radius: 8px; /* Rounded corners for the image wrapper */
}

.gallery-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    font-size: 1.5rem;
    color: #fff;
    background: #ff7433;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

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

.gallery-content {
    padding: 15px 20px;
    background: #fff;
}

.gallery-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.gallery-card:hover .gallery-name {
    color: #ff7433;
}

.gallery-desc {
    font-size: 15px;
    color: #777;
    margin-bottom: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-count {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.gallery-count i {
    font-size: 12px;
    margin-right: 4px;
}

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

/* Empty State */
.empty-gallery {
    padding: 50px 0;
    text-align: center;
}
.empty-gallery img {
    width: 300px;
    margin-bottom: 30px;
    opacity: 0.8;
}
.empty-text {
    font-size: 28px;
    font-weight: 700;
    color: #ccc;
}
