/* News Module CSS */

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f1f5f9;
    /* surface-variant */
    color: #475569;
    /* secondary */
    font-size: 14px;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.cat-pill:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.cat-pill.active {
    background-color: #1b4f72;
    color: #ffffff;
    border-color: #1b4f72;
    box-shadow: 0 2px 4px rgba(27, 79, 114, 0.15);
}

.featured-news-card {
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.featured-news-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.news-card {
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.article-content {
    color: #334155;
    line-height: 1.8;
    font-size: 17px;
}

.article-content p {
    margin-bottom: 1.5em;
}

/* Drop cap for first paragraph of article body */
.article-content p:first-of-type::first-letter,
#news-bodyhtml p:first-of-type::first-letter {
    font-size: 4.5em;
    font-weight: 900;
    line-height: 0.8;
    color: #1b4f72;
    float: left;
    margin-right: 0.15em;
    margin-top: 0.05em;
}

.article-content h2,
.article-content h3 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Custom Pagination styling */
.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.pagination li a:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.pagination li.active span {
    background-color: #1b4f72;
    border-color: #1b4f72;
    color: #ffffff;
}

.pagination li.disabled span,
.pagination li.disabled a {
    color: #cbd5e1;
    border-color: #f1f5f9;
    background-color: #f8fafc;
    cursor: not-allowed;
}

/* Flexbox ordering helpers */
.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.order-3 {
    order: 3;
}

/* Newsletter Block styling */
.newsletter-block {
    background: #1b4f72;
    background: linear-gradient(135deg, #153e5a 0%, #2b5370 100%);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(27, 79, 114, 0.1);
}

.newsletter-block-mail-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.newsletter-block-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
}

.newsletter-block-des {
    color: #e0f2fe;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
    gap: 12px;
}

@media (min-width: 640px) {
    .newsletter-form-container {
        flex-direction: row;
    }
}

.newsletter-input-email {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.newsletter-input-email::placeholder {
    color: #93c5fd;
}

.newsletter-input-email:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-btn-subscribe {
    background-color: #facc15;
    color: #1b4f72;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.newsletter-btn-subscribe:hover {
    background-color: #eab308;
}

/* Featured card image / text width ratio overrides */
.featured-news-card-image {
    width: 100%;
}

.featured-news-card-text {
    width: 100%;
}

@media (min-width: 1024px) {
    .featured-news-card {
        height: 400px !important;
        /* Limit height to 380px */
    }

    .featured-news-card-image {
        width: 59% !important;
        /* Make image larger */
        height: 100% !important;
    }

    .featured-news-card-text {
        width: 41% !important;
        /* Make text columns smaller */
        height: 100% !important;
        padding: 40px 48px !important;
        /* Spacious padding */
    }
}

/* Featured card meta text styling */
.featured-news-card-meta {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    /* light grey */
    text-transform: none !important;
    /* no uppercase */
}

/* Grid card meta text styling */
.news-card-meta {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    /* light grey */
    text-transform: none !important;
    /* no uppercase */
}

/* Title and Read-more link default & hover colors */
.featured-news-card h2 a,
.news-card h3 a {
    color: #0f172a !important;
    /* slate-900 */
    transition: color 0.2s ease;
}

.featured-news-card:hover h2 a,
.featured-news-card h2 a:hover,
.news-card:hover h3 a,
.news-card h3 a:hover {
    color: #1b4f72 !important;
    /* Brand blue hover */
}

.read-more-link {
    color: #1b4f72 !important;
    /* Brand blue default */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: color 0.2s ease;
    text-decoration: none;
}

.read-more-link:hover {
    color: #0f3652 !important;
    /* Darker blue hover */
    text-decoration: none;
}

/* Detail page layout structure */
.news-detail-container {
    padding-top: 110px !important; /* Offset the sticky website header */
    padding-bottom: 80px !important;
    background-color: #ffffff;
}

/* Share button round icons */
.share-btn-facebook {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #1877f2 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}
.share-btn-facebook:hover {
    background-color: #166fe5 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.share-btn-linkedin {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #0077b5 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}
.share-btn-linkedin:hover {
    background-color: #006396 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.share-btn-whatsapp {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: #25d366 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
}
.share-btn-whatsapp:hover {
    background-color: #20ba5a !important;
    color: #ffffff !important;
    text-decoration: none !important;
}