/* ZBA Related Posts Widget - Professional Unique Styling */

.zba-rp-section {
    padding: 80px 0;
    background: var(--zba-bg-color, #f8f9fa);
    color: #333;
    position: relative;
    overflow: hidden;
}

.zba-rp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.02) 0%, rgba(229, 62, 0, 0.02) 100%);
    pointer-events: none;
}

.zba-rp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section Header */
.zba-rp-header {
    text-align: center;
    margin-bottom: 60px;
}

.zba-rp-subtitle {
    background: rgba(255, 69, 0, 0.1);
    color: var(--zba-primary-color, #FF4500);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 auto 30px auto;
    border: 2px solid rgba(255, 69, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zba-rp-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.zba-rp-subtitle:hover::before {
    left: 100%;
}

.zba-rp-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.1;
    position: relative;
}

.zba-rp-highlight {
    color: var(--zba-primary-color, #FF4500);
    position: relative;
}

.zba-rp-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--zba-primary-color, #FF4500), var(--zba-secondary-color, #E53E00));
    border-radius: 2px;
    opacity: 0.3;
}

.zba-rp-description {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Posts Grid */
.zba-rp-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.zba-rp-post-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.zba-rp-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--zba-primary-color, #FF4500), var(--zba-secondary-color, #E53E00));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.zba-rp-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.zba-rp-post-card:hover::before {
    opacity: 0.05;
}

.zba-rp-post-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    width: 100%;
}

/* Aspect Ratio Logic */
.zba-rp-post-image {
    padding-bottom: var(--zba-image-aspect-ratio, 56.25%);
    height: 0;
}

/* Custom Height Override */
.zba-rp-section[style*="--zba-use-custom-height: 1"] .zba-rp-post-image {
    padding-bottom: 0;
    height: var(--zba-image-custom-height, 220px);
}

.zba-rp-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zba-rp-post-card:hover .zba-rp-post-image img {
    transform: scale(1.1) rotate(1deg);
}

.zba-rp-post-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--zba-primary-color, #FF4500), var(--zba-secondary-color, #E53E00));
    opacity: 0.1;
}

.zba-rp-post-placeholder::after {
    content: '📄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
}

.zba-rp-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--zba-primary-color, #FF4500);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.zba-rp-post-content {
    padding: 30px;
    text-align: left;
}

.zba-rp-post-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.zba-rp-post-title a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.zba-rp-post-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--zba-primary-color, #FF4500);
    transition: width 0.3s ease;
}

.zba-rp-post-title a:hover {
    color: var(--zba-primary-color, #FF4500);
}

.zba-rp-post-title a:hover::after {
    width: 100%;
}

.zba-rp-post-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 400;
}

.zba-rp-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.zba-rp-post-date,
.zba-rp-post-reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.zba-rp-post-date::before {
    content: '📅';
    font-size: 0.8rem;
}

.zba-rp-post-reading-time::before {
    content: '⏱️';
    font-size: 0.8rem;
}

/* Course Grid */
.zba-rp-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.zba-rp-course-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.zba-rp-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--zba-primary-color, #FF4500), var(--zba-secondary-color, #E53E00));
}

.zba-rp-course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--zba-primary-color, #FF4500), var(--zba-secondary-color, #E53E00));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.zba-rp-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.zba-rp-course-card:hover::after {
    opacity: 0.03;
}

.zba-rp-course-icon {
    margin-bottom: 25px;
    color: var(--zba-primary-color, #FF4500);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.zba-rp-course-card:hover .zba-rp-course-icon {
    transform: scale(1.1);
}

.zba-rp-course-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.zba-rp-course-card-text {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.zba-rp-course-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.zba-rp-course-features li {
    color: #333;
    font-size: 1rem;
    padding: 10px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.3s ease;
}

.zba-rp-course-features li:last-child {
    border-bottom: none;
}

.zba-rp-course-features li:hover {
    color: var(--zba-primary-color, #FF4500);
}

/* Course Promotion (Mixed Mode) */
.zba-rp-course-promotion {
    margin: 60px 0;
}

.zba-rp-course-promo-card {
    background: #ffffff;
    color: #333;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.zba-rp-course-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.zba-rp-course-promo-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zba-rp-course-promo-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zba-rp-course-promo-content .zba-rp-btn {
    display: inline-block;
    background: var(--zba-primary-color, #FF4500);
    color: white !important;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
    position: relative;
    z-index: 1;
}

.zba-rp-course-promo-content .zba-rp-btn:hover {
    background: var(--zba-secondary-color, #E53E00);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.zba-rp-course-promo-subtext {
    margin: 20px 0 0 0;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Buttons */
.zba-rp-cta {
    text-align: center;
}

.zba-rp-btn {
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.1rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.zba-rp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.zba-rp-btn:hover::before {
    left: 100%;
}

.zba-rp-btn-primary {
    background: linear-gradient(135deg, var(--zba-primary-color, #FF4500), var(--zba-secondary-color, #E53E00));
    color: white;
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

.zba-rp-btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 69, 0, 0.4);
}

.zba-rp-btn-secondary {
    background: rgba(255, 69, 0, 0.1);
    color: var(--zba-primary-color, #FF4500);
    border: 2px solid var(--zba-primary-color, #FF4500);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.15);
}

.zba-rp-btn-secondary:hover {
    background: var(--zba-primary-color, #FF4500);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 69, 0, 0.3);
}

.zba-rp-cta-subtext {
    margin-top: 20px;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .zba-rp-section {
        padding: 60px 0;
    }
    
    .zba-rp-title {
        font-size: 2.8rem;
    }
    
    .zba-rp-description {
        font-size: 1.2rem;
    }
    
    .zba-rp-posts-grid,
    .zba-rp-course-grid {
        gap: 30px;
    }
    
    .zba-rp-course-promo-card {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .zba-rp-course-promo-content h3 {
        font-size: 1.5rem;
    }
    
    .zba-rp-course-promo-content p {
        font-size: 1rem;
    }
    
    .zba-rp-course-promo-content .zba-rp-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .zba-rp-section {
        padding: 50px 0;
    }
    
    .zba-rp-container {
        padding: 0 15px;
    }
    
    .zba-rp-title {
        font-size: 2.4rem;
    }
    
    .zba-rp-description {
        font-size: 1.1rem;
    }
    
    .zba-rp-posts-grid,
    .zba-rp-course-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .zba-rp-post-content,
    .zba-rp-course-card {
        padding: 25px 20px;
    }
    
    .zba-rp-course-promo-card {
        padding: 40px 25px;
    }
    
    .zba-rp-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .zba-rp-title {
        font-size: 2rem;
    }
    
    .zba-rp-description {
        font-size: 1rem;
    }
    
    .zba-rp-post-title {
        font-size: 1.2rem;
    }
    
    .zba-rp-course-card-title {
        font-size: 1.4rem;
    }
    
    .zba-rp-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .zba-rp-subtitle {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .zba-rp-course-promo-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .zba-rp-course-promo-content h3 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .zba-rp-course-promo-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .zba-rp-course-promo-content .zba-rp-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .zba-rp-course-promo-subtext {
        font-size: 0.85rem;
        margin-top: 15px;
    }
}

/* Animation Keyframes */
@keyframes zbaFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zba-rp-post-card,
.zba-rp-course-card {
    animation: zbaFadeInUp 0.6s ease forwards;
}

.zba-rp-post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.zba-rp-post-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* CTA Widget - Clean Professional Style */
.zba_cta_section {
    padding: 40px 0;
    background: transparent;
}

.zba_cta_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zba_cta_box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.zba_cta_box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.zba_cta_box h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.zba_cta_box p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.zba_cta_button {
    display: inline-block;
    background: var(--zba-primary-color, #FF4500);
    color: white !important;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.zba_cta_button:hover {
    background: var(--zba-secondary-color, #E53E00);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.zba_cta_features {
    margin: 20px 0 0 0;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .zba_cta_box {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .zba_cta_box h3 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .zba_cta_box p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .zba_cta_button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .zba_cta_section {
        padding: 30px 0;
    }
    
    .zba_cta_box {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .zba_cta_box h3 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .zba_cta_box p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .zba_cta_button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .zba_cta_features {
        font-size: 0.85rem;
        margin-top: 15px;
    }
}
.zba-rp-course-card:nth-child(2) {
    animation-delay: 0.1s;
}

.zba-rp-course-card:nth-child(3) {
    animation-delay: 0.2s;
}