/* === BLOG CARD IMAGE === */
.blog-card-img-wrap img {
    height: 200px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* === BLOG CONTENT UL === */
.blog-content ul {
    list-style-type: disc !important;
    margin: 1em 0 !important;
    padding-left: 20px !important;
}

.blog-content ul li {
    margin-bottom: 0.5em !important;
}

/* === Elegant Section Box with Bootstrap Blue === */
.section-box {
    background: #f8f9fa;
    border: 2px solid #0d6efd;
    border-left: 6px solid #0d6efd;
    padding: 22px 26px;
    border-radius: 12px;
    margin: 34px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #0d6efd;
    font-size: 16px;
    line-height: 1.75;
    transition: all 0.3s ease;
}

.section-box > *:last-child {
    margin-bottom: 0 !important;
}

@media (prefers-color-scheme: dark) {
    .section-box {
        background: #1e1e1e;
        border-color: #0089e5;
        border-left: 6px solid #0089e5;
        color: #0d6efd;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
    }
}

/* === Section Title === */
.section-box .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-box .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 6px;
}

@media (prefers-color-scheme: dark) {
    .section-box .section-title {
        color: #cce4ff;
    }

    .section-box .section-title::after {
        background-color: #0089e5;
    }
}

/* === Links === */
.section-box a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-box a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .section-box a {
        color: #0089e5;
    }

    .section-box a:hover {
        color: #99ccff;
    }
}

/* === Lists === */
.section-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.section-box ul li {
    margin-bottom: 10px;
    list-style: disc;
}

.section-box > *:last-child {
    margin-bottom: 0 !important;
}

/* === Blinking Bold Red Text === */
.blink {
    animation: blink-animation 1s steps(2, start) infinite;
    color: white;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: 0.4px;
}

@keyframes blink-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === Pulsing Attention Border === */
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.ads-container {
    animation: pulse-border 3s infinite;
}

/* === Fade-In Animation === */
.fade-in {
    animation: fadeIn 1.2s ease-in-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* === Responsive Font Fix for Mobile === */
@media (max-width: 768px) {
    .section-box {
        font-size: 14.5px;
        padding: 18px 20px;
    }

    .section-box .section-title {
        font-size: 16px;
    }

    .blink {
        font-size: 15px;
    }

    .section-box ul li {
        margin-bottom: 8px;
    }
}

/* === TABLE STYLES (MAIN OVERRIDE) === */
.news-details-wrapper table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1rem 0 !important;
    background: #fff !important;
    font-size: 15px !important;
    border: 2px solid #ddd !important;
    table-layout: auto !important;
}


.news-details-wrapper.blog-content table th {
    background: #236FA1 !important;
    color: #fff !important;
    text-align: left !important;
    font-weight: 600 !important;
    padding: 12px !important;
    border: 2px solid #ddd !important;
}


.news-details-wrapper table td {
    padding: 10px !important;
    border: 2px solid #ddd !important;
}

.news-details-wrapper table tr:nth-child(even) {
    background: #f9f9f9 !important;
}

@media (max-width: 768px) {
    .news-details-wrapper table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}

.news-details-wrapper h2 {
    color: #236FA1;
    font-size: 28px; /* Bigger for main sections */
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.news-details-wrapper h3 {
    color: #236FA1;
    font-size: 24px;
    line-height: 1.4;
    margin-top: 1.3rem;
    margin-bottom: 0.8rem;
}

.news-details-wrapper h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 1.1rem;
    margin-bottom: 0.6rem;
}

.news-details-wrapper h5 {
    font-size: 18px;
    line-height: 1.4;
}

.news-details-wrapper h6 {
    font-size: 16px;
    line-height: 1.3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .news-details-wrapper h2 { font-size: 24px; }
    .news-details-wrapper h3 { font-size: 22px; }
    .news-details-wrapper h4 { font-size: 19px; }
    .news-details-wrapper h5 { font-size: 17px; }
    .news-details-wrapper h6 { font-size: 15px; }
}

