/* =================== RESET & GERAIS =================== */
body {
    color: #25252e;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-weight: 400;
    background-color: #ffffff;
    font-size: 1.1rem;
}

p {
    font-size: 1.1rem;
    line-height: 24px;
    font-family: inherit;
    color: #171717;
    text-align: left;
}

.h1, h1 {
    color: #25252e;
    font-size: 36px;
    font-family: inherit;
    font-weight: 300;
    margin: 0;
}

h2 {
    color: #123b51;
    font-weight: bolder;
}
h3 {
    color: #123b51 !important;
    margin: 0;
}

/* -------- MOBILE H1 -------- */
@media (max-width: 992px) {
    .h1, h1 {
        color: #25252e;
        font-size: 20px;
        line-height: 24px;
        padding-top: 10px !important;
        font-family: 'Noto Sans';
        font-weight: 300;
        margin: 0;
    }
}

/* =================== LAYOUT PRINCIPAL =================== */
#mainContent,
#mainContent_2,
#mainContent_3 {
    padding-top: 50px;
    background-color: #fff;
}
#mainContent_inside,
#mainContent_inside_2,
#mainContent_inside_3 {
    padding-top: 0px;
    background-color: #fff;
}
.bar_delimiter {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, rgba(18,59,81,1), rgba(56,142,152,1));
    background-size: 300% 100%;
    animation: gradientShift 5s infinite linear;
    filter: brightness(1.2) contrast(1.1);
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    border-radius: 0.5px;
}
/* Gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}
.bg-grey { background-color: #f2f2f2; }
.bg-white { background-color: #fff; }

/* =================== CORES E UTILIDADES =================== */
.color_0_f { background-color: rgb(21,70,89); border-bottom: 3px solid #fff; }
.color_1_f { background-color: rgb(2,104,115); }
.color_2_f { background-color: rgb(53,140,140); }
.color_3_f { background-color: rgb(23,166,166); }
.color_4_f { background-color: rgb(140,38,133); }
.color_5_f { background-color: rgb(140,62,135); }
.color_6_f { background-color: rgb(191,73,138); }
.color_7_f { background-color: rgb(191,142,188); }
.color_0 { background-color: rgb(98,153,174); border-bottom: 3px solid #fff; color:#000!important; }
.color_1 { background-color: rgb(2,104,115); }
.color_2 { background-color: rgb(53,140,140); }
.color_3 { background-color: rgb(23,166,166); }
.color_4 { background-color: rgb(140,38,133); }
.color_5 { background-color: rgb(140,62,135); }
.color_6 { background-color: rgb(191,73,138); }
.color_7 { background-color: rgb(191,142,188); }
.color_8 { background-color: rgb(18,59,81); }
.color_1 a, .color_2 a, .color_3 a, .color_4 a, .color_5 a, .color_6 a, .color_7 a {
    color: white;
    text-decoration: none;
}
.color_green { color: #14909a; }

/* =================== COMPONENTES ARTIGOS =================== */
.viewone_image-container {
    width: 100%;
    padding-top: 66.67%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    border: 1px solid rgb(146,146,146);
}
.one_article_identifyer {
    background-color: #f2f2f2;
    height: 130px;
    display: flex;
    align-items: center;
}
.one_article_identifyer .row { width: 100%; }
.one_article_identifyer .col-md-10 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}
.one_article_identifyer .col-md-2 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* =================== HORIZONTAL MENU =================== */
#horizontal_menu {
    font-size: 1.0rem;
    font-weight: normal !important;
    padding: 12px;
}
#horizontal_menu a {
    font-size: 1.0rem;
    font-weight: normal !important;
    text-decoration: none;
    color: inherit;
}
.main_class_descript { background-color: #e8e8e8; }

/* =================== BOTÕES E UTILITÁRIOS =================== */
.btn-outline-greenSC {
    --bs-btn-color: #026873;
    --bs-btn-border-color: #026873;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #026873;
    --bs-btn-hover-border-color: #026873;
    --bs-btn-focus-shadow-rgb: 25,135,84;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #026873;
    --bs-btn-active-border-color: #026873;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    --bs-btn-disabled-color: #026873;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #026873;
    --bs-gradient: none;
}

@media (min-width: 768px) {
    #horizontal_menu { display: block !important; }
}
@media (max-width: 767.98px) {
    .margin-top-if-no-horizontal { padding-top: 2rem !important; }
    #news_feed_buttons a.btn {
        width: 100% !important;
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
}

/* =================== HERO E HEADER =================== */
.hero-section {
    height: 100vh;
    transition: height 0.5s ease;
    overflow: hidden;
    position: relative;
}
.hero-section.shrink { height: 60vh; }

.headerEffects-3d {
    position: static;
    transition: all 0.3s ease;
    z-index: 1030;
}
body.header-fixed .headerEffects-3d {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
}
body.header-fixed .contentWraper {
    padding-top: 120px;
}

/* =================== HEADER / MENU APFH =================== */
header {
    background-attachment: fixed;
    background-color: #14909a;
    background-size: cover;
    height: 100px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.header-3d {
    box-shadow: 0 8px 8px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.2);
}
.header-top-space { height: 30px; background-color: #14909a; display: flex; align-items: center; justify-content: flex-end; padding-right: 20px; }
.header-top-space_2 { height: 2px; background-color: #fff; }

/* Submenu (dropdown) */
.navMenu_item { position: relative; }
.navMenu_item > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #0f6971;
    z-index: 9999;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    white-space: nowrap;
}
.navMenu_item:hover > ul { display: block; }
.navMenu_item > ul li { margin: 0; list-style: none; }
.navMenu_item > ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}
.navMenu_item > ul li a:hover {
    background-color: #229aa4;
    list-style: none;
}
.has-submenu > a::after {
    content: " ▸";
    font-size: 0.8rem;
    margin-left: 1px;
    color: white;
}

/* Responsivo: submenu e menu principal */
@media (max-width: 992px) {
    .navMenu_item > ul {
        position: relative;
        display: none;
    }
    .navMenu_item.show > ul { display: block; }
    .has-submenu > a::after { content: none; }
    .menu-column .navbar-nav { width: 100%; }
    .menu-column .navbar-nav > li { width: 100%; text-align: left; }
    .menu-column .navbar-nav > li > a { display: block; width: 100%; }
    .menu-column { width: 100%; margin:0px !important; }
    .navbar-nav > li.li_format > .navbar-nav-link { text-align: left!important; }
    .btn-headerActions-box { width: 100% !important; margin-bottom: 10px; }
    .btn-headerActions {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .navbar-collapse {
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: #14909a;
        z-index: 9999;
        padding: 1rem 0;
    }
}

/* Estilos dos botões principais do menu */
.navbar-nav > .navMenu_item > a.navbar-nav-link {
    background-color: #14909a;
    color: white;
    padding: 0.5rem 0.5rem;
    margin-right: 3px;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    display: block;
}
.navbar-nav > .navMenu_item > a.navbar-nav-link:hover { color: white; }
.navbar-nav { display: flex; align-items: center; gap: 0.1rem; }
.navMenu_item {
    cursor: pointer;
    background-color: #14909a;
    padding: 0.5rem 0.2rem;
    margin-right: 3px;
    font-size: 1rem;
    text-align: center;
    display: block;
    color: white;
    text-decoration: none;
}
.navMenu_item:hover, .navMenu_item:focus {
    background-color: #14909a;
    color: white;
    text-decoration: none;
}
.btn-transparent {
    background-color: #123b51;
    border: 0px solid white;
    border-radius: 8px;
}
.btn-transparent:hover { background-color:rgb(59,102,125); }
.btn-custom {
    background-color: rgba(47,188,179,0.8);
    border: 0px solid white;
    border-radius: 8px;
    color: white;
}
.btn-custom:hover { background-color: #27a29a; color: white; }
.navMenu_layout { width: 100%; display: flex; justify-content: flex-end; align-items: center; border:0px!important; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler { border: 2px solid white; }
.navbar-toggler:focus { outline: none; box-shadow: none; }

/* =================== COUNTER / NÚMEROS =================== */
/* (apfhCounter.php) */
.counter-box {
    display: block;
    background: #f6f6f6;
    padding: 40px 20px 37px;
    text-align: center;
}
.counter-box p {
    margin: 5px 0 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}
.counter-box i {
    font-size: 60px;
    margin: 0 0 15px;
    color: #fff;
}
.counter {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 28px;
}
@media (min-width: 1024px) and (max-width: 1280px) {
    .counter-box p { font-size: 18px; font-weight: 400; }
    .counter-box i { font-size: 45px; }
    .counter { font-size: 26px; font-weight: 600; line-height: 22px; }
    .counter-box_space { margin-bottom: 15px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .counter-box p { font-size: 15px; font-weight: 400; }
    .counter-box i { font-size: 55px; }
    .counter { font-size: 30px; font-weight: 600; line-height: 26px; }
}
/* Responsive styles */
@media (max-width: 768px) {
    .counter-box p { font-size: 16px; font-weight: 400; }
    .counter-box i { font-size: 50px; }
    .counter { font-size: 28px; font-weight: 600; line-height: 24px; }
    .counter-box_space{ margin-bottom:20px;}
}
@media (max-width: 480px) {
    .counter-box p { font-size: 14px; font-weight: 400; }
    .counter-box i { font-size: 40px; }
    .counter { font-size: 24px; font-weight: 500; line-height: 22px; }
    .counter-box_space{ margin-bottom:20px;}
    .counter-box_space { flex: 0 0 100%; }
}

/* Counter color variantes */
.counter-box.color_1 { background-color: rgba(20,144,154,1); }
.counter-box.color_2 { background-color: rgba(145,37,133,1); }
.counter-box.color_3 { background-color: rgba(18,59,81,1); }
.counter-box.color_4 { background-color: rgba(56,142,152,1); }
.counter-box.colored p,
.counter-box.colored i,
.counter-box.colored .counter { color: #fff; }

/* New Counter Boxes (5 squares layout - no icons) */
.counter-box-new {
    background-color: #14909a;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.counter-box-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.counter-box-new .counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.counter-box-new .counter-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-transform: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .counter-box-new {
        min-height: 120px;
    }
    .counter-box-new .counter-number {
        font-size: 2.5rem;
    }
    .counter-box-new .counter-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .counter-box-new {
        min-height: 100px;
    }
    .counter-box-new .counter-number {
        font-size: 2rem;
    }
    .counter-box-new .counter-label {
        font-size: 0.8rem;
    }
}

/* =================== FOOTER =================== */
.footer {
    background-color: #ffffff;
    color: #ffffff;
    padding: 40px 0;
}
.footer_blueLine {
    background-color: #123b51;
    padding: 0px 0;
    margin: 0px 0;
    height: 5px;
}
.footer a {
    color: #123b51;
    text-decoration: none;
}
.footer a:hover {
    color: #912585;
    text-decoration: underline;
}
.footer-logo { max-width: 150px; }
.footer .contact-info {
    font-size: 0.8rem;
    color: #123b51;
}
.footer .menu-links a {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
}
@media (min-width: 768px) {
    .footer .menu-links a {
        display: inline-block;
        margin-right: 15px;
    }
}
.newsletter-section h6 { color: #123b51; }
.newsletter-section .form-control { border: 2px solid #14909a; border-radius: 30px; }
.newsletter-section .btn {
    background-color: #14909a;
    color: #fff;
    border-radius: 30px;
    padding: 10px 20px; font-size: 0.8rem;
}
.newsletter-section .btn:hover {
    background-color: #388e98;
    color: #ffffff;
}
.footer-social-media a { color: white; margin-left: 10px; text-decoration: none; }
.footer-social-media a:hover { color: #ccc; }




/* =================== player / article type =================== */
/* (articleViewOne_articleType.php) */
   .episode-audio-player {
   background-color: #f1f9fa;
   border-radius: 8px;
   border: 1px solid #e1f5fe;
   transition: box-shadow 0.3s ease;
   }
   .episode-audio-player:hover {
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   }
   .episode-audio-player .audio-title {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   margin-bottom: 1rem;
   color: #2c3e50;
   font-weight: 600;
   }
   .episode-audio-player .audio-icon {
   font-size: 1.2em;
   }
   .episode-audio-player .audio-controls {
   width: 100%;
   border-radius: 4px;
   outline: none;
   }
   .episode-audio-player .audio-controls:focus {
   box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.3);
   }
   .episode-audio-player .audio-fallback {
   margin-top: 1rem;
   padding: 1rem;
   background-color: #fff3cd;
   border: 1px solid #ffeaa7;
   border-radius: 4px;
   color: #856404;
   }
   .episode-audio-player .download-link {
   color: #007bff;
   text-decoration: none;
   font-weight: 500;
   }
   .episode-audio-player .download-link:hover {
   text-decoration: underline;
   }
   .episode-audio-player .error-message {
   color: #dc3545;
   background-color: #f8d7da;
   border: 1px solid #f5c6cb;
   padding: 0.75rem;
   border-radius: 4px;
   margin-top: 1rem;
   }

/* === ESTILOS PARA PLAYER ATIVO === */
.episode-audio-player.audio-playing {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    border: 2px solid #14909a;
    box-shadow: 0 4px 15px rgba(20, 144, 154, 0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.episode-audio-player.audio-playing .audio-title {
    color: #14909a;
    font-weight: 700;
}

.episode-audio-player.audio-playing .audio-icon {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

.episode-audio-player.audio-playing .audio-controls {
    border: 1px solid #14909a;
    box-shadow: 0 2px 8px rgba(20, 144, 154, 0.1);
}

/* === ANIMAÇÃO PARA ÍCONE === */
@keyframes pulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* === MELHORAR TRANSIÇÃO BASE === */
.episode-audio-player {
    transition: all 0.3s ease;
}

.episode-audio-player .audio-title {
    transition: color 0.3s ease;
}

.episode-audio-player .audio-icon {
    transition: transform 0.3s ease;
}   
/* (articleViewOne_articleType.php) */
/* =================== player / article type =================== */



/* (categoryListArticles.php) */
/* =================== lista de artigos =================== */
    /* === CSS para ContentState 3 === */
    #article-block-id-3 .articleList_lefColumnArticle a {
        color: #14909a;
        text-decoration: none;
    }

    /* === CSS para ContentState 3 === */
    #article-block-id-3 .articleList_lefColumnArticle {
        border-bottom: 1px solid #9baeb0;
        padding-bottom: 20px !important;
    }

    #article-block-id-3 .articleList-highlight-left {
        display: flex;
        margin-bottom: 1rem;
    }

    #article-block-id-3 .articleList-highlight-img-left {
        width: 300px;
        aspect-ratio: 3 / 2;
        background-size: cover;
        background-position: top;
        border: 1px solid rgb(146, 146, 146);
        flex-shrink: 0;
        margin-right: 15px;
    }

    #article-block-id-3 .articleList-highlight-text {
        flex: 1;
    }

    @media (max-width: 767.98px) {
        #article-block-id-3 .articleList_lefColumnArticle {
            flex-direction: column;
        }

        #article-block-id-3 .articleList-highlight-img-left {
            width: 100%;
            margin-right: 0;
            margin-bottom: 15px;
        }

        #article-block-id-3 .articleList-highlight-text {
            width: 100%;
        }
    }

    /* CORES DOS LINKS - ADICIONADO */
    #article-block-id-3 .articleList-highlight-text a {
        color: #14909a; /* Mesma cor do tema */
        text-decoration: none;
        transition: color 0.3s ease;
    }

    #article-block-id-3 .articleList-highlight-text a:hover {
        color: #0d6c75; /* Tom mais escuro para hover */
        text-decoration: underline;
    }

    #article-block-id-3 .text-green {
        color: #14909a; /* Garantindo consistência com a cor do tema */
    }

    /* === CSS para ContentState 2 === */
    #article-block-id-2 .otherArticles_left {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 13px !important;
    }

    #article-block-id-2 .otherArticles_img-container {
        width: 150px;
        flex-shrink: 0;
        margin-right: 15px;
    }

    @media (min-width: 992px) {
        #article-block-id-2 .otherArticles_img-container {
            width: 195px;
        }
    }

    #article-block-id-2 .otherArticles_img-left {
        width: 100%;
        aspect-ratio: 3 / 2;
        background-size: cover;
        background-position: top;
        border: 1px solid rgb(146, 146, 146);
        overflow: hidden;
        border-radius: 8px;
    }

    #article-block-id-2 .otherArticles_text {
        flex: 1;
        padding-left: 15px;
        font-size: 0.9em;
    }

    @media (max-width: 767.98px) {
        #article-block-id-2 .otherArticles_left {
            flex-direction: column;
        }

        #article-block-id-2 .otherArticles_img-container {
            width: 100%;
            margin-right: 0;
            margin-bottom: 15px;
        }

        #article-block-id-2 .otherArticles_text {
            padding-left: 0;
        }
    }

    #article-block-id-2 .otherArticles_text a {
        text-decoration: none;
    }

    #article-block-id-2 .otherArticles_text h4 a span {
        color: #14909a !important;
        font-weight: bold;
    }

    @media (max-width: 767.98px) {
        #article-block-id-2 .otherArticles_text {
            font-size: 0.8125rem; /* ≈13px, ajustável */
            line-height: 1.4;
            color: #495057; /* opcional, tom mais suave */
        }
    }

/* =================== Outros artigos (article-block-id-3-list) =================== */
    #article-block-id-3-list .otherArticles_left {
        display: flex;
    }

    #article-block-id-3-list .otherArticles_img-container {
        width: 150px;
        flex-shrink: 0;
        margin-right: 15px;
    }

    #article-block-id-3-list .otherArticles_img-left {
        width: 100%;
        aspect-ratio: 3 / 2;
        background-size: cover;
        background-position: top;
        border: 1px solid rgb(146, 146, 146);
        overflow: hidden;
    }

    #article-block-id-3-list .otherArticles_text {
        flex: 1;
        padding-left: 15px;
    }

    @media (max-width: 767.98px) {
        #article-block-id-3-list .otherArticles_left {
            flex-direction: column;
        }

        #article-block-id-3-list .otherArticles_img-container {
            width: 100%;
            margin-right: 0;
            margin-bottom: 15px;
        }

        #article-block-id-3-list .otherArticles_text {
            padding-left: 0;
        }
    }

/* (categoryListArticles.php) */
/* =================== lista de artigos =================== */



/* (categoryListEvents.php) */
/* =================== lista de eventos =================== */
    /* === CSS para ContentState 3 === */
    .categoryListEvents-articleSeparator {
        border-bottom: 1px solid #9baeb0;
        padding-bottom: 43px !important;
    }

    /* ---- Destaques da Esquerda ---- */
    .categoryListEvents-highlightContainer {
        display: flex;
        margin-bottom: 1rem;
    }

    .categoryListEvents-highlightImage {
        width: 300px;
        aspect-ratio: 3 / 2;
        background-size: cover;
        background-position: top;
        border: 1px solid rgb(146, 146, 146);
        flex-shrink: 0;
    }

    .categoryListEvents-highlightText {
        flex: 1;
        padding-left: 15px;
    }

    .categoryListEvents-articleLink {
        color: #14909a;
        text-decoration: none;
    }

    /* === TIMELINE STYLES === */
    .categoryListEvents-timeline {
        margin: 0 auto;
        position: relative;
        padding: 5px;
        list-style: none;
        text-align: left;
    }
    
    .categoryListEvents-timelineRight {
        border-left: 3px solid #14909a;
        border-bottom-right-radius: 4px;
        border-top-right-radius: 4px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .categoryListEvents-timelineRight-homepage {
        text-align: center;
        padding: 10px;
    }

    /* Homepage Event Container */
    .homepage-events-container {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 991px) {
        .homepage-events-container {
            border-radius: 0;
            box-shadow: none;
        }
    }

    /* Homepage Event Cards */
    .homepage-event-card {
        background-color: #fff;
        border-radius: 8px;
        display: flex;
        padding: 5px;
        color: #14909a;
        transition: transform 0.3s ease;
    }

    .homepage-event-card:hover {
        transform: translateY(-5px);
    }

    .homepage-event-card-past {
        /* Sem efeitos visuais - igual aos eventos futuros */
    }

    .homepage-event-card-future {
        /* Card com fundo branco */
        background-color: #fff !important;
    }

    .homepage-event-card-future .homepage-event-date {
        /* Caixa da data: fundo verde */
        background-color: #14909a !important;
    }

    .homepage-event-card-future .homepage-event-day,
    .homepage-event-card-future .homepage-event-month {
        /* Dia e mês: texto branco */
        color: #ffffff !important;
    }

    .homepage-event-card-future .homepage-event-title {
        /* Título: texto verde */
        color: #14909a !important;
    }

    .homepage-event-date {
        background-color: rgba(20, 144, 154, 0.1);
        border-radius: 8px;
        padding: 8px 12px;
        text-align: center;
        min-width: 70px;
        height: fit-content;
    }

    .homepage-event-day {
        font-size: 1.6em;
        font-weight: 700;
        line-height: 1;
        color: #14909a;
    }

    .homepage-event-month {
        font-size: 0.6em;
        font-weight: 400;
        text-transform: capitalize;
        color: #14909a;
        margin-top: 3px;
    }

    .homepage-event-title {
        flex: 1;
        display: flex;
        align-items: center;
        padding-left: 10px;
        font-size: 0.8em;
        font-weight: 600;
        color: #14909a;
        line-height: 1.3;
    }

    .categoryListEvents-timelineLink {
        color: #14909a;
        text-decoration: none;
        font-size: 22px;
        font-weight: 600;
    }

    .categoryListEvents-eventDiv {
        border-bottom: 1px solid #ddd;
        padding-bottom: 25px;
        margin-bottom: 25px;
        position: relative;
        font-size: 14px;
    }

    .categoryListEvents-event:last-of-type {
        padding-bottom: 0;
        margin-bottom: 0;
        border: none;
    }

    .categoryListEvents-event:after {
        position: absolute;
        display: block;
        top: 0;    
        box-shadow: 0 0 0 2px #14909a;
        left: -5px;
        background: #fff;
        border-radius: 50%;
        height: 9px;
        width: 9px;
        content: "";
        top: 10px;
    }

    .categoryListEvents-blackAndWhite {
        filter: grayscale(100%);
    }

    /* === EVENTOS PASSADOS - VERSÃO PEQUENA === */
    .categoryListEvents-dateBox-small {
        min-height: 60px;
        padding: 8px;
        max-width: 80px;
        margin: 0 auto;
    }

    .categoryListEvents-dateBox-small .categoryListEvents-dateBox-day {
        font-size: 1.8em;
    }

    .categoryListEvents-dateBox-small .categoryListEvents-dateBox-month {
        font-size: 0.75em;
    }

    .categoryListEvents-timelineLink-small {
        font-size: 16px;
    }

    .categoryListEvents-eventDiv-past {
        padding-bottom: 5px;
        margin-bottom: 5px;
    }

    .categoryListEvents-eventDiv-past.categoryListEvents-eventDiv {
        border-bottom: 1px solid #e5e5e5;
    }

    .categoryListEvents-eventDiv-past .col-12.col-lg-2 {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* === DATE BOX === */
    .categoryListEvents-dateBox {
        background-color: #14909a;
        color: #ffffff;
        text-align: center;
        padding: 15px;
        border-radius: 8px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .categoryListEvents-dateBox-day {
        font-size: 2.2em;
        font-weight: 400;
        line-height: 1;
        margin-bottom: 3px;
    }

    .categoryListEvents-dateBox-month {
        font-size: 1em;
        font-weight: 400;
        text-transform: capitalize;
        margin-bottom: 5px;
    }

    .categoryListEvents-dateBox-year {
        font-size: 0.7rem;
        font-weight: 400;
        opacity: 0.9;
    }

    .categoryListEvents-dateBox-full {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
        text-align: center;
    }

    @media (max-width: 992px) {
        .categoryListEvents-timeline {
            max-width: 98%;
            padding: 25px;
        }

        .categoryListEvents-event {
            padding-top: 30px;
        }

        .categoryListEvents-event:after {
            left: -2px;
            top: 10px;
        }

        .categoryListEvents-dateBox {
            padding: 8px;
            min-height: auto;
            flex-direction: row;
            justify-content: center;
            gap: 5px;
        }

        .categoryListEvents-dateBox-day,
        .categoryListEvents-dateBox-month,
        .categoryListEvents-dateBox-year {
            font-size: 12px;
            font-weight: 400;
            margin-bottom: 0;
        }

        .categoryListEvents-timelineLink {
            font-size: calc(22px - 0.3em);
        }

        .categoryListEvents-timelineRight {
            border-left: none;
        }
    }

    /* (categoryListEvents.php) */
/* =================== lista de eventos =================== */    



/* (index_carroussel.php) */
/* =================== carroussel principal=================== */
    /* === CARROSSEL PRINCIPAL === */
    .carousel-news-container {
        min-height: 300px;
    }

    /* Cards do carrossel com mesma altura */
    .carousel-item .card {
        border: none;
        border-radius: 0.25rem;
        background-color: #ffffff;
    }

    .carousel-item .card a:not(.btn) {
        display: block;
        text-decoration: none;
    }

    .carousel-item .card-body {
        padding: 20px;
    }

    /* Botão do carrossel - não estica, fica à direita */
    .carousel-item .btn {
        width: auto !important;
        display: inline-block !important;
        max-width: max-content !important;
    }

    /* Fundo com gradiente ou imagem */
    .carousel-news-background {
        background-position: right center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    /* Imagem lateral decorativa */
    .carousel-news-background::before {
        content: '';
        position: fixed;
        top: 200px;
        right: 0;
        width: 200px;
        height: 300px;
 
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right center;
        opacity: 0.9;
        z-index: -1;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: auto;
        top: 25px;
        position: absolute;
    }

    #carouselExampleControls {
        position: relative;
        min-height: 370px;
    }

    #carousel-white-area {
        padding-top: 35px;
        min-height: 370px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: #123b51;
        width: 40px;
        height: 80px;
    }

    /* Título */
    .carousel-news-title {
        position: relative;
        display: inline-block;
        color: #14909a;
        font-weight: bold;
        width: 100%;
    }

    .carousel-news-title::after {
        content: "";
        display: inline-block;
        width: 30px;
        height: 1px;
        background-color: #14909a;
        margin-left: 10px;
        vertical-align: middle;
    }

    /* Título principal isolado */
    .carousel-news-main-title {
        color: #25252e;
        font-size: 36px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
        font-weight: 300;
        margin: 0;
    }

    /* Dots */
    #carousel-news-dots {
        text-align: center;
        margin-top: 20px;
    }

    #carousel-news-dots button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        margin: 0 5px;
        background-color: #ccc;
        transition: background-color 0.3s ease;
    }

    #carousel-news-dots button.active {
        background-color: #14909a;
    }

    /* Destaque */
    .carousel-news-highlight {
        color: #123b51;
        font-weight: bolder;
    }

    /* Introdução do artigo */
    .carousel-news-intro {
        margin-right: 50px;
        margin-top: 20px;
        flex-grow: 1;
    }

    /* Mobile */
    @media (max-width: 992px) {
        #carousel-white-area {
            padding-top: 35px;
            min-height: 570px;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .carousel-control-prev,
        .carousel-control-next {
            position: fixed !important;
            top: -150px !important;
            display: none;
        }

        .carousel-news-background {
            background-color: #ffffff !important;
        }

        .carousel-item .container {
            padding-left: 0 !important;
            padding-right: 0 !important;
            max-width: 100% !important;
        }

        .carousel-item .row {
            margin-left: 0 !important;
            margin-right: 0 !important;
            gap: 0.5rem !important;
        }

        .carousel-item .card {
            width: 100% !important;
        }

        .carousel-item .card-body {
            padding: 0 !important;
            margin: 0 !important;
        }

        .carousel-news-title {
            padding: 0 15px;
            margin-bottom: 0.5rem;
        }

        .carousel-news-highlight {
            height: 60px;
            overflow: hidden;
            padding: 0 15px;
            margin: 0 !important;
        }

        .carousel-news-intro {
            font-size: 14px;
            height: 100px;
            overflow: hidden;
            padding: 0 15px;
            margin: 0 !important;
            flex-grow: 1;
        }

        .carousel-item .text-end {
            padding: 0 15px;
            margin-top: 0.5rem;
        }

        .btn-outline-greenSC {
            font-size: 13px;
            padding: 6px 16px;
        }
    }


.separador-formacao {
    height: 4px;
    width: 60px;
    background: #35b5d4;
    border-radius: 2px;
    margin: 8px 0 0px 0;
}

/* Estilos para listas dentro do conteúdo de artigos */
.card-body ol,
.article-content ol,
.content ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.card-body ul,
.article-content ul,
.content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.card-body ol li,
.article-content ol li,
.content ol li {
    margin-bottom: 0.5rem;
    padding-left: 8px;
}

.card-body ul li,
.article-content ul li,
.content ul li {
    margin-bottom: 0.5rem;
    padding-left: 8px;
}

/* Sub-listas (ul dentro de li) - COM INDENTAÇÃO */
.card-body ol li > ul,
.article-content ol li > ul,
.content ol li > ul {
    list-style-type: disc;
    padding-left: 35px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.card-body ul li > ul,
.article-content ul li > ul,
.content ul li > ul {
    list-style-type: circle;
    padding-left: 35px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Listas de nível 3+ (ainda mais indentadas) */
.card-body ol li > ul li,
.article-content ol li > ul li,
.content ol li > ul li,
.card-body ul li > ul li,
.article-content ul li > ul li,
.content ul li > ul li {
    margin-bottom: 0.3rem;
    padding-left: 5px;
}

/* Listas romanas (i, ii, iii) */
.card-body ol li > ol,
.article-content ol li > ol,
.content ol li > ol {
    list-style-type: lower-roman;
    padding-left: 35px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Listas alfabéticas (a, b, c) */
.card-body ol > li > ol,
.article-content ol > li > ol,
.content ol > li > ol {
    list-style-type: lower-alpha;
    padding-left: 35px;
    margin-top: 0.5rem;
}

/* ==================== QUILL EDITOR SUPPORT ==================== */
/* Suporte para conteúdo gerado pelo editor Quill */

/* Listas ordenadas do Quill */
.card-body .ql-editor ol,
.article-content .ql-editor ol,
.content .ql-editor ol,
.card-body ol.ql-editor,
.article-content ol.ql-editor,
.content ol.ql-editor {
    padding-left: 1.5em;
    list-style-type: decimal;
    margin-bottom: 1rem;
}

/* Listas não ordenadas do Quill */
.card-body .ql-editor ul,
.article-content .ql-editor ul,
.content .ql-editor ul,
.card-body ul.ql-editor,
.article-content ul.ql-editor,
.content ul.ql-editor {
    padding-left: 1.5em;
    list-style-type: disc;
    margin-bottom: 1rem;
}

/* Items de lista do Quill */
.card-body .ql-editor li,
.article-content .ql-editor li,
.content .ql-editor li {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

/* Indentação nível 1 do Quill (primeiro nível de sub-lista) */
.card-body .ql-editor li.ql-indent-1,
.article-content .ql-editor li.ql-indent-1,
.content .ql-editor li.ql-indent-1,
.card-body li.ql-indent-1,
.article-content li.ql-indent-1,
.content li.ql-indent-1 {
    padding-left: 3em;
}

/* Indentação nível 2 do Quill */
.card-body .ql-editor li.ql-indent-2,
.article-content .ql-editor li.ql-indent-2,
.content .ql-editor li.ql-indent-2,
.card-body li.ql-indent-2,
.article-content li.ql-indent-2,
.content li.ql-indent-2 {
    padding-left: 6em;
}

/* Indentação nível 3 do Quill */
.card-body .ql-editor li.ql-indent-3,
.article-content .ql-editor li.ql-indent-3,
.content .ql-editor li.ql-indent-3,
.card-body li.ql-indent-3,
.article-content li.ql-indent-3,
.content li.ql-indent-3 {
    padding-left: 9em;
}

/* Alinhamento de texto do Quill */
.card-body .ql-align-justify,
.article-content .ql-align-justify,
.content .ql-align-justify,
.card-body p.ql-align-justify,
.article-content p.ql-align-justify,
.content p.ql-align-justify {
    text-align: justify;
}

.card-body .ql-align-center,
.article-content .ql-align-center,
.content .ql-align-center {
    text-align: center;
}

.card-body .ql-align-right,
.article-content .ql-align-right,
.content .ql-align-right {
    text-align: right;
}

/* Parágrafos do Quill com espaçamento adequado */
.card-body .ql-editor p,
.article-content .ql-editor p,
.content .ql-editor p {
    margin-bottom: 1rem;
}

/* Strong e outros elementos de formatação */
.card-body .ql-editor strong,
.article-content .ql-editor strong,
.content .ql-editor strong {
    font-weight: bold;
}

.card-body .ql-editor em,
.article-content .ql-editor em,
.content .ql-editor em {
    font-style: italic;
}

.card-body .ql-editor u,
.article-content .ql-editor u,
.content .ql-editor u {
    text-decoration: underline;
}



    /* Elementos específicos do carrossel */
    #carouselExampleControls .card_boxes_text_highlights {
        min-width: 80px !important;
        text-align: center;
        padding-top: 0px !important;
        padding-bottom: 4px !important;
    }

    #carouselExampleControls .card_boxes_text_highlights i {
        font-size: 10px;
        color: white;
    }

    #carouselExampleControls .card_boxes_text_highlights a {
        text-decoration: none;
        color: white;
    }

    .card_boxes_color a {
        color: white;
        text-decoration: none;
    }
    /* (index_carroussel.php) */
/* =================== carroussel principal=================== */



    /* (homepage_news.php) */
/* =================== destaques principal=================== */
/* Minimal custom CSS - using Bootstrap 5 utility classes */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
}

.card-img-fixed {
  height: 200px;
  object-fit: cover;
}

.text-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

.text-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}

/* =================== HIGHLIGHTS GRID (index_highlights.php) =================== */
#highlights-grid {
    margin-bottom: 2rem;
}

/* Wrapper para manter proporção 6:4 (1.5:1) */
.highlights-box {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 4/6 = 66.67% para ratio 6:4 */
    overflow: hidden;
    background: #f5f5f5;
}

.highlights-box-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.highlights-box-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlights-box-content:hover img {
    transform: scale(1.1);
}

/* Espaçamento entre imagens */
#highlights-grid .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

#highlights-grid [class*="col-"] {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

#highlights-grid .highlights-box {
    margin-bottom: 0.5rem;
  text-overflow: ellipsis;
}

/* =================== Carousel Formação (index_carroussel_2.php) =================== */
#carousel_training a {
    text-decoration: none;
    display: block;
}

#carousel_training {
    border: none;
    color: white;
    transition: background-color 0.3s ease;
}

#carousel_training .card-body {
    padding: 8px 12px !important;
    margin-top: 0 !important;
}

#carousel_training .carousel-inner {
    padding-bottom: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Mobile: centralizar card */
@media (max-width: 991px) {
    #carousel_training .col-12 {
        max-width: 500px;
        margin: 0 auto;
    }
}

#carousel_training:hover {
    transition: background-color 0.3s ease;
}

#carousel_training .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#carousel_training .tags_00808e {
    color: #14909a !important;
}

#carousel_training .tags-list span {
    font-size: 11px !important;
}

/* Icon Anchor */
#carousel_training .iconAnchor {
    -webkit-touch-callout: none;
    border-radius: 3px;
    box-sizing: initial;
    overflow: hidden;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #123b51;
}

#carousel_training .iconAnchor_shade {
    box-shadow: 0.4rem 0.4rem #00000085, -0.4rem -0.4rem #cccccca3;
    height: 52px;
    min-width: 52px;
    width: 52px;
}

#carousel_training .iconAnchor_shade_plus {
    box-shadow: 0.4rem 0.4rem #0000004D, -0.4rem -0.4rem #cccccc80;
    height: 40px;
    min-width: 40px;
    width: 40px;
    position: relative;
    top: 25px;
    line-height: 33px;
}

#carousel_training .iconAnchor_shade_plu_noRel {
    box-shadow: 0.4rem 0.4rem #0000004D, -0.4rem -0.4rem #cccccc80;
    height: 40px;
    min-width: 40px;
    width: 40px;
    top: 25px;
    line-height: 33px;
}

#carousel_training .iconAnchor_shade_plu_noRel i {
    color: WHITE;
    font-size: 16px !important;
}

#carousel_training .image-container .card-img-top {
    position: relative;
    z-index: 0;
}

#carousel_training .image-container {
    position: relative;
    overflow: hidden;
}

#carousel_training .iconAnchor_shade_plus i {
    color: WHITE;
    font-size: 16px !important;
}

#carousel_training .iconAnchor-date-day,
#carousel_training .iconAnchor-date-month {
    color: rgb(255, 255, 255);
}

#carousel_training .iconAnchor .iconAnchor-date span {
    display: inline-block;
    line-height: 1;
}

#carousel_training .iconAnchor .iconAnchor-date .iconAnchor-date-day {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    position: relative;
    text-align: center;
    top: 4px;
    width: 100%;
}

#carousel_training .iconAnchor-date-plus {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    position: relative;
    text-align: center;
    top: 4px;
    width: 100%;
}

#carousel_training .iconAnchor .iconAnchor-date .iconAnchor-date-month {
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

#carousel_training .tags-list span {
    border-radius: 2px;
    color: #fff;
    cursor: default;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 4px;
    margin-left: 3px;
    padding: 4px 6px;
    position: relative;
}

#carousel_training .tags-list-town {
    background-color: #45a6ac;
}

#carousel_training .tags_00808e {
    color: #14909a !important;
}

/* Image Overlay */
#carousel_training .text-over {
    font-size: 1.1em;
    font-weight: 900;
    color: #fff;
    padding: 20px;
}

#carousel_training .card {
    border: 0 !important;
    border-radius: 0 !important;
}

#carousel_training .card-img-top {
    border-radius: 0 !important;
}

/* Positioning */
#carousel_training .bottom-left {
    position: absolute;
    bottom: 14px;
    right: 16px;
    z-index: 999;
}

#carousel_training .bottom-right {
    position: absolute;
    bottom: 8px;
    right: 16px;
    color: #fff;
    font-size: 10px;
    z-index: 999;
}

#carousel_training .top-right {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 999;
}

#carousel_training .card-text {
    font-size: 0.8em;
    line-height: 1.4em;
    color: #000;
}

/* Navigation Buttons */
.navEventBT {
    background-color: #229aa4;
    border: none;
    color: white;
    font-size: 0.5rem;
    padding: 10px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navEventBT:hover {
    background-color: rgb(56, 183, 195);
    transition: background-color 0.3s ease;
}

.navEventBT_todos {
    background-color: #229aa4;
    border: none;
    color: white;
    font-size: 1.0rem;
    padding: 4px 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navEventBT_todos:hover {
    background-color: rgb(56, 183, 195);
    transition: background-color 0.3s ease;
}

/* APFH Highlight Header (generic) */
.apfh-highlight-header {
    text-align: left;
    margin-bottom: 40px;
    margin-top: 40px;
    background-color: #f2f2f2;
}

.apfh-highlight-header .title {
    font-size: calc(1.325rem + .9vw);
    font-weight: bold;
    color: #123b51;
    letter-spacing: -1px;
}

.apfh-underline {
    width: 110px;
    height: 2px;
    background: #123b51;
    margin: 0 auto;
    border-radius: 0;
}

/* =================== homepage_news.php =================== */
    /* (homepage_news.php) */
/* =================== destaques principal=================== */

/* =================== carousel_training - Novo Layout =================== */
#carousel_training .image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    justify-content: space-between;
    border-radius: 8px;
}

/* Linha 1: Estado e Horas */
#carousel_training .line-badges {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Linha 2: Título */
#carousel_training .line-title {
    color: #fff;
    font-family: 'Segoe UI Bold', 'Segoe UI', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 1.1em;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Linha 3: Detalhes */
#carousel_training .line-details {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    text-align: left;
    line-height: 1.4;
}

/* Etiquetas de estado */
#carousel_training .status-badge {
    background-color: transparent;
    border: 1px solid #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

#carousel_training .status-badge.future {
    border-color: #C2F1C8;
    color: #C2F1C8;
}

#carousel_training .status-badge.ongoing {
    border-color: #fff;
    color: #fff;
}

#carousel_training .status-badge.completed {
    border-color: #b96499;
    color: #b96499;
}

/* Badge de horas - cinzento por defeito, branco nos ongoing */
#carousel_training .status-badge.hours {
    border-color: #808080 !important;
    color: #808080 !important;
    background-color: transparent !important;
}

#carousel_training .status-badge.hours.ongoing {
    border-color: #fff !important;
    color: #fff !important;
}

#carousel_training .status-badge.hours.completed {
    border-color: #808080 !important;
    color: #808080 !important;
    background-color: transparent !important;
}