/* ------------------------------------------------------------
   Ollato Eduversity - Expert Categories CSS
   File: assets/css/experts/expert-categories.css

   Purpose:
   - Style the Experts page expert categories section
   - Keep typography simple, professional and readable
   - Keep main heading and card titles bold only
   - Style expert category cards with clean icons
   - Support English, Marathi and Hindi layouts

   Related PHP file:
   pages/experts/expert-categories.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Section Base
------------------------------------------------------------ */

.expert-categories {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-12);
    padding-bottom: var(--space-14);
    background-color: var(--color-white);
}

.expert-categories::before {
    content: "";
    position: absolute;
    top: 90px;
    right: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: rgba(31, 79, 143, 0.04);
    pointer-events: none;
}

.expert-categories::after {
    content: "";
    position: absolute;
    left: -90px;
    bottom: 85px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(33, 166, 122, 0.055);
    pointer-events: none;
}

.expert-categories .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------
   Section Header
------------------------------------------------------------ */

.expert-categories-header {
    max-width: 850px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.expert-categories-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.expert-categories-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-categories-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-categories-description {
    max-width: 790px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   Category Grid
------------------------------------------------------------ */

.expert-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
}


/* ------------------------------------------------------------
   Category Card
------------------------------------------------------------ */

.expert-category-card {
    position: relative;
    min-height: 100%;
    padding: var(--space-5);
    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-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 79, 143, 0.18);
    box-shadow: var(--shadow-md);
}

.expert-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-lg);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 23px;
    line-height: 1;
}

.expert-category-content {
    min-width: 0;
}

.expert-category-title {
    margin-bottom: var(--space-3);
    color: var(--color-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.expert-category-text {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   Card Visual Variation
------------------------------------------------------------ */

.expert-category-card:nth-child(2) .expert-category-icon,
.expert-category-card:nth-child(4) .expert-category-icon {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.expert-category-card:nth-child(3) .expert-category-icon {
    background-color: rgba(245, 158, 11, 0.12);
    color: #b7791f;
}


/* ------------------------------------------------------------
   Language-Specific Adjustments
------------------------------------------------------------ */

html[lang="hi"] .expert-categories-title,
html[lang="mr"] .expert-categories-title {
    line-height: 1.4;
}

html[lang="hi"] .expert-categories-subtitle,
html[lang="hi"] .expert-categories-description,
html[lang="hi"] .expert-category-text,
html[lang="mr"] .expert-categories-subtitle,
html[lang="mr"] .expert-categories-description,
html[lang="mr"] .expert-category-text {
    line-height: 1.85;
}

html[lang="hi"] .expert-category-title,
html[lang="mr"] .expert-category-title {
    line-height: 1.55;
}


/* ------------------------------------------------------------
   Responsive - Small Laptop
------------------------------------------------------------ */

@media (max-width: 1199px) {
    .expert-categories {
        padding-top: var(--space-11);
        padding-bottom: var(--space-12);
    }

    .expert-categories-title {
        font-size: 28px;
    }

    .expert-categories-grid {
        gap: var(--space-4);
    }

    .expert-category-card {
        padding: var(--space-4);
    }

    .expert-category-icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }
}


/* ------------------------------------------------------------
   Responsive - Tablet
------------------------------------------------------------ */

@media (max-width: 991px) {
    .expert-categories {
        padding-top: var(--space-10);
        padding-bottom: var(--space-11);
    }

    .expert-categories-header {
        margin-bottom: var(--space-7);
    }

    .expert-categories-title {
        font-size: 27px;
    }

    .expert-categories-subtitle {
        font-size: 15px;
    }

    .expert-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
        margin: 0 auto;
    }
}


/* ------------------------------------------------------------
   Responsive - Mobile
------------------------------------------------------------ */

@media (max-width: 767px) {
    .expert-categories {
        padding-top: var(--space-8);
        padding-bottom: var(--space-10);
    }

    .expert-categories::before,
    .expert-categories::after {
        display: none;
    }

    .expert-categories-header {
        margin-bottom: var(--space-6);
    }

    .expert-categories-title {
        font-size: 25px;
        line-height: 1.35;
    }

    .expert-categories-subtitle,
    .expert-categories-description {
        font-size: 14px;
    }

    .expert-categories-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        max-width: 540px;
    }

    .expert-category-card {
        border-radius: var(--radius-lg);
    }

    .expert-category-title {
        font-size: 16px;
    }
}


/* ------------------------------------------------------------
   Responsive - Small Mobile
------------------------------------------------------------ */

@media (max-width: 575px) {
    .expert-categories {
        padding-top: var(--space-7);
        padding-bottom: var(--space-9);
    }

    .expert-categories-title {
        font-size: 23px;
    }

    .expert-categories-label {
        margin-bottom: var(--space-2);
    }

    .expert-category-card {
        padding: var(--space-4);
        text-align: center;
    }

    .expert-category-icon {
        width: 46px;
        height: 46px;
        margin-left: auto;
        margin-right: auto;
        font-size: 20px;
    }

    .expert-category-title {
        font-size: 15px;
    }

    .expert-category-text {
        font-size: 13px;
    }
}