/* =========================  
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f7fa;
    color: #1f2933;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}
.menu-toggle {
    display: none;
}
/* =========================
   MAIN
========================= */
main {
    flex: 1;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 16px;
}

/* =========================
   HEADER
========================= */
header {
    background: #0b1c2d;
    color: #fff;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================
   NAV
========================= */
nav {
    display: flex;
    gap: 18px;
}

nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

/* =========================
   BREAKING NEWS
========================= */
.breaking-news {
    background: #ffe0e0;
    border-left: 5px solid #ff4d4f;
    padding: 10px 16px;
    margin: 15px auto;
    max-width: 1200px;
    font-weight: 600;
}

.breaking-news a {
    color: #c62828;
    text-decoration: none;
    margin-right: 25px;
}

/* =========================
   LAYOUT
========================= */
.main-content {
    display: flex;
    gap: 25px;
}

.news-grid-left {
    flex: 3;
    display: grid;
    gap: 20px;
}

.sidebar {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

/* =========================
   ARTICLE
========================= */
article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

article img {
    width: 100%;
}

article h3 {
    font-size: 18px;
    margin: 12px;
}

article p {
    font-size: 14px;
    margin: 0 12px 15px;
    color: #555;
}


/* =========================
   CATEGORIAS (DESKTOP)
========================= */
.articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.articles article {
    flex: 0 1 calc(33.333% - 20px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.articles article:hover {
    transform: translateY(-3px);
}

.articles h3 {
    font-size: 16px;
    margin: 10px;
}

.articles a {
    color: #111;
    text-decoration: none;
}

/* =========================
   CONTINUE READING (FIX)
========================= */
.read-more {
    display: inline-block;
    font-size: 13px;
    color: #0b1c2d;
    font-weight: 600;
    text-decoration: none;
    margin: 8px 12px 12px;
    transition: 0.3s;
}

.read-more:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #0b1c2d;
    color: #aaa;
    text-align: center;
    padding: 15px;
    font-size: 13px;
}

/* =====================================================
   MOBILE (CORRIGIDO + INTUITIVO)
===================================================== */
@media (max-width: 768px) {

    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        position: relative;
    }

    header h1 {
        font-size: 12px;
        margin: 0;
    }

   .menu-toggle {
        display: block !important;
        font-size: 34px;
        font-weight: bold;
        color: #ffffff;
        cursor: pointer;
        z-index: 9999;
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background: #111;
        padding: 10px;
        border-radius: 10px;
        flex-direction: column;
        gap: 8px;
        min-width: 150px;
        z-index: 9998;
    }

    nav.active {
        display: flex;
    }

    nav a {
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        padding: 6px 8px;
        border-radius: 6px;
    }

    nav a:hover {
        background: rgba(255,255,255,0.1);
    }

    .breaking-news {
        font-size: 13px;
        padding: 10px;
        white-space: normal;
    }

    .main-content {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
    }

    .news-grid-left {
        flex: 2;
        display: grid;
        gap: 12px;
    }

    .sidebar {
        flex: 1;
        width: auto;
        padding: 10px;
        border-radius: 8px;
        font-size: 9px;
        position: sticky;
        top: 10px;
    }

    .articles {
        flex-direction: column;
        gap: 12px;
    }

    .articles article {
        flex: 1 1 100%;
        display: flex;
        flex-direction: row;
        height: 110px;
        border-radius: 12px;
        overflow: hidden;
    }

    .articles article img {
        width: 35%;
        height: 100%;
        object-fit: cover;
    }

    .articles article div {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #fff;
    }

    .articles h3 {
        font-size: 13px;
        line-height: 1.3;
        margin: 0;
        color: #111;
    }

    /* 🔥 CONTINUE READING NO MOBILE (POR BAIXO) */
    .read-more {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding: 8px 10px;
        background: #f1f5f9;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-align: left;
        color: #0b1c2d;
    }

    .read-more:active {
        transform: scale(0.98);
    }

    article h3 {
        font-size: 12px;
    }

    article p {
        font-size: 11px;
    }
}

/* =========================
   MOBILE EXTRA STYLES
========================= */
@media (max-width: 768px) {

    article {
        padding: 15px;
        margin: 0 10px 20px 10px !important;
    }

    h1 {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 15px !important;
    }

    img {
        width: 100% !important;
        height: auto !important;
        max-height: 250px !important;
        object-fit: cover !important;
        border-radius: 8px;
    }

    .article-content {
        font-size: 15px !important;
        line-height: 1.7 !important;
        color: #333;
    }

    .article-content p {
        margin-bottom: 14px !important;
        
    }
    .news-card {
    width: 98%;
    margin-bottom: 15px;
}
    .news-title a {
    color: #000 !important;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
      text-align: justify;
}
 .news-title a {
    color: #111 !important;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    display: block;        
    text-align: left;
    transition: 0.3s ease;
}
.news-image {
    width: 100% !important;
    height: 120px !important;  
    object-fit: cover;
    border-radius: 10px;
}
.news-image-wrapper {
    position: relative;
    width: 100%;
}
}
@media (max-width: 768px) {
    .article-content {
        font-size: 15px;
        line-height: 1.7;
        text-align: justify;
    }
}
