/* =========================================================
   Society Page Layout
   ========================================================= */

/* Page title
   Centered layout with decorative underline */
/* society-title removed - replaced by unified-page-title */

/* Horizontal scroll container
   Padding calculation ensures visual balance:
   Right 80px matches Left (10px padding + 70px first-item margin) */
.involvements-holder {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    justify-content: start;
    align-items: center;
    padding: 40px 80px 40px 10px;
    scroll-behavior: smooth;
    width: 100%;
    margin: 0;
    max-width: none;
    min-height: 60vh;
}

.society-content-wrapper {
    position: relative;
    width: 100%;
}


/* Responsive container adjustment */
@media (max-width: 768px) {
    .involvements-holder {
        width: 100%;
        padding: 40px 5%;
        gap: 20px;
    }
}

.involvements-holder::-webkit-scrollbar {
    display: none;
}

.involvements-holder {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.involvement-box {
    background-color: var(--secondary-color);
    border-radius: 20px;
    position: relative;
    transition: .5s;
    margin-left: 70px;
}

.involvement-box:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background-color: rgba(100, 100, 100, 0.15);
    transition: 250ms;
    border-radius: 25px;
}

.involvement-box:hover:after {
    width: 100%;
}

.member-fig {
    display: flex;
}

.member-fig>.image {
    width: 285px;
    overflow: hidden;
    border-radius: 25px;
    position: relative;
    right: 50px;
    z-index: 1;
}

.member-fig>span {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: var(--secondary-white-color);
    padding-top: 50px;
    position: relative;
    right: 20px;
}

.member-icons {
    z-index: 1;
}

.society-card-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-title {
    font-size: 20px;
    padding-top: 5px;
    margin-bottom: -5px;
    color: var(--secondary-white-color);
}

.card-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-white-color);
}

.card-paragraph {
    font-size: 15px;
    color: var(--white-color);
    padding: 10px;
}

/* =========================================================
   Navigation Controls
   ========================================================= */

/* Scroll buttons
   Floating action buttons with glassmorphism effect */
#scroll-left,
#scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    z-index: 100;
    background-color: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#scroll-left:hover,
#scroll-right:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

#scroll-left i,
#scroll-right i {
    font-size: 40px;
    color: var(--white-color);
    transition: 250ms;
}

#scroll-left:hover i,
#scroll-right:hover i {
    transform: scale(1.1);
    color: var(--white-color);
}

i {
    cursor: pointer;
    z-index: 1;
}

#scroll-right {
    right: 2%;
    /* Responsive positioning */
}

#scroll-left {
    left: 2%;
}

/* =========================================================
   Mobile Optimization
   ========================================================= */

@media (max-width: 768px) {

    /* Snap scrolling container */
    .involvements-holder {
        width: 100%;
        padding: 20px 5%;
        gap: 20px;
        scroll-snap-type: x mandatory;
    }

    /* Navigation buttons visibility */
    #scroll-left,
    #scroll-right {
        display: flex;
        width: 40px;
        height: 40px;
        font-size: 20px;
        background-color: rgba(30, 30, 30, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    #scroll-left i,
    #scroll-right i {
        font-size: 20px;
    }

    /* Card layout adaptation
       Adjusts for vertical scrolling and screen fit */
    .involvement-box {
        margin-left: 0;
        width: 85vw;
        min-width: 350px;
        scroll-snap-align: center;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        padding: 20px;
        min-height: fit-content;
        height: 75vh;
    }

    /* Vertical stack alignment */
    .page-title {
        font-size: var(--mobile-font-h1);
        text-align: center;
        margin-left: 0;
        margin-bottom: 25px;
    }

    .page-title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .subtitle {
        font-size: var(--mobile-font-h2);
    }

    .role-title {
        font-size: var(--mobile-font-h3);
    }

    .timeline {
        font-size: var(--mobile-font-small);
    }

    .description {
        font-size: var(--mobile-font-p);
    }

    .member-fig {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .member-fig>.image {
        right: 0;
        width: 100%;
        max-width: 200px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .member-fig>span {
        right: 0;
        padding-top: 0;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 20px;
    }

    /* Typography adjustments */
    .society-card-text {
        text-align: center;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-paragraph {
        font-size: 16px;
    }
}

.social-icons:hover {
    transition: 250ms;
    transform: scale(1.25);
}

/* Gallery and animation styles handled by modals.css */