/* ******************************* TELEFON ***************************** */
/* Extra small devices (phones, less than 640px) */
@media screen and (max-width: 640px) {
    :root {
        --brand: #1a73e8;
        --ink: #434443dc;
        --muted: #5b6b7b;
        --line: #dfe7f3;
        --panel-bg: #f4f9ff;
    }
    .inapoi{
        top: 3.5em;
    }

    /**************************************CONTENT********************************************/
    /* ========== elemente comune ========== */

    /* ========== index.php - carusel ========== */
    .slider {
        display: none;
    }

    /* ========== carduri ========== */
    .card-div {
        margin: 6em auto;
    }

    /* ========== evenimente ========== */

    .titlu_evenimente {
        margin-top: 5em;
        text-align: center;
        font-size: 1em;
        /* position: relative; */
    }

    .bg {
        display: inline-block;
        width: min-content;
        margin: 0;
        padding: 0;
    }

    .chenar4 {
        height: 30em;
        width: 65%;
        margin: 1em auto;
    }

    .body-carusel {
        display: none;
    }

    .continut_text {
        top: 50rem;
        margin: auto;
        padding: 1em;
        text-align: justify;
    }

    fieldset {
        width: 100%;
    }

    /* ========== container ========== */

    .container-principal {
        margin: 5rem;
        width: min(92vw, 70rem);
        margin-inline: auto;
        padding-inline: clamp(1rem, 2vw, 2rem);
    }

    .titlu {
        text-align: center;
        font-size: 1.2rem;
    }

    /* ========== lista-demnitari.php - demnitari ========== */
    .titlu {
        text-align: center;
        font-size: 1.2em;
    }

    .text {
        padding: 2.5em;
    }

    .continut_pagina {
        margin: 7em auto 0 auto;
        padding: 0;
    }

    /* lista-demnitari */
    .demnitar {
        width: 50%;
    }

    .info_demnitari {
        font-size: 2.7vw;
    }

    .faq__content {
        font-size: 2vw;
        margin: 1em 3em;
    }

    .informatii_collapsed {
        margin: 3em 1em;
    }

    .summary {
        font-size: 0.8em;
    }
        .orange_summary{
        color: #ffffff;
        background-image: linear-gradient(rgba(255, 136, 0, 0.318), rgba(255, 213, 0, 0.561), rgba(255, 174, 0, 0.357));
    }

    .descriere_card {
        font-size: 0.8em;
        width: 85%;
        margin: 2em auto;
    }

    /* ========== componenta-consiliul-local.php - consilieri ========== */
    .row {
        margin: 1em;
        padding: 1em;
    }

    .text-block {
        font-size: 2.3vw;
        /* top: 40vh; */
    }

    .column {
        height: auto;
        display: flex;
        width: 50%;
        margin: 2%;
    }

    /* ========== asistenta-sociala.php - iframe ========== */

    .documente_mobil {
        display: block;
    }

    .revista-container {
        display: none;
    }

    .faq__content {
        font-size: 0.7em;
        margin: 5%;
        padding: 1em;
    }

    .doua_coloane {
        display: block;
        width: 100%;
        padding: 1em;
        font-size: 1em;
    }

    .link_inlocuitor_iframe {
        display: block;
    }

    .youtube {
        display: none;
    }

    /* ========== evenimente.php - carduri de eveniment ========== */
    .events {
        flex-wrap: wrap;
    }

    .img_clejani {
        display: none;
    }


    /* ========== centralizator_achizitii.php - flip-box ========== */

    .flip-box-front {
        padding: 2rem;
        font-size: 1rem;
    }

    .flip-box {
        display: grid;
        gap: clamp(0.75rem, 1vw, 1.25rem);
        margin-top: 2rem;
        width: 90%;
        height: 90px;
    }

    .flip-box-back {
        font-size: 1.8vw;
        padding: 0.5em;
    }

    .grid-foto-2 {
        grid-template-columns: 1fr;
    }

    .grid-foto-2 img {
        width: 50vw;
        height: 20vh;
    }

    .content2 {
        grid-template-columns: auto;
        align-items: center;
        justify-content: space-between;
        width: 50%;
        height: auto;
    }

    .dribbble-img img {
        border-radius: 6px;
        width: 90vw;
        height: auto;
        margin: auto;
    }

    /* ========== contact ========== */

    .dreapta-contact {
        width: 60vw;
    }


}

/* ******************************* TABLETA ***************************** */
/* Small devices (tablets, 640px and up) */
@media screen and (min-width: 641px),
handheld and (min-width: 641px) and (max-width: 980px) {

    :root {
        --brand: #1a73e8;
        --ink: #434443dc;
        --muted: #5b6b7b;
        --line: #dfe7f3;
        --panel-bg: #f4f9ff;
    }
        .inapoi{
        top: 7.5em;
    }


    .titlu {
        text-align: center;
        font-size: 1.5rem;
    }

    /* ---------------------------CONTENT---------------------------------- */
    /* ========== elemente comune ========== */
    .descriere_card {
        width: 80%;
    }

    /* index.php */
    /* ========== carusel ========== */

    .slider {
        position: relative;
        background: whitesmoke;
        width: 100%;
        height: auto;
        margin: 0;
        overflow: hidden;
        border-radius: 10px;
        top: 5em;
    }

    /* ========== carduri evenimente ========== */
    .chenar4 {
        width: 40%;
        margin: 0 1% 30px 2.9em;
        float: left;
        height: 420px;
        border-radius: 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        background-color: #FFF;
        position: relative;
    }

    /* ========== centralizator-achizitii.php - flip-box ========== */
    .flip-box-front {
        padding: 2rem;
        font-size: 1rem;
    }

    .flip-box {
        display: grid;
        position: relative;
        gap: clamp(0.75rem, 1vw, 1.25rem);
        margin-top: 2rem;
        width: 90%;
        height: 90px;
    }

    .flip-box-back {
        font-size: 1.5vw;
        padding: 0.5em;
    }


    /* ========== container ========== */
    .container-principal {
        text-align: center;
        margin: 10rem auto;
        width: min(92vw, 70rem);
        margin-inline: auto;
        /* padding-inline: clamp(1rem, 2vw, 2rem); */
    }

    /* ========== titluri/sectiuni ========== */
    .text {
        padding: 2.5em;
    }

    /* ========== lista-demnitari.php - poze, liste, informatii colapsate ========== */

    .continut_pagina {
        margin: 11em auto 0 auto;
    }

    .informatii_collapsed {
        margin: 3em auto;
    }

    .faq__content {
        font-size: 0.8em;
        margin: 1rem;
        padding: 1em 2em;
    }

    .info_demnitari {
        font-size: 1.5vw;
    }

    .lista_demnitari {
        margin: 1em;
    }

    .demnitar {
        width: 25%;
    }

    /* ========== componenta-consiliul-local.php - consilieri ========== */
    .row {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        padding: 1em;
    }

    .text-block {
        font-size: 1.8vw;
        /* top: 40vh; */
    }

    .column {
        display: flex;
        width: 30%;
        padding: 10px;
        height: auto;
    }

    /* ========== asistenta-sociala.php - iframe ========== */

    .documente_mobil {
        display: block;
    }

    .revista-container {
        display: none;
    }

    .link_inlocuitor_iframe {
        display: none;
    }

    /* ========== div continut ========== */
    .doua_coloane {
        display: block;
        width: 80%;
    }

    summary {
        font-size: 1rem;
    }
    .orange_summary{
        color: #ffffff;
        background-image: linear-gradient(rgba(255, 136, 0, 0.318), rgba(255, 213, 0, 0.561), rgba(255, 174, 0, 0.357));
    }

    .grid-foto-2 {
        grid-template-columns: 1fr;
    }

    .grid-foto-2 img {
        width: 40vw;
        height: 25vh;
    }

    /* ========== evenimente.php - carduri de eveniment ========== */
    .events {
        flex-wrap: wrap;
    }

    .img_clejani {
        display: none;
    }

    .content2 {
        grid-template-columns: auto;
        margin: 1em auto;
        width: 60%;
    }

    .dribbble-img img {
        border-radius: 6px;
        width: 90vw;
        height: auto;
        object-fit: cover;
    }

    /* ========== contact ========== */

    .dreapta-contact {
        width: 60vw;
    }

    /* ========== awards ========== */

    .awards {
        width: 80%;
        height: 50em;
    }

    .grid_foto_portret {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid_foto_portret img {
        margin: 1em auto;
        width: 80%;
        height: auto;
        padding: 1em;
        border-radius: 40px;
    }

}

/* ******************************* TRANZITIE ***************************** */

@media screen and (min-width: 1120px),
handheld and (min-width: 640px) {

    /* ---------------------------CONTENT---------------------------------- */

    /* ========== flip-box ========== */

    .flip-box-back {
        font-size: 1vw;
        padding: 0.5em;
    }

    .flip-box {
        font-size: 1.2em;
        padding: 0.5em;
        background-color: transparent;
        width: 25%;
        /* Adjust the width to ensure three fit in a row */
        height: 200px;
        perspective: 1000px;
        /* For 3D effect */
        display: inline-block;
        margin: 10px;
        text-align: center;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.8s;
        transform-style: preserve-3d;
        overflow: hidden;
        /* Ensures no overflow */
    }
}

/* ******************************* CALCULATOR *************************** */
/* Medium and large devices (desktops, 980px and up) */
@media screen and (min-width: 981px),
handheld and (min-width: 640px) {

    /* ========== meniu ========== */

    .openbtn {
        display: none;
    }
        .inapoi{
        top: 10em;
    }

    /* ---------------------------CONTENT---------------------------------- */

    /* index.php */
    /* ========== carusel ========== */
    .body-carusel {
        height: 70vh;
        width: 100%;
    }

    .slider {
        position: relative;
        width: 100%;
        height: auto;
        top: 5em;
        background: whitesmoke;
        margin: 0px;
        overflow: hidden;
        border-radius: 10px;
    }

    .container-principal {
        font-size: 0.8em;
        margin: 5% auto;
        width: 100%;
    }

    .chenar4 {
        width: 25%;
        height: 470px;
    }

    /* ========== lista-demnitari.php - demnitari ========== */
    .titlu {
        /* margin: 3em auto; */
        text-align: center;
    }

    .text {
        width: 80%;
        padding: 2.5em;
        margin: auto;
    }

    .continut_pagina {
        margin: 15em auto 0 auto;
        padding: 0;
    }

    /* lista-demnitari */
    .demnitar {
        width: 13%;
    }

    .info_demnitari {
        font-size: 1vw;
    }

    .faq__content {
        font-size: 1vw;
        margin: 1em 5em;
    }

    /* ========== componenta-consiliul-local.php - consilieri ========== */
    .row {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        margin: 5em;
        padding: 2em
    }

    .column {
        display: flex;
        width: 30%;
        padding: 10px;
        height: auto;
    }

    .container {
        font-size: 0.79em;
        display: flex;
        position: relative;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .imagine_consilier {
        width: 100%;
        border-radius: 10px;
        height: auto;

    }

    .text-block {
        position: absolute;
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1em;
        top: 100%;
    }

    /* ========== asistenta-sociala.php - iframe ========== */

    .documente_mobil {
        display: none;
    }

    .revista-container {
        display: grid;
    }

    .link_inlocuitor_iframe {
        display: none;
    }

    /* ========== div continut ========== */
    .doua_coloane {
        margin: 0 auto;
        width: 90%;
        gap: 2em;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: justify;
        justify-items: baseline;  
    }

    /* ========== contact ========== */

    .dreapta-contact {
        width: 35vw;
    }

    /* ========== flip-box ========== */

    .flip-box>.flip-box-inner>.flip-box-front>h2 {
        text-align: center;
        font-size: 1.1vw;

    }

    .content2 {
        grid-template-columns: repeat(2, 1fr);
        margin: 1em auto;
        width: 60%;
    }

    .dribbble-img img {
        border-radius: 6px;
        width: 90vw;
        height: 30vh;
        object-fit: cover;
    }


    /* ========== evenimente ========== */
    .img_clejani {
        display: flex;
    }

    /* ========== Awards ========== */

    .grid-foto-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-foto-2 img {
        width: 35vw;
        height: 35vh;
    }

    .awards {
        height: 30em;
    }

    .grid_foto_portret {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid_foto_portret img {
        width: 15vw;
        height: auto;
        object-fit: contain;
        background: #fff;
        border-radius: 16px;
        box-shadow:
            0 10px 22px rgba(0, 0, 0, .10),
            0 3px 8px rgba(0, 0, 0, .06) inset;
        outline: 1px solid rgba(0, 0, 0, .06);
        transition: transform .28s ease, box-shadow .28s ease, outline-color .28s ease;
        will-change: transform;
    }

}