.ma-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 25%, rgba(221, 85, 0, 0.38), transparent 36%),
        linear-gradient(135deg, #171717 0%, #292929 100%);
}

.ma-hero__intro,
.ma-author-hero__role {
    max-width: 760px;
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.ma-author-hero__eyebrow {
    margin: 0 0 10px;
    color: #dd5500;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ma-authors-section,
.ma-profile-section,
.ma-author-articles {
    padding-top: clamp(48px, 7vw, 90px);
    padding-bottom: clamp(48px, 7vw, 90px);
}

.ma-authors-grid,
.ma-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.ma-authors-block .ma-authors-grid {
    gap: var(--ma-gap, 30px);
}

.ma-authors-block--columns-1 .ma-authors-grid {
    grid-template-columns: minmax(0, 1fr);
}

.ma-authors-block--columns-2 .ma-authors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-authors-block--columns-3 .ma-authors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-authors-block--columns-4 .ma-authors-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ma-authors-block .ma-author-card {
    border-radius: var(--ma-card-radius, 4px);
    background: var(--ma-card-background, #fff);
    color: var(--ma-text-color, #171717);
}

.ma-authors-block .ma-author-card__image {
    aspect-ratio: var(--ma-image-ratio, 4 / 3);
}

.ma-authors-block .ma-author-card__role {
    color: var(--ma-accent, #dd5500);
}

.ma-authors-block .ma-author-card__button {
    border-color: var(--ma-accent, #dd5500);
    background-color: var(--ma-accent, #dd5500);
}

.ma-authors-block .ma-pagination .current,
.ma-authors-block .ma-pagination a:hover {
    border-color: var(--ma-accent, #dd5500);
    background: var(--ma-accent, #dd5500);
}

.ma-author-card,
.ma-article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ma-author-card:hover,
.ma-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.ma-author-card__image,
.ma-article-card__image {
    display: block;
    overflow: hidden;
    background: #272727;
    aspect-ratio: 4 / 3;
}

.ma-author-card__image img,
.ma-article-card__image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    transition: transform 240ms ease;
}

.ma-author-card:hover .ma-author-card__image img,
.ma-article-card:hover .ma-article-card__image img {
    transform: scale(1.025);
}

.ma-author-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.ma-author-card__content,
.ma-article-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.ma-author-card__title,
.ma-article-card__title {
    margin: 0 0 8px;
    line-height: 1.2;
}

.ma-author-card__title a,
.ma-article-card__title a {
    color: inherit;
    text-decoration: none;
}

.ma-author-card__role {
    margin: 0 0 18px;
    color: #dd5500;
    font-weight: 700;
}

.ma-author-card__summary,
.ma-article-card__content p {
    line-height: 1.65;
}

.ma-author-card__button,
.ma-article-card__content .btn {
    margin-top: auto;
}

.ma-profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.ma-profile-layout--without-photo {
    grid-template-columns: minmax(0, 860px);
}

.ma-profile-photo {
    position: sticky;
    top: 32px;
    overflow: hidden;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.ma-profile-photo img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.ma-profile-content > :first-child {
    margin-top: 0;
}

.ma-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ma-social-links a {
    display: inline-flex;
    padding: 9px 15px;
    border: 1px solid #dd5500;
    border-radius: 999px;
    color: #dd5500;
    font-weight: 700;
    text-decoration: none;
}

.ma-social-links a:hover,
.ma-social-links a:focus {
    background: #dd5500;
    color: #fff;
}

.ma-section-title {
    margin-bottom: 36px;
}

.ma-article-card__date {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.85rem;
}

.ma-pagination {
    margin-top: 48px;
}

.ma-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.ma-pagination a,
.ma-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    color: inherit;
    text-decoration: none;
}

.ma-pagination .current,
.ma-pagination a:hover {
    border-color: #dd5500;
    background: #dd5500;
    color: #fff;
}

.ma-empty-state {
    padding: 45px;
    background: #f5f5f5;
    text-align: center;
}

.ma-article-author-box {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: center;
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: 1140px;
    margin: clamp(42px, 6vw, 76px) auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 5px solid #dd5500;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.ma-article-author-box__photo {
    overflow: hidden;
    border-radius: 50%;
    background: #272727;
    aspect-ratio: 1 / 1;
}

.ma-article-author-box__photo a,
.ma-article-author-box__photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.ma-article-author-box__photo img {
    margin: 0;
    object-fit: cover;
}

.ma-article-author-box__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
}

.ma-article-author-box__eyebrow {
    margin: 0 0 5px;
    color: #666;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ma-article-author-box__name {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.15;
}

.ma-article-author-box__name a {
    color: #171717;
    text-decoration: none;
}

.ma-article-author-box__name a:hover,
.ma-article-author-box__name a:focus {
    color: #dd5500;
}

.ma-article-author-box__role {
    margin: 7px 0 14px;
    color: #dd5500;
    font-weight: 700;
}

.ma-article-author-box__bio {
    max-width: 820px;
    margin: 0 0 20px;
    line-height: 1.65;
}

.ma-article-author-box__link {
    display: inline-flex;
}

@media (max-width: 991.98px) {
    .ma-authors-grid,
    .ma-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ma-authors-block--columns-3 .ma-authors-grid,
    .ma-authors-block--columns-4 .ma-authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ma-authors-grid,
    .ma-articles-grid,
    .ma-profile-layout {
        grid-template-columns: 1fr;
    }

    .ma-authors-block .ma-authors-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ma-profile-photo {
        position: static;
        max-width: 520px;
    }

    .ma-author-card__content,
    .ma-article-card__content {
        padding: 22px;
    }

    .ma-article-author-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ma-article-author-box__photo {
        width: 130px;
        margin: 0 auto;
    }

    .ma-article-author-box__link {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma-author-card,
    .ma-article-card,
    .ma-author-card__image img,
    .ma-article-card__image img {
        transition: none;
    }
}
