/* Main Section Style */
.also-read-section {
    padding: 20px 10px 10px;
    margin: 20px 0;
    position: relative;
    border-radius: var(--border-radius, 4px);
    border: var(--border-width, 1px) var(--border-style, solid) var(--border-color, #cccccc);
    box-shadow: var(--box-shadow, none);
}

/* Default Style for Top Text */
.also-read-section .also-read-text {
    font-size: 16px;
    font-weight: bold;
    background-color: #fff;
    padding: 0 10px;
    line-height: 1;
    position: absolute;
    transform: translateY(-50%);
}

/* Positioning for Top Left */
.also-read-section .also-read-text.top_left {
    top: 0;
    left: 10px;
    transform: translateY(-50%);
}

/* Positioning for Top Right */
.also-read-section .also-read-text.top_right {
    top: 0;
    right: 10px;
    transform: translateY(-50%);
}

/* Positioning for Center */
.also-read-section .also-read-text.center {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .also-read-section .also-read-text {
        font-size: 14px; /* Tablet */
    }
}

@media (max-width: 480px) {
    .also-read-section .also-read-text {
        font-size: 12px; /* Mobile */
    }
}

/* List Styles */
.also-read-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.also-read-section li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.also-read-thumbnail {
    margin-right: 15px;
    max-width: 160px;
    width: 120px !important;
    height: 90px !important;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.also-read-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
}

/* Headline Link Styles */
.ar-headline-link {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--post-title-color, #455ca5); /* Use the selected post title color or inherit */
    transition: color 0.3s ease;
}

.ar-headline-link:hover {
    color: var(--hover-color, #000); /* Default hover color */
}

/* Responsive Typography for Post Titles */
@media (max-width: 768px) {
    .ar-headline-link {
        font-size: 14px;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .ar-headline-link {
        font-size: 13px;
        font-weight: 500;
    }
}

/* New Powered By Styling */
.also-read-powered-by {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--powered-by-text-color, #000); /* Use the selected post title color or inherit */
}

.also-read-powered-by img.powered-by-logo {
    margin-left: 5px;
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Prevent stretching */
    height: auto; /* Maintain aspect ratio */
    max-height: 20px; /* Explicit max-height */
    display: inline-block; /* Ensure proper alignment */
}

.also-read-powered-by.left {
    justify-content: flex-start;
}

.also-read-powered-by.center {
    justify-content: center;
}

.also-read-powered-by.right {
    justify-content: flex-end;
}

/* Responsive Font Size for Attribution */
@media (max-width: 768px) {
    .also-read-attribution {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .also-read-attribution {
        font-size: 10px;
    }
}
