/* Antejas News & Newsletter — Isolated Styles (.anews-*) */

.anews-home-section {
    background-color: var(--bg-light, #f8fafc);
    border-top: 1px solid var(--border, #e2e8f0);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.anews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.anews-card {
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(15, 23, 42, 0.06));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anews-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 8px 20px rgba(15, 23, 42, 0.1));
}

.anews-card-img {
    display: block;
    height: 185px;
    overflow: hidden;
    background: var(--bg-alt, #f1f5f9);
}

.anews-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anews-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.anews-card-date {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 6px;
}

.anews-card-title {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.35;
}

.anews-card-title a {
    color: var(--dark, #0f172a);
}

.anews-card-title a:hover {
    color: var(--primary, #0866c6);
}

.anews-card-excerpt {
    font-size: 0.93rem;
    color: var(--text, #334155);
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}

.anews-card-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary, #0866c6);
    align-self: flex-start;
}

.anews-all-wrap {
    text-align: center;
    margin-top: 26px;
}

.anews-all-btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: var(--radius-full, 9999px);
    border: 1px solid var(--primary, #0866c6);
    color: var(--primary, #0866c6);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.anews-all-btn:hover {
    background: var(--primary, #0866c6);
    color: #ffffff;
}

.anews-empty {
    text-align: center;
    color: var(--text-muted, #64748b);
    margin: 12px 0 24px;
}

/* Compact 1-Row Subscribe Bar */
.anews-subscribe-box {
    margin-top: 32px;
    background: var(--bg-white, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    padding: 20px 26px;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.05));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.anews-subscribe-text {
    color: var(--secondary, #0f2744);
    font-size: 0.98rem;
    flex: 1 1 280px;
}

.anews-subscribe-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 360px;
    justify-content: flex-end;
}

.anews-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.anews-sub-input {
    flex: 1 1 200px;
    min-width: 170px;
    padding: 10px 14px;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.95rem;
    background: #fff;
    color: var(--dark, #0f172a);
}

.anews-sub-lang {
    padding: 10px 10px;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: var(--radius-sm, 8px);
    background: var(--bg-light, #f8fafc);
    color: var(--dark, #0f172a);
    font-weight: 600;
    font-size: 0.9rem;
}

.anews-sub-btn {
    padding: 10px 22px;
    background: var(--primary, #0866c6);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.anews-sub-btn:hover:not(:disabled) {
    background: var(--primary-hover, #064ea0);
}

.anews-sub-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.anews-sub-feedback {
    width: 100%;
    font-size: 0.92rem;
    font-weight: 600;
    display: none;
}

.anews-sub-feedback.is-ok {
    display: block;
    color: #15803d;
}

.anews-sub-feedback.is-err {
    display: block;
    color: #b91c1c;
}

/* Standalone Archive & Single Article */
.anews-standalone-wrap {
    padding-top: calc(var(--header-height, 95px) + 30px);
    padding-bottom: 70px;
    min-height: 75vh;
    background-color: var(--bg-light, #f8fafc);
}

.anews-back-pill {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary, #0866c6);
    background: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-full, 9999px);
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(0,0,0,.05));
}

.anews-article-card {
    background: #ffffff;
    border-radius: var(--radius-lg, 20px);
    border: 1px solid var(--border, #e2e8f0);
    padding: 40px;
    box-shadow: var(--shadow-md, 0 6px 16px rgba(15, 23, 42, 0.08));
}

.anews-article-date {
    font-size: 0.9rem;
    color: var(--text-muted, #64748b);
    margin-bottom: 8px;
}

.anews-article-title {
    margin: 0;
    color: var(--dark, #0f172a);
    font-size: 2rem;
    line-height: 1.25;
}

.anews-title-bar {
    width: 50px;
    height: 3px;
    background: var(--primary-gradient, #0866c6);
    border-radius: 2px;
    margin: 14px 0 26px;
}

.anews-article-hero {
    margin-bottom: 26px;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    max-height: 440px;
}

.anews-article-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.anews-article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text, #334155);
}

.anews-article-body p {
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .anews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .anews-grid {
        grid-template-columns: 1fr;
    }
    .anews-subscribe-form {
        flex-wrap: wrap;
        justify-content: stretch;
    }
    .anews-sub-input,
    .anews-sub-btn {
        width: 100%;
    }
    .anews-article-card {
        padding: 24px 18px;
    }
    .anews-article-title {
        font-size: 1.55rem;
    }
}
