/* ===================================
   EDITORIAL BOARD INDEX PAGE - MODERN DESIGN
   Fixes for editorial chief and members cards
   =================================== */

/* Member Section Container */
.member-section {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.member-section .manscript-submition h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 3px solid #10b981;
    position: relative;
}

.member-section .manscript-submition h3:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #047857;
}

/* Board Members Grid */
.board-members {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

/* Individual Member Card */
.index_editorial_members {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-left: 5px solid #10b981;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0 !important;
    width: 100%;
}

.index_editorial_members:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-left-color: #047857;
    background: #ffffff;
}

/* Editor-in-Chief Special Styling */
.index_editorial_members.chief {
    border-left-color: #047857;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.index_editorial_members.chief:hover {
    border-left-color: #10b981;
}

/* Member Card Inner Row */
.index_editorial_members .row {
    display: flex;
    align-items: flex-start;
    margin: 0 !important;
    width: 100%;
}

/* Member Photo Column */
.index_editorial_members .col-md-3 {
    padding: 0 15px 0 0;
    flex: 0 0 30%;
    max-width: 30%;
}

.index_editorial_members img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid #10b981;
    transition: all 0.3s ease;
}

.index_editorial_members.chief img {
    border-color: #047857;
}

.index_editorial_members:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Member Info Column */
.index_editorial_members .col-md-9 {
    padding: 0 0 0 15px;
    flex: 0 0 70%;
    max-width: 70%;
}

.edit_text_justify {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.name-ef {
    display: flex;
    flex-direction: column;
}

.name-ef h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.5;
}

.editor_in_cheif_label {
    display: inline-block;
    margin-bottom: 8px;
}

.editor_in_cheif_label a {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.index_editorial_members.chief .editor_in_cheif_label a {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%);
}

.member_profile_link {
    color: #10b981;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.member_profile_link:hover {
    color: #047857;
    text-decoration: underline;
}

.name-ef h4 span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 8px;
}

.name-ef>span {
    display: block;
    font-size: 13px;
    color: #5a6c7d;
    line-height: 1.7;
    margin-top: 8px;
}

.profile-link {
    display: block;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .board-members {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .index_editorial_members .col-md-3 {
        flex: 0 0 35%;
        max-width: 35%;
    }

    .index_editorial_members .col-md-9 {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .name-ef h4 {
        font-size: 15px;
    }

    .name-ef h4 span {
        font-size: 14px;
    }

    .name-ef>span {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .member-section {
        padding: 25px 20px;
    }

    .board-members {
        gap: 20px;
    }

    .index_editorial_members {
        padding: 15px;
    }

    .index_editorial_members .row {
        flex-direction: column;
    }

    .index_editorial_members .col-md-3,
    .index_editorial_members .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0;
    }

    .index_editorial_members .col-md-3 {
        margin-bottom: 15px;
        text-align: center;
    }

    .index_editorial_members img {
        max-width: 150px;
        margin: 0 auto;
    }

    .name-ef {
        text-align: center;
    }

    .name-ef h4 {
        font-size: 14px;
    }

    .name-ef h4 span {
        font-size: 13px;
    }

    .name-ef>span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .member-section .manscript-submition h3 {
        font-size: 24px;
    }

    .index_editorial_members {
        padding: 12px;
    }

    .index_editorial_members img {
        max-width: 120px;
    }

    .editor_in_cheif_label a {
        font-size: 10px;
        padding: 3px 10px;
    }

    .member_profile_link {
        font-size: 11px;
    }
}

/* Override any conflicting styles */
.index_editorial_members.col-lg-6,
.index_editorial_members.col-md-6,
.index_editorial_members.col-sm-12,
.index_editorial_members.col-xs-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure proper spacing in grid */
.board-members>* {
    margin-bottom: 0 !important;
}

/* Editorial Member */
.edm_accordion .edm_accordion_title:hover {
    background: #f37039;
    color: #fff;
}

.edm_accordion .edm_accordion_wrapper.active .edm_accordion_title {
    background-color: #003162;
    color: #fff;
}

.edm_accordion .edm_accordion_wrapper.active .edm_accordion_title:hover {
    background-color: #f37039;
    color: #fff;
}

.edm_accordion .edm_accordion_title:focus,
.edm_accordion .edm_accordion_title:active,
.edm_accordion .edm_accordion_title:hover {
    text-decoration: none;
    color: #333;
}

.edm_accordion .edm_accordion_wrapper {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.edm_accordion .edm_accordion_title {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.edm_accordion .edm_accordion_title span {
    text-decoration: none;
}


.edm_accordion .edm_accordion_title:hover {
    background: #e9e9e9;
}

.edm_accordion .accordion-toggle {
    font-size: 18px;
    font-weight: bold;
}

.edm_accordion .edm_accordion_content {
    display: none;
    padding: 10px 15px;
    background: #fff;
}