
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    font-size: 1em;
}

/* Light Theme (default) */
body.light-mode {
    background-color: #f0f4f8 !important;
    color: #333 !important;
}

.light-mode header,
.light-mode footer, 
.light-mode section {
    background-color: #fff;
    color: #005b96;
}

.light-mode .card {
    background: #d4d4d4;
}

.light-mode #theme-toggle {
    background: #fff;
    color: #333;
    border-color: #333;
}

/* Dark Theme */
body.dark-mode {
    background-color: #333 !important;
    color: #f0f4f8 !important;
}

.dark-mode header,
.dark-mode footer, 
.dark-mode section {
    background-color: #333;
    color: #f0f4f8;
}

.dark-mode .card {
    background: #444;
}

.dark-mode .header-content h1 {
    color: #f0f4f8;
}

.dark-mode .partner p {
    color: #ddd;
}

.dark-mode #theme-toggle {
    background: #333;
    color: #f0f4f8;
    border-color: #f0f4f8;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    flex-direction: column;
}

header img {
    width: 200px;
    height: auto;
}

.header-content {
    text-align: center;
}

.header-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Font Size Selector */
#font-size-selector, #theme-selector {
    font-size: 1.25em;
    padding: 10px;
    width: 200px;
    border: 2px solid #005b96;
    border-radius: 5px;
}

/* Font Size Classes */
.font-normal {
    font-size: 1em;
}

.font-medium {
    font-size: 1.25em;
}

.font-large {
    font-size: 1.5em;
}

.font-xlarge {
    font-size: 1.75em;
}

/* Dark Mode Toggle Button */
#theme-toggle {
    background: #f0f4f8;
    border: 2px solid #333;
    color: #333;
    border-radius: 30px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

#theme-toggle .sun-icon,
#theme-toggle .moon-icon {
    font-size: 1.2em;
    transition: transform 0.3s;
}

/* Icon transitions on hover */
#theme-toggle:hover .sun-icon,
#theme-toggle:hover .moon-icon {
    transform: scale(1.2);
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
}

.social-instagram {
    background-color: #E4405F;
}

.social-email {
    background-color: #94bfff;
}

.social-facebook {
    background-color: #3b5998;
}

.social-youtube {
    background-color: #FF0000;
}

.vakinha-link {
    display: block;
    text-align: center;
    margin: 20px;
    font-size: 1.25em;
    color: #333;
    text-decoration: none;
}

.vakinha-link:hover {
    color: #005b96;
}

/* Navigation */
nav {
    background-color: #005b96;
    display: flex;
    justify-content: center;
}

nav a {
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    background-color: #014f86;
}


/* Centralização e padding das sections */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilização do título da seção */
h2 {
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background-color: #005b96;
    position: absolute;
    bottom: -10px;
    left: 0;
}

/* Estilização do menu lateral do portal de transparência */
/* Menu lateral do portal de transparência ocupando a largura total */
.menu-lateral {
    width: 100%;
    /* Removendo o padding lateral */
    background-color: #005b96;
    border-radius: 0;
    /* Removendo bordas arredondadas */
    display: flex;
    justify-content: center;
    gap: 15px;
}

.menu-lateral a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu-lateral a:hover {
    background-color: #014f86;
}

#form-transparencia,
.contact form {
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#form-transparencia label,
.contact label {
    font-weight: bold;
    margin-top: 15px;
    color: #005b96;
}

#form-transparencia input,
#form-transparencia textarea,
.contact input,
.contact textarea {
    padding: 10px;
    font-size: 1em;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#form-transparencia button,
.contact button {
    margin-top: 20px;
    padding: 12px;
    background-color: #014f86;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
}

#form-transparencia button:hover

/* Galeria de Imagens */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery img {
    width: calc(33% - 20px);
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Cartões de Parceria */
.partner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card p {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding-block: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 500;
    text-align: center;
    font-size: 1em;
}

/* Hover animation for cards */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.card:hover img {
    transform: scale(1.1);
}


#ultimas-publicacoes {
    margin-top: 40px;
}

#ultimas-publicacoes h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #005b96;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #d4d4d4;
}

.scroll-container .card-publi {
    min-width: 300px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.scroll-container .card-publi img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}

.scroll-container .card-publi p {
    margin: 10px 0;
    font-size: 1em;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-container .card-publi button {
    background-color: #005b96;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.card-publi a {
    background-color: #005b96;
    color: #005b96 !important;
    border: none;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.scroll-container .card-publi button:hover {
    background-color: #014f86;
}

.speak-button {
    background: transparent !important;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 5px;
    color: #005b96;
}


@media (max-width: 480px) {
    .scroll-container .card-publi {
        min-width: 250px;
    }

    .scroll-container .card-publi img {
        height: 150px;
    }
}


/* Ajuste responsivo para navegação e header */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .header-content h1 {
        font-size: 2em;
    }

    .header-content p {
        font-size: 1em;
    }

    .gallery img {
        width: calc(50% - 10px);
    }

    nav {
        flex-direction: column;
        padding: 10px;
    }

    nav a {
        padding: 10px;
    }
}

/* Ajuste responsivo para mobile */
@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5em;
    }

    .gallery img {
        width: 100%;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .partner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-lateral {
        flex-direction: column;
        gap: 10px;
    }
}


@media (min-width: 480px) {
    .partner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .partner {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .partner {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .partner {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    #font-size-label, #theme-label {
        display: none;
    }
}

.partner>div {
    background: #d4d4d4;
    flex: 1;
    min-width: 150px;
    height: 150px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .header-content h1 {
        font-size: 2em;
    }

    .gallery img {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .gallery img {
        width: 100%;
    }

    nav a {
        padding: 10px;
    }

    #portal-transparencia>h2 {
        margin-left: 0;
    }

    .partner>div {
        width: 100%;
    }
}

.sub-menu-config {
    display: flex;
    width: 100%;
    max-width: max-content;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
    border-top: 0.5px solid #ddd;
    padding-top: 10px;
}

.sub-menu-config button {
  padding: 12px;
  background-color: #014f86;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
}

#font-size-selector, #theme-selector {
    font-size: 0.9em;
    padding: 5px;
    width: 120px;
    border: 1px solid #005b96;
    border-radius: 5px;
}

@media (max-width: 480px) {
    #font-size-selector, #theme-selector {
        width: 100px;
        font-size: 0.8em;
        padding: 4px;
    }
    .form-input {
      flex-direction: column;
    }
    .sub-menu-config {
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
    }
}

@media (max-width: 480px) {
    header img {
        width: 80px;
        height: auto;
    }
}

.form-input {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.pdf-card {
    width: 250px;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* DARK MODE */
body.dark-mode .card-publi {
    background: #575757 !important;
}

body.dark-mode .card-publi p {
    color: rgb(220, 220, 220) !important;
}

body.dark-mode .pdf-card {
    background: #575757 !important;
}

body.dark-mode .pdf-card p {
    color: rgb(220, 220, 220) !important;
}

/* LIGHT MODE */
body.light-mode .card-publi {
    background: #f8f8f8 !important;
}

body.light-mode .card-publi p {
    color: #666 !important;
}

body.light-mode .pdf-card {
    background: #f8f8f8 !important;
}

body.light-mode .pdf-card p {
    color: #666 !important;
}


.pdf-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.pdf-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.pdf-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.btn-download {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-download:hover {
    background: #0056b3;
}

#publication-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-height: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow-y: auto;
}

.modal-content img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

.modal-content p {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    text-align: left;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

body.dark-mode .modal-content {
    background-color: #444;
    color: #f0f4f8;
}

body.dark-mode .modal-content p {
    color: #ddd;
}

body.dark-mode .close-modal {
    color: #f0f4f8;
}