.content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-image: url('/img/education-background.jpg');
    background-size: cover;
    background-position: 30% center; 
    background-attachment: fixed;
    height: auto;
    box-sizing: border-box;
    min-height: 100vh;
}

.main-header .logo{
    background-image: url("/img/logo-2.png");
}

.first-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100%;
    color: white;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.2);
}

.first-section .first-section-content {
    text-align: center;
    padding: 20px;
}

.first-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.first-section p{
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.8;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.info-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.2);
}

.info-section-container h2 {
    position: relative;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 5px;
    display: inline-block;
}

.info-section-container h2::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    background: var(--text);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.4s ease-in-out;
}

.info-section-container:hover h2::after {
    width: 100%;
}

.info-section-container{
    width: 95%;
    height: 80%;
    background-color:  rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.info-section:hover .info-section-container{
    transform: scale(1.02); 
}

.info-section-bottom{
    display: flex;
    justify-content: space-evenly;
}

.info-section-left{
    padding: 20px;
    width: 40%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 0px;
}

.info-section-right{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 55%;
    overflow: hidden;
}

.info-section-left p {
    text-align: justify;
    font-size: 1.4rem;
    font-style: italic;
    position: relative;
    left: -100%;
    opacity: 0;
    transition: left 0.5s ease-out, opacity 0.5s ease-out;
}

.info-section:hover .info-section-left p {
    left: 0;
    opacity: 1;
}

.icon-cards {
    position: relative;
    width: 60vw;
    height: 40vw;
    max-width: 380px;
    max-height: 250px;
    margin: 0;
    perspective: 1200px;
    transform-origin: center;
}

.icon-cards__content {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: translateZ(-60vw) rotateY(0);
    transition: transform 0.5s ease-in-out;
}

.icon-cards__item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60vw;
    height: 40vw;
    max-width: 380px;
    max-height: 250px;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    border-radius: 6px;
    transform-origin: center;
    background: rgba(255, 255, 255, 0.85); 
    overflow: hidden;
    cursor: pointer;
}

.icon-cards__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.controls button {
    background-color: var(--donate-btn);
    border: none;
    color: white;
    font-size: 1rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: var(--donate-btn-hover);
}

.form-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.form-section form .required {
    color: red;
    margin-left: 5px;
    display: inline;
}

#registration-form{
    width: 50%;
}

.form-section h2{
    color: var(--white);
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.form-section form div {
    margin-bottom: 15px;
}

.form-section form label {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-section form input, .form-section form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-section form textarea {
    resize: none;
}

.form-section form button {
    background-color: var(--donate-btn);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    font-weight: 600;
}

.form-section form button:hover {
    background-color: var(--donate-btn-hover);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--white);
    border-radius: 10px;
    width: 45%;
    height: 70%;
    padding: 0px 20px 20px;
    box-sizing: border-box;
}

.up-modal-content {
    display: flex;
    justify-content: end;
    align-items: center;
}

.close {
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: var(--white);
    transition: transform 0.3s ease;
}

.close:hover {
    color: var(--white);
    transform: scale(1.1);
}

.image-modal{
    width: 100%;
    height: 90%;
}

.image-modal img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {

    .content{
        background-image: url('/img/educacion-1.jpg');
    }

    .info-section-left p {
        opacity: 1;
        left: 0;
    }

    .info-section:hover .info-section-container{
        transform: none; 
    }

    .first-section-content {
        position: absolute;
        top: 70%;
        transform: translateY(-50%);
    }

    .first-section h1 {
        font-size: 2.5rem;
    }

    .info-section{
        height: auto;
    }

    .info-section-bottom{
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .info-section-left{
        width: 100%;
    }

    .info-section-right{
        width: 90%;
        margin-bottom: 20px;
    }

    .form-section{
        margin-top: 20px;
    }

    #registration-form{
        width: 100%;
    }

    .icon-cards {
        width: 100%;
        height: auto;
        max-width: 100%;
        max-height: none;
        perspective: none;
        overflow-x: auto;
        display: block;
        padding: 10px 0;
    }
    
    .icon-cards__content {
        position: relative;
        height: auto;
        min-width: min-content;
        transform: none !important;
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        padding: 0 15px;
    }
    
    .icon-cards__item {
        position: relative !important;
        width: auto !important;
        height: auto !important;
        min-width: min-content;
        transform: none !important;
        flex: 0 0 auto;
    }
    
    .icon-cards__item img {
        width: auto;
        max-height: 200px;
        object-fit: contain;
    }

    .modal-content{
        width: 80%;
        height: auto;
    }

    .image-modal{
        height: auto;
    }
}