/*
    Catarinorte Jornal
    Desenvolvido por Carlos Eduardo Aschenberger (21) 99590-9669
*/

body {
    font-family: Raleway, sans-serif;
    background-color: #F9F9F9;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    /*height: 2000px;*/ /* apenas para demonstrar a rolagem */
}

p a {
    color: #808080;
}

/*    p a:hover {
        color: #FFF;
    }
*/

    .principal {
        padding: 50px 20px 50px 20px;
    }

    @media screen and (max-width: 768px) {
        .principal {
            padding: 20px 20px 0px 20px;
        }
    }

    /*
    BANNERS ---------------------------------------------
*/
    .banner {
        margin: 0 0 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
    }

        .banner .outdoor {
            width: 970px;
            border: 2px solid black;
            max-width: 100%;
        }

        .banner .retangulomedio {
            width: 300px;
            border: 2px solid black;
            max-width: 100%;
        }

    .banner-item img {
        border: 1px solid black;
    }

/*
    NAVBAR ----------------------------------------------
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

    .navbar {
        width: 100%;
        background-color: #24424A;
        color: white;
        padding: 15px 0;
        position: fixed;
        top: -70px; /* esconde a barra inicialmente */
        transition: top 0.4s ease-out;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

        .navbar.visible {
            top: 0;
        }

    .navbar-content {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: #4CAF50;
    }

    .nav-links {
        display: flex;
        list-style: none;
    }

        .nav-links a {
            color: white;
            text-decoration: none;
            padding: 10px 15px;
            transition: all 0.3s;
            border-radius: 4px;
        }

            .nav-links a:hover {
                color: #4CAF50;
                background-color: rgba(255,255,255,0.1);
            }

    .nav-logo img {
        width: 150px;
    }

    .menu-toggle {
        display: none;
        cursor: pointer;
        font-size: 1.5rem;
    }

    /* Estilos para dispositivos móveis */
    @media screen and (max-width: 768px) {
        .navbar {
            padding: 10px 0;
        }

        .nav-links {
            position: fixed;
            top: 70px;
            left: -100%;
            width: 100%;
            height: calc(100vh - 70px);
            background-color: #333;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding-top: 20px;
            transition: left 0.5s;
        }

            .nav-links.active {
                left: 0;
            }

            .nav-links li {
                margin: 15px 0;
            }

        .menu-toggle {
            display: block;
        }
    }
    /*
    /NAVBAR ----------------------------------------------
*/
    .secoes {
        width: 100%;
        display: flex;
        justify-content: center;
        padding-top: 10px;
        font-weight: bold;
        background-color: white;
    }

        .secoes a {
            color: white;
            text-decoration: none;
        }

            .secoes a:hover {
                color: #4CAF50;
            }

        .secoes spam {
            width: 90%;
            background-color: #005C4F;
            color: white;
            padding: 10px;
            border-radius: 30px;
            margin: 0 auto;
            font-size: 14px;
        }

    .titulo {
        background-color: white;
        text-align: center;
        padding: 20px;
    }

        .titulo subtitulo {
            color: #F9A64A;
            font-family: Arial;
            font-size: 40px;
            font-weight: 900;
        }

        .titulo img {
            width: 970px; /* 500px */
            max-width: 100%;
            margin-bottom: 10px;
        }

        .titulo caderno {
            margin-bottom: 20px;
        }

            .titulo caderno img {
                width: 250px;
                max-width: 90%;
                margin-bottom: 10px;
            }

    .rodape {
        margin-top: 50px;
        width: 100%;
        height: 180px;
        background-color: #24424A;
        padding: 20px;
        color: white;
        font-size: 12px;
    }

        .rodape img {
            width: 150px;
        }

        .rodape a {
            color: white;
            text-decoration: none;
            font-weight: bold;
        }

            .rodape a:hover {
                color: #4CAF50;
            }

    .social img {
        width: 20px;
        margin-left: 10px;
    }

    .esquerda {
        display: inline;
        width: 50%;
        float: left;
    }

    .direita {
        display: inline;
        width: 50%;
        float: right;
    }

    .compart_icones {
        width: 100%;
        text-align: center;
    }

        .compart_icones img {
            width: 20px;
            margin: 10px;
        }

    .centralizado {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%; /* Define a largura da tela inteira */
    }

    .duascolunas21 {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Duas colunas com proporção 2 / 1 */
        gap: 20px;
        width: 100%;
        padding: 0 30px 0 30px;
        color: gray;
        font-size: 18px;
        font-weight: bold;
    }
        .duascolunas21 destaques {
            background-color: white;
            padding: 18px 20px 10px 20px;
            border: 2px solid lightgray;
            margin-top: 50px;
            display: block;
        }
            .duascolunas21 destaques img {
                width: 100%;
                border-radius: 8px;
            }
            .duascolunas21 destaques p {
                color: #005C4F;
                font-size: 18px;
                margin-bottom: -10px;
            }
        .duascolunas21 h2 {
            color: #24424A;
            font-size: 22px;
            margin-bottom: 15px;
        }
        .duascolunas21 hr {
            height: 1px;
            margin: 20px 0 20px 0;
            background-color: gray;
            border: 0;
        }
        .duascolunas21 a {
            text-decoration: none;
            color: #005C4F;
        }

    .duascolunas11 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Duas colunas com proporção 1 / 1 */
        gap: 0 30px;
        width: 100%;
        padding: 10px 20px 10px 20px;
        color: #005C4F;
        font-size: 22px;
        font-weight: bold;
        align-items: start; /* Alinha o conteúdo na parte superior */
        margin-top: 30px;
    }
        .duascolunas11 img {
            width: 100%;
            max-width: 800px;
            border-radius: 8px;
            margin: 10px 0 10px 0;
        }
        .duascolunas11 a {
            text-decoration: none;
            color: #005C4F;
        }
        .duascolunas11 span {
            background-color: white;
            padding: 20px;
        }
        .duascolunas11 manchete {
            font-size: 30px;
        }

    .umacoluna {
        display: grid;
        grid-template-columns: 1fr; /* Uma coluna */
        width: 800px;
        max-width: 100%;
        /*padding: 10px 30px 10px 30px;*/
        padding: 20px 20px 10px 20px;
        color: #005C4F;
        font-size: 22px;
        font-weight: bold;
    }
        .umacoluna img {
            width: 100%;
            border-radius: 8px;
            margin: 20px 0 10px 0;
        }
        .umacoluna a {
            text-decoration: none;
            color: #005C4F;
        }
        .umacoluna span {
            background-color: white;
            padding: 20px;
        }
        .umacoluna manchete {
            font-size: 30px;
        }

    @media screen and (max-width: 768px) {
        .duascolunas21 {
            grid-template-columns: 1fr; /* Uma coluna em telas menores */
        }
            .duascolunas21 hr {
                margin: 20px 0 0px 0;
            }
            .duascolunas21 destaques {
                margin-top: 0;
            }
                .duascolunas21 destaques p {
                    margin-top: 10px;
                }

        .duascolunas11 {
            grid-template-columns: 1fr; /* Uma coluna em telas menores */
            padding: 0;
        }
            .duascolunas11 manchete {
                font-size: 25px;
                line-height: 1;
            }
    }

    .basemateria {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .materia {
        width: 970px;
        max-width: 95%;
        color: black;
    }
        .materia p {
            font-size: 20px;
            line-height: 1.5;
            margin-bottom: 30px;
            text-align: left;
        }
        .materia legenda {
            font-size: 14px;
        }
        .materia resumo {
            font-size: 18px;
            line-height: 1;
            margin-bottom: 30px;
            text-align: left;
        }
        .materia h1 {
            font-size: 40px;
            line-height: 1;
            font-weight: bold;
            margin-top: 30px
        }
        .materia img {
            max-width: 100%;
            border-radius: 16px;
        }
        .materia .icone {
            width: 25px;
            border-radius: 4px;
            margin: 5px;
        }
        .materia .span {
            font-size: 12px;
        }
        .materia headimg {
            display: table;
            float: left;
            max-width: 50%;
            max-height: 50%;
            height: auto;
            margin: 0 2rem 0 0;
            border-radius: 16px;
            background-color: transparent;
        }
            .materia headimg img {
                display: block; /* Garante que a imagem ocupe toda a largura disponível */
                max-width: 100%;
                border-radius: 16px;
            }
            .materia headimg legenda {
                display: table-caption;
                caption-side: bottom;
                font-size: 14px;
                color: #555;
                text-align: left;
                margin-top: -20px;
            }
        .materia trailimg {
            display: table;
            float: right;
            max-width: 50%;
            max-height: 50%;
            height: auto;
            margin:  0 0 0 2rem;
            border-radius: 16px;
            background-color: transparent;
        }
            .materia trailimg img {
                display: block; /* Garante que a imagem ocupe toda a largura disponível */
                max-width: 100%;
                border-radius: 16px;
            }
            .materia trailimg legenda {
                display: table-caption;
                caption-side: bottom;
                font-size: 14px;
                color: #555;
                text-align: left;
                margin-top: -20px;
            }

    @media screen and (max-width: 768px) {
        .materia p {
            font-size: 18px;
        }
        .materia h1 {
            font-size: 30px;
            letter-spacing: 0;
            margin-top: 15px;
        }
        .materia headimg {
            float: none;
            display: block;
            margin: 0 auto 1rem auto;
        }
        .materia trailimg {
            float: none;
            display: block;
            margin: 0 auto 1rem auto;
        }
    }

    .imgzoom {
        transition: transform 0.2s ease;
        transform-origin: center; /* Ou 'top left' dependendo do efeito desejado */
        display: inline-block; /* Evita que elementos ao redor se movam */
    }

        .imgzoom:hover {
            transform: scale(1.02); /* Aumenta em 1% (1.0 = 100%, 1.01 = 101%) */
        }


    /*
    /ANÚNCIOS --------------------------------------------
   */
    .ads-container {
        text-align: center;
    }

    #bannerprincipal {
        width: 970px;
        height: auto;
    }

    #bannerintermediario {
        width: 970px;
        height: auto;
    }

    .admanuncios-container {
        display: inline-block;
        width: 300px;
        margin: 10px;
        text-align: center;
    }

        .admanuncios-container img {
            width: 180px;
            height: auto;
            border: 1px solid #ccc;
        }

    .admanuncios-paginacao {
        margin-top: 20px;
    }

    .container-banners {
        width: 970px;
        margin: 0 auto; /* Centraliza na página */
        display: flex;
        justify-content: space-between; /* Distribuição uniforme */
        /* flex-wrap: wrap; */ /* Garante responsividade */
        flex-wrap: nowrap; /* Sem quebra de linha */
        padding-top: 30px;
    }

    .banners-rodape {
        /* width: 300px; */
        width: 470px;
        height: auto;
    }

    .banners-intermediarios {
        width: 470px;
        height: auto;
    }

    @media (max-width: 970px) {
        .container-banners {
            width: 100%;
            justify-content: center; /* Centraliza quando menor que 970px */
        }

        .banners-rodape {
            width: 100%; /* Ajusta largura em telas menores */
            margin-bottom: 20px;
        }

        .banners-intermediarios {
            width: 100%; /* Ajusta largura em telas menores */
            margin-bottom: 20px;
        }
    }

    /*
    GRID ADMBANNERS ----------------------------------
    */
    .gridbanners-col-pagina {
        width: 8%;
    }
    .gridbanners-col-localizacao {
        width: 11%;
    }
    .gridbanners-col-data {
        width: 12%;
    }
    .gridbanners-col-link {
        width: 25%;
    }
    .gridbanners-col-imagem {
        width: 12%;
    }
    .gridbanners-col-acoes {
        width: 20%;
    }
    .table-fixed {
        table-layout: fixed;
        width: 100%;
    }
    .table-fixed td, .table-fixed th {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        vertical-align: top;
    }
    /* Para texto muito longo, adicione scroll horizontal na célula */
    .text-overflow {
        max-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    /* Para permitir quebra de linha */
    .text-wrap {
        white-space: normal !important;
        word-break: break-word;
    }

    /*
    /TICKER ----------------------------------------------
    */
    .ticker-container {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        background: #005C4F;
        color: #fff;
        font-size: 18px;
        box-sizing: border-box;
    }

    .ticker-text {
        display: inline-block;
        padding-left: 100%;
        animation: ticker 40s linear infinite;
    }

    @keyframes ticker {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-100%);
        }
    }
