/* ============================================
   Design System Custom Styles
   ============================================ */

/* Header Topbar */
#barratopo {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}
#barratopo .navbar-brand {
    font-size: 0.9rem;
    color: #333;
}
#barratopo .nav-link {
    color: #555;
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
}
#barratopo .nav-link:hover {
    color: #004d99;
}

/* Main Top Header */
#topo-principal {
    position: relative;
    padding-bottom: 1.5rem;
    background-color: #004d99; /* fallback */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

/* Em páginas internas, o template define um fundo sólido.
   Reduzimos a altura para caber apenas logo + menu. */
#topo-principal.no-hero {
    min-height: 0;
    padding-bottom: 0;
}
#topo-principal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.15);
    z-index: 0;
}
#topo-principal > * {
    position: relative;
    z-index: 1;
}

/* Novo layout de busca */
.busca-topo-large {
    max-width: 900px;
    margin: 0 auto;
}
.busca-topo-large .form-control {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px 0 0 4px;
}
.busca-topo-large .btn {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border-radius: 0 4px 4px 0;
    background-color: #3b5998; /* azul do botão de busca */
    border: none;
}
.busca-topo-large .btn:hover {
    background-color: #2d4373;
}

/* Navbar */
#menu-principal .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem !important;
    transition: all 0.3s ease;
}
#menu-principal .nav-link:hover,
#menu-principal .nav-link.active.text-warning {
    color: #ffc107 !important;
}

/* Components */
.bg-gray {
    background-color: #f0f0f0 !important;
}

.text-shadow-black {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
}

.card-destaquefixo {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.card-destaquefixo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

a.text-decoration-none:hover,
a:has(.card-destaquefixo):hover {
    text-decoration: none !important;
}

.card-img-contain {
    object-fit: contain;
    background: #f8f9fa;
    padding: 1rem;
}

.card-img-cover {
    object-fit: cover;
}

.ds-section-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
    border: none;
}
.ds-section-title-underline {
    position: relative;
}
.ds-section-title-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #ffc107; /* Amarelo Macaé */
}

.card-noticia-horizontal {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-noticia-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-noticia-horizontal .news-thumb {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.card-noticia-horizontal .news-content h5 {
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.card-noticia-horizontal .news-content p {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.callout-info {
    border-left: 5px solid #17a2b8;
    background-color: #e0f3f8;
    padding: 15px;
    border-radius: 4px;
}

/* Typography Overrides based on DS */
.ds-title {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: bold;
    color: #333;
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
}
.ds-table th, .ds-table td {
    border: 1px solid #eee;
    padding: 15px;
    text-align: left;
    vertical-align: middle;
}
.ds-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}

/* Motion and hover effects */
.link-item { text-decoration: none; color: inherit; }
.link-item:hover { background-color: #f8f9fa; }

/* Dashboard Adjustments */
.hero-macae20 {
    display: none; /* Hide old hero if new header replaces it */
}
/* Footer Styling (Dark Theme) */
footer.ds-footer {
    background-color: #252525;
    color: #fff;
    padding: 50px 0 0;
    font-size: 0.9rem;
}

footer.ds-footer h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer.ds-footer .footer-icon-large {
    font-size: 1.3rem;
}

footer.ds-footer ul.footer-list {
    list-style: none;
    padding: 0;
}

footer.ds-footer ul.footer-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer.ds-footer ul.footer-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer.ds-footer ul.footer-list a:hover {
    color: #fff;
}

.footer-icon-item {
    color: #3b82f6; /* Blue icon like in image */
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

/* Links Essenciais (Icons on right) */
.footer-link-essencial {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-link-essencial .link-icon-right {
    color: #3b82f6;
    font-size: 0.8rem;
}

/* Update section in footer */
.footer-update-item {
    display: flex;
    gap: 15px;
}

.footer-update-dot {
    width: 24px;
    height: 24px;
    background-color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-update-content span {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.footer-update-content p {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 5px;
}

.footer-update-content .ver-mais {
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Bottom Bar */
.footer-bottom-bar {
    background-color: #1a1a1a;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-semplan-logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: #fff;
}

.footer-semplan-logo span {
    color: #3b82f6;
}

.footer-copyright-text {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

.footer-contact-info {
    color: #888;
    font-size: 0.8rem;
}

.footer-contact-info a {
    color: #888;
    text-decoration: none;
}
