/* ===== RALP Category Enhancer Styles ===== */

/* Fix the page header background */
.edgtf-page-header {
    background: #fef9f3 !important;
    background-color: #fef9f3 !important;
    background-image: none !important;
}

/* Fix title section layering - make sure it doesn't cover the bio */
.edgtf-title-holder {
    position: relative;
    z-index: 1;
}

.edgtf-title-holder .edgtf-title-wrapper {
    background: #fef9f3 !important;
    position: relative;
    z-index: 1;
}

.edgtf-title-holder .edgtf-title-inner {
    background: #fef9f3 !important;
    position: relative;
    z-index: 1;
}

.edgtf-title-holder .edgtf-position-center {
    background: #fef9f3 !important;
}

.edgtf-title-holder .edgtf-grid {
    background: #fef9f3 !important;
}

/* Also target any potential background images or gradients */
.edgtf-title-wrapper {
    background-image: none !important;
    background-color: #fef9f3 !important;
}

/* ===== POET BIO SECTION ===== */
.ralp-poet-bio-section {
    background: #fef9f3;
    padding: 40px 0;
    margin-bottom: 0;
    border-bottom: none;
    z-index: 10;
    position: relative;
    margin-top: -50px; /* Pull the bio section up to overlap properly */
}

.ralp-poet-photo {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.ralp-poet-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

.ralp-photo-credit {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.ralp-photo-credit a {
    color: #666;
    text-decoration: none;
}

.ralp-photo-credit a:hover {
    text-decoration: underline;
}

.ralp-poet-name {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 36px;
}

.ralp-poet-dates {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 18px;
}

.ralp-poet-bio {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* Bio links - extremely specific selectors to override theme styles */
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a,
.ralp-poet-bio-section .edgtf-grid-col-9 .ralp-poet-details .ralp-poet-bio a,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a,
body .ralp-poet-bio-section .ralp-poet-bio a {
    font-weight: bold !important;
    color: #908F51 !important;
    text-decoration: none !important;
}

.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a:hover,
.ralp-poet-bio-section .edgtf-grid-col-9 .ralp-poet-details .ralp-poet-bio a:hover,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a:hover,
body .ralp-poet-bio-section .ralp-poet-bio a:hover {
    text-decoration: underline !important;
}

/* Ensure italic links are also bold - extremely specific selectors */
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio em a,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio i a,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a em,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a i,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a span,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio em a,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio i a,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a em,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a i,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a span,
body .ralp-poet-bio-section .ralp-poet-bio em a,
body .ralp-poet-bio-section .ralp-poet-bio i a,
body .ralp-poet-bio-section .ralp-poet-bio a em,
body .ralp-poet-bio-section .ralp-poet-bio a i,
body .ralp-poet-bio-section .ralp-poet-bio a span {
    font-weight: bold !important;
    font-style: italic !important;
    color: #908F51 !important;
    text-decoration: none !important;
}

.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio em a:hover,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio i a:hover,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a em:hover,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a i:hover,
.ralp-poet-bio-section .ralp-poet-details .ralp-poet-bio a span:hover,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio em a:hover,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio i a:hover,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a em:hover,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a i:hover,
div.ralp-poet-bio-section div.edgtf-grid-col-9 div.ralp-poet-details div.ralp-poet-bio a span:hover,
body .ralp-poet-bio-section .ralp-poet-bio em a:hover,
body .ralp-poet-bio-section .ralp-poet-bio i a:hover,
body .ralp-poet-bio-section .ralp-poet-bio a em:hover,
body .ralp-poet-bio-section .ralp-poet-bio a i:hover,
body .ralp-poet-bio-section .ralp-poet-bio a span:hover {
    text-decoration: underline !important;
}

.ralp-poet-social {
    margin-top: 20px;
}

.ralp-poet-social a {
    color: #908F51;
    text-decoration: none;
}

.ralp-poet-social a:hover {
    text-decoration: underline;
}

/* ===== CONNECTION BOX INTEGRATED INTO BIO ===== */
.ralp-connection-box {
    background: rgba(255,255,255,0.8);
    border: 2px solid #908F51;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.ralp-connection-box p {
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.5;
}

.ralp-connection-box a {
    color: #908F51;
    text-decoration: none;
}

.ralp-connection-box a:hover {
    text-decoration: underline;
}

/* Remove the old separate connection section styles */

/* ===== POSTS SECTION STYLES ===== */
.ralp-section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #908F51;
    color: #333;
}

.ralp-posts-section {
    margin-bottom: 50px;
}

.ralp-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.ralp-post-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ralp-post-item:hover {
    transform: translateY(-5px);
}

.ralp-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ralp-post-content {
    padding: 20px;
}

.ralp-post-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.ralp-post-title a {
    color: #333;
    text-decoration: none;
}

.ralp-post-title a:hover {
    color: #908F51;
}

.ralp-by-poet {
    font-weight: normal;
    color: #333;
    font-style: normal;
}

.ralp-post-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ralp-post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .ralp-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ralp-poet-bio-section {
        padding: 20px 0;
    }
    
    .ralp-connection-box {
        padding: 20px;
        margin-top: 20px;
    }
    
    .ralp-section-title {
        font-size: 24px;
    }
    
    .ralp-poet-name {
        font-size: 28px;
    }
    
    .ralp-connection-box p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ralp-connection-box {
        padding: 15px;
        margin-top: 15px;
    }
    
    .ralp-connection-box p {
        font-size: 13px;
    }
}