/*------------------------------------------------------*/
/*  RESET                                               */

* {
    padding: 0;
    margin: 0;
    border: none;
    text-decoration: none;
    list-style: none;
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
}
@media all {
    html, body {
        overflow-x: hidden;
    }
}
@media (max-width: 480px) {
    html, body {font-size: 0.75rem!important;}
}

/*------------------------------------------------------*/
/*  MACRO                                               */

@font-face {
    font-family: 'IdealSans'; 
    src: url('/assets/fonts/IdealSans-Thin-Pro.otf'); /*/fundartox/*/
}

html {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-top: 0.5vh solid cornflowerblue; /*FF006A pinky*/
    box-sizing: border-box;
    font-size: 1rem;
    font-weight: 1000;
    color: black;
    font-family:'IdealSans', 'Math', sans-serif;
    letter-spacing: 0.1rem;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    min-height: 99.6vh;
    display: flex;
    align-items: center;
    flex-direction: column;
}

p {
    hyphens: auto;
    letter-spacing: 0.05rem;
}

textarea {
    resize: none;
    font-size: 1rem;
    font-family: var(--text-font);
    border-radius: 0.5rem;
    border: 1px solid;
    background-color: transparent;
    padding: 1rem;
}

input {
    font-size: 1rem;
    font-family: var(--text-font);
    border-radius: 0.5rem;
    border: 1px solid;
    background-color: transparent;
    padding: 1rem;
}
/*------------------------------------------------------*/
/*  MARGIN - PADDING - WIDTH                            */
.m-1 {
    margin: 1rem;
}
.ml-1 {
    margin-left: 1rem;
}
.ml-2 {
    margin-left: 2rem;
}
.mr-1 {
    margin-right: 1rem;
}
.mr-2 {
    margin-right: 2rem;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem!important;
}
.mt-3 {
    margin-top: 3rem;
}
.p-1 {
    padding: 1rem;
}
.p-2 {
    padding: 2rem;
}
.p-4 {
    padding: 4rem;
}
.pl-1 {
    padding-left: 1rem;
}
.pl-2 {
    padding-left: 2rem;
}
.pl-3 {
    padding-left: 3rem;
}
.pl-4 {
    padding-left: 4rem;
}
.pr-1 {
    padding-right: 1rem;
}
.pr-2 {
    padding-right: 2rem;
}
.pr-3 {
    padding-right: 3rem;
}
.pr-4 {
    padding-right: 4rem;
}
.pt-1 {
    padding-top: 1rem;
}
.pt-2 {
    padding-top: 2rem;
}
.w-75 {
    width: 75%;
}
.w-50 {
    width: 50%;
}
.w-40 {
    width: 40%;
}
.w-30 {
    width: 30%;
}
/*------------------------------------------------------*/
/*  FLEX CONTAINERS                                     */

.flex {
    display: flex;
}
.flex-row {
    display: flex;
    flex-direction: row;
}
.row-reverse {
    flex-direction: row-reverse;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.justify-center {
    justify-content: center;
}
.align-center {
    align-items: center;
}
.justify-start {
    justify-content: start;
}
.justify-between {
    justify-content: space-between;
}
.items-center {
    justify-items: center;
}
.gap-1 {
    gap: 1rem;
}
.flex-0 {
    flex: 0;
}
.flex-1 {
    flex: 1;
}
.text-center {
    text-align: center;
}
.font-size-10 {
    font-size: 1rem;
}
.font-size-12 {
    font-size: 1.2rem;
}
.font-size-14 {
    font-size: 1.4rem;
}
.font-size-16 {
    font-size: 1.6rem!important;
}
.font-size-18 {
    font-size: 1.8rem;
}
.font-size-20 {
    font-size: 2rem;
}
.color-blue {
    background-color: #76bccc;
}
.color-green {
    background-color: rgb(150, 190, 190);
}
/*------------------------------------------------------*/
/*  HEADER - NAV - MENU                                 */

header {
    height: auto;
    background: linear-gradient(#d9e7ff, #effaff, #ffffff);
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
}
header nav {
    width: 80%;
    margin: auto;
    padding-top: 1rem;
}
.logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: start;
}
.logo figure img {
    height: 3rem;
}
.logo h1 {
    font-size: 2.5rem;
    font-weight: 1000;
    letter-spacing: 0;
}
.h1-logo {
    background: -webkit-linear-gradient(45deg, #3a32b2, #00e680  100%); /*1dff00*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.span-logo {
    background: -webkit-linear-gradient(45deg, #3a32b2, #00e680  100%); /*1dff00*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}
.logo-blue {
    color:#3a32b2;
}
.logo-green {
    color: #00e680 ;
}
.logo-blue2 {
    color:#2161b3ff;
}
.logo-green2 {
    color: #1d9754ff ;
}
.menu-nav {
    display: flex;
    gap: 1rem;
}
.menu-nav li {
    padding: 0 0.5rem 0 0.5rem;
}
.menu-nav li a {
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    color: black;
}
.menu-nav li a:hover {
    background-color: rgb(150, 190, 190);
    color: white;
}
.menu-nav li a:active {
    background-color: cornflowerblue;
    color: white;
}
.campus {
    margin-left: 4rem;
}
.campus a {
    background-color: rgb(150, 190, 190);
    color:black;
}
.hamburger-menu {
    display: none;
    background-color: transparent;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(150, 190, 190);
}
.hamburger-menu a:hover {
    color: white;
    background-color: rgb(150, 190, 190);
}
.hamburger-menu a:active {
    color: black;
    background-color: rgb(150, 190, 190);
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .menu-nav li a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .logo h1 {
        font-size: 2rem;
    }
    .menu-nav {
        gap: 0.5rem;
    }
    .campus {
        margin-left: 2rem;
    }
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    .menu-nav li a {
        font-size: 1rem;
        padding: 0.2rem 0.2rem;
        letter-spacing: 0rem;
    }
    .wrapper {
        margin-left: 1rem!important;
    }
    .logo h1 {
        font-size: 1.8rem;
    }
    .menu-nav {
        gap: 0.25rem;
    }
    .campus {
        margin-left: 0rem;
    }
}

@media (max-width: 768px) {
    .campus {
        margin-left: 0;
    }
    .campus a {
        background-color: transparent;
    }
    .menu-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 2rem;
        right: 0;
        gap: 0.5rem;
        background-color: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
    .menu-nav.show {
        display: flex; /* Show the menu when toggled */
    }

    .hamburger-menu {
        display: block; /* Show the hamburger menu */
        padding-left: 1rem;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .logo figure img {
        height: 2.5rem;
    }
    .logo h1 {
        font-size: 1.8rem;
    }
    .campus {
        margin-left: 0;
    }
    .campus a {
        background-color: transparent;
    }
    .menu-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 2rem;
        right: 0;
        gap: 0.5rem;
        background-color: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }
    .menu-nav.show {
        display: flex; /* Show the menu when toggled */
    }

    .hamburger-menu {
        display: block; /* Show the hamburger menu */
        padding-left: 1rem;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
}
/*------------------------------------------------------*/
/*  MAIN - SECTIONS - CARDS                             */

#section-about, #section-services, #section-news, #section-contact {
    display: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
section {
    transition: opacity 0.5s ease-in-out;
}
.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 1rem;
    margin: 2rem;
    padding: 1rem;
    flex: 1;
}
.hero h1 {
    background-color: transparent;
    margin: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    text-align: center;
}
section .card.figure-l.hero div {
    padding: 0 3rem 0 3rem;   
}
.hero p {
    text-align: justify;
    margin-top: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.75rem;
}
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
.figure-l figure {
    float: left;
    margin: 1rem;
    width: auto;
}
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
.figure-r figure {
    float: right;
    margin: 1rem;
    width: auto;
}
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
.card figure img {
    width: 200px;
}
.hero {
    width: 80%;
    background-color: aliceblue;
    box-shadow: 0.5rem 0.5rem 20px 0px #607D8B;
    display: flex;
}
.card-1 {
    width: 80%;
    background-color: #c8efec;
    box-shadow: 0.5rem 0.5rem 20px 0px #607D8B;
    display: none;
}
.card-2 {
    width: 80%;
    background-color: transparent;
    box-shadow: 0.5rem 0.5rem 20px 0px #607D8B;
    display: none;
}
.card-3 {
    width: 80%;
    background-color: #e6e6e6;
    box-shadow: 0.5rem 0.5rem 20px 0px #607D8B;
    display: none;
}

/*------------------------------------------------------*/
/*  OTHER PAGES                                         */
.about, .contact, .services, .news, .home {
    width: 75%;
    padding-left: 5rem;
    padding-right: 5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 1152px) and (max-width: 1279px) {
    .home {
        width: 85%!important;
    }
    .home .pr-4 {
        padding-right: 3rem!important;
    }
}
@media (min-width: 1024px) and (max-width: 1152px) {
    .home {
        width: 90%!important;
    }
    .home p {
        font-size: 1rem;
        margin-top: 1rem;
        line-height: 1rem;
    }
    .home .pr-4 {
        padding-right: 2rem!important;
    }
}
@media (max-width: 1024px) {
    .home .flex-row {
        flex-direction: column;
    }
    .services div {
        flex-direction: column;
    }
    .services img {
        padding-top: 1rem;
    }
}
@media (max-width: 768px) {
    .home-logo {
        display: none;
    }
    .about div {
        flex-direction: column;
    }
    .about img {
        padding-top: 1rem;
    }
}
.about h1, .contact h1, .services h1, .news h1, .home h1 {
    background-color: #76bccc;
    border-radius: 1rem;
    margin: 0;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    text-align: center;
}
.about h2, .contact h2, .services h2, .news h2, .home h2  {
    margin-top: 2rem;
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-offset: 0.3rem;
}
.about h3, .contact h3, .services h3, .news h3, .home h3 {
    background: linear-gradient(45deg, #76bccc, transparent);
    margin-top: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    /*border-radius: 1rem;
    background-color: #76bccc;*/
}
.about p, .contact p, .services p, .news p, .home p {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    text-align: justify;
}

.about li {
    font-size: 1.25rem;
    line-height: 1.75rem;
    text-align: left;
}
.about .colaboradores li {
    list-style: disc;
    margin-bottom: 0.5rem;
    margin-left: 1rem;
}
.about figure img, .services figure img, .news figure img{
    border-radius: 2rem;
}
.contact-form {
    padding-top: 3rem;
}
.btn {
    width: fit-content;
    align-self: center;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    font-family: 'IdealSans';
    font-weight: 1000;
    background-color: transparent;
}
.btn a {
    background-color: rgb(150, 190, 190);
    color: black;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 0.5rem;
}
.btn a:hover {
    color: white;
}
.btn a:active {
    background-color: cornflowerblue;
    color: white;
}

/*------------------------------------------------------*/
/*  FOOTER                                              */

footer {
    background-color: #607d8b0e;
    color: black;
    padding: 0.5rem;
    margin-top: 2rem;
    width: 100%;
}
footer .menu-nav li {
    font-size: 0.75rem;
    padding: 0 0.5rem 0 0.5rem;
}
footer .menu-nav li a {
    text-decoration: none;
    padding: 0.5rem;
}
footer .menu-nav li a:hover {
    background-color: lightgrey;
    color: black;
}
footer .menu-nav li a:active {
    background-color: lightgrey;
    color: white;
}
@media (max-width: 768px) {
    footer { display: none!important;}
}
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
/* !!!!!!!!!!!!!!!!!!!!!!!!!!!! */
.gallery {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.gallery h3 {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}
.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    background-color: transparent;
    aspect-ratio: 4 / 3; 
    position: relative; /* Enable absolute positioning for child elements */

}
div .gallery-item a {
    text-decoration: none;
}
div .gallery-item a:hover {
    text-decoration: underline;
    color: black;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}
.gallery-item h3 {
    position: absolute; /* Position it within the container */
    bottom: 0; /* Align it to the bottom */
    left: 0; /* Align it to the left edge */
    width: 100%; /* Force it to span the full width of the container */
    margin: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.6); /* Add a semi-transparent background for readability */
    color: #fff; /* White text for contrast */
    font-size: 1rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box; /* Ensure padding is included in width */
    display: block; /* Ensure block-level behavior */
}
.pagination button {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    padding: 1rem;
    background-color: transparent;
    color: black;
}
.pagination button:hover {
    color: white;
    border-radius: 1rem;
    background-color: rgb(150, 190, 190);
}
.pagination button:active {
    color: white;
    background-color: cornflowerblue;
}
.pagination button:disabled {
    color: gray;
    cursor:not-allowed;
}
.h1-news {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: space-between; /* Space between title and button */
    position: relative; /* Allow absolute centering */
}
.title {
    position: absolute; /* Absolute positioning allows true centering */
    left: 50%; /* Start at the horizontal center */
    transform: translateX(-50%); /* Adjust for the title width */
    font-size: 24px; /* Optional: adjust font size */
    white-space: nowrap; /* Prevent wrapping */
}
.search-button {
    margin-left: auto; /* Push the button to the far right */
    background-color: transparent; /* Optional: button styling */
    display: flex;
    align-items: center;
    gap: 5px; /* Space between icon and text */
}
.search-button {
    border-radius: 1rem;
    margin-right: 1rem;
    padding: 0.25rem;
}
.search-button:hover svg {
    background-color: white;
    color:black;
}
.search-button:hover {
    background-color: white;
    color:black;
}
.search-button:active {
    background-color: black;
    color: white;
}
.search-button:active svg {
    background-color: black;
    color: white;
}
.search-results {
    display: flex;

}
.search-results button {
    color: black;
    background: transparent;
}
.search-results button svg:hover {
    background-color: black;
}
.search-results button svg:active {
    color: cornflowerblue;
}
/* Modal Overlay */
.modal {
    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.5); /* Semi-transparent background */
}
/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: row;
    background-color: #ffffffde;
    margin: 15% auto; /* Center vertically */
    padding: 1rem;
    border-radius: 1rem;
    width: 80%; /* Adjust width as needed */
    max-width: 400px; /* Limit maximum width */
    text-align: center; /* Center text in modal */
}
.modal-content .close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 1rem;
  cursor: pointer;
}
.modal-content input {
  width: 90%;
  padding: 1rem;
  border: none;
  background-color: white;
}
.modal-content button {
    margin-left: 1rem;
    background-color: rgb(150, 190, 190);
    color: black;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
}
.modal-content button:hover {
    color:white;
}
.modal-content button:active {
    background-color: cornflowerblue;
    color: white;
}

/* Spinner overlay */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid cornflowerblue;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

/* Toast message */
.toast {
    background-color: #333;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInOut 4s ease forwards;
    font-size: 0.875rem;
}

/* Toast types */
.toast.info {
    background-color: #007bff;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

/* Animation for toast */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}