/* Container and General Setup */
.ajc-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    direction: rtl;
    font-family: cairo;
    background-color: #f0f0f0;
    padding: 20px;
    justify-content: center;
}

.ajc-section-box {
    background: white;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Header Styling with the yellow accent */
.ajc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.ajc-section-title {
    font-weight: bold;
    color: #333;
    padding-right: 10px;
    border-right: 4px solid var(--primary-color);
    /* The exact yellow stripe */
}

/* Content Area */
.ajc-section-body {
    padding: 20px;
    flex-grow: 1;
}

.ajc-text-center {
    text-align: center;
}

/* Newsletter Form Elements */
.ajc-newsletter-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

.ajc-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    background: #fafafa;
    text-align: right;
    box-sizing: border-box;
}

.ajc-btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    display: block;
    margin: 10px auto 0;
}

/* Author Section Styling */
.ajc-author-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #eee;
}

.ajc-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ajc-author-name {
    font-size: 1.1rem;
    margin: 10px 0 5px;
    color: #000;
}

.ajc-author-desc {
    font-size: 0.85rem;
    color: #666;
}

/* Book Review Styling */
.ajc-book-review-img {
    height: 180px;
    margin-bottom: 15px;
}

.ajc-book-review-img img {
    height: 100%;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.ajc-review-title {
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1.5;
    color: #222;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ajc-section-box {
        flex: 0 0 100%;
        max-width: 100%;
    }
}