/* ===================================
   AUTHOR PAGE STYLES
   =================================== */

/* ===================================
   AUTHOR HERO SECTION
   =================================== */

.author-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    min-height: auto;
    overflow: hidden;
}

/* Background Image with overlay */
.author-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--color-gray-20); /* #3A3A3A */
}

.author-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
}

/* Hero Content */
.author-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1148px;
}

/* Author Photo */
.author-hero__photo {
    width: 165px;
    height: 165px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--color-gray-95);
}

.author-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Text Block */
.author-hero__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-hero__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Author Name - 20px Semibold, white */
.author-hero__name {
    font-size: var(--h4-size); /* 20px */
    font-weight: var(--font-semibold);
    line-height: 1.5;
    color: var(--color-white);
    margin: 0;
}

/* Author Role - 14px Regular, #F1F3F5 */
.author-hero__role {
    font-size: var(--body-small-size); /* 14px */
    font-weight: var(--font-regular);
    line-height: 1.55;
    color: var(--color-gray-95);
    margin: 0;
}

/* Author Bio - 16px Regular, white */
.author-hero__bio {
    font-size: var(--body-size); /* 16px */
    font-weight: var(--font-regular);
    line-height: 1.5;
    color: var(--color-white);
    margin: 0;
}

/* Contact Button */
.author-hero__btn {
    flex-shrink: 0;
}

/* ===================================
   AUTHOR CONTENT SECTION
   =================================== */

.author-content {
    padding-top: 60px;
}

/* Author Layout - gap 30px */
.author-layout {
    gap: 30px;
}

/* Section Header: Title + Button in row */
.author-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Section Title - 32px Bold */
.author-articles__title {
    font-size: var(--h2-size); /* 32px */
    font-weight: var(--font-bold);
    line-height: 1.3;
    color: var(--color-gray-20);
    margin: 0;
    flex: 1;
}

/* Author Sidebar - sticky, only newsletter */
.author-sidebar {
    padding-top: 12px;
    padding-bottom: 30px;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */

@media (max-width: 1279px) {
    .author-hero {
        padding: 50px 40px;
    }

    .author-hero__content {
        gap: 30px;
    }

    .author-hero__photo {
        width: 140px;
        height: 140px;
    }

    .author-hero__btn {
        align-self: flex-start;
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width: 768px) {
    /* Hero Section - Mobile */
    .author-hero {
        padding: 60px 20px;
    }

    /* Flex-wrap for mobile, text stays left-aligned */
    .author-hero__content {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 40px;
        text-align: left;
    }

    /* Photo stays 165px */
    .author-hero__photo {
        width: 165px;
        height: 165px;
    }

    /* Text block - left aligned, min-width for wrap */
    .author-hero__text {
        align-items: flex-start;
        gap: 16px;
        min-width: 280px;
        flex: 1 1 280px;
    }

    .author-hero__top {
        align-items: flex-start;
        gap: 8px;
    }

    /* Keep sizes as desktop */
    .author-hero__name {
        font-size: var(--h4-size); /* 20px */
    }

    .author-hero__role {
        font-size: var(--body-small-size); /* 14px */
    }

    .author-hero__bio {
        font-size: var(--body-size); /* 16px */
    }

    /* Button - auto width, not full */
    .author-hero__btn {
        width: auto;
    }

    /* Content Section */
    .author-content {
        padding: 40px 0;
    }

    /* Layout becomes single column */
    .author-layout {
        flex-direction: column;
        gap: 30px;
    }

    /* Header stays in row */
    .author-articles__header {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        margin-bottom: 0;
    }

    /* Title - 32px Bold */
    .author-articles__title {
        font-size: var(--h2-size); /* 32px */
    }

    .author-articles__header .btn {
        width: auto;
        flex-shrink: 0;
    }

    /* Sidebar - full width on mobile */
    .author-sidebar {
        width: 100%;
        padding: 0;
    }
}

