@media screen and (max-width: 1400px),
handheld and (min-width: 1200px) {
    .details-summary {
        width: auto;
        margin-left: 6%;
    }

    .dreapta-contact {
        margin-bottom: 5.5%;
    }

}


@media screen and (max-width: 1200px) {
    :root {
        --brand: #1a73e8;
        --ink: #434443dc;
        --muted: #5b6b7b;
        --line: #dfe7f3;
        --panel-bg: #f4f9ff;
    }

    nav.menu a img {
        display: none;
    }


    .mobile-icon {
        display: block;
    }

    #burger-button {
        display: block;
    }

    .openbtn {
        display: block;
    }

    #primarie {
        line-height: 1.5;
    }

    /*Evenimente*/
    .events {
        display: grid;
        grid-template-columns: auto auto;
    }

    details[open] summary~* {
        animation: sweep .5s ease-in-out;
        width: 83%;
        margin: 0 2% 1rem 7%;
    }

    .page-content {
        margin-top: 15rem;
    }

    .page-content h1 {
        font-size: 1.8rem;
    }
}




@media screen and (max-width: 1200px),
handheld and (min-width: 1000px) {

    .header {
        top: 110px;
    }

    .header .menu .menu-section {
        display: none;
    }

    .quick-menu ul li {
        margin-bottom: 0.2rem !important;
    }

    .quick-menu ul li a .name span {
        font-size: 1rem;
    }

    #primarie {
        margin-top: 0.6rem;
        font-size: 0.9rem;
    }

    .openbtn {
        margin: 30px 0 30px 0;
    }

    /*institutii subordonate*/
    .institutii-sub {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 80px;
        margin: 20px 0;
        align-items: start;
    }

    /*Evenimente*/
    .events {
        display: grid;
        grid-template-columns: auto;
    }

    .page-content p a {
        text-align: center;
    }

    /*contact*/
    .contact-titlu {
        margin-bottom: 0;
    }


}

@media screen and (max-width: 990px),
handheld and (min-width: 770px) {
    .dreapta-contact {
       margin-left: -17%;
    }

    .email-title {
        margin-left: 17%;
    }


    .quick-menu ul li a .name span {
        font-size: 0.8rem;
    }

    .quick-menu ul li a {
        min-width: 6rem;
        margin: 1rem 0 0 0;
    }

    .agenda {
        margin-left: 25%;
    }

    /*statut*/
    .statut-unitate {
        margin: 1.5rem 6rem;
    }
}


@media(max-width:768px) {
    .dreapta-contact {
       margin-left: -18%;
    }

    .email-title {
        margin-left: 23%;
    }


    #primarie {
        float: left;
        text-align: center;
        line-height: 65px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Fixed sidenav, full height */
    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #1a73e8;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .sidenav .closebtn {
        font-size: 15px;
        margin-left: 212px;
        cursor: pointer;
    }

    /* Style the sidenav links and the dropdown button */
    .sidenav a,
    .dropdown-btn {
        padding: 10px 8px 6px 16px;
        text-decoration: none;
        font-size: 15px;
        color: #ffffffd0;
        display: block;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        outline: none;
    }

    /* On mouse-over */
    .sidenav a:hover,
    .dropdown-btn:hover {
        color: #f5f5f576;
    }

    /* Main content */
    .main {
        margin-left: 200px;
        /* Same as the width of the sidenav */
        font-size: 20px;
        /* Increased text to enable scrolling */
        padding: 10px 10px;
    }

    /* Add an active class to the active dropdown button */
    .active {
        background-color: rgba(6, 10, 91, 0.181);
        color: white;
    }

    /* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
    .dropdown-container {
        display: none;
        background-color: rgba(6, 10, 91, 0.181);
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Optional: Style the caret down icon */
    .fa-caret-down {
        float: right;
        padding-right: 5px;
    }

    .menu-section {
        display: none;
    }

    .slide-container {
        top: 80px;
    }

    .slide-container .navigation {
        height: 15rem;
        ;
    }

    .cover-text {
        top: 17rem;
    }

    .cover-text p {
        font-size: 0.7rem;
    }

    .cover-text h2 {
        font-size: 0.9rem;
    }

    .prev-btn,
    .next-btn {
        font-size: 0.8rem;
    }

    .slide-icon {
        display: none;
    }

    .slide img {
        height: 55vh;
    }

    .link-card {
        margin-top: 2rem;
    }

    .harti-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .scd-button {
        margin-right: 12%;
    }

    .openbtn {
        margin: 20px 10px 20px 0;
    }

    .search-bar,
    .facebook-icon {
        display: block;
    }

    .mobile-menu {
        margin-top: 1rem;
        width: 80%;
    }

    /*Despre*/

    /*Lista demnitari*/
    .demnitari {
        display: flex;
        flex-direction: column;
    }

    /*Agenda conducerii*/
    .agenda {
        margin: 0 auto;
    }

    .agenda li {
        text-align: center;
        margin-bottom: 2rem;
    }

    .page-content {
        margin-top: 13rem;
    }

    .page-content h1 {
        font-size: 1.3rem;
    }

    /*institutii subordonate*/
    .institutii-sub {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin: 20px 0;
        align-items: start;
    }

    .declaratii-pdf {
        column-gap: 1.2rem;
        grid-template-columns: repeat(2, 1fr);
    }

    footer {
        font-size: 1.5vw;
        min-height: 180px;
    }

    .design {
        margin-top: 1rem;
    }

    /*contact*/
    .dreapta-contact {
        width: auto;
    }

    .page-content.audiente {
        margin-bottom: 23%;
    }

    .bg-mg-bt {
        margin-bottom: 25%;
    }

    .avansis-image {
        width: 120%;
        max-width: 650px;
        border-radius: 10px;
        margin-left: 13%;
        margin-bottom: 2%;
    }



}