:root {
    --primary-color: #439B3A;
    --secondary-color: #fa987d;
    --tertiary-color: #F5AD1F;
    --accent-color: rgb(255, 225, 93);
    --text-color: #582000;
    --light-bg: #fff5e7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    /* Base font size for the body */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='18' viewBox='0 0 100 18'%3E%3Cpath fill='%23F5AD1F' fill-opacity='0.2' d='M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z'%3E%3C/path%3E%3C/svg%3E");
}

p {
    margin-bottom: 1rem;
}

header {
    position: relative;
    /* Make the header the containing block */
    height: fit-content;
    /* Allow the header to grow with content */
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
    /* background-color: white; */
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 512px;
    /* background-image: url('img/sipaus2025.png'); Add your background image */
    background-size: repeat;
    /* Ensure the image covers the entire area */
    background-position: center;
    /* Center the image */
    filter: blur(10px);
    /* Apply the blur effect */
    opacity: 0.5;
    /* Adjust opacity for a subtle effect */
    z-index: 0;
}

.logo {
    position: relative;
    /* Ensure the logo is above the background */
    z-index: 1;
    /* Higher z-index to place it above the blurred background */
    text-align: center;
    /* Center the logo horizontally */
    line-height: 0;
    min-width: fit-content;
}

.logo img {
    max-width: calc(1024px - 2rem);
    /* Ensure the logo scales on smaller screens */
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo span {
    color: var(--accent-color);
}

section {
    max-width: 1024px;
}

hr {
    border: 0px;
    border-bottom: 2px solid var(--secondary-color);
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.date-location {
    background-color: var(--accent-color);
    color: #f1724f;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    display: inline-block;
    margin: 1rem auto;
    font-size: 1.2rem;
    text-align: center;
    text-wrap: balance;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
}

.action-button {
    background-color: #f1724f;
    color: white;
    padding: 1.25rem 2.5rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.25rem;
    font-family: 'Montserrat Alternates', sans-serif;
    animation: pulse 3.5s infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.button-2 {
    background-color: #F5AD1F;
}

.button-3 {
    background-color: #439B3A;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.container {
    max-width: 1024px;
    /* Increased max-width for larger screens */
    margin: 0 auto;
    padding: 0 1rem;
}

.highlight-box {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    /* Reduced padding for smaller screens */
    margin: 1.5rem 0;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Montserrat Alternates', 'Segoe UI', sans-serif;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

ul {
    list-style-position: inside;
    /* Ensures the bullet is inside the content box */
    padding-left: 0;
    /* Removes default padding */
    list-style-type: square;
}

ul li {
    text-indent: -1.5em;
    /* Negative indent to align text with the bullet */
    padding-left: 1.5em;
    /* Adds space between the bullet and the text */
}

.flex-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background-color: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* transition: transform 0.3s ease; */
}

/* .info-card:hover {
    transform: translateY(-5px);
} */

h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

h4 {
    margin-bottom: 0.5rem;
}

.info-card p {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1rem;
    /* Adjusted button padding for smaller screens */
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
    /* Adjusted font size for better readability */
    transition: background-color 0.3s, transform 0.2s;
    /* Added transform transition */
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    /* Slight zoom effect on hover */
}

.cta-section {
    text-align: center;
    margin: 2rem 0;
    /* Reduced margin for smaller screens */
    padding: 1rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    padding: 1.5rem 1rem;
    /* Adjusted padding for smaller screens */
    text-align: center;
    margin-top: 2rem;
    text-wrap-style: balance;
}

.contact-info {
    margin-top: 1rem;
}

ul {
    list-style-position: inside;
    margin: 1rem 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px auto;
    font-size: 0.75rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: var(--tertiary-color);
    font-weight: bold;
    color: var(--text-color);
}

thead th {
    background-color: var(--accent-color);
}

tbody td {
    background-color: #fffdf4;
}

tbody tr:nth-child(even) td:not([rowspan]) {
    background-color: #fffbe9;
}

tr>td.periodo:first-child {
    font-weight: bold;
    background-color: #ffeeb7;
}

/* Cores usadas no cronograma */
.cor-verde-claro {
    background-color: #d9ead3;
}

/* Mesas redondas verdes */
.cor-verde-medio {
    background-color: #b6d7a8;
}

/* Abertura oficial */
.cor-verde-pastel {
    background-color: #f9f3cd;
}

/* Credenciamento */
.cor-rosa-claro {
    background-color: #ead1dc;
}

/* Arte/cultura/grupos de pesquisa */
.cor-rosa-escuro {
    background-color: #f4cccc;
}

/* Sessões de artigos */
.cor-azul-claro {
    background-color: #d0e0e3;
}

/* Exposições, curtas, palestras */
.cor-azul-pastel {
    background-color: #c9daf8;
}

/* Palestras */
.cor-roxo-claro {
    background-color: #d9d2e9;
}

/* Encerramento */
.cor-amarelo {
    background-color: #fff2cc;
}

/* Almoço */
.cor-bege {
    background-color: #fce5cd;
}

/* Pausa café */
.cor-cinza-claro {
    background-color: #f3f3f3;
}

/* Livre */

@media (max-width: 768px) {
    .tagline {
        font-size: 1.5rem;
        /* Adjusted font size for smaller screens */
    }

    .date-location {
        font-size: 1.2rem;
        /* Adjusted font size for smaller screens */
    }

    .info-grid {
        grid-template-columns: 1fr;
        /* Single column layout for mobile devices */
    }

    .info-card {
        padding: 1rem;
        /* Reduced padding for smaller screens */
    }

    .btn {
        font-size: 0.9rem;
        /* Slightly smaller font size for buttons */
    }

    .highlight-box {
        padding: 1rem;
        /* Reduced padding for smaller screens */
    }

    .flex-container {
        flex-direction: column;
        gap: 1.5rem;
        margin: 0 1rem;
    }

    .action-button {
        animation: none;
    }
}

@media (max-width: 1024px) {
    header {
        margin-top: 0;
    }

    .logo img {
        border-radius: 0px;
    }
}