/* Author Page Specific Styles */
:root {
    --color-primary: #007bff;
    --color-text-dark: #101828;
    --color-text-grey: #667085;
    --card-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    --border-radius-lg: 24px;
    --border-radius-md: 12px;
}

.author-page {
    background-color: #f9fafb;
    padding-bottom: 80px;
    margin-top: 80px;
}

.desktop-only {
    display: flex !important;
}

.mobile-header-row {
    display: none;
}

/* --- Author Header Section --- */
.author-header-wrapper {
    position: relative;
    padding-top: 10px;
    /* Space for header */
}

/* Mobile Cover - Hidden on Desktop */
.author-cover {
    display: none;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.author-profile-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.author-profile-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 40px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    position: relative;
}

.author-avatar-wrapper {
    flex: 0 0 240px;
}

.author-avatar {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    background: #eee;
}

.author-details {
    flex: 1;
}

.author-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: inter;
}

.author-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inter;
}

.verified-icon {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
}

.btn-get-touch {
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-get-touch:hover {
    transform: scale(1.05);
}

.btn-get-touch:active {
    transform: scale(0.95);
}



.btn-get-touch::before {
    position: absolute;
    content: "";
    width: 110%;
    height: 110%;
    top: 50%;
    left: 50%;
    background: linear-gradient(to right, #000000, #00407C);
    backdrop-filter: blur(20px);
    transform: translate(-50%, -50%);
    opacity: 0.8;
    z-index: -1;

}



.author-title {
    font-size: 1rem;
    color: var(--color-text-grey);
    margin-bottom: 16px;
}

.author-stats {
    font-size: 0.875rem;
    color: #344054;
    font-weight: 600;
    margin-bottom: 24px;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #1f242b;
}

/* --- Posts Sections --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.view-all {
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.blogs-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
}



.author-post-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

}

.author-post-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    transition: transform 0.3s ease;
}


.post-top-row {
    display: flex;
    gap: 16px;
}

.post-thumb {
    width: 100%;
    max-width: 120px;
    max-height: 100px;
    background: #f2f4f7;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

.post-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.post-meta {
    font-size: 0.75rem;
    color: var(--color-text-grey);
    display: flex;
    align-items: center;
    gap: 6px;
}


.btn-read-blog {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    /* Fully rounded pill shape */
    font-size: 1rem;
    background: #007bff;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-read-blog:hover {
    filter: brightness(1.1);
    color: #fff;
}


.btn-read-blog:active {
    transform: scale(0.95);
}

.author-side-column {
    margin-top: 40px;
}

.border-t {
    border-top: 1px solid #c5c5c5;
}

/* --- Modal Animation (Slide from Bottom) --- */
.modal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}


.btn-close {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    background-color: #e7e7e7;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media (max-width: 991px) {
    #contactModal {
        padding-right: 0 !important;
    }

    #contactModal .modal-dialog {
        margin: 0 auto;
        margin-top: auto;
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: flex-end;
        min-height: 100%;
    }

    #contactModal .modal-content {
        border-radius: 30px 30px 0 0 !important;
        width: 100%;
        border: none;
    }
}

/* --- Mobile View --- */
@media (max-width: 991px) {
    .author-header-wrapper {
        padding-top: 0;
    }

    .author-cover {
        display: block;
        height: 180px;
        border-radius: 0 0 20px 20px;
    }

    .author-profile-container {
        padding: 0 15px;
    }

    .author-profile-card {
        flex-direction: column;
        padding: 0;
        background: transparent;
        box-shadow: none;
        margin-top: -50px;
        gap: 15px;
    }

    .desktop-only {
        display: none !important;
    }

    /* Top row on mobile: Avatar on left, Button/Stats on right */
    .mobile-header-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        width: 100%;
        padding: 0 5px;
    }

    .author-avatar-wrapper {
        flex: 0 0 auto;
        margin-top: 0;
    }

    .author-avatar {
        width: 110px;
        height: 110px;
        border-radius: 50%;
        border: 4px solid #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .mobile-actions-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 5px;
    }



    .author-stats {
        margin-bottom: 0;
        font-size: 0.8rem;
        color: #344054;
    }

    /* Details below the row */
    .author-details {
        width: 100%;
        padding: 10px 5px;
    }

    .author-name-row {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 5px;
    }

    .author-name {
        font-size: 1.6rem;
    }

    .author-title {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .author-bio {
        font-size: 0.95rem;
        border-top: 1px solid #eaecf0;
        border-bottom: 1px solid #eaecf0;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .author-post-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .author-post-card {
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .post-top-row {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .post-thumb {
        width: 120px;
        /* Slightly larger thumbnail */
        height: 100px;
        flex-shrink: 0;
        border-radius: 10px;
        /* More rounded as requested */
    }

    .post-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .post-info h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
        line-height: 1.4;
        color: #101828;
        font-weight: 700;
    }

    .post-meta {
        font-size: 0.85rem;
        color: #667085;
        font-weight: 500;
    }

    .post-meta i {
        color: #17BF57;
        margin-right: 5px;
    }

    .btn-read-blog {
        width: 100%;
        padding: 14px;
        border-radius: 50px;
        /* Fully rounded pill shape */
        font-size: 1rem;
        background: #007bff;
        font-weight: 600;
    }

    /* Adjust section header for mobile */
    .section-header {
        margin-top: 60px;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .blogs-wrapper {
        background: transparent;
        border-radius: var(--border-radius-lg);
        box-shadow: none;
        margin-bottom: 40px;
    }
}

/* --- Sticky Side Form (Desktop) --- */
@media (min-width: 992px) {
    .author-layout-row {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .author-main-content {
        flex: 1;
        min-width: 0;
    }

    .author-side-column {
        flex: 0 0 380px;
        position: sticky;
        top: 100px;
    }
}

.author-side-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaecf0;
}

.side-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.side-form-header .bigger {
    font-size: 1.5rem;
    color: #101828;
    font-weight: 700;
}

.side-form-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #575757;
    margin: 0;
    line-height: 1.3;
    font-family: inter;
}

.side-form-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side-form-group {
    margin-bottom: 15px;
}

.side-form-input,
.side-form-select {
    width: 100%;
    padding: 14px 18px;
    background: #f6f7f7;
    border: 1px solid #f6f7f7;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #101828;
    transition: all 0.3s ease;
}

.side-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667085' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 45px;
}

.side-form-input:focus,
.side-form-select:focus {
    background: #fff;
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.side-form-input::placeholder {
    color: #667085;
}

.btn-side-submit {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-side-submit:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-side-submit:active {
    transform: translateY(0);
}

/* --- Author Social Links --- */
.author-name-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.author-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    transform: scale(1.15);
}

.social-icon.linkedin {
    color: #0077b5;
}

.social-icon.instagram {
    color: #e4405f;
}

.social-icon.twitter {
    color: #1da1f2;
}

.social-icon.facebook {
    color: #1877f2;
}

.social-icon.youtube {
    color: #ff0000;
}

#author-blog-grid .all-cards-hover:hover {
    background: #f1f1f1;
}

@media (max-width: 991px) {
    .author-social-links.desktop-only {
        display: none !important;
    }

    .author-social-links.mobile-only {
        display: flex;
        margin-top: -45px;
        justify-content: end;
        padding-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .author-social-links.mobile-only {
        display: none !important;
    }
}

/* --- Hybrid Skeleton & Reveal Animations --- */
.ssr-content-wrapper {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ssr-content-wrapper.reveal {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}


.ssr-content-wrapper.more-posts-section {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Flex reveal */
.ssr-content-wrapper.row.reveal,
.ssr-content-wrapper.d-flex.reveal {
    display: flex;
}

.skeleton-wrapper {
    width: 100%;
}

.skeleton-shimmer {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s skeleton-shimmer linear infinite;
}

@keyframes skeleton-shimmer {
    to {
        background-position-x: -200%;
    }
}

.skeleton-block {
    border-radius: 12px;
    margin-bottom: 20px;
}

.skeleton-avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.skeleton-title-line {
    height: 32px;
    width: 60%;
    margin-bottom: 15px;
}

.skeleton-text-line {
    height: 16px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-post-card {
    height: 250px;
    border-radius: 20px;
    margin-bottom: 30px;
}

/* --- Additional Author Page Tweaks --- */
@media (min-width: 992px) {
    .author-profile-card {
        margin-top: 40px;
        border: 1px solid #eaecf0;
    }

    .blogs-wrapper {
        border: 1px solid #eaecf0;
    }
}

.more-posts-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.load-more-container {
    margin-top: 50px;
    text-align: center;
}

.btn-load-more {
    background: #ffffff;
    color: #344054;
    border: 1px solid #d0d5dd;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-load-more:hover {
    background: #f9fafb;
    border-color: #b2b9c3;
}

.grid-post-card .excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #667085;
    margin-bottom: 20px;
}