.top-container {
    position: relative;
    /* text-align: center; */
    color: white;
}

.main-container {
    margin-bottom: 0;
}

.container-fluid {
    padding: 0;
}

.img-top-container {
    background-image: url("../images/sectiunea-de-sus.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(1rem, 5vw, 2.8rem);
    height: 45vw;
}

.top-title {
    position: absolute;
    top: 4vw;
    left: 6vw;
    font-family: 'Tillana';
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: left;
}

.top-subtitle {
    position: absolute;
    top: 10vw;
    left: 6vw;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    text-align: left;
    max-width: 48vw;
}

.top-quote {
    position: absolute;
    top: 12vw;
    right: 6vw;
    font-family: 'Tillana';
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-align: right;
}


.top-circle-title {
    text-align: center;
    margin-top: -3vw;
    margin-left: -3vw;
    font-family: 'Tillana';
    font-weight: 400;
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    max-width: 16rem;
}

.top-circle-subtitle {
    text-align: center;
    font-family: 'Tillana';
    font-weight: 400;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    text-align: center;
    max-width: 15rem;
}

.container-cerc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 25vw;
    left: 14vw;
    background-image: url("../images/cerc.png");
    background-repeat: no-repeat;
    background-size: contain;
    min-width: 20rem;
    min-height: 20rem;
}

@media(min-width: 1320px) {
    .container-cerc {
        left: 20vw;
    }

    .top-title {
        top: 6vw;
    }

    .top-subtitle {
        top: 10vw;
    }
}


/* sub-lg */
@media(max-width: 992px) {
    .img-top-container {
        background-image: url("../images/sectiunea-de-sus-mobil.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding-top: clamp(1rem, 3vw, 2rem);
        padding-bottom: clamp(1rem, 5vw, 2.8rem);
        height: 50vw;
    }

    .top-title {
        left: 6vw;
    }

    .top-subtitle {
        top: 11.5vw;
        left: 6vw;
        max-width: 80vw;
    }

    .top-quote {
        top: 26vw;
        right: 6vw;
    }

    .top-circle-title {
        max-width: 30vw;

    }

    .top-circle-subtitle {
        max-width: 30vw;

    }

    .container-cerc {
        top: 28vw;
        min-width: 35vw;
        min-height: 35vw;
        left: 5vw;
    }
}

/* md */
@media(max-width: 768px) {
    .img-top-container {
        background-image: url("../images/sectiunea-de-sus-mobil.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding-top: clamp(1rem, 3vw, 2rem);
        padding-bottom: clamp(1rem, 5vw, 2.8rem);
        height: 60vw;
    }

    .top-quote {
        top: 32vw;
    }


    .container-cerc {
        top: 38vw;
        min-width: 40vw;
        min-height: 40vw;
    }
}


/* sm */
@media(max-width: 576px) {
    .img-top-container {
        background-image: url("../images/sectiunea-de-sus-mobil.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding-top: clamp(1rem, 3vw, 2rem);
        padding-bottom: clamp(1rem, 5vw, 2.8rem);
        height: 80vw;
    }

    .top-title {
        top: 2vw;

    }

    .top-quote {
        top: 42vw;
    }

    .container-cerc {
        top: 47vw;
        min-width: 45vw;
        min-height: 45vw;
    }
}


@media (max-width: 479px) {
    .img-top-container {
        background-image: url("../images/sectiunea-de-sus-mobil.png");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding-top: clamp(1rem, 3vw, 2rem);
        padding-bottom: clamp(1rem, 5vw, 2.8rem);
        height: 110vw;
    }

    .container-cerc {
        top: 85vw;
        min-width: 55vw;
        min-height: 55vw;
    }


    .top-quote {
        top: 65vw;
    }

    .top-circle-subtitle {
        max-width: 40vw;
    }


}

@media (max-width: 360px) {

    .top-title {
        font-size: 1.2rem;
    }

    .top-subtitle {
        font-size: 0.8rem;
    }

    .top-quote {
        font-size: 1.2rem;
        top: 65vw;
    }

    .top-circle-title {
        font-size: 1.2rem;
    }

    .top-circle-subtitle {
        font-size: 0.6rem;
        max-width: 40vw;
    }

}

/* Testimoniale */

.testimonial-titles {
    text-align: center;
    font-weight: 500;
    padding: 3vw 0;
    margin-top: 2.5rem;
}

@media(max-width: 1200px) {
    .testimonial-titles {
        margin-top: 5rem;

    }
}

@media(max-width: 576px) {
    .testimonial-titles {
        margin-top: 3rem;
    }
}


@media(max-width: 479px) {
    .testimonial-titles {
        margin-top: 5rem;
    }
}

.testimonial-titles h1 {
    font-family: 'Tillana';
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}


.container .col-lg-4 {
    display: flex;
    justify-content: center;
}

.card {
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    perspective: 500px;
    border: none;
    background-color: inherit;
}

.card .face {
    background: linear-gradient(to bottom, #000428, #004683);
    animation: background-color 20s;
    position: absolute;
    color: #fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transform-style: preserve-3d;
    transition: 0.5s;
    backface-visibility: hidden;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;

}

.card .face.front-face,
.card .face.back-face {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card .face.front-face .profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.card .face.front-face .name {
    letter-spacing: 2px;
}

.card .face.front-face .designation {
    font-size: 0.8rem;
    color: #ddd;
    letter-spacing: 0.8px;
}

.card:hover .face.front-face {
    transform: rotateY(180deg);
}

.card .face.back-face {
    position: absolute;
    background: linear-gradient(to bottom, #000428, #004683);
    transform: rotateY(180deg);
    padding: 20px 30px;
    text-align: center;
    user-select: none;
}

.card .face.back-face .fa-quote-left {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 1.2rem;
}

.card .face.back-face .fa-quote-right {
    position: absolute;
    bottom: 35px;
    right: 25px;
    font-size: 1.2rem;
}

.card:hover .face.back-face {
    transform: rotateY(360deg);
}

@media(max-width: 991.5px) {
    .col-lg-4 {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

/* Zona istoric */
.istoric-container {
    gap: 180px;
    padding: 20px;
    border-radius: 10px;
}

.istoric-title {
    font-family: 'Tillana';
    color: #0A2E5C;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 5rem) !important;
    text-align: center;
    margin: 4vw 0 2vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.istoric-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 400;
    color:#0A2E5C;
    
}

.sageata {
    width: clamp(7rem, 12vw, 16rem);
    height: auto;
}


.timeline {
    position: relative;
    list-style: none;
    padding: 0;
    left: 6vw;
}

.timeline li {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
}

.timeline-year {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -8vw;
    top: 50%;
    width: clamp(45px, 5.5vw, 80px);
    height: clamp(25px, 3.5vw, 40px);
    font-family: 'Tillana', sans-serif;
    background-color: #7EAEEC;
    color: #0A2E5C;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: bold;
    border-radius: 28px;
    transform: translateY(-50%);
}


.timeline-content {
    background-color: white;
    padding: 10px 15px 0;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 3vw;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    width: 70vw;
}




@media (max-width: 479px) {
    .timeline-year {
        left: -9vw;
    }
}

@media (min-width: 720px) {
    .timeline-year {
        left: -5vw;
    }
}

@media (min-width: 992px) {
    .timeline-content {
        width: 60vw;
    }

    .timeline-year {
        left: -3vw;
    }
}



/* Catedre */

.catedre {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: minmax(100px, auto);
    gap: 15px;
    padding: 0 12vw 12vw 12vw;
}

.titlu-catedre {
    font-family: 'Tillana';
    color: #0A2E5C;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 5rem) !important;
    text-align: center;
    margin: 4vw 0 2vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.catedra {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 12px;
    box-shadow: -5px 10px 7.3px 0px #00000080;
    text-align: start;
}

.catedra h3 {
    font-size: clamp(16px, 2vw, 24px);
    color: #0A2E5C;
    margin-bottom: 10px;
    text-align: center;
}

.catedra ul {
    list-style: none;
    padding: 0;
}

.catedra li {
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 500;
    color: #0A2E5C;
    /* line-height: 27px; */

}

.catedra-invatatori {
    max-height: 250px;
    overflow: auto;
    background-color: #CEC2FF;
    scrollbar-width: auto;
    scrollbar-color: #CEC2FF #EDEAFF;

}

.catedra-desen{
    background-color: #CEC2FF;
}

.catedra-romana,
.catedra-matematica,
.catedra-germana {
    background-color: #e4fdb2;
}

.catedra-fizica,
.catedra-civica,
.catedra-tehnologica,
.catedra-info {
    background-color: #FFED89;
}

.catedra-istorie,
.catedra-engleza,
.catedra-religie {
    background-color: #B8D7FF;
}

.catedra-muzica,
.catedra-chimie,
.catedra-geografie,
.catedra-biologie {
    background-color: #FFC8E6;
}

.catedra-sport {
    background-color: #FFE3C9;
}