/* Home page styles for the aboutinsider theme */

/* ===================== SEO H1 ===================== */
.opla-home-h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--opla-text);
    text-align: center;
    margin: 18px auto 0;
    padding: 0 16px;
    line-height: 1.4;
}

/* ===================== Hero Section ===================== */
.opla-hero {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3px;
    margin-top: 20px;
    height: 440px;
}

.opla-hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    height: 100%;
}

.opla-hero-main__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.opla-hero-main:hover .opla-hero-main__img {
    transform: scale(1.02);
}

.opla-hero-main__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    padding: 32px 20px 20px;
}

.opla-hero-main__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
}

.opla-hero-main__title a {
    color: #ffffff;
    text-decoration: none;
}

.opla-hero-main__title a:hover {
    color: var(--opla-accent);
    text-decoration: none;
    opacity: 1;
}

.opla-hero-main__date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.opla-hero-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
}

.opla-hero-list-item {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    border-radius: 2px;
    background: #1a1a1a;
    transition: background 0.2s;
}

.opla-hero-list-item:hover {
    background: #222;
}

.opla-hero-list-item__img-wrap {
    flex-shrink: 0;
    width: 120px;
    position: relative;
    overflow: hidden;
}

.opla-hero-list-item__img-wrap a {
    display: block;
    height: 100%;
}

.opla-hero-list-item__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.opla-hero-list-item:hover .opla-hero-list-item__img {
    transform: scale(1.04);
}

.opla-hero-list-item__body {
    flex: 1;
    min-width: 0;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opla-hero-list-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.opla-hero-list-item__title a {
    color: #ffffff;
    text-decoration: none;
}

.opla-hero-list-item__title a:hover {
    color: var(--opla-accent);
    text-decoration: none;
    opacity: 1;
}

/* ===================== Category Section Grid ===================== */
.opla-cats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
    margin-top: 36px;
}

.opla-cat-section {
    border-top: 3px solid var(--opla-primary);
    padding-top: 12px;
}

.opla-cat-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.opla-cat-section__name {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--opla-text);
    /*text-transform: uppercase;*/
    letter-spacing: 0.8px;
    text-decoration: none;
}

.opla-cat-section__name:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

.opla-cat-section__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opla-cat-featured {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 2px;
}

.opla-cat-featured__img-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
}

.opla-cat-featured__img-wrap a {
    display: block;
    height: 100%;
}

.opla-cat-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.opla-cat-featured:hover .opla-cat-featured__img {
    transform: scale(1.02);
}

.opla-cat-featured__info {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.opla-cat-featured__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--opla-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.opla-cat-featured__title:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

.opla-cat-featured__meta {
    font-size: 12px;
    color: var(--opla-text-muted);
    margin-top: 5px;
}

.opla-cat-small-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.opla-cat-small-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid var(--opla-border);
}

.opla-cat-small-item:last-child {
    border-bottom: none;
}

.opla-cat-small-item__img {
    flex-shrink: 0;
    width: 60px;
    height: 62px;
    overflow: hidden;
    border-radius: 2px;
}

.opla-cat-small-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opla-cat-small-item__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--opla-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.opla-cat-small-item__title:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

.opla-cat-small-item__meta {
    font-size: 12px;
    color: var(--opla-text-muted);
    margin-top: 3px;
}

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
    .opla-hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .opla-hero-main {
        height: 280px;
    }

    .opla-hero-list {
        flex-direction: column;
        height: auto;
    }

    .opla-hero-list-item {
        height: 80px;
    }

    .opla-hero-list-item__img-wrap {
        width: 110px;
    }

    .opla-cats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .opla-hero-list {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .opla-hero-list-item {
        height: 80px;
    }

    .opla-hero-list-item__img-wrap {
        width: 90px;
    }
}

/* ===================== Bottom Bar ===================== */
.opla-bottom-bar {
    margin-top: 48px;
    padding: 32px 0 36px;
    border-top: 1px solid var(--opla-border);
}

.opla-bottom-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}

.opla-bottom-col__heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    /*text-transform: uppercase;*/
    letter-spacing: 0.8px;
    color: var(--opla-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--opla-primary);
}

.opla-bottom-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.opla-bottom-col__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.opla-bottom-col__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--opla-text);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opla-bottom-col__title:hover {
    color: var(--opla-primary);
    text-decoration: none;
    opacity: 1;
}

.opla-bottom-col__date {
    font-size: 12px;
    color: var(--opla-text-muted);
}
@media(max-width:1200px){
    .opla-bottom-bar{
        padding: 32px 16px 36px;
    }
}
@media(max-width:1024px){
    .opla-bottom-bar{
        padding: 32px 0 36px;
    }
}
@media (max-width: 900px) {
    .opla-bottom-bar__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .opla-bottom-bar__inner {
        grid-template-columns: 1fr;
    }
}
/* ===================== OPLADEN THEME — category card layout ===================== */

/* Grid wrapper */
.opla-cats-grid {
    background: transparent;
    padding: 0;
    border-radius: 0;
    gap: 24px 28px;
    margin-top: 36px;
}

/* Each category block → rounded card with green background + shadow */
.opla-cat-section {
    background: #E8F5EE;
    border-top: none;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(10, 122, 69, 0.13);
    padding: 18px 18px 14px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.opla-cat-section:hover {
    box-shadow: 0 6px 20px rgba(10, 122, 69, 0.22);
    transform: translateY(-2px);
}

/* Category header: green left accent bar + bottom border */
.opla-cat-section__header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #A8D9BC;
    position: relative;
    /* padding-left: 12px; */
}

/* .opla-cat-section__header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0A7A45;
    border-radius: 2px;
} */

/* Category name */
.opla-cat-section__name {
    color: #0D2B1A;
    font-size: 17px;
}

.opla-cat-section__name:hover {
    color: #0A7A45;
    opacity: 1;
}

/* Featured article title */
.opla-cat-featured__title {
    color: #0D2B1A;
}

.opla-cat-featured__title:hover {
    color: #0A7A45;
    opacity: 1;
}

/* Featured article meta */
.opla-cat-featured__meta {
    color: #3A6B50;
}

/* Small list item divider */
.opla-cat-small-item {
    border-bottom: 1px solid #C6EDD8;
}

.opla-cat-small-item__title {
    color: #0D2B1A;
}

.opla-cat-small-item__title:hover {
    color: #0A7A45;
    opacity: 1;
}

.opla-cat-small-item__meta {
    color: #3A6B50;
}

/* Bottom bar */
.opla-bottom-bar {
    border-top: 1px solid #C6EDD8;
}

.opla-bottom-col__heading {
    color: #0D2B1A;
    border-bottom: 2px solid #0A7A45;
}

.opla-bottom-col__title {
    color: #0D2B1A;
}

.opla-bottom-col__title:hover {
    color: #0A7A45;
    opacity: 1;
}

.opla-bottom-col__date {
    color: #3A6B50;
}