/* Author Page Specific Styles */

/* Hero Section */
.author-hero {
    min-height: 60vh;
    width: 100%;
    background-image: url('images/second.png'); /* Using an existing image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 50px 0;
}

.author-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.author-hero .content-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Main Author Content */
.author-content {
    padding: 80px 0; /* Remove horizontal padding */
    max-width: 100%; /* Full width */
    margin: 0;
    background: linear-gradient(135deg, 
                #4b2510 0%,    /* Dark brown */
                #8B4513 30%,   /* Medium brown */
                #e8e2d6 70%,   /* Off-white/cream */
                #ffffff 100%); /* Pure white */
}

.author-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.author-bio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-image-container {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.author-portrait {
    width: 300px;
    height: 300px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover; /* This ensures the image covers the entire space */
    object-position: center; /* Centers the image within the container */
    border: 8px solid #8B4513;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden; /* Ensures no part of the image spills outside the circle */
}

.author-portrait:hover {
    transform: scale(1.05);
}

.author-text {
    flex: 1;
    min-width: 300px;
    order: -1; /* Ensures text appears before image (on the left) */
}

.author-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.author-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'EB Garamond', serif;
    color: #444;
}

/* Achievements Section */
.achievements-section {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.achievements-section h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.achievement-item {
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
}

.achievement-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #8B4513;
}

.achievement-item h4 {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.achievement-item p {
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: 'EB Garamond', serif;
    color: #555;
}

.certification-section {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certification-section h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-family: 'EB Garamond', serif;
    color: #333;
}

.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.certificate-item {
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 15px;
}

.certificate-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certificate-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    max-height: 350px;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .author-hero {
        min-height: 50vh;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-text {
        order: 0; /* Reset order for mobile - text will show after image */
    }
    
    .author-image-container {
        order: -1; /* Make image appear first on mobile */
        margin: 0 auto 20px;
    }
    
    .author-portrait {
        width: 250px;
        height: 250px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certificate-gallery {
        gap: 20px;
    }
}



@media (max-width: 768px) {
    .author-hero {
        background-attachment: scroll;
    }
    
    .author-content {
        padding: 60px 20px;
    }
    
    .author-text h3 {
        font-size: 2.2rem;
    }
    
    .author-text p {
        font-size: 1.1rem;
    }
    
    .achievements-section h3 {
        font-size: 2.2rem;
    }
    
    .author-portrait {
        width: 220px;
        height: 220px;
        border-width: 6px;
    }

    .certification-section h3 {
        font-size: 2.2rem;
    }
    
    .certificate-image {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .author-content {
        padding: 40px 15px;
    }
    
    .author-bio {
        padding: 20px;
    }
    
    .author-text h3 {
        font-size: 1.8rem;
    }
    
    .author-text p {
        font-size: 1rem;
    }
    
    .achievements-section {
        padding: 20px;
    }
    
    .achievements-section h3 {
        font-size: 1.8rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .achievement-item {
        padding: 20px;
    }
    
    .achievement-item h4 {
        font-size: 1.3rem;
    }
    
    .achievement-item p {
        font-size: 1rem;
    }
    
    .author-portrait {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }

    .certification-section {
        padding: 20px;
    }
    
    .certification-section h3 {
        font-size: 1.8rem;
    }
    
    .certificate-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-image {
        max-height: 250px;
    }
}

@media (max-width: 380px) {
    .author-text h3 {
        font-size: 1.6rem;
    }
    
    .achievements-section h3 {
        font-size: 1.6rem;
    }
    
    .achievement-item h4 {
        font-size: 1.2rem;
    }
    
    .author-portrait {
        width: 180px;
        height: 180px;
        border-width: 4px;
    }

    .certification-section h3 {
        font-size: 1.6rem;
    }
}