/* ------------------------------------------------------------
   Ollato Eduversity - Expert List CSS
   File: assets/css/experts/expert-list.css

   Purpose:
   - Style the Experts page expert profile cards
   - Keep typography simple, professional and readable
   - Keep main heading, expert names and labels bold only
   - Style image area, role badge, information blocks and CTA button
   - Support English, Marathi and Hindi layouts

   Related PHP file:
   pages/experts/expert-list.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Section Base
------------------------------------------------------------ */

.expert-list {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-12);
    padding-bottom: var(--space-14);
    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );
}

.expert-list::before {
    content: "";
    position: absolute;
    top: 90px;
    left: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: rgba(31, 79, 143, 0.045);
    pointer-events: none;
}

.expert-list::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: 80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(33, 166, 122, 0.055);
    pointer-events: none;
}

.expert-list .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------
   Section Header
------------------------------------------------------------ */

.expert-list-header {
    max-width: 850px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.expert-list-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.expert-list-title {
    max-width: 780px;
    margin: 0 auto var(--space-3);
    color: var(--color-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.expert-list-subtitle {
    max-width: 760px;
    margin: 0 auto var(--space-3);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.expert-list-description {
    max-width: 790px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   Expert Grid
------------------------------------------------------------ */

.expert-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}


/* ------------------------------------------------------------
   Expert Card
------------------------------------------------------------ */

.expert-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-xl);
    background-color: var(--color-white);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.expert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 79, 143, 0.18);
    box-shadow: var(--shadow-md);
}


/* ------------------------------------------------------------
   Expert Image
------------------------------------------------------------ */

.expert-card-image-box {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(31, 79, 143, 0.1) 0%,
            rgba(33, 166, 122, 0.08) 100%
        );
}

.expert-card-image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
}

.expert-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 210px;
    color: var(--color-primary);
    font-size: 42px;
}

.expert-card-icon {
    position: absolute;
    right: var(--space-4);
    bottom: -24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 4px solid var(--color-white);
    border-radius: var(--radius-lg);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 22px;
    line-height: 1;
}


/* ------------------------------------------------------------
   Expert Body
------------------------------------------------------------ */

.expert-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-6) var(--space-5) var(--space-5);
}

.expert-card-role {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: var(--space-2);
    padding: 5px 10px;
    border-radius: 999px;
    background-color: rgba(31, 79, 143, 0.08);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.expert-card-name {
    margin-bottom: var(--space-4);
    color: var(--color-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}


/* ------------------------------------------------------------
   Expert Info
------------------------------------------------------------ */

.expert-card-info {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.expert-card-info-item {
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(31, 79, 143, 0.08);
}

.expert-card-info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.expert-card-info-label {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--color-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.expert-card-info-text {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
}

.expert-card-button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    font-weight: 500;
}


/* ------------------------------------------------------------
   Card Visual Variation
------------------------------------------------------------ */

.expert-card:nth-child(2) .expert-card-icon,
.expert-card:nth-child(4) .expert-card-icon {
    background-color: var(--color-accent);
}

.expert-card:nth-child(2) .expert-card-role,
.expert-card:nth-child(4) .expert-card-role {
    background-color: rgba(33, 166, 122, 0.1);
    color: var(--color-accent);
}


/* ------------------------------------------------------------
   Language-Specific Adjustments
------------------------------------------------------------ */

html[lang="hi"] .expert-list-title,
html[lang="mr"] .expert-list-title {
    line-height: 1.4;
}

html[lang="hi"] .expert-list-subtitle,
html[lang="hi"] .expert-list-description,
html[lang="hi"] .expert-card-info-text,
html[lang="mr"] .expert-list-subtitle,
html[lang="mr"] .expert-list-description,
html[lang="mr"] .expert-card-info-text {
    line-height: 1.85;
}

html[lang="hi"] .expert-card-name,
html[lang="mr"] .expert-card-name {
    line-height: 1.5;
}


/* ------------------------------------------------------------
   Responsive - Small Laptop
------------------------------------------------------------ */

@media (max-width: 1199px) {
    .expert-list {
        padding-top: var(--space-11);
        padding-bottom: var(--space-12);
    }

    .expert-list-title {
        font-size: 28px;
    }

    .expert-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
        max-width: 840px;
        margin: 0 auto;
    }
}


/* ------------------------------------------------------------
   Responsive - Tablet
------------------------------------------------------------ */

@media (max-width: 991px) {
    .expert-list {
        padding-top: var(--space-10);
        padding-bottom: var(--space-11);
    }

    .expert-list-header {
        margin-bottom: var(--space-7);
    }

    .expert-list-title {
        font-size: 27px;
    }

    .expert-list-subtitle {
        font-size: 15px;
    }

    .expert-card-image,
    .expert-card-image-placeholder {
        height: 230px;
    }
}


/* ------------------------------------------------------------
   Responsive - Mobile
------------------------------------------------------------ */

@media (max-width: 767px) {
    .expert-list {
        padding-top: var(--space-8);
        padding-bottom: var(--space-10);
    }

    .expert-list::before,
    .expert-list::after {
        display: none;
    }

    .expert-list-header {
        margin-bottom: var(--space-6);
    }

    .expert-list-title {
        font-size: 25px;
        line-height: 1.35;
    }

    .expert-list-subtitle,
    .expert-list-description {
        font-size: 14px;
    }

    .expert-list-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        max-width: 520px;
    }

    .expert-card {
        border-radius: var(--radius-lg);
    }

    .expert-card-body {
        padding: var(--space-6) var(--space-4) var(--space-4);
    }

    .expert-card-name {
        font-size: 17px;
    }
}


/* ------------------------------------------------------------
   Responsive - Small Mobile
------------------------------------------------------------ */

@media (max-width: 575px) {
    .expert-list {
        padding-top: var(--space-7);
        padding-bottom: var(--space-9);
    }

    .expert-list-title {
        font-size: 23px;
    }

    .expert-list-label {
        margin-bottom: var(--space-2);
    }

    .expert-card-image,
    .expert-card-image-placeholder {
        height: 200px;
    }

    .expert-card-icon {
        right: var(--space-3);
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .expert-card-name {
        font-size: 16px;
    }

    .expert-card-info-label,
    .expert-card-info-text {
        font-size: 13px;
    }
}