/* ------------------------------------------------------------
   Ollato Eduversity - Experts Hero CSS
   File: assets/css/experts/hero.css

   Purpose:
   - Style the Experts page hero section
   - Keep typography simple, professional and readable
   - Keep main heading and highlight text bold only
   - Style hero content, buttons, image area, floating card and highlights
   - Support English, Marathi and Hindi layouts

   Related PHP file:
   pages/experts/hero.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Section Base
------------------------------------------------------------ */

.experts-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--space-12);
    padding-bottom: var(--space-14);
    background:
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #ffffff 100%);
}

.experts-hero::before {
    content: "";
    position: absolute;
    top: 85px;
    right: -115px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: rgba(31, 79, 143, 0.045);
    pointer-events: none;
}

.experts-hero::after {
    content: "";
    position: absolute;
    left: -95px;
    bottom: 90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background-color: rgba(33, 166, 122, 0.055);
    pointer-events: none;
}

.experts-hero .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------
   Layout
------------------------------------------------------------ */

.experts-hero-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: var(--space-10);
}

.experts-hero-content {
    max-width: 680px;
}

.experts-hero-image-area {
    position: relative;
}


/* ------------------------------------------------------------
   Hero Content
------------------------------------------------------------ */

.experts-hero-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.experts-hero-title {
    margin-bottom: var(--space-3);
    color: var(--color-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.3px;
}

.experts-hero-subtitle {
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
}

.experts-hero-description {
    max-width: 640px;
    margin-bottom: var(--space-6);
    color: var(--color-text-light);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* ------------------------------------------------------------
   Hero Buttons
------------------------------------------------------------ */

.experts-hero-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.experts-hero-action .btn {
    min-width: 155px;
    font-weight: 500;
}

.experts-hero-action .btn-outline {
    background-color: var(--color-white);
    box-shadow: var(--shadow-xs);
}

.experts-hero-action .btn-outline:hover,
.experts-hero-action .btn-outline:focus {
    box-shadow: var(--shadow-sm);
}


/* ------------------------------------------------------------
   Hero Highlights
------------------------------------------------------------ */

.experts-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.experts-hero-highlight-item {
    padding: var(--space-4);
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.experts-hero-highlight-item:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 79, 143, 0.16);
    box-shadow: var(--shadow-sm);
}

.experts-hero-highlight-number {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.4px;
}

.experts-hero-highlight-text {
    display: block;
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}


/* ------------------------------------------------------------
   Image Area
------------------------------------------------------------ */

.experts-hero-image-box {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.experts-hero-image-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(16, 35, 63, 0.02),
            rgba(16, 35, 63, 0.18)
        );
    pointer-events: none;
}

.experts-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.experts-hero-image-box:hover .experts-hero-image {
    transform: scale(1.025);
}


/* ------------------------------------------------------------
   Floating Card
------------------------------------------------------------ */

.experts-hero-card {
    position: absolute;
    left: var(--space-4);
    bottom: var(--space-4);
    z-index: 2;
    width: min(320px, calc(100% - 32px));
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.experts-hero-card-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.experts-hero-card-title {
    display: block;
    color: var(--color-heading);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}


/* ------------------------------------------------------------
   Decorative Elements
------------------------------------------------------------ */

.experts-hero-image-area::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -16px;
    width: 86px;
    height: 86px;
    border-radius: var(--radius-xl);
    background-color: var(--color-secondary);
    opacity: 0.12;
    transform: rotate(12deg);
    pointer-events: none;
}

.experts-hero-image-area::after {
    content: "";
    position: absolute;
    left: -16px;
    bottom: 76px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0.1;
    pointer-events: none;
}


/* ------------------------------------------------------------
   Language-Specific Adjustments
------------------------------------------------------------ */

html[lang="hi"] .experts-hero-title,
html[lang="mr"] .experts-hero-title {
    line-height: 1.4;
    letter-spacing: 0;
}

html[lang="hi"] .experts-hero-subtitle,
html[lang="hi"] .experts-hero-description,
html[lang="mr"] .experts-hero-subtitle,
html[lang="mr"] .experts-hero-description {
    line-height: 1.85;
}

html[lang="hi"] .experts-hero-highlight-text,
html[lang="mr"] .experts-hero-highlight-text {
    line-height: 1.6;
}


/* ------------------------------------------------------------
   Responsive - Small Laptop
------------------------------------------------------------ */

@media (max-width: 1199px) {
    .experts-hero {
        padding-top: var(--space-11);
        padding-bottom: var(--space-12);
    }

    .experts-hero-wrapper {
        grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
        gap: var(--space-8);
    }

    .experts-hero-title {
        font-size: 31px;
    }

    .experts-hero-image-box,
    .experts-hero-image {
        min-height: 400px;
    }
}


/* ------------------------------------------------------------
   Responsive - Tablet
------------------------------------------------------------ */

@media (max-width: 991px) {
    .experts-hero {
        padding-top: var(--space-10);
        padding-bottom: var(--space-11);
    }

    .experts-hero-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .experts-hero-content {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .experts-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .experts-hero-action {
        justify-content: center;
    }

    .experts-hero-highlights {
        max-width: 680px;
        margin: 0 auto;
    }

    .experts-hero-image-area {
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }

    .experts-hero-title {
        font-size: 29px;
    }

    .experts-hero-image-box,
    .experts-hero-image {
        min-height: 370px;
    }
}


/* ------------------------------------------------------------
   Responsive - Mobile
------------------------------------------------------------ */

@media (max-width: 767px) {
    .experts-hero {
        padding-top: var(--space-8);
        padding-bottom: var(--space-10);
    }

    .experts-hero::before,
    .experts-hero::after,
    .experts-hero-image-area::before,
    .experts-hero-image-area::after {
        display: none;
    }

    .experts-hero-wrapper {
        gap: var(--space-6);
    }

    .experts-hero-title {
        font-size: 26px;
        line-height: 1.35;
    }

    .experts-hero-subtitle,
    .experts-hero-description {
        font-size: 14px;
    }

    .experts-hero-action {
        align-items: stretch;
        margin-bottom: var(--space-6);
    }

    .experts-hero-action .btn {
        width: 100%;
        min-width: 0;
    }

    .experts-hero-highlights {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .experts-hero-highlight-item {
        text-align: left;
    }

    .experts-hero-image-box,
    .experts-hero-image {
        min-height: 310px;
    }

    .experts-hero-card {
        left: var(--space-3);
        bottom: var(--space-3);
        width: calc(100% - 24px);
        padding: var(--space-3);
    }
}


/* ------------------------------------------------------------
   Responsive - Small Mobile
------------------------------------------------------------ */

@media (max-width: 575px) {
    .experts-hero {
        padding-top: var(--space-7);
        padding-bottom: var(--space-9);
    }

    .experts-hero-title {
        font-size: 24px;
    }

    .experts-hero-label {
        margin-bottom: var(--space-2);
    }

    .experts-hero-highlight-number {
        font-size: 12px;
    }

    .experts-hero-highlight-text {
        font-size: 13px;
    }

    .experts-hero-image-box,
    .experts-hero-image {
        min-height: 260px;
        border-radius: var(--radius-lg);
    }

    .experts-hero-card-label {
        font-size: 11px;
    }

    .experts-hero-card-title {
        font-size: 14px;
    }
}