/* ==========================================
   PROFILE PAGE
========================================== */

.member-profile-page {
    padding: 30px 0 60px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    color: #00a5e5;
}


/* ==========================================
   SHARED CARD
========================================== */

.card {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(62, 63, 155, 0.04);
}

.card h2,
.card h3 {
    margin-bottom: 14px;
    color: #3e3f9b;
}

.card p {
    color: #374151;
    line-height: 1.7;
}


/* ==========================================
   TOP HEADER
========================================== */

.profile-top {
    display: grid;
    grid-template-columns: 195px 1fr 95px;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
}

.profile-logo-box {
    width: 195px;
    height: 195px;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(62,63,155,0.04);
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.profile-logo-placeholder {
    color: #6b7280;
    font-size: 0.9rem;
}

.profile-title-block h1 {
    font-size: 2.3rem;
    color: #3e3f9b;
    margin-bottom: 12px;
}

.profile-contact-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 10px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    padding: 7px 12px;
    border-radius: 10px;
    background: #f7f8fb;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-badge {
    border: 1px solid #dbe3ea;
    color: #00a5e5;
}

.profile-group-badge-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.profile-group-badge {
    width: 85px;
    height: 85px;
    object-fit: contain;
}


/* ==========================================
   TOP IMAGE STRIP
========================================== */

.profile-strip-wrap {
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.profile-strip::-webkit-scrollbar {
    display: none;
}

.strip-image-link {
    flex: 0 0 calc(25% - 9px);
    min-width: 220px;
}

.strip-image-link img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}


/* ==========================================
   INFO ROW
========================================== */

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 18px;
    margin-bottom: 18px;
}

.social-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.social-links-inline a {
    padding: 7px 10px;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3e3f9b;
    background: #fff;
}


/* ==========================================
   MAIN CONTENT
========================================== */

.profile-main-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.about-card,
.contact-actions-card {
    display: flex;
    flex-direction: column;
}

.about-card p {
    flex: 1;
}

.contact-actions-card h3 {
    margin-bottom: 12px;
}

.action-btn {
    display: block;
    width: 75%;
    margin: 0 auto 8px;

    padding: 10px 12px;

    text-align: center;

    border: 1px solid #dbe3ea;
    border-radius: 10px;

    background: #fff;
    color: #1f2937;

    font-weight: 600;
}

.call-btn {
    background: #3e3f9b;
    color: #fff;
    border-color: #3e3f9b;
}

.whatsapp-btn {
    background: #1b8d85;
    color: #fff;
    border-color: #1b8d85;
}


/* ==========================================
   BOTTOM SECTION
========================================== */

.profile-bottom-grid {
    display: grid;
    grid-template-columns: 0.95fr 2.05fr;
    gap: 18px;
}

.profile-left-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.address-card h3,
.special-card h3 {
    margin-bottom: 10px;
}

.special-image-link {
    display: block;
    margin-top: 10px;
}

.special-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}


/* ==========================================
   GALLERY
========================================== */

.gallery-card {
    display: flex;
    flex-direction: column;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.gallery-thumb {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;

    transition: transform 0.2s ease;
}

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


/* ==========================================
   LIGHTBOX
========================================== */

.image-lightbox {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(17,24,39,0.9);

    z-index: 9999;
    padding: 20px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 92%;
    max-height: 88vh;
    border-radius: 10px;
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;

    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.14);
    color: #fff;

    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-nav.prev {
    left: 24px;
}

.lightbox-nav.next {
    right: 24px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 900px) {

    .profile-top {
        grid-template-columns: 72px 1fr 58px;
        gap: 10px;
        align-items: start;
    }

    .profile-logo-box {
        width: 78px;
        height: 78px;
        padding: 8px;
    }

    .profile-title-block h1 {
        font-size: 1.35rem;
        line-height: 1.15;
        margin-bottom: 4px;
    }

    .profile-contact-name {
        font-size: 0.92rem;
    }

    .profile-info-grid,
    .profile-main-grid,
    .profile-bottom-grid {
        grid-template-columns: 1fr;
    }

    .profile-strip {
        gap: 10px;
    }

    .strip-image-link {
        flex: 0 0 24%;
        min-width: auto;
    }

    .strip-image-link img {
        height: 72px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-btn {
        width: 100%;
    }

}