/* CUSP Author Page - Complete Redesign */
.site-content .content-area {
	width: 100%!important;
}

/* Reset and Base */
.author-page-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hero Section */
.author-profile-wrapper {
    border-bottom: 2px solid rgba(68, 196, 86, 0.3);
    margin-bottom: 0;
}

.author-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #B8C5D6;
}

/* Author Header */
.author-profile-header {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    color: #B8C5D6;
    margin-bottom: 40px;
}

.author-photo-container {
    flex: 0 0 180px;
    margin: 0;
    /* säkerställ kvadratisk yta */
    width: 180px;
    height: 180px;
}

.author-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #44C456;
    box-shadow: 0 0 30px rgba(68, 196, 86, 0.3);
    background-color: rgba(68, 196, 86, 0.1);

    /* === Viktigt för att centrera och undvika upprepning === */
    background-repeat: no-repeat;
    background-size: cover;            /* fyll cirkeln, beskär snyggt */
    background-position: 50% 50%;      /* centrera ansiktet (justera t.ex. 50% 38% om det behövs) */
}

.author-header-info {
    flex: 1;
}

.author-name {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.author-job-title {
    font-size: 24px;
    color: #44C456;
    margin-bottom: 20px;
    font-weight: 400;
}

/* Social Links */
.author-profile-social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.author-profile-social-links a {
    width: 44px;
    height: 44px;
    background: rgba(68, 196, 86, 0.1);
    border: 2px solid rgba(68, 196, 86, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.author-profile-social-links a:hover {
    background: #44C456;
    border-color: #44C456;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(68, 196, 86, 0.4);
}

.author-profile-social-links svg {
    width: 20px;
    height: 20px;
    fill: #44C456;
}

.author-profile-social-links a:hover svg {
    fill: #011224;
}

/* Author Bio Section */
.author-bio {
    padding: 40px;
    background: rgba(10, 31, 56, 0.4);
    border: 1px solid rgba(68, 196, 86, 0.2);
    border-radius: 16px;
    margin-bottom: 40px;
    color: #B8C5D6 !important;
    line-height: 1.8;
    font-size: 16px;
}

.author-bio p,
.author-bio span,
.author-bio div {
    color: #B8C5D6 !important;
}

.author-bio a {
    color: #44C456 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-bio a:hover {
    color: #5ed670 !important;
}

/* Author Sections */
.author-section {
    padding: 40px;
    background: rgba(10, 31, 56, 0.4);
    border: 1px solid rgba(68, 196, 86, 0.2);
    border-radius: 16px;
    margin-bottom: 30px;
    color: #B8C5D6;
}

.author-section h2 {
    font-size: 28px;
    color: #FFFFFF;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(68, 196, 86, 0.3);
    position: relative;
}

.author-section h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #44C456;
}

/* Expertise Areas */
.expertise-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.expertise-area {
    background: rgba(68, 196, 86, 0.1);
    border: 1px solid rgba(68, 196, 86, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    color: #44C456;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expertise-area:hover {
    background: #44C456;
    color: #011224;
    transform: translateY(-2px);
}

.expertise-area a {
    color: inherit;
    text-decoration: none;
}

.expertise-icon {
    display: inline-block;
    margin-right: 8px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: 2px;
    background: linear-gradient(180deg, #44C456, rgba(68, 196, 86, 0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(68, 196, 86, 0.05);
    border: 1px solid rgba(68, 196, 0.2, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(68, 196, 86, 0.1);
    transform: translateX(5px);
}

.timeline-marker {
    position: absolute;
    top: 30px;
    left: -35px;
    width: 20px;
    height: 20px;
    background: #44C456;
    border: 3px solid #011224;
    border-radius: 50%;
    z-index: 2;
}

.timeline-year {
    display: inline-block;
    background: #44C456;
    color: #011224;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    color: #FFFFFF;
    margin: 10px 0;
    font-weight: 600;
}

.timeline-company {
    font-size: 16px;
    color: #44C456;
    margin-bottom: 15px;
}

.timeline-description {
    color: #B8C5D6;
    line-height: 1.7;
}

/* Expertise Details */
.expertise-detail,
.methodology-item {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(68, 196, 86, 0.05);
    border-left: 4px solid #44C456;
    border-radius: 8px;
}

.expertise-detail h3,
.methodology-item h3 {
    color: #44C456;
    font-size: 20px;
    margin: 0 0 15px 0;
}

.ethical-statement {
    border-left: 4px solid #44C456;
    padding: 20px 30px;
    background: rgba(68, 196, 86, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #B8C5D6;
    margin: 30px 0;
}

/* Posts Section */
.author-posts-wrapper {
    background: #011224;
    padding: 60px 20px;
}

.author-posts-wrapper > div {
    max-width: 1200px;
    margin: 0 auto;
}

.author-posts-header {
    text-align: center;
    margin-bottom: 50px;
}

.author-posts-header h2 {
    font-size: 36px;
    color: #FFFFFF;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.author-posts-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #44C456;
}

/* Posts Grid */
.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.author-post-item {
    background: rgba(10, 31, 56, 0.4);
    border: 1px solid rgba(68, 196, 86, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-post-item:hover {
    transform: translateY(-8px);
    border-color: rgba(68, 196, 86, 0.4);
    box-shadow: 0 15px 40px rgba(68, 196, 86, 0.2);
}

.post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: rgba(68, 196, 86, 0.05);
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-post-item:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.post-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a:hover {
    color: #44C456;
}

.post-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #44C456;
}

.post-excerpt {
    color: #B8C5D6;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #44C456;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more-link:after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
}

.read-more-link:hover:after {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .author-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .author-photo-container {
        margin: 0 auto;
    }
    
    .author-name {
        font-size: 32px;
    }
    
    .author-job-title {
        font-size: 20px;
    }
    
    .author-profile-social-links {
        justify-content: center;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-marker {
        left: -20px;
    }
}

@media (max-width: 480px) {
    .author-profile {
        padding: 40px 15px;
    }
    
    .author-bio,
    .author-section {
        padding: 25px 20px;
    }
    
    .author-posts-wrapper {
        padding: 40px 15px;
    }
}
