/* =========================================================
   AK GLOBAL PARTNERS
   AUTHOR ARCHIVE PAGE
   ========================================================= */

.ak-author-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #17201a;
}

.ak-author-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


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

.ak-author-hero {
    position: relative;
    padding: 90px 0 80px;
    background:
        linear-gradient(
            135deg,
            #f7f9f6 0%,
            #ffffff 55%,
            #f4f7f3 100%
        );
    border-bottom: 1px solid #e7ebe7;
}

.ak-author-profile {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: center;
    gap: 60px;
}


/* =========================================================
   AUTHOR IMAGE
   ========================================================= */

.ak-author-image {
    width: 240px;
    height: 240px;
    overflow: hidden;
    border-radius: 50%;
    background: #edf1ed;
    border: 8px solid #ffffff;
    box-shadow: 0 15px 45px rgba(20, 40, 25, 0.12);
}

.ak-author-image img,
.ak-author-image .ak-author-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


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

.ak-author-content {
    min-width: 0;
}

.ak-author-label {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #667468;
}

.ak-author-name {
    margin: 0 0 20px;

    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.035em;

    color: #17201a;
}

.ak-author-bio {
    max-width: 780px;

    font-size: 17px;
    line-height: 1.8;

    color: #5e685f;
}

.ak-author-bio p {
    margin: 0 0 12px;
}

.ak-author-bio p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   AUTHOR META
   ========================================================= */

.ak-author-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;

    margin-top: 26px;
}

.ak-author-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #59635b;
}

.ak-author-meta-item svg {
    flex: 0 0 auto;
}

.ak-author-website {
    text-decoration: none;
    transition: color 0.2s ease;
}

.ak-author-website:hover {
    color: #17201a;
}


/* =========================================================
   SOCIAL ICONS
   Simple Author Box generated markup
   ========================================================= */

.ak-author-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 25px;
}

.ak-author-socials a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50%;

    text-decoration: none !important;

    background: #17201a !important;
    color: #ffffff !important;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ak-author-socials a:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}


/* =========================================================
   POSTS SECTION
   ========================================================= */

.ak-author-posts {
    padding: 90px 0 110px;
    background: #ffffff;
}

.ak-author-posts-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}

.ak-section-label {
    display: block;
    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #718073;
}

.ak-section-title {
    margin: 0;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.025em;

    color: #17201a;
}

.ak-post-count {
    flex-shrink: 0;

    font-size: 14px;
    font-weight: 600;

    color: #737c75;
}


/* =========================================================
   POSTS GRID
   ========================================================= */

.ak-author-post-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;
}


/* =========================================================
   POST CARD
   ========================================================= */

.ak-author-post-card {
    min-width: 0;
    overflow: hidden;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff;

    border: 1px solid #e7ebe7;
    border-radius: 16px;

    box-shadow: 0 5px 25px rgba(20, 40, 25, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ak-author-post-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(20, 40, 25, 0.10);
}


/* =========================================================
   POST IMAGE
   ========================================================= */

.ak-post-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #eef2ee;

    text-decoration: none;
}

.ak-post-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.ak-author-post-card:hover .ak-post-image img {
    transform: scale(1.04);
}

.ak-post-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #edf1ed;

    color: #667168;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   POST CARD CONTENT
   ========================================================= */

.ak-post-card-content {
    padding: 26px 26px 23px;
}

.ak-post-category {
    margin-bottom: 10px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #728075;
}

.ak-post-title {
    margin: 0 0 13px !important;
    padding: 0 !important;

    font-size: 21px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    letter-spacing: -0.015em;
}

.ak-post-title a {
    color: #17201a !important;

    text-decoration: none !important;

    transition: color 0.2s ease;
}

.ak-post-title a:hover {
    color: #5f705f !important;
}

.ak-post-excerpt {
    margin-bottom: 23px;

    font-size: 14px;
    line-height: 1.7;

    color: #697269;
}

.ak-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 17px;

    border-top: 1px solid #edf0ed;
}

.ak-post-date {
    font-size: 12px;
    font-weight: 500;

    color: #8a928b;
}

.ak-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    font-weight: 700;

    color: #17201a !important;

    text-decoration: none !important;

    white-space: nowrap;
}

.ak-read-more span {
    transition: transform 0.2s ease;
}

.ak-read-more:hover span {
    transform: translateX(3px);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.ak-author-pagination {
    margin-top: 55px;
}

.ak-author-pagination ul {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.ak-author-pagination li {
    margin: 0;
    padding: 0;
}

.ak-author-pagination a,
.ak-author-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #e0e5e0;
    border-radius: 8px;

    background: #ffffff;

    color: #4e5850;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.ak-author-pagination a:hover,
.ak-author-pagination .current {
    background: #17201a;
    border-color: #17201a;

    color: #ffffff;
}


/* =========================================================
   NO POSTS
   ========================================================= */

.ak-author-no-posts {
    padding: 60px 30px;

    text-align: center;

    border: 1px solid #e7ebe7;
    border-radius: 16px;

    background: #f8faf8;
}

.ak-author-no-posts h3 {
    margin: 0 0 10px;

    font-size: 24px;
    color: #17201a;
}

.ak-author-no-posts p {
    margin: 0;

    color: #697269;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ak-author-hero {
        padding: 70px 0;
    }

    .ak-author-profile {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 40px;
    }

    .ak-author-image {
        width: 180px;
        height: 180px;
    }

    .ak-author-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .ak-author-container {
        width: min(100% - 30px, 1180px);
    }

    .ak-author-hero {
        padding: 55px 0 60px;
    }

    .ak-author-profile {
        display: flex;
        flex-direction: column;

        align-items: center;

        gap: 30px;

        text-align: center;
    }

    .ak-author-image {
        width: 160px;
        height: 160px;
    }

    .ak-author-name {
        font-size: 38px;
    }

    .ak-author-bio {
        font-size: 15px;
        line-height: 1.75;
    }

    .ak-author-meta {
        justify-content: center;
    }

    .ak-author-socials {
        justify-content: center;
    }

    .ak-author-posts {
        padding: 65px 0 80px;
    }

    .ak-author-posts-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 30px;
    }

    .ak-section-title {
        font-size: 32px;
    }

    .ak-author-post-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .ak-post-card-content {
        padding: 22px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .ak-author-name {
        font-size: 32px;
    }

    .ak-author-image {
        width: 140px;
        height: 140px;
    }

    .ak-post-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

}