/* Container styling */
#rector-container {
    max-width: 900px;
    margin: 60px auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(23, 32, 42, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Rector card styling */
#rector-container .rector-card {
    display: flex;
    flex-wrap: wrap;
    border: 4px solid #13357B;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px;
}

/* Image styling */
#rector-container .rector-card img {
    width: 50%; /* Ancho inicial de la imagen */
    height: auto;
    object-fit: cover;
    border-right: 3px solid #13357B;
    max-width: 100%; /* Ajuste para asegurar responsividad */
    margin-right: 20px; /* Espacio entre la imagen y el texto */
}

/* Details section styling */
#rector-container .rector-details {
    flex: 1;
    padding: 20px;
    text-align: center;
}

/* Title styling */
#rector-container .rector-title {
    margin-top: 0;
    font-size: 3.0rem;
    color: #333333;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    font-family: 'Arial Black', sans-serif;
}

/* Underline styling */
#rector-container .underline {
    display: block;
    width: 300px;
    height: 3px;
    background-color: #13357B;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Name and title styling */
#rector-container .rector-name {
    margin-bottom: 5px;
    color: #333333;
    font-weight: bold;
    font-size: 1.5rem;
}

#rector-container .academic-title {
    margin-bottom: 20px;
    color: #808080;
    font-weight: bold;
}

/* Contact info styling */
#rector-container .contact-info {
    margin: 20px 0;
    padding: 10px;
    border-radius: 5px;
}

#rector-container .contact-label {
    font-weight: bold;
    color: #13357B;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

#rector-container .contact-detail {
    margin-bottom: 5px;
    color: #333333;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    #rector-container .rector-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #rector-container .rector-card img {
        width: 90%;
        max-width: 100%;
        margin-bottom: 20px;
        border-right: none;
    }

    #rector-container .rector-details {
        padding: 10px;
    }

    #rector-container .rector-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    #rector-container .rector-name,
    #rector-container .academic-title,
    #rector-container .contact-label,
    #rector-container .contact-detail {
        font-size: 1rem;
    }
}

.card {
    margin-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    padding: 15px;
    font-weight: bold;
    font-family: 'Calibri', sans-serif;
    background-color: #13357B;
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 20px;
}

.card-img-top {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-title {
    margin-top: 10px;
    font-size: 15px;
    font-weight: bold;
}

.card-text {
    margin-top: 10px;
    font-size: 15px;
}

.contact-info {
    margin-top: 10px;
}

.contact-label {
    font-weight: bold;
}

.contact-detail {
    margin-top: 10px;
    font-size: 15px;
}

@media (max-width: 500px) {
    .card {
        margin-bottom: 10px;
    }
}