/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Child theme for Divi
Template: Divi
Version: 1.0.0
*/

/* ===============================
   AUTHOR PAGE – GLOBAL
================================ */
@import url('https://fonts.googleapis.com/css2?family=Marcellus:wght@400;500;600;700&display=swap');

.sej-author-container h1,
.sej-author-container h3 {
    font-family: "Marcellus", serif !important;
}

/* ===============================
   AUTHOR PAGE – GLOBAL RESET
================================ */
.sej-author-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    font-family: "Poppins", sans-serif !important;
}

/* ===============================
   AUTHOR TOP SECTION
================================ */
.sej-author-top {
    padding: 60px 0 50px !important;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.sej-author-profile {
    display: flex !important;
    flex-direction: row !important;
    gap: 35px !important;
    align-items: flex-start !important;
    grid-template-columns: none !important;
}

/* AVATAR */
.sej-author-avatar {
    flex-shrink: 0;
}

.sej-author-avatar img {
    border-radius: 50%;
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
    border: 3px solid #f5f5f5;
}

/* AUTHOR INFO */
.sej-author-info {
    flex: 1;
}

.sej-author-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #161922;
    line-height: 1.2;
}

/* CREDENTIALS */
.sej-author-credentials {
    margin-bottom: 15px;
}

.sej-author-credentials p {
    margin: 3px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.author-position {
    font-weight: 600;
    color: #513E3E;
}

.author-experience {
    font-style: italic;
}

/* BIO */
.sej-author-bio {
    font-size: 16px;
    line-height: 1.75;
    color: #666;
    margin: 15px 0 0 0;
}

.sej-author-bio p {
    margin-bottom: 12px;
}

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

/* SOCIAL ICONS */
.sej-author-social {
    margin-top: 20px;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
}

.sej-author-social a {
    width: 40px;
    height: 40px;
    background: #f7f7f7;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #161922;
    text-decoration: none;
}

.sej-author-social a:hover {
    background: #f6b60d;
    color: #161922;
    transform: translateY(-2px);
}

.sej-author-social i {
    font-size: 18px;
}

/* ===============================
   ARTICLES SECTION
================================ */
.sej-author-articles {
    padding: 60px 0 80px !important;
    background: #FEFEFE;
}

.sej-articles-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 35px 0 !important;
    color: #333;
}

/* ===============================
   ARTICLE GRID (3 COLUMNS) - FORCE OVERRIDE
================================ */
.sej-article-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin-top: 0 !important;
}

/* ARTICLE CARD */
.sej-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: block !important;
}

.sej-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* THUMBNAIL */
.sej-article-thumb {
    display: block;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    padding-bottom: 60%; /* 5:3 aspect ratio */
}

.sej-article-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.sej-article-card:hover .sej-article-thumb img {
    transform: scale(1.05);
}

/* ARTICLE CONTENT */
.sej-article-content {
    padding: 22px 24px 24px;
}

.sej-article-content h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.sej-article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sej-article-content h3 a:hover {
    color: #333;
}

.sej-article-meta {
    font-size: 14px;
    color: #A8A8A8;
    margin: 0;
}

/* ===============================
   PAGINATION
================================ */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-numbers {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #f6b60d;
    color: #333;
    border-color: #f6b60d;
}

/* ===============================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 1024px) {
    .sej-article-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .sej-author-container {
        padding: 0 20px !important;
    }
}

@media (max-width: 768px) {
    .sej-author-profile {
        flex-direction: column !important;
        gap: 25px !important;
        text-align: center;
        align-items: center !important;
    }
    
    .sej-author-info h1 {
        font-size: 28px;
    }
    
    .sej-author-social {
        justify-content: center;
    }
    
    .sej-articles-heading {
        font-size: 26px;
    }
    
    .sej-author-top {
        padding: 40px 0 35px !important;
    }
    
    .sej-author-articles {
        padding: 40px 0 60px !important;
    }
}

@media (max-width: 600px) {
    .sej-article-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .sej-author-avatar img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .sej-author-info h1 {
        font-size: 24px;
    }
    
    .sej-article-content {
        padding: 18px 20px 20px;
    }
    
    .sej-article-content h3 {
        font-size: 17px;
    }
}

.author-date .vcard .fn .avatar {
    border-radius: 50%;
    height: 27px;
    width: 27px;
    object-fit: cover;
    vertical-align: middle;
}

.single-author-date .fn .avatar {
    border-radius: 50%;
    height: 32px;
    width: 32px;
    object-fit: cover;
    vertical-align: middle;
}

i.icon-user {
    display: none;
}