/* Estilo da seção da pessoa */
.about-person-section {
    background: url('/imgs/sobre-background.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    box-shadow: 0 7px 5px rgba(0, 0, 0, 0.3) inset;
    border-bottom: 5px solid rgb(0, 5, 105);
}

.overlay {
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent layer */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.person-container {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px 40px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.person-container p {
    font-size: 14px;
    line-height: 1.6;
}

.person-photo img {
    width: 200px;
    height: auto;
    border: 2px solid rgb(0, 5, 105);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.person-details {
    flex: 1;
    text-align: left;
}

.view-more-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: rgb(0, 5, 105);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: rgb(0, 10, 206);
}

/*<----------------------------------------------------------------------------------------------->*/

/* Pop-up Window Styling */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}

.popup-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
    color: rgb(168, 2, 2);
    text-decoration: none;
    cursor: pointer;
}

.popup-content h2 {
    margin-top: 0;
    color: rgb(0, 5, 105);
}

.popup-content p {
    font-size: 16px;
    line-height: 1.6;
}

.signature-img {
    width: 150px;
    height: auto;
    display: block;
    margin-top: 20px;
}

/*<----------------------------------------------------------------------------------------------->*/

/* Estilo da seção da Assembleia */
.about-section {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
    box-shadow: 0 7px 5px rgba(0, 0, 0, 0.3) inset;
}

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: rgb(0, 5, 105);
}

.about-column {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center; /* Center the overlay and image vertically */
}

.about-photo {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border: 2px solid rgb(0, 5, 105);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 93%;
    background-color: rgba(0, 5, 105, 0.7); /* Dark semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease;
}

.overlay-text {
    font-size: 0.7em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.about-column h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: rgb(0, 5, 105);
}

.about-column ul {
    list-style-type: none;
    padding-left: 0;
    font-size: 0.8em;
    text-align: center;
}

.about-column ul li {
    margin-bottom: 5px;
}

/* Responsividade para a seção Sobre */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
    }

    .about-column {
        margin-bottom: 20px;
        width: 100%;
    }
}

/*Animação de overlay nas fotos das pessoas*/
.photo-container:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-container:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/*<----------------------------------------------------------------------------------------------->*/

/* Styling for the three-column section */
.three-column-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f4f4f4;
    gap: 40px;
}

.column {
    flex: 1;
    padding: 20px;
    max-width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.column h3 {
    margin-bottom: 10px;
    color: rgb(0, 5, 105);
}

.toggle-btn {
    padding: 10px 20px;
    background-color: rgb(0, 5, 105);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.toggle-btn:hover {
    background-color: rgb(0, 10, 206);
}

/* Hidden content styling */
.hidden-content {
    display: none; /* Initially hidden */
    margin-top: 20px;
}

/* Polaroid card styling */
.polaroid {
    background-color: white;
    border: 2px solid rgb(0, 5, 105);
    box-shadow: 0 7px 5px rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.polaroid img {
    width: 120px;
    height: auto;
}

.caption {
    font-size: 14px;
    color: rgb(0, 5, 105);
}

/*<----------------------------------------------------------------------------------------------->*/

/* History Section */
.history-section {
    padding: 40px;
    background-color: #f8f8f8;
    border-top: 10px solid rgb(0, 5, 105);
    box-shadow: 0 7px 5px rgba(0, 0, 0, 0.3) inset;
}

.history-text {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.history-text h2 {
    color: rgb(0, 5, 105);
    margin-bottom: 20px;
}

.short-text {
    font-size: 16px;
    color: #555;
    max-width: 900px;
}

.more-text {
    display: none;
}

.toggle-history-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgb(0, 5, 105);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-history-btn:hover {
    background-color: rgb(0, 10, 206);
}

/* Symbols Section */
.symbols-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}

.symbol {
    flex: 1;
    background-color: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.symbol img {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.symbol h3 {
    color: rgb(0, 5, 105);
    margin-bottom: 10px;
}

.symbol p {
    font-size: 14px;
    color: #555;
}

/*<----------------------------------------------------------------------------------------------->*/

/* General styles and flexbox settings remain unchanged */

/* Responsiveness for the "About" section */

/* Breakpoint for small tablets and large phones */
@media (max-width: 600px) {
    .about-person-section {
        height: auto; /* Adjust height for smaller screens */
        padding: 20px;
    }

    .person-container {
        flex-direction: column; /* Stack elements vertically */
        padding: 20px;
    }

    .person-photo img {
        width: 150px; /* Reduce the image size for better fit */
        margin-bottom: 15px;
    }

    .person-details {
        text-align: center; /* Center text for better mobile viewing */
    }

    .view-more-btn {
        width: 100%; /* Button takes full width */
        margin-top: 15px; /* Add margin for spacing */
    }
}

/* Breakpoint for mobile phones */
@media (max-width: 480px) {
    .about-container {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .about-column {
        width: 100%;
        padding: 20px;
        text-align: center; /* Center-align text for narrow screens */
    }

    .photo-container {
        max-width: 100px; /* Reduce photo size for smaller screens */
    }

    .about-photo {
        width: 100px;
    }

    .photo-overlay {
        width: 100px;
    }

    .overlay-text {
        font-size: 0.6em; /* Adjust text size inside overlay */
    }

    .symbols-section {
        flex-direction: column; /* Stack symbols vertically */
        align-items: center;
        gap: 20px;
    }

    .symbol {
        width: 80%; /* Reduce symbol box width */
    }

    .symbol img {
        width: 100px; /* Adjust image size */
    }

    .history-text {
        padding: 20px;
    }

    .short-text {
        font-size: 14px; /* Adjust text size */
    }

    .toggle-history-btn {
        width: 100%; /* Full-width button */
    }
}

/* Responsiveness for the three-column section */
@media (max-width: 768px) {
    .three-column-section {
        flex-direction: column; /* Stack columns vertically */
        align-items: center;
    }

    .column {
        max-width: 100%; /* Make each column take full width */
        margin-bottom: 20px;
    }
}