﻿

:root {
    --sesc-blue: #1f66d1;
    --sesc-blue-dark: #174ea6;
}


.btn-sesc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .40rem .85rem; 
    line-height: 1.1;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid var(--sesc-blue);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

    .btn-sesc i {
        font-size: 1rem;
        line-height: 1;
    }


.btn-sesc-primary {
    background: var(--sesc-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(31,102,209,.22);
}

    .btn-sesc-primary:hover {
        background: var(--sesc-blue-dark);
        border-color: var(--sesc-blue-dark);
        color: #fff;
        box-shadow: 0 6px 16px rgba(23,78,166,.28);
    }

.btn-sesc-outline {
    background: #fff;
    color: var(--sesc-blue);
}

    .btn-sesc-outline:hover {
        background: var(--sesc-blue);
        color: #fff;
    }

.btn-sesc:active {
    transform: scale(.98);
}

.btn-sesc:focus-visible {
    outline: 3px solid rgba(31,102,209,.35);
    outline-offset: 2px;
}


.btn-sesc-sm {
    padding: .32rem .70rem;
    font-size: .90rem;
}

.btn-sesc-lg {
    padding: .60rem 1.05rem;
    font-size: 1rem;
}


.main-nav .navbar-collapse .d-flex {
    flex-wrap: nowrap;
}

@media (max-width: 991.98px) {
    .main-nav .navbar-collapse .d-flex {
        flex-wrap: wrap;
    }

        .main-nav .navbar-collapse .d-flex .btn-sesc {
            width: 100%;
        }
}

/* ===========================
   TABS PADRÃO SESC
=========================== */

.news-tabs .nav-link {
    border-radius: 11px;
    padding: .45rem 1rem;
    font-weight: 600;
    font-size: .95rem;
    color: #1f66d1;
    border: 1.5px solid #1f66d1;
    background: #fff;
    transition: all .25s ease;
    margin-right: .5rem;
}

    .news-tabs .nav-link:hover {
        background: #1f66d1;
        color: #fff;
    }

    .news-tabs .nav-link.active {
        background: #1f66d1;
        color: #fff;
        box-shadow: 0 4px 12px rgba(31,102,209,.25);
    }

    .news-tabs .nav-link:focus-visible {
        outline: 3px solid rgba(31,102,209,.35);
        outline-offset: 2px;
    }


/* ===== SEÇÃO NOTÍCIAS ===== */
#noticias {
    overflow: hidden;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

    .news-header h3 {
        margin-bottom: 6px;
        font-size: 2rem;
        font-weight: 800;
        color: #0f172a;
    }

    .news-header .text-secondary {
        font-size: 1rem;
        line-height: 1.5;
    }

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px !important;
}

    .news-tabs .nav-item {
        margin: 0;
    }

    .news-tabs .nav-link {
        border-radius: 12px;
        padding: 9px 14px;
        font-weight: 600;
        font-size: .95rem;
        color: var(--sesc-blue);
        border: 1.5px solid var(--sesc-blue);
        background: #fff;
        transition: all .25s ease;
        line-height: 1.2;
    }

        .news-tabs .nav-link.active {
            background: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
        }

.news-card-ui {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: all .25s ease;
    background: #fff;
}

    .news-card-ui:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 35px rgba(0,0,0,.12);
    }

.news-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}

    .news-card-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform .4s ease;
    }

.news-card-ui:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-ui .card-body {
    padding: 18px;
}

.news-card-ui .btn-sesc {
    min-height: 44px;
    border-radius: 12px;
}

/* ===== MOBILE ===== */
@media (max-width: 767.98px) {
    #noticias {
        padding-top: 32px !important;
        padding-bottom: 36px !important;
    }

    .news-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

        .news-header h3 {
            font-size: 1.7rem;
            line-height: 1.15;
            margin-bottom: 4px;
        }

        .news-header .text-secondary {
            font-size: .98rem;
            max-width: 26ch;
        }

        .news-header .btn-sesc {
            width: 100%;
            justify-content: center;
            min-height: 46px;
            border-radius: 14px;
            margin-bottom: 0 !important;
        }

    #noticias .input-group-text,
    #noticias .form-control {
        min-height: 44px;
    }

    #noticias .small.text-muted {
        font-size: .84rem;
        line-height: 1.4;
    }

    .news-tabs {
        gap: 8px;
        margin-bottom: 20px !important;
    }

    

    .news-cards-scope {
        row-gap: 16px !important;
    }

    .news-card-badge {
        top: 10px;
        left: 10px;
        padding: 6px 10px;
        font-size: .7rem;
    }

    .news-card-ui {
        border-radius: 18px;
    }

        .news-card-ui .card-body {
            padding: 14px;
        }

    .news-card-title {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .news-card-ui .btn-sesc {
        min-height: 42px;
        font-size: .94rem;
        border-radius: 12px;
    }
}

/* ===== TELAS MUITO PEQUENAS ===== */
@media (max-width: 420px) {
    .news-header h3 {
        font-size: 1.55rem;
    }

    .news-tabs {
        gap: 6px;
    }

        .news-tabs .nav-link {
            font-size: .88rem;
            padding: 8px 12px;
        }

    .news-card-title {
        font-size: .96rem;
    }
}