/* Dropdown menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.has-dropdown:hover > .dropdown {
    display: block;
}

/* Card inside each li */
.card-item {
    position: relative; /* important for absolute card */
}

.rp-card {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; 
    width: 600px;
    max-width: 90vw;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    overflow-y: auto;
    /* z-index: 1010; */
}
 /* width: 800px;             
    max-width: 90vw;          
    padding: 20px;
    box-sizing: border-box;   
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;    
    height: auto;
} */

/* Show card on hover of its li */
.card-item:hover > .rp-card {
    display: block;
}

/* Card hover effect */
.rp-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Top section: image + text */
.rp-card .rp-card-top {
    display: flex;
    flex-wrap: nowrap;          /* keep in one row */
    align-items: stretch;       /* make image and text same height */
    gap: 20px;
}

.rp-card .rp-card-image {
    flex: 0 0 40%;            
    max-width: 40%;
    display: flex;
    align-items: center;
}

.rp-card .rp-card-image img {
    width: 100%;
    height: 100%;               /* match parent height */
    border-radius: 10px;
    object-fit: cover;
}

/* Text section */
.rp-card .rp-card-text {
    flex: 1 1 0;              
    min-width: 0;             
    word-break: break-word;   
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
}

.rp-card .rp-card-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.rp-card .rp-card-text .rp-designation {
    font-size: 1rem;
    font-weight: 500;
    color: #777;
    margin-bottom: 10px;
}

.rp-card .rp-card-text .rp-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    white-space: pre-line; /* preserve manual line breaks */
}

/* Red line separator between top & bottom */
.rp-card .rp-separator {
    height: 2px;
    background-color: red;
    margin: 20px 0;
}

/* Bottom section: Standards & Speciality */
.rp-card .rp-card-bottom {
    display: flex;
    gap: 20px;
    margin-top: 0;
    flex-wrap: wrap;           
}

.rp-card .rp-card-bottom .rp-column {
    flex: 1 1 200px;           
    min-width: 200px;
    text-align: left;
}

.rp-card .rp-card-bottom h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.rp-card .rp-card-bottom ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.rp-card .rp-card-bottom ul li {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}


/* Responsive */
@media (max-width: 992px) {
    .rp-card {
        position: relative;
        left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .rp-card-top {
        flex-direction: column;
        align-items: center;
    }

    .rp-card-image img {
        width: 100%;
        max-width: 300px;
    }

    .rp-card-bottom {
        flex-direction: column;
        gap: 15px;
    }
}
