@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0a4d95;
    --primary-dark: #073669;
    --accent: #f5b041;
    --surface: #ffffff;
    --background: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 1024px) {
    .container {
        padding-left: 35px !important;
        padding-right: 35px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Base Styles */
h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 176, 65, 0.4);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-tv {
    background: #ef4444 !important;
    color: white !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    font-size: 0.8rem !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    transition: all 0.3s ease;
}

.btn-tv:hover {
    background: #dc2626 !important;
    transform: translateY(-2px);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 55px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 0;
    display: block;
    font-size: 1.05rem;
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Dropdown Menu */
nav ul li ul.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

nav ul li:hover ul.dropdown {
    display: flex;
}

nav ul li ul.dropdown li {
    width: 100%;
}

nav ul li ul.dropdown li a {
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.9rem;
    white-space: nowrap;
}

nav ul li ul.dropdown li a:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* Hero & Page Headers */
.hero {
    padding: 180px 0 120px;
    /* Increased top padding for fixed header */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 160px 0 80px;
    /* Consistently large padding for all pages */
    color: white;
    text-align: center;
}

.page-header h1 {
    color: var(--accent);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1577017040065-650ee4d43339?auto=format&fit=crop&q=80&w=1000') center/cover no-repeat;
    opacity: 0.15;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero.has-custom-bg::after {
    display: none;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Highlights Buttons (FLOATING) */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.highlight-card {
    background: var(--surface);
    padding: 45px 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.highlight-card:hover {
    transform: translateY(-10px);
    background: var(--primary);
    color: white;
}

.highlight-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.highlight-card:hover i {
    color: var(--accent);
}

.highlight-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.highlight-card:hover h3 {
    color: white;
}

@media (max-width: 768px) {
    .highlights-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        margin-top: -30px;
        padding: 0 10px;
    }

    .highlight-card {
        padding: 5px;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .highlight-card i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .highlight-card h3 {
        font-size: 0.75rem;
    }

    .highlight-card:nth-child(1),
    .highlight-card:nth-child(2),
    .highlight-card:nth-child(3) {
        grid-column: span 2;
    }

    .highlight-card:nth-child(4) {
        grid-column: 2 / 4;
    }

    .highlight-card:nth-child(5) {
        grid-column: 4 / 6;
    }
}

/* News Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-title .divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Main News (First 2) */
.news-card.news-main {
    grid-column: span 2;
}

/* Small News (Next 4) */
.news-card.news-small {
    grid-column: span 1;
}

/* Small News Styling adjustments */
.news-card.news-small .news-image {
    height: 160px;
}

.news-card.news-small h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    /* more space since summary is gone */
}

/* Responsive News Grid */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.news-main {
        grid-column: span 1;
        /* Make them normal size on tablet, or keep them bigger? */
        /* Let's make them span 2 on tablet too if we want them bigger, or just reset. 
           If grid is 2 cols, span 2 = full width. That looks good for main news.
        */
        grid-column: span 2;
    }

    .news-card.news-small {
        grid-column: span 1;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.news-main,
    .news-card.news-small {
        grid-column: span 1;
    }
}

.news-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.news-body {
    padding: 24px;
}

.news-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.news-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}

/* Vereadores Grid */
.vereadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.vereador-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    display: block;
}

.vereador-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.vereador-photo {
    height: 300px;
    width: 100%;
    object-fit: cover;
    background: #e2e8f0;
}

.vereador-info {
    padding: 20px;
}

.vereador-info h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.vereador-info .partido {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.vereador-info .cargo {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Vereador Profile Page */
.profile-container {
    padding: 180px 0 80px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
}

.profile-sidebar {
    position: sticky;
    top: 120px;
}

.profile-box {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.profile-meta {
    padding: 30px;
}

.profile-meta h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.profile-meta .p-badge {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-content h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 2.5rem;
    position: relative;
}

.profile-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.info-card h4 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.biography-text {
    font-weight: 400 !important; /* Remove qualquer negrito herdado */
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--text);
    display: block;
    margin-top: 10px;
}

.title-main {
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.description-main {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.info-card.full-width {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .info-card.full-width {
        grid-column: span 1 !important;
    }
}

/* TV Camara */
.tv-camara-section {
    background: #0f172a;
    color: white;
    padding: 60px 0;
    margin-top: 40px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tv-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.video-list::-webkit-scrollbar {
    width: 5px;
}

.video-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.video-item {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    align-items: center;
}

.video-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-thumb {
    width: 120px;
    height: 68px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.video-thumb::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: white;
    opacity: 0.8;
}

.video-info h4 {
    font-size: 0.85rem;
    line-height: 1.3;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Professional Style */
.footer-main {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-col .logo img {
    height: 40px;
    /* Adjust size for footer */
    width: auto;
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px !important;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav {
        width: 100%;
        display: none;
        padding: 20px 0;
        order: 10;
        background: white;
        border-top: 1px solid #eee;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }

    nav.active {
        display: block;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .header-actions,
    .nav-wrapper>.btn,
    .nav-wrapper>a[href="admin.html"] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Hero & Headers */
    .hero {
        padding: 160px 0 60px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.22rem;
        letter-spacing: -1px;
    }
}

/* Agenda Section Styles */
.agenda-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .agenda-wrapper {
        grid-template-columns: 1fr;
    }
}

.calendar-container {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: var(--radius-sm);
}

.calendar-header h3 {
    margin: 0;
    color: white;
    text-transform: capitalize;
    font-size: 1.2rem;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.empty) {
    background: #f1f5f9;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.today {
    border-color: var(--primary);
    font-weight: 700;
}

.calendar-day.has-event {
    background-color: rgba(10, 77, 149, 0.15);
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--primary);
}

.calendar-day.has-event::after {
    display: none;
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: white !important;
}

.calendar-day.selected::after {
    background: white;
}

/* Event Details Sidebar */
.event-details {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.event-details h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.event-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

.event-time {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

.event-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.event-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 10px;
}

.btn-event {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.btn-event:hover {
    background: var(--primary-dark);
    color: white;
}

.no-events {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 160px 0 50px;
    }

    /* Individual Profile */
    .profile-container {
        display: flex !important;
        flex-direction: column !important;
        padding-top: 130px !important;
        padding-bottom: 60px !important;
        padding-left: 0 !important; 
        padding-right: 0 !important; 
        gap: 30px !important;
    }

    .profile-sidebar,
    .profile-content {
        width: 100% !important;
        padding: 0 35px !important; /* Margem lateral forçada para o conteúdo */
        box-sizing: border-box !important;
    }

    .profile-sidebar {
        position: static !important;
        order: 1 !important;
    }

    .profile-content {
        order: 2 !important;
    }

    .profile-img {
        height: auto !important;
        min-height: 400px;
        max-height: 550px;
        object-fit: cover;
        object-position: top; /* Evita cortar a cabeça nas fotos */
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 25px; /* Espaço maior entre os itens de informação */
    }

    .info-card {
        grid-column: span 1 !important;
        padding: 25px; /* Mais espaço interno no card */
    }

    .profile-content h2 {
        font-size: 1.8rem;
    }

    /* TV Câmara Mobile */
    .tv-camara-section {
        padding: 60px 0;
    }

    .tv-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .video-featured {
        width: 100% !important;
    }

    .video-list {
        max-height: 450px;
        padding-right: 0;
        width: 100% !important;
    }

    /* Menu Dropdown Mobile */
    nav ul li.dropdown-open ul.dropdown {
        display: flex !important;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        margin-top: 10px;
        padding: 5px 0;
    }

    nav ul li.dropdown-open>a {
        color: var(--primary) !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Carousel Vereadores */
.carousel-wrapper {
    position: relative;
    padding: 20px 0;
}

.carousel-track-container {
    overflow: hidden;
    margin: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track .vereador-card {
    flex: 0 0 calc((100% - 90px) / 4);
    /* Display 4 items */
    margin-bottom: 10px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

@media (max-width: 1200px) {
    .carousel-track .vereador-card {
        flex: 0 0 calc((100% - 60px) / 3);
        /* 3 items */
    }
}

@media (max-width: 900px) {
    .carousel-track .vereador-card {
        flex: 0 0 calc((100% - 30px) / 2);
        /* 2 items */
    }
}

@media (max-width: 600px) {
    .carousel-track .vereador-card {
        flex: 0 0 100%;
        /* 1 item */
    }

    .carousel-track-container {
        margin: 0 40px;
    }
}

/* Fix for images inside news content */
.news-content img,
#news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    display: block;
    box-shadow: var(--shadow-sm);
}

/* Ad Banner */
.ad-banner {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.ad-banner:hover {
    transform: scale(1.01);
}

.ad-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .ad-banner {
        height: 100px;
    }
}

/* Localização e Clima - Imersivo Tela Cheia */
#localizacao-clima {
    padding: 0 !important;
    background: #000;
}

.immersive-info-wrapper {
    display: flex;
    width: 100%;
    min-height: 650px;
}

.immersive-map {
    flex: 1.3;
    position: relative;
    background: #111;
}

.immersive-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-floating-label {
    position: absolute;
    top: 50px;
    left: 50px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
    max-width: 400px;
}

.map-floating-label h3 {
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
}

.map-floating-label p {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.5;
}

.immersive-weather {
    flex: 0.7;
    position: relative;
    background: url('https://images.unsplash.com/photo-1534794029918-b76d94cf2bb6?q=80&w=1000&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: white;
    overflow: hidden;
}

.immersive-weather::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 54, 105, 0.95), rgba(0, 0, 0, 0.7));
    transition: background 1s ease;
    z-index: 1;
}

.immersive-weather.weather-day::before {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(7, 54, 105, 0.7));
}

.immersive-weather.weather-night::before {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(0, 0, 0, 0.9));
}

.weather-content-overlay {
    position: relative;
    z-index: 2;
}

.weather-city-top {
    margin-bottom: 50px;
}

.weather-city-top h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
}

.weather-city-top p {
    font-size: 1.3rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 1px;
}

.weather-main-v2 {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.weather-main-v2 .weather-temp {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -6px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.weather-main-v2 .weather-right {
    text-align: left;
}

.weather-main-v2 .weather-icon-v2 {
    font-size: 4.5rem;
    margin-bottom: 12px;
    color: #fbbf24;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.5));
}

.weather-main-v2 .weather-desc-v2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f1f5f9;
}

.weather-grid-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 50px;
}

.weather-item-v2 {
    display: flex;
    flex-direction: column;
}

.weather-item-v2 .label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.weather-item-v2 .value {
    font-size: 2.2rem;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .immersive-info-wrapper {
        flex-direction: column-reverse;
    }

    .immersive-map {
        height: 500px;
    }

    .immersive-weather {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .immersive-info-wrapper {
        min-height: auto;
    }

    .immersive-weather {
        padding: 50px 30px;
    }

    .weather-city-top {
        margin-bottom: 30px;
    }

    .weather-city-top h2 {
        font-size: 2.2rem;
    }

    .weather-city-top p {
        font-size: 1.1rem;
    }

    .weather-main-v2 {
        gap: 20px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .weather-main-v2 .weather-temp {
        font-size: 4.5rem;
        letter-spacing: -3px;
    }

    .weather-main-v2 .weather-icon-v2 {
        font-size: 3rem;
    }

    .weather-main-v2 .weather-desc-v2 {
        font-size: 1.3rem;
    }

    .weather-grid-v2 {
        gap: 20px;
        padding-top: 30px;
    }

    .weather-item-v2 .label {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .weather-item-v2 .value {
        font-size: 1.5rem;
    }

    .immersive-map {
        height: 400px;
    }

    .map-floating-label {
        top: 15px;
        left: 15px;
        right: 15px;
        padding: 20px;
        border-radius: 15px;
    }

    .map-floating-label h3 {
        font-size: 1.2rem;
        gap: 10px;
        margin-bottom: 5px;
    }

    .map-floating-label p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .weather-main-v2 .weather-temp {
        font-size: 3.5rem;
    }

    .immersive-map {
        height: 350px;
    }
}

/* Botões de Compartilhamento Social */
.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white !important;
}

.share-btn i {
    font-size: 1.1rem;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.whatsapp:hover {
    background: #1ebd57;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.3);
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(24, 119, 242, 0.3);
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.twitter:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.share-btn.copy {
    background: #64748b;
}

.share-btn.copy:hover {
    background: #475569;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(100, 116, 139, 0.3);
}

@media (max-width: 600px) {
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Seção de Links Úteis */
#links-uteis {
    padding: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.links-uteis-bar {
    background: white;
    padding: 60px 0 0 0;
    width: 100%;
}

.links-header {
    text-align: center;
    margin-bottom: 40px;
}

.links-header h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.links-header h3 i {
    color: var(--accent);
}

.links-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
    border-top: 1px solid #f1f5f9;
}

.useful-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 50px 20px;
    background: white;
    transition: all 0.3s ease;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.useful-link-item:last-child {
    border-right: none;
}

.useful-link-item .icon-box {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.useful-link-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.useful-link-item:hover {
    background: #f8fafc;
}

.useful-link-item:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.useful-link-item:hover span {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .links-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }

    .useful-link-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .links-grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .useful-link-item:nth-child(2n) {
        border-right: none;
    }
}

/* Modal de Informações Rápidas (Links Úteis) */
.modal-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-info-content {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-info-header {
    padding: 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-info-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-info-title i {
    font-size: 1.5rem;
    color: var(--primary);
}

.modal-info-title h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--primary-dark);
}

.modal-info-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-info-close:hover {
    color: #ef4444;
}

.modal-info-body {
    padding: 30px;
}

.info-group {
    margin-bottom: 25px;
}

.info-group:last-child {
    margin-bottom: 0;
}

.info-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-group p {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}

.modal-info-footer {
    padding: 20px 30px 30px;
}