/* JSS Founders Section - Modern Attractive Design */

/* Main wrapper with subtle gradient background */
.jssfounder_wrapper {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Poppins', 'Tiro Devanagari Marathi', sans-serif;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Add a subtle pattern overlay */
.jssfounder_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.jssfounder_wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Enhanced heading with modern underline effect */
.jssfounder_heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.jssfounder_heading h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.jssfounder_heading_line {
    height: 4px;
    width: 120px;
    background: linear-gradient(90deg, #FF5252 0%, #FF1744 100%);
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 23, 68, 0.3);
}

/* Card container */
.jssfounder_scroller {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 0 2rem 2rem 2rem;
    width: 100%;
    justify-content: center;
    max-width: 1800px;
    margin: 0 auto;
}

/* Modern card design with enhanced visuals */
.jssfounder_item {
    flex: 0 0 auto;
    width: 100%;
    max-height: fit-content;
    min-width: 350px;
    max-width: 550px;
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 1rem;
    max-height: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.jssfounder_item:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* Enhanced image section with subtle gradient overlay */
.jssfounder_photo {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.jssfounder_photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2) 100%);
    transition: opacity 0.3s ease;
}

.jssfounder_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jssfounder_item:hover .jssfounder_photo img {
    transform: scale(1.08);
}

/* Content section with refined styling */
.jssfounder_info {
    flex: 1;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

/* Colorful role badge */
.jssfounder_role {
    display: inline-block;
    background: linear-gradient(90deg, #FF5252 0%, #FF1744 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    box-shadow: 0 3px 6px rgba(255, 23, 68, 0.2);
    max-width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.jssfounder_name {
    color: #1A237E;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Dates in a column within one container */
.jssfounder_dates {
    color: #424242;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    background-color: #f0f4ff;
    border-radius: 6px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: fit-content;
    border: 1px solid #e3e9ff;
}

/* Hide the dot separator since we're using vertical layout */
.jssfounder_dot {
    display: none;
}

.jssfounder_bio {
    color: #424242;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    position: relative;
    margin-top: 0.6rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.jssfounder_short {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Attractive button with gradient on hover - positioned inline with text */
.jssfounder_readmore {
    background: none;
    border: none;
    color: #3D5AFE;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 0 0 0.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    margin-left: 4px;
    white-space: nowrap;
}

.jssfounder_readmore::after {
    content: "→";
    margin-left: 5px;
    transition: all 0.3s ease;
    position: relative;
    top: -1px;
}

.jssfounder_readmore:hover {
    color: #FF1744;
    transform: translateX(5px);
}

.jssfounder_readmore:hover::after {
    margin-left: 8px;
}

/* Attractive button with gradient on hover */
.jssfounder_readmore {
    background: none;
    border: none;
    color: #3D5AFE;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0;
    /* margin-top: 1rem; */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.jssfounder_readmore::after {
    content: "→";
    margin-left: 5px;
    transition: all 0.3s ease;
    position: relative;
    top: -1px;
}

.jssfounder_readmore:hover {
    color: #FF1744;
    transform: translateX(5px);
}

.jssfounder_readmore:hover::after {
    margin-left: 8px;
}

/* Redesigned modal with sleek look */
.jssfounder_modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
}

.jssfounder_modal.jssfounder_active {
    opacity: 1;
    visibility: visible;
}

.jssfounder_modalbox {
    background: white;
    width: 92%;
    max-width: 92%;
    max-height: 92%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.jssfounder_modal.jssfounder_active .jssfounder_modalbox {
    transform: scale(1);
}

.jssfounder_modalhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, #FF5252 0%, #FF1744 100%);
    color: white;
}

.jssfounder_modalhead h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.jssfounder_close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    margin: 0;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.jssfounder_close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.jssfounder_modalbody {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    max-height: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.jssfounder_error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: #B71C1C;
    padding: 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    width: 100%;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.1);
    border: 1px solid #FFCDD2;
}

/* Responsive styles with enhanced breakpoints */
@media (max-width: 1600px) {
    .jssfounder_item {
        width: calc(33.333% - 2.5rem);
        max-height: 320px;
    }
}

@media (max-width: 1200px) {
    .jssfounder_item {
        width: calc(50% - 2.5rem);
    }
    
    .jssfounder_heading h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .jssfounder_scroller {
        gap: 1.5rem;
        padding: 0 1rem 1.5rem 1rem;
    }
    
    .jssfounder_item {
        width: calc(100% - 1rem);
        min-width: 280px;
    }
    
    .jssfounder_heading h2 {
        font-size: 1.6rem;
    }
    
    .jssfounder_photo {
        flex: 0 0 40%;
    }
    
    .jssfounder_info {
        padding: 1rem;
    }
    
    .jssfounder_role {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    
    .jssfounder_name {
        font-size: 1.2rem;
    }
    
    .jssfounder_bio {
        font-size: 0.85rem;
    }
    
    .jssfounder_dates {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .jssfounder_item {
        width: 100%;
        max-height: 220px;
    }
    .jssfounder_item {
        flex-direction: row;
        min-height: auto;
    }
    .jssfounder_role {
        font-size: 0.5rem;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.5rem;


    }
    .jssfounder_name {
        font-size: 0.9rem;
    }

    .jssfounder_dates {
        font-size: 0.7rem;
        padding: 0.4rem;
        gap: 0px;
        max-width: none;
        margin-bottom: 0.2rem;
    }

    .jssfounder_bio {
        margin-top: 0.2rem;
    }

    .jssfounder_short{
      font-size: 0.8rem;
    }

    .jssfounder_readmore {

        font-size: 0.7rem;
        margin-top: 0.3rem;
        padding: 0rem 0;

    }

    
    .jssfounder_photo {
        flex: 0 0 40%;
    }
    
    .jssfounder_info {
        width: 100%;
    }
    
    .jssfounder_modalbody {
        max-height: 200px;
    }
}

/* Custom scrollbar styling */
.jssfounder_modalbody::-webkit-scrollbar {
    width: 6px;
}

.jssfounder_modalbody::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.jssfounder_modalbody::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3D5AFE 0%, #304FFE 100%);
    border-radius: 10px;
}

.jssfounder_modalbody::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF5252 0%, #FF1744 100%);
}