/* ===== Redevelopment Hub Society Section Styles ===== */

/* Section Container */
.redevelopment-hub-society-section {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    padding-top: 90px !important;
}

.redevelopment-hub-society-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Badge */
.redevelopment-hub-society-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #667eea;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Heading */
.redevelopment-hub-society-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

/* Subtext */
.redevelopment-hub-society-subtext {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* Stage Navigation */
.redevelopment-hub-society-stages-nav {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent wrapping on desktop for a cleaner look */
    justify-content: flex-start;
    padding: 10px 5px;
    overflow-x: auto; /* Allow horizontal scroll on smaller screens */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.redevelopment-hub-society-stages-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.redevelopment-hub-society-stage-pill {
    white-space: nowrap; /* Keep text on one line */
    min-width: fit-content;
    flex-shrink: 0;
    padding: 10px 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.redevelopment-hub-society-stage-pill:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.redevelopment-hub-society-stage-pill.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

/* Specific Stage Colors to match your folder structure logic if desired */
.redevelopment-hub-society-stage-number {
    width: 24px;
    height: 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #667eea;
}

.redevelopment-hub-society-stage-pill .redevelopment-hub-society-stage-number {
    width: 26px;
    height: 26px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #667eea;
}

.redevelopment-hub-society-stage-pill.active .redevelopment-hub-society-stage-number {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Tab Content */
.redevelopment-hub-society-tab-content {
    min-height: 450px;
    position: relative;
}

/* Stage Cards Container */
.redevelopment-hub-society-stage-content {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* Stage Header */
.redevelopment-hub-society-stage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}

.redevelopment-hub-society-stage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.redevelopment-hub-society-stage-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.redevelopment-hub-society-stage-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 5px 0 0;
}

/* Document Cards */
.redevelopment-hub-society-doc-card {
    background: #f8f9fa;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.redevelopment-hub-society-doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.redevelopment-hub-society-doc-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    border-color: transparent;
}

.redevelopment-hub-society-doc-card:hover::before {
    transform: scaleX(1);
}

.redevelopment-hub-society-doc-icon {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #667eea;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.redevelopment-hub-society-doc-card:hover .redevelopment-hub-society-doc-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.redevelopment-hub-society-doc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.redevelopment-hub-society-doc-text {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.redevelopment-hub-society-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.redevelopment-hub-society-doc-link:hover {
    background: #667eea;
    color: white;
}

/* Introduction Card */
.redevelopment-hub-society-intro-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.redevelopment-hub-society-intro-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
}

.redevelopment-hub-society-intro-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.redevelopment-hub-society-intro-text {
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 25px;
}

.redevelopment-hub-society-intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.redevelopment-hub-society-intro-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.45);
    color: white;
}

/* Legal Framework Cards */
.redevelopment-hub-society-legal-card {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.redevelopment-hub-society-legal-card .redevelopment-hub-society-doc-icon {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.redevelopment-hub-society-legal-card:hover .redevelopment-hub-society-doc-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.redevelopment-hub-society-legal-card .redevelopment-hub-society-doc-link {
    color: #d39e00;
    background: rgba(255, 193, 7, 0.12);
}

.redevelopment-hub-society-legal-card .redevelopment-hub-society-doc-link:hover {
    background: #ffc107;
    color: #1a1a2e;
}

/* Progress Report Card */
.redevelopment-hub-society-progress-card {
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.25);
}

.redevelopment-hub-society-progress-card .redevelopment-hub-society-doc-icon {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.redevelopment-hub-society-progress-card:hover .redevelopment-hub-society-doc-icon {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

/* Photo Gallery Card */
.redevelopment-hub-society-gallery-card {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.08) 0%, rgba(245, 87, 108, 0.08) 100%);
    border: 1px solid rgba(240, 147, 251, 0.25);
    text-align: center;
    padding: 30px;
}

.redevelopment-hub-society-gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.redevelopment-hub-society-gallery-item {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(240, 147, 251, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(240, 147, 251, 0.6);
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 147, 251, 0.2);
}

.redevelopment-hub-society-gallery-item:hover {
    background: rgba(240, 147, 251, 0.2);
    color: #f093fb;
    transform: scale(1.05);
}

.redevelopment-hub-society-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #d63384;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    background: rgba(240, 147, 251, 0.12);
    transition: all 0.3s ease;
}

.redevelopment-hub-society-gallery-link:hover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Post Completion Cards */
.redevelopment-hub-society-completion-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(0, 191, 165, 0.08) 100%);
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.redevelopment-hub-society-completion-card .redevelopment-hub-society-doc-icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(0, 191, 165, 0.15) 100%);
    color: #0d6efd;
}

.redevelopment-hub-society-completion-card:hover .redevelopment-hub-society-doc-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #00bfa5 100%);
    color: white;
}

/* Status Badge */
.redevelopment-hub-society-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.redevelopment-hub-society-status-badge.completed {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.redevelopment-hub-society-status-badge.in-progress {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.redevelopment-hub-society-status-badge.upcoming {
    background: rgba(108, 117, 125, 0.12);
    color: #6c757d;
}

/* File List for Document Cards */
.redevelopment-hub-society-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.redevelopment-hub-society-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #495057;
    text-decoration: none;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: all 0.25s ease;
}


.redevelopment-hub-society-file-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.redevelopment-hub-society-file-item i {
    color: #667eea;
    font-size: 1rem;
}

/* Mandatory Animation Classes for JS Functionality */
.redevelopment-hub-society-card-initial {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.redevelopment-hub-society-card-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===============================
   Stage 5 – Site Progress Images
   =============================== */

.stage5-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.stage5-image-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage5-image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile adjustment */
@media (max-width: 576px) {
    .stage5-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stage5-image-grid img {
        height: 100px;
    }
}


/* Responsive Styles */
@media (max-width: 992px) {
    .redevelopment-hub-society-stages-nav {
        gap: 6px;
    }

    .redevelopment-hub-society-stage-pill {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .redevelopment-hub-society-stage-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .redevelopment-hub-society-stage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .redevelopment-hub-society-status-badge {
        margin-left: 0 !important; /* Reset the ms-auto */
    }

    .redevelopment-hub-society-section {
        padding: 40px 0;
    }

    .redevelopment-hub-society-heading {
        font-size: 1.8rem;
    }

    .redevelopment-hub-society-subtext {
        font-size: 0.95rem;
    }

    .redevelopment-hub-society-stage-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .redevelopment-hub-society-stage-pill .redevelopment-hub-society-stage-number {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .redevelopment-hub-society-intro-card {
        padding: 25px;
    }

    .redevelopment-hub-society-intro-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .redevelopment-hub-society-stage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .redevelopment-hub-society-stages-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .redevelopment-hub-society-stage-pill {
        justify-content: center;
        width: 100%;
    }

    .redevelopment-hub-society-gallery-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .redevelopment-hub-society-stages-nav {
        justify-content: flex-start; /* Ensure scrolling starts from left */
        padding-bottom: 15px;
    }
}