/* ========================================
   AUTHOR FULL PROFILE - Reusable Styles
   ======================================== */

/* Container & Wrapper */
.page-container{
    margin-bottom: 80px;
}
.author-full-profile-wrapper {
    position: relative;
    width: 100%;
}

.author-header-inner {
    margin: 0 auto;
    padding: 40px;
}

.author-profile-info {
    max-width: 553px;
    margin-left: auto;
    margin-right: auto;
}

/* Alignment support for author profile info */
.author-profile-info.b-ta-left {
    margin-left: 0;
    margin-right: auto;
}

.author-profile-info.b-ta-center {
    margin-left: auto;
    margin-right: auto;
}

.author-profile-info.b-ta-right {
    margin-left: auto;
    margin-right: 0;
}
/* Width Settings - Reusable */
/* .author-header-inner.width-full { max-width: 100%; }
.author-header-inner.width-wide { max-width: 1400px; }
.author-header-inner.width-standard { max-width: 1200px; }
.author-header-inner.width-narrow { max-width: 900px; } */
/* Author Name Text Colors - scoped to element */
/* Author Name Text Colors */
/* Author Name Text Colors */
.author-full-profile-wrapper .author-full-name.dark {
    color: var(--bagels-dark);
}

.author-full-profile-wrapper .author-full-name.light {
    color: var(--bagels-light);
}

.author-full-profile-wrapper .author-full-name.light-grey {
    color: #cccccc;
}

.author-full-profile-wrapper .author-full-name.dark-grey {
    color: #666666;
}
.author-articles-title
/* Author Bio Text Colors */
.author-full-profile-wrapper .author-full-bio p.dark {
    color: var(--bagels-dark);
}

.author-full-profile-wrapper .author-full-bio p.light {
    color: var(--bagels-light);
}

.author-full-profile-wrapper .author-full-bio p.light-grey {
    color: #cccccc;
}

.author-full-profile-wrapper .author-full-bio p.dark-grey {
    color: #666666;
}


/* ========================================
   NAME SECTION - Reusable Classes
   ======================================== */
.author-full-name {
    margin: 0 0 30px 0;
}

.author-job-title {
    color: #666;
    margin-bottom: 30px;
}

/* ========================================
   IMAGE SECTION - Matching author_profile.css
   ======================================== */
.author-profile-image {
    margin-bottom: 30px;
}

.author-image-circle {
    overflow: hidden;
    width: 250px;
    height:250px;
    border-radius: 50%;
    position: relative;
}

/* Image Alignment - matching author_profile.css pattern */
.author-profile-image.align-left {
    display: flex;
    justify-content: flex-start;
}

.author-profile-image.align-center {
    display: flex;
    justify-content: center;
}

.author-profile-image.align-right {
    display: flex;
    justify-content: flex-end;
}

.author-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay styling for author image */
.author-image-circle .section-overlay {
    opacity: 0.1;
}

/* Desktop size - matching author_profile.css */
@media (min-width: 1024px) {
    .author-image-circle {
        width: 250px;
        height: 250px;
    }



}

@media (max-width: 1023px) {
    .author-image-circle {
        width: 230px;
        height: 230px;
    }
    .author-header-inner {
        width:100% !important;
    }

    .author-profile-info{
        max-width: 80%;
    }
    .author-articles-title {
        margin: 30px 0 10px 0 !important;
    }
    .page-container{
    margin-bottom: 70px;
    }
}

@media (max-width: 991px) {
    .author-image-circle {
        width: 240px;
        height: 240px;
    }
}

/* @media (max-width: 540px) {
    .author-image-circle {
        width: 260px;
        height: 260px;
    }
} */

@media (max-width: 499px) {
    .page-container{
    margin-bottom: 0;
    }
    .author-profile-image {
        max-width: 260px;
        width: 260px;
        margin-left: auto;
        margin-right: auto;
        /* margin-left: 0;
        margin-right: 0; */
        padding: 0;
    }
    
    .author-image-circle {
        width: 260px;
        height: 260px;
    }

    .author-profile-info{
        min-width: 100% !important;
    }
    .author-full-name{
        margin-bottom: 20px;
        text-align: center !important;
    }

    /* Center image on mobile */
    .author-profile-image.align-left,
    .author-profile-image.align-center,
    .author-profile-image.align-right {
        justify-content: center;
    }
    
    /* Left align image on mobile */
    /* .author-profile-image.align-left,
    .author-profile-image.align-center,
    .author-profile-image.align-right {
        justify-content: center;
    } */
    
    /* Left align bio content on mobile */
    .author-full-bio,
    .author-full-bio p {
        text-align: left !important;
    }
    
    /* Left align social links on mobile */
    .author-social-links {
        text-align: left !important;
    }
    
    /* Mobile padding to match author_profile */
    .author-header-inner {
        padding: 10px;
    }
    
}

/* ========================================
   BIO SECTION - Reusable Classes
   ======================================== */
.author-full-bio {
    margin-bottom: 20px;
}

.author-full-bio p {
    line-height: 1.6;
    margin: 0;
}

/* Paragraph alignment classes supplied by ACF (b-ta-left|center|right) */
.author-full-bio p.b-ta-left { text-align: left; }
.author-full-bio p.b-ta-center { text-align: center; }
.author-full-bio p.b-ta-right { text-align: right; }

/* Name heading responsive padding-top via CSS variables (set by PHP from ACF numeric fields)
   Defaults to 0 if unset. */
.author-full-name {
    padding-top: var(--author-name-pt, 0px);
}

@media (max-width: 991px) {
    .author-full-name { padding-top: var(--author-name-pt-tablet, var(--author-name-pt, 0px)); }
}

@media (max-width: 499px) {
    .author-full-name { padding-top: var(--author-name-pt-mobile, var(--author-name-pt-tablet, var(--author-name-pt, 0px))); }
}

/* ========================================
   SOCIAL LINKS - LinkedIn Only (matching author_profile.css)
   ======================================== */
.author-social-links {
    margin-top: 20px;
}

/* LinkedIn link styling - with border */
.author-social-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    /* padding: 8px 16px; */
    border-radius: 4px;
    display: inline-block;
}

.author-social-links a:hover {
    opacity: 0.8;
    border-color: #005885;
}

.author-social-links a i {
    margin-right: 8px;
}

/* Alignment options */
.author-social-links.align-left { text-align: left; }
.author-social-links.align-center { text-align: center; }
.author-social-links.align-right { text-align: right; }

/* ========================================
   ARTICLES SECTION - Reusable Classes
   ======================================== */
.author-articles-section {
    margin: 0 auto;
    /* padding: 20px 0; */
    max-width: 100%;
}
.author-articles-header {
    margin-bottom: 40px;
}

.author-articles-title {
    margin: 60px 0 10px 0;
}

.author-articles-count {
    color: #666;
}

/* No Articles Message */
.author-no-articles {
    padding: 60px 20px;
    text-align: center;
}

.no-articles-message {
    color: #999;
    font-style: italic;
}

/* Articles Grid - Reusable Column Layouts */
.author-articles-grid {
    display: grid;
    gap: 30px;
}

.author-articles-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.author-articles-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.author-articles-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Article Card */
.author-article-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.author-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    display: block;
    position: relative;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card-image:hover img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-card-categories {
    margin-bottom: 10px;
}

.article-category-tag {
    display: inline-block;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    font-size: 12px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
    transition: background 0.3s;
}

.article-category-tag:hover {
    background: #0056b3;
}

.article-card-title {
    margin-bottom: 10px;
}

.article-card-title a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.article-card-title a:hover {
    color: #007bff;
}

.article-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.article-card-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.article-date {
    color: #999;
    font-size: 13px;
}

.article-date i {
    margin-right: 5px;
}

/* View All Button */
.author-view-all {
    text-align: center;
    margin-top: 40px;
}

.view-all-articles-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.view-all-articles-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}


@media(max-width:1367px){
    .author-header-info {
        width: 80% !important;
    }

}
/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    
    .author-articles-section {
        margin: 40px auto;
        /* padding: 0 15px; */
        /* max-width: 100%; */
    }
    
    .author-articles-grid.cols-2,
    .author-articles-grid.cols-3,
    .author-articles-grid.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .author-full-name {
        /* margin-bottom: 20px; */
    }
    
    .author-profile-image {
        margin-bottom: 20px;
    }
    
    .author-social-links {
        gap: 10px;
    }
    
    .author-social-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .author-articles-title {
        margin-top: 55px;
    }

    .author-articles-header {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .author-social-link span {
        display: none;
    }
    
    .author-social-link {
        padding: 10px;
        justify-content: center;
    }

    .author-header-inner {
        width: 100% !important;
    }

    .author-articles-section {
        padding: 0;
        /* max-width: 90%; */

    }

    .author-articles-grid {
        gap: 20px;
    }
}
@media (min-width: 500px) and (max-width: 991px) {
    .author-full-profile-wrapper .bagels-news-box {
        width: calc((100% / 2) - ((var(--spc-xl)) / 2));
        margin-right: var(--spc-xl);
    }
    
    .author-full-profile-wrapper .bagels-news-box:nth-child(2n) {
        margin-right: 0;
    }
}