﻿/* ===== Global Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.4;
    font-size: 19px;
}

/* ===== Links & Shared Styles ===== */
.article-body a,
.article-preface a,
.featured a.read-more,
.news-card .read-more {
    color: #0d1c47;
    text-decoration: none;
    font-weight: bold;
}

.featured h2 a,
.news-card h3 a,
.more-news ul li a,
.widget ul li a {
    color: #000;
    text-decoration: none;
}

    .featured h2 a:hover,
    .news-card h3 a:hover,
    .more-news ul li a:hover,
    .widget ul li a:hover {
        text-decoration: underline;
    }

.more-news ul li a,
.widget ul li a {
    transition: color 0.3s;
}

    .more-news ul li a:hover,
    .widget ul li a:hover {
        color: #0d1c47;
    }

/* ===== Header ===== */
header {
    background: #0d1c47;
    color: #fff;
    padding: 12px 20px;
    text-align: center;
}

    header h1 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1.8em;
        letter-spacing: 1px;
    }

        header h1 i {
            margin-right: 8px;
        }

    header p {
        font-size: 0.8em;
        margin-top: 3px;
    }

.header-logo {
    height: 1.5em;
    vertical-align: middle;
    margin-right: 8px;
    width: auto;
}

/* ===== Navigation ===== */
nav {
    background: #000;
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

    nav a,
    nav .dropbtn {
        color: #fff;
        text-decoration: none;
        margin: 0 12px;
        font-weight: bold;
        font-size: 0.85em;
        display: inline-block;
        cursor: pointer;
        transition: all 0.3s;
    }

        nav a:hover,
        nav .dropbtn:hover {
            text-decoration: underline;
        }

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 200;
    overflow: hidden;
}

    .dropdown-content a {
        color: #000;
        padding: 8px 14px;
        text-decoration: none;
        display: block;
        text-align: left;
        font-weight: normal;
        font-size: 0.8em;
        margin: 0;
        transition: background 0.2s;
    }

        .dropdown-content a:hover {
            background: #f0f0f0;
            text-decoration: none;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== Main Layout ===== */
.container {
    max-width: 1920px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.main-content {
    flex: 2.7;
    min-width: 300px;
    order: 2;
}

.sidebar {
    flex: 1;
    min-width: 220px;
}

.left-sidebar {
    order: 1;
}

.sidebar:not(.left-sidebar) {
    order: 3;
}

/* ===== Cards & Widgets Common ===== */
.featured,
.news-card,
.more-news,
.sidebar .widget {
    background: #fff;
    border: 1px solid #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.more-news,
.sidebar .widget {
    padding: 15px;
    margin-bottom: 15px;
}

.featured,
.news-card {
    overflow: hidden;
}

    /* Images */
    .featured .img-link,
    .news-card a.img-link {
        display: block;
    }

    .news-card a.img-link {
        line-height: 0;
    }

    .featured .img-link img,
    .news-card img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .featured .img-link img {
        height: 100%;
    }

    .news-card img {
        height: 150px;
    }

/* ===== Featured Block ===== */
.featured {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 15px;
}

    .featured .img-link {
        flex: 0 0 40%;
        min-width: 200px;
        min-height: 244px;
        max-height: 464px;
        overflow: hidden;
    }

    .featured .feat-text {
        padding: 15px;
        flex: 1;
        min-width: 250px;
    }

        .featured .feat-text span {
            background: #0d1c47;
            color: #fff;
            padding: 3px 8px;
            font-size: 0.7em;
            text-transform: uppercase;
        }

    .featured h2 {
        font-size: 1.3em;
        margin: 8px 0;
    }

    .featured p {
        color: #000;
        font-size: 0.85em;
        margin-bottom: 8px;
    }

    .featured ul.featured-links {
        list-style: none;
        margin-top: 6px;
        padding-top: 8px;
        border-top: 1px solid #000;
    }

        .featured ul.featured-links li {
            margin-bottom: 4px;
        }

            .featured ul.featured-links li a {
                font-size: 0.8em;
                color: #000;
                text-decoration: none;
                font-weight: bold;
                display: block;
                transition: color 0.3s;
            }

                .featured ul.featured-links li a:hover {
                    color: #0d1c47;
                    text-decoration: underline;
                }

    .featured a.read-more {
        font-size: 0.85em;
        display: inline-block;
        margin-bottom: 8px;
    }

.news-card .read-more {
    font-size: 0.8em;
}

.featured a.read-more i {
    margin-left: 4px;
}

.news-card .read-more i {
    margin-left: 3px;
}

.featured a.read-more i,
.news-card .read-more i {
    transition: transform 0.2s;
}

.featured a.read-more:hover i,
.news-card .read-more:hover i {
    transform: translateX(3px);
}

/* ===== News Grid & Cards ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.news-card {
    transition: background-color 0.2s, box-shadow 0.2s;
}

    .news-card:hover {
        background-color: #f5f5f5;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

    .news-card .card-body {
        padding: 10px;
    }

        .news-card .card-body span {
            font-size: 0.7em;
            color: #0d1c47;
            text-transform: uppercase;
            font-weight: bold;
        }

    .news-card h3 {
        font-size: 0.95em;
        margin: 5px 0;
        line-height: 1.2;
    }

    .news-card p {
        font-size: 0.78em;
        color: #000;
        margin-bottom: 4px;
    }

/* ===== More News List ===== */
.more-news ul {
    columns: 2;
    column-gap: 20px;
    list-style: none;
}

    .more-news ul li {
        break-inside: avoid;
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

        .more-news ul li a {
            font-size: 0.85em;
            display: block;
        }

/* ===== Sidebar Widgets ===== */
.widget h3 i {
    margin-right: 6px;
    color: #0d1c47;
}

.widget ul {
    list-style: none;
}

    .widget ul li {
        padding: 6px 0;
        border-bottom: 1px solid #000;
        font-size: 0.82em;
    }

        .widget ul li .recent-date {
            color: #555;
            margin-top: 3px;
            display: block;
        }

            .widget ul li .recent-date i {
                margin-right: 4px;
                color: #0d1c47;
            }

/* ===== Social Buttons ===== */
.social-buttons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    flex: 1;
    justify-content: center;
    min-width: 80px;
}

.x-bg, .tiktok-bg {
    background: #000;
}

.telegram-bg {
    background: #0088cc;
}

.youtube-bg {
    background: #ff0000;
}

.follow-text {
    font-size: 0.8em;
    color: #000;
    margin-bottom: 10px;
}

/* ===== Trending / Similar Topics ===== */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

    .trending-item:hover {
        color: #0d1c47;
    }

    .trending-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        flex-shrink: 0;
    }

.trending-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trending-title {
    font-size: 0.82em;
    line-height: 1.3;
    color: #000;
}

.trending-sub {
    font-size: 0.7em;
    color: #888;
    font-family: Arial, sans-serif;
    font-style: italic;
}

/* ===== Footer ===== */
footer {
    background: #0d1c47;
    color: #fff;
    padding: 25px 15px;
    margin-top: 20px;
    font-size: 0.8em;
}

    footer a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }

        footer a:hover {
            text-decoration: underline;
        }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

    .footer-col h4 {
        color: #fff;
        margin-bottom: 10px;
        font-size: 0.9em;
    }

    .footer-col ul {
        list-style: none;
    }

        .footer-col ul li {
            margin-bottom: 5px;
        }

            .footer-col ul li a {
                transition: color 0.3s;
            }

.footer-social {
    display: flex;
    flex-direction: row;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-social li {
        margin: 0;
    }

    .footer-social .social-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        font-size: 1.2em;
        text-decoration: none;
        flex: unset;
        min-width: unset;
        gap: 0;
    }

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #fff;
}

/* ===== Headline Slider ===== */
.headline-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background: #000;
    margin-bottom: 20px;
}

    .headline-slider input[type="radio"] {
        display: none;
    }

.slides {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: calc(100% / 3);
    flex-shrink: 0;
}

    .slide img {
        width: 100%;
        aspect-ratio: 16/9;
        object-fit: cover;
        display: block;
    }

.headline-slider .controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

    .headline-slider .controls label {
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.6);
        cursor: pointer;
        border: 2px solid #fff;
        transition: background 0.3s;
    }

        #slide1:checked ~ .controls label[for="slide1"],
        #slide2:checked ~ .controls label[for="slide2"],
        #slide3:checked ~ .controls label[for="slide3"],
        .headline-slider .controls label:hover {
            background: #fff;
        }

#slide1:checked ~ .slides {
    transform: translateX(0);
}

#slide2:checked ~ .slides {
    transform: translateX(-33.3333%);
}

#slide3:checked ~ .slides {
    transform: translateX(-66.6666%);
}

/* ===== Headlines Module ===== */
.headlines-module .headline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.headline-item {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    text-decoration: none;
    color: #fff;
}

    .headline-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.headline-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 25px 10px 8px;
}

.hl-title {
    display: block;
    font-weight: bold;
    font-size: 0.85em;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.hl-sub {
    display: block;
    font-size: 0.72em;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    color: #eee;
    margin-top: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

.headline-item:hover img {
    filter: brightness(0.9);
}

/* ===== Article Specific ===== */
.article-preface {
    font-size: 0.85em;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

    .article-preface .author {
        font-weight: bold;
    }

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}

    .article-body p {
        margin-bottom: 1.2em;
    }

.article-headline h1 {
    font-family: Arial, sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 8px;
    color: #000;
}

.article-headline .subtitle {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

/* ===== Section Headings ===== */
.more-news h3,
.widget h3 {
    border-bottom: 2px solid #0d1c47;
    padding-bottom: 6px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #000;
}

/* ===== Interested Section ===== */
.interested-section {
    background: #f5f5f5;
    border-top: 2px solid #ddd;
    padding: 30px 0;
    margin: 20px 0 0 0;
}

.interested-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    box-sizing: border-box;
}

.interested-title {
    text-align: left;
    font-size: 1.6em;
    margin: 0 0 20px;
    color: #0d1c47;
}

.interested-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

    .interested-grid .news-card .card-body {
        padding: 8px;
    }

    .interested-grid .news-card h3 {
        font-size: 0.85em;
    }

    .interested-grid .news-card p {
        font-size: 0.75em;
    }

body > footer {
    margin-top: 0;
}

/* ===== Utility Classes ===== */
.p1 {
    border-left: 4px solid #0d1c47;
    padding: 12px 20px;
    margin: 25px 0;
    background: #f6f6f6;
    font-style: italic;
    color: #222;
}

.text-center {
    text-align: center;
}

.world_middle_inner_1 {
    font-family: Georgia, "Times New Roman", serif;
}

/* ===== Ad Styles ===== */
.ad-image-container {
    position: relative;
    overflow: hidden;
    display: block;
}

    .ad-image-container img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

.ad-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d1c47;
    color: #fff;
    padding: 8px 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.3s;
}

    .ad-btn:hover {
        background: #193a6b;
    }

/* ===== Share Buttons ===== */
.preface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

    .preface-header p {
        margin: 0;
    }

.share-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .share-buttons span {
        font-size: 0.8em;
        color: #555;
        margin-right: 4px;
    }

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

    .share-btn:hover {
        opacity: 0.8;
    }

.facebook-bg {
    background: #1877f2;
}

.whatsapp-bg {
    background: #25d366;
}

/* ===== More Articles rows ===== */
.row-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

.main-title {
    font-weight: bold;
    font-size: 1em;
    color: #000;
    text-decoration: none;
}

.row-meta-header {
    font-size: 0.75em;
    color: #777;
    white-space: nowrap;
}

.row-subtitle {
    font-size: 0.85em;
    color: #555;
    margin-top: 3px;
    display: block;
}

.row-preview {
    font-size: 0.82em;
    color: #333;
    margin-top: 4px;
    line-height: 1.3;
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
    .interested-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .container {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .main-content {
        flex: 1 1 100%;
        order: 0;
        width: 100%;
    }

    .sidebar {
        flex: 1 1 45%;
        min-width: 200px;
    }

    .left-sidebar {
        order: -1;
    }

    .container.article-layout .left-sidebar {
        order: 1;
    }

    .sidebar:not(.left-sidebar) {
        order: 2;
    }
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        min-width: 0;
        width: 100%;
        flex: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .more-news ul {
        columns: 1;
    }

    .interested-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured {
        flex-direction: column;
    }

        .featured .img-link {
            flex: 0 0 100%;
            min-width: 100%;
            max-height: none;
            min-height: auto;
        }

            .featured .img-link img {
                height: auto;
            }
}
/* contact page specific tweaks – keep consistent with article style */
.contact-section {
    background: #fff;
    border: 1px solid #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

    .contact-section h2 {
        border-bottom: 2px solid #0d1c47;
        padding-bottom: 6px;
        margin-bottom: 15px;
        font-size: 1.4em;
        color: #000;
    }

.contact-top {
    margin-bottom: 20px;
}

    .contact-top h3 {
        font-size: 1em;
        margin: 20px 0 8px 0;
        border-bottom: none;
        padding-bottom: 0;
    }

        .contact-top h3 i {
            margin-right: 6px;
            color: #0d1c47;
        }

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .social-links .social-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.contact-notice {
    background: #f8f8f8;
    border-left: 4px solid #0d1c47;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-style: italic;
    color: #444;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    font-family: inherit;
    font-size: 0.9em;
    border: 1px solid #000;
    background: #e9e9e9;
    cursor: not-allowed;
    color: #555;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .submit-btn {
    background: #0d1c47;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    cursor: not-allowed;
    opacity: 0.6;
    font-size: 0.9em;
}
/* for email obfuscation: the span is replaced by JS, but default show nothing */
.obfuscate-email {
    font-family: Arial, sans-serif;
}

@media (max-width: 600px) {
    .social-links {
        flex-direction: column;
    }

        .social-links .social-btn {
            width: 100%;
            flex: none;
            justify-content: center;
        }
}

.obfuscate-email a {
    text-decoration: none;
    font-weight: bold;
    color: #0d1c47;
}
