/* history css */

:root {
    --lateral-padding: 220px;
}

h1{
    padding-bottom: 5px;
    border-bottom: 1px solid #c8c0c0;
    font-size: 30px;  
    padding-left: 6px;
    padding-right: 6px;
}





.mensal_h6{
    color: #E79E2C;
}

.evento_h1, .mensal_h1{
    color: #215083;
    font-family: 'Inter';
    font-weight: 600;
}


.evento_h6{
    color: #7AABDE;
}

.maincontent {
    margin: 0px 20px 0px 20px;
    max-width: 100%;
}


.preview-wrapper {
    margin-bottom: 2rem;
    padding: 1rem;
    padding-left: 0px;
    padding-right: 0px;
    border-bottom: 1px solid #e0e0e0;
}

.preview-wrapper h6 {
    font-size: 1.25rem;
    text-align: left;
    margin-bottom: 1rem;
}

.content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    /* flex-wrap: wrap; /* responsive stacking on small screens */
}

/* Image container */

.preview-image-container{
    flex: 1;
    max-width: 50%;
}

.image {
    flex: 1 1 50%;
    /*max-width: 50%;*/
    display: flex;
    /*justify-content: center;*/
    align-items: flex-start;
}

.image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-caption{
    font-size: 11px;
}



/* Text container */
.text-wrapper {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

}

.text-wrapper p{
    display: -webkit-box;
    -webkit-line-clamp: 8; /* Number of lines to show */
    -webkit-box-orient: vertical;  
    
    overflow: hidden;
    white-space: pre-wrap;
}

.link-container {
    margin-top: 20px; /* pushes link to bottom of text column */
    text-align: center;
}

.link-container .evento-link{
    align-items: center;
    border-radius: 50px;
    background: #7AABDE;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    line-height: 35px;
    transition: background 0.3s ease;
    padding: 6px 18px;
}


.link-container .mensais-link{
    align-items: center;
    border-radius: 50px;
    background: #E79E2C;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    line-height: 35px;
    transition: background 0.3s ease;
    padding: 6px 18px;
}



/* reverse layout for image-right / text-left */
.preview-wrapper.reverse .content-wrapper {
    flex-direction: row-reverse;
}

/* Responsive adjustments */

@media (max-width: 1440px) {
  .maincontent {
    max-width: 100%; 
  }
}

@media (max-width: 1024px) {
  .maincontent {
    max-width: 100%; 
  }
}


@media (max-width: 768px) {

    .maincontent {
        max-width: 700px; 
    }

    .content-wrapper {
        flex-direction: column;
    }

    .preview-image-container{
        max-width: 100%;
    }


    .image, .text-wrapper {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 425px) {

    .maincontent {
        max-width: 400px; 
    }

    .content-wrapper {
        flex-direction: column;
    }
    .image, .text-wrapper {
        max-width: 100%;
        flex: 1 1 100%;
    }

    

}


@media (max-width: 375px) {

    .maincontent {
        max-width: 355px; 
    }

    .content-wrapper {
        flex-direction: column;
    }
    .image, .text-wrapper {
        max-width: 100%;
        flex: 1 1 100%;
    }
}


@media (max-width: 320px) {

    .maincontent {
        max-width: 300px; 
    }

    .content-wrapper {
        flex-direction: column;
    }
    .image, .text-wrapper {
        max-width: 100%;
        flex: 1 1 100%;
    }
}
