/* === Profile picture styles === */
.profile-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 100%;
}

.author-pic {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 30%;
}

/* === Container styling for custom dropdown === */
.custom-dropdown-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

/* === Custom select styling === */
.custom-select {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: inherit;
}

.custom-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.custom-select option:first-child {
    font-weight: bold;
    color: #007bff;
}

.custom-select option {
    padding: 10px;
    background-color: #fff;
    color: #333;
}

.custom-select option:hover {
    background-color: #f1f1f1;
}

/* Dark mode dropdown */
.theme-dark .custom-select {
    background-color: #333;
    color: #fff;
}
.theme-dark .custom-select option {
    color: #fff;
    background-color: #333;
}
.theme-dark .custom-select option:hover {
    background-color: #555;
}

.custom-select option:first-child::after {
    content: ' ▼';
    color: #007bff;
}

.custom-select::-ms-expand {
    display: none;
}
.custom-select::-webkit-appearance: none;
-moz-appearance: none;
appearance: none;

/* === News and post action styles === */
.news-para {
    margin-bottom: 20px;
}
.post-actions {
    margin-top: 20px;
}
.share-section {
    margin-top: 20px;
}
.share-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.share-buttons {
    margin-top: 10px;
}
.share-button {
    display: inline-block;
    margin-right: 5px;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}
.share-button.small {
    padding: 6px 12px;
    font-size: 12px;
}
.share-button.facebook {
    background-color: #3b5998;
}
.share-button.facebook:hover {
    background-color: #2d4373;
}
.share-button.twitter {
    background-color: #1da1f2;
}
.share-button.twitter:hover {
    background-color: #0d95e8;
}
.share-button.linkedin {
    background-color: #0077b5;
}
.share-button.linkedin:hover {
    background-color: #005582;
}
.share-button.whatsapp {
    background-color: #25d366;
}
.share-button.whatsapp:hover {
    background-color: #1ab453;
}

#like-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}
#like-button:hover {
    background-color: #0056b3;
}

/* Theme light and dark mode service link colors */
.theme-light .service-link {
    color: #001c3d;
}
.theme-dark .service-link {
    color: white;
}
.service-link:hover {
    color: #08db84;
}

/* === 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 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;
    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;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.news-details-wrapper h6 {
    font-size: 16px;
    line-height: 1.3;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}

/* === MOBILE SIZES === */
@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; }
}

/* === Elegant Section Box === */
.section-box {
    background: #f8f9fa;
    border: 2px solid #08db84;
    border-left: 6px solid #08db84;
    padding: 22px 26px;
    border-radius: 12px;
    margin: 34px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: #08db84;
    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: #08db84;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
    }
}

/* Section title */
.section-box .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #08db84;
    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: #08db84;
    border-radius: 6px;
}
@media (prefers-color-scheme: dark) {
    .section-box .section-title {
        color: #08db84;
    }
    .section-box .section-title::after {
        background-color: #0089e5;
    }
}

/* Links inside section box */
.section-box a {
    color: #08db84;
    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 inside section box */
.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 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 border animation */
@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; }
}

/* Section box mobile font adjustments */
@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;
    }
}
