/* ------------------------------------------------------------ MISCELLANEOUS / COMMON ------------------------------------------------------------ */

@media screen and (max-width: 768px) {
    
    #cookie_notice {
        padding: 0 10px 10px;
        width:100%;
    }
    
    #cookie_notice .cookie_notice_container {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    
    #cookie_notice .cookie_notice_container p {
        text-align:Center;
    }

    .padding-as-header {
        padding-top:110px;
    }

    .padding-section {
        padding:50px 10px;
    }

    .margin-top {
        margin-top:50px;
    }

    .btn-primary,
    .btn-secondary {
        height:46px;
        padding:0 15px;
        gap:5px;
    }

    .blue-section:before {
        width:100vw;
        left: calc(-50vw + 50%);
    }

    .text-content,
    .contact-content {
        max-width:100%;
        flex:auto;
        gap: 10px;
    }

    .image-content,
    .contact-map {
        max-width:100%;
    }

    .section-top-common {
        height: auto;
        overflow: hidden;
    }

    .section-top-common:after {
        width:150%;
    }

    .section-top-common .container {
        gap:10px;
    }

    .section-top-common .common-logo img {
        max-width:200px;
    }

    .section-top-common .module-text {
        max-width: 100%;
    }

    .section-top-common .module-text h1 {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .section-top-common.thank-you-page .container .module-text h1,
    .section-top-common.thank-you-page .container .module-text p {
        max-width:100%;
    }

    .section-prefooter {
        gap:20px;
        flex-direction: column;
    }

    .prefooter-column {
        max-width:100%;
    }

    .double-list ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

}

@media screen and (min-width: 769px) and (max-width:991px) {
    
     #cookie_notice {
        padding: 0 10px 10px;
        width:100%;
    }
    
    #cookie_notice .cookie_notice_container {
        border-radius: 20px;
        padding: 15px;
    }
    
    .padding-as-header {
        padding-top:110px;
    }

    .padding-section {
        padding:50px 10px;
    }

    .margin-top {
        margin-top:50px;
    }

    .btn-primary,
    .btn-secondary {
        height:46px;
        padding:0 15px;
        gap:5px;
    }

    .blue-section:before {
        width:100vw;
        left: calc(-50vw + 50%);
    }
    
    .section-top-common {
        height: auto;
        overflow: hidden;
    }

    .section-top-common:after {
        width:150%;
    }

    .section-top-common .container {
        gap:10px;
    }

    .section-top-common .common-logo img {
        max-width:200px;
    }

    .section-top-common .module-text {
        max-width: 600px;
    }

    .section-top-common .module-text h1 {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .section-prefooter {
        gap:20px;
        flex-wrap: wrap;
    }
    
    .text-content,
    .contact-content {
        max-width: calc(50% - 10px);
    }
    
    .image-content,
    .contact-map {
        max-width: calc(50% - 10px);
    }
    
    .prefooter-column {
        max-width:48%;
    }
    
}

@media screen and (min-width: 992px) and (max-width:1100px) {
    
    .section-prefooter {
        flex-wrap: wrap;
        gap: 20px;
        padding: 100px 15px!important;
    }
    
    .prefooter-column {
        max-width:48%;
        flex:auto;
    }
    
}

@media screen and (min-width: 992px) and (max-width:1200px) {

    .prefooter-column {
        max-width: 24%;
    }

    .prefooter-column .prefooter-link a,
    .prefooter-column .prefooter-link p {
        font-size:14px;
    }

}

@media screen and (min-width: 992px) and (max-width:1600px) {
    
    .padding-section {
        padding:50px 10px;
    }
    
}

@media screen and (min-width: 992px) and (max-width:1400px) {

    .btn-primary
    .btn-secondary {
        height: 40px;
        gap:10px;
        padding:0 20px;
        font-size:16px;
    }

    .btn-primary:after,
    .btn-secondary:after {
        font-size:16px;
    }

    .prefooter-column {
        max-width: 24%;
    }

}

/* ------------------------------------------------------------ HEADER ------------------------------------------------------------ */

@media screen and (max-width: 991px) {

    header:not(.header-scroll) .container,
    header .container  {
        padding:0 10px!important;
    }

    .preheader .contact-header {
        position: fixed;
        z-index: 99999;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--blue);
        gap: 0;
        height: 50px;
        box-shadow: 0 0px 4px #0000006b;
    }

    .preheader .social-content {
        gap: 10px;
    }
    
    .preheader .social-header {
        gap: 10px;
        width: 100%;
        justify-content: space-between!important;
    }

    .preheader .social-content a {
        gap: 0;
        height: 32px;
        width: 32px;
        border: 1px solid var(--white);
        justify-content: center;
        border-radius: 5px;
        display: flex;
        align-items: center;
        font-size: 16px;
    }

    .preheader .contact-header a {
        gap: 0;
        height: 100%;
        width: calc(100% / 3);
        border-right: 1px solid var(--white);
        justify-content: center;
        border-radius: 0;
        font-size: 24px;
    }

    .preheader .contact-header a span {
        display:none;
    }

    .preheader .social-header .btn-primary {
        padding: 0 15px;
        height: 30px;
    }

    .navbar {
        height:60px;
    }

    header.header-scroll .navbar {
        height: 50px;
    }

    header .navbar-brand .logo {
        max-height: 50px;
        max-width: fit-content;
        height: 100%;
    }

    header.header-scroll .navbar-brand .logo {
        max-height: 40px;
        max-width: fit-content;
        height: 100%;
    }

    .navbar-toggler {
        padding:0;
        top:0;
        right:0;
        outline: none!important;
        box-shadow: none!important;
    }

    .navbar-collapse {
        position: absolute;
        background-color: var(--white);
        top: 100%;
        width: 100%;
        left: 0px;
        padding: 0px 10px;
    }

    .search-wrapper {
        max-width:100%;
    }

    .search-wrapper .search-results {
        position: relative;
        top: auto;
        margin-top: 10px;
        height: 35vh;
        padding: 10px 5px;
    }

    .search-wrapper .search-results ul {
        padding:0 5px;
    }

    .search-wrapper .search-results ul li {
        gap:10px;
        padding:10px 0;
    }

    .search-wrapper .search-results ul li .result-title {
        font-size:16px;
    }

    .search-wrapper .search-results ul li .btn-primary {
        font-size: 12px;
        padding: 0 10px;
        gap: 5px;
    }

    .search-wrapper .search-results ul li .btn-primary:after {
        font-size:12px;
    }



    .navbar-nav {
        gap: 20px;
        padding: 20px 0;
    }

    header .nav-link {
        padding:0;
    }

    header .main-nav-item.dropdown .dropdown-menu {
        margin-top:15px;
    }

    header .main-nav-item.dropdown .dropdown-menu li .nav-link {
        padding:10px;
    }

}

@media screen and (min-width: 992px) and (max-width: 1200px) {
    
    header:not(.header-scroll) .container,
    header .container  {
        padding:0 10px!important;
    }
    
    .navbar-nav {
        gap:0;
    }
    
    header .nav-link {
        padding: 0 6px!important;
        font-size: 15px;
    }
    
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
    
    header:not(.header-scroll) .container,
    header .container  {
        padding:0 10px!important;
    }
    
    .navbar-nav {
        gap:10px;
    }

}

@media screen and (min-width: 1401px) and (max-width: 1600px) {
    
    header:not(.header-scroll) .container,
    header .container  {
        padding:0 10px!important;
    }
    
}

/* ------------------------------------------------------------ FOOTER ------------------------------------------------------------ */

@media screen and (max-width: 650px) {
    
    footer.padding-section {
        padding-bottom:70px;
    }

    footer .container .builder-row {
        gap:20px;
    }

    footer .container .builder-row .col-lg-3 {
        padding:0;
    }

}

@media screen and (min-width: 651px) and (max-width: 991px) {
    
    footer.padding-section {
        padding-bottom:70px;
    }

    footer .container .builder-row {
        gap:20px;
    }

    footer .container .builder-row .col-lg-3 {
        padding:0;
        max-width:calc(50% - 10px);
    }

}

/* ------------------------------------------------------------ ACASA ------------------------------------------------------------ */

@media screen and (max-width: 768px) {

    .hero-homepage {
        max-height: calc(100dvh - 50px);
        justify-content: space-between;
    }

    .hero-homepage .hero-text-content {
        padding:0 10px 20px;
        gap: 10px;
    }

    .hero-homepage .hero-text-content .module-image {
        display:none;
    }
    
    .hero-homepage .hero-image-content {
        display:none;
    }

    .information-card {
        padding: 15px;
        max-width: 100%;
        gap: 10px;
    }

    .information-card .title-card {
        max-height: fit-content!important;
        min-height: fit-content!important;
    }

    .information-card.subventii .title-card,
    .information-card.tipuri-finantare .title-card,
    .information-card.protectia-bunurilor .title-card,
    .information-card.asigurari-de-sanatate .title-card,
    .section-list-credit .information-card .title-card {
        padding-bottom:10px;
    }

    .information-card:not(.subventii):not(.tipuri-finantare):not(.protectia-bunurilor):not(.asigurari-de-sanatate) .card-description {
        display:block;
    }

    .information-card.subventii .card-description,
    .information-card.tipuri-finantare .card-description,
    .information-card.protectia-bunurilor .card-description,
    .blue-section.section-list-credit .information-card .card-description {
        min-height: auto;
    }

    .news-categories-grid {
        gap:20px;
    }

    .news-categories-grid .news-item-wrapper {
        max-width: 100%;
        padding: 15px;
    }

    .news-categories-grid .news-item-wrapper h5,
    .news-categories-grid .news-item-wrapper p {
        display:block;
        max-height: fit-content;
        min-height: fit-content;
    }

    .news-row {
        padding:0 10px;
    }

    .news-row:before {
        display:none;
    }

    .news-body-wrapper,
    .news-related-wrapper {
        max-width:100%;
    }

    .news-related-wrapper .btn-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #subventii-guvernamentale-content,
    #tipuri-de-finantare-content,
    #protectia-bunurilor-content {
        padding-bottom:20px!important;
    }

    #protectia-bunurilor-content {
        gap:20px;
    }
     
    .section-list-credit .double-list ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .section-alt-cards {
        gap:20px;
    }

    .alt-card-column {
        max-width:100%;
    }

}

@media screen and (min-width: 769px) and (max-width:991px) {
    
    .hero-homepage {
        max-height: calc(100vh - 90px);
        justify-content: space-between;
    }

    .hero-homepage .hero-text-content {
        padding:0 10px 20px;
        gap: 10px;
    }

    .hero-homepage .hero-text-content .module-image {
        display:none;
    }
    
     .hero-homepage .hero-image-content {
        display:none;
    }

    .information-card {
        padding: 10px;
        max-width: 31%;
        gap: 10px 0;
    }

    .information-card .title-card {
        max-height: 94px;
        min-height: 94px;
    }

    .information-card.subventii .title-card,
    .information-card.tipuri-finantare .title-card,
    .information-card.protectia-bunurilor .title-card,
    .information-card.asigurari-de-sanatate .title-card,
    .section-list-credit .information-card .title-card {
        padding-bottom:10px;
    }

    .information-card:not(.subventii):not(.tipuri-finantare):not(.protectia-bunurilor):not(.asigurari-de-sanatate) .card-description {
        display:block;
    }

    .information-card.subventii .card-description,
    .information-card.tipuri-finantare .card-description,
    .information-card.protectia-bunurilor .card-description,
    .blue-section.section-list-credit .information-card .card-description {
        min-height: auto;
    }

    .news-categories-grid {
        gap:20px;
    }

    .news-categories-grid .news-item-wrapper {
        max-width: calc(50% - 10px);
        padding: 15px;
    }

    .news-categories-grid .news-item-wrapper h5,
    .news-categories-grid .news-item-wrapper p {
        display:block;
        max-height: fit-content;
        min-height: fit-content;
    }

    .news-row {
        padding:0 10px;
    }

    .news-row:before {
        display:none;
    }

    .news-body-wrapper,
    .news-related-wrapper {
        max-width:100%;
    }

    .news-related-wrapper .btn-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #subventii-guvernamentale-content,
    #tipuri-de-finantare-content,
    #protectia-bunurilor-content {
        padding-bottom:20px!important;
    }

    #protectia-bunurilor-content {
        gap:20px;
    }
     
    .section-list-credit .double-list ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .section-alt-cards {
        gap:20px;
    }

    .alt-card-column {
        max-width:100%;
    }
    
    
    #servicii-financiare {
        gap:20px;
    }

}

@media screen and (min-width: 992px) and (max-width:1200px) {

    .hero-homepage .hero-text-content {
        padding:0 10px;
        gap: 10px;
        flex: auto;
        max-width: 45%;
    }

    .hero-homepage .hero-text-content img {
        max-width:200px;
    }

    .hero-homepage .hero-text-content h1 {
        font-size:34px;
    }
    
    .hero-homepage .hero-image-content {
        max-width:55%;
    }

    .information-card {
        padding: 20px;
        max-width: 31.5%;
        gap: 10px;
    }

    .information-card .title-card {
        min-height: 45px;
        max-height: unset;
    }

    .information-card .title-card h3 {
        font-size:18px;
    }

    .information-card:not(.subventii):not(.tipuri-finantare):not(.protectia-bunurilor):not(.asigurari-de-sanatate) .card-description {
        -webkit-line-clamp: 3; 
    }

    .news-categories-grid .news-item-wrapper {
        gap:20px;
    }

    .news-categories-grid .news-item-wrapper h5 {
        font-size:18px;
        margin: 10px 0;
        min-height: 40px;
        max-height: unset;
    }

    .news-categories-grid .news-item-wrapper p {
        max-height: unset;
        min-height: 75px;
        font-size: 16px;
    }

    .news-row {
        padding: 0 10px;
    }

    .news-row:before {
        right: calc(40% + 1px);
    }

    .news-body-wrapper {
        max-width: calc(60% - 20px);
    }

    .news-related-wrapper {
        max-width: calc(40% - 20px);
    }

    .news-related-wrapper .news-related-title h3 {
        font-size: calc(24px + (28 - 24) * ((100vw - 300px) / (1600 - 300)));
        margin: 0 0 15px;
        padding: 0 0 10px;
    }

    .news-related-wrapper .news-categories-grid.gap-50 {
        gap:10px;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper {
        padding: 15px;
        gap: 5px;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper .news-item {
        width:100%;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper h5 {
        font-size: 18px;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper p {
        display:none;
    }

    .news-related-wrapper .btn-wrapper {
        flex-direction: column;
        gap:10px;
    }

}

@media screen and (min-width: 1201px) and (max-width:1600px) {

    .hero-homepage .hero-text-content {
        padding:0 10px;
        gap: 10px;
    }

    .hero-homepage .hero-text-content img {
        max-width:200px;
    }

    .hero-homepage .hero-text-content h1 {
        font-size:34px;
    }


    .news-row {
        padding: 0 10px;
    }

    .news-row:before {
        right: calc(40% + 1px);
    }

    .news-body-wrapper {
        max-width: calc(60% - 20px);
    }

    .news-related-wrapper {
        max-width: calc(40% - 20px);
    }

    .news-related-wrapper .news-related-title h3 {
        font-size: calc(24px + (28 - 24) * ((100vw - 300px) / (1600 - 300)));
        margin: 0 0 15px;
        padding: 0 0 10px;
    }

    .news-related-wrapper .news-categories-grid.gap-50 {
        gap:10px;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper {
        padding: 15px;
        gap: 5px;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper .news-item {
        width:100%;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper h5 {
        font-size: 18px;
    }

    .news-related-wrapper .news-categories-grid .news-item-wrapper p {
        display:none;
    }

    .news-related-wrapper .btn-wrapper {
        flex-direction: row;
        gap:10px;
    }

}