/*TYPO*/
body {
    font-family: 'Montserrat';
    font-size: 14px;
    font-weight:600;
}

h1.titol-principal {
    text-transform: uppercase;
    font-weight: 700;
}

h2 {
    text-transform: uppercase;
    font-weight: 800;
    color: #58595b;
}

h3 {
   font-size: 18px; 
}

p.slogan {
    font-size: 18px;
    color: #00968f;
}

/*afegits*/

p.subtitol {
    font-size: 18px;
}

p.slogan-lila {
    font-size: 18px;
    color: #8d84bd;
}

p.slogan-blanc {
    font-size: 18px;
    color: #FFF;
}

ul.no-dot {
    list-style-type: none;
}

a.link-main {
    color: #00968f;
    text-decoration: none;
}

a.link-alt {
    color: #715969;
    text-decoration-line: none;
}

.e-num {
    font-size: 1.6em;
}
.e-verd {
    color: #2cd5c4;
}
.e-lila {
    color: #8d84bd;
}
.e-slogan {
    color: #00968f;
}

p.gros {
    font-size: 1.3em;
}

/*TOP HEADER*/

.top-header,
.top-header a {
    color: #00968f;
    text-decoration: none;
}

.top-header .fa-user {
    border: 2px solid #00968f;
    border-radius: 50%;
    padding: 1px;
    color: #00968f;
    margin-left: 20px;
}

.top-header img {
    width: 30px;
    margin: 0px 5px;
}

.user-item {
    border-left: 1px solid #9c9c9e;
    border-right: 1px solid #9c9c9e;
}


/*NAVBAR*/
.navbar {
    background-color: #58595b!important;
}

.nav-container .dropdown-toggle::after {
    display: none;
}

.navbar-nav .dropdown-menu {
    top: 51px;
    border-radius: 0px;
}

.navbar .nav-link {
    /*color: #fff !important;*/
    font-size: 1.2em;
}

/*CAROUSEL*/
#carouselMain .carousel-item:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    opacity: 0.4;
    z-index: 1;
}

#carouselMain .carousel-caption {
    bottom: 100px;
    z-index: 2;
    color: #9c9c9e;
    font-size: 28px;
}
#carouselMain .carousel-indicators,
#carouselMain .carousel-control-prev,
#carouselMain .carousel-control-next {
    z-index: 99;
}

#carouselMain .carousel-caption img {
    padding-bottom: 50px;
}

#carouselMain .carousel-item img.img-fluid,
#carouselMain .carousel-item video.img-fluid {
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    height: 70vh;
}
  
  #carouselMain .carousel-item:before {
    content: '';
    display: block;
    position: absolute;
    background-image: 
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, .5)
      );
    width: 100vw;
    top: 0;
    height: 70vh;
}

/*CTA section*/
.cta-top-section {
    background: rgb(59,218,192);
    background: linear-gradient(90deg, rgba(59,218,192,1) 70%, rgba(0,150,143,1) 100%);
    /*background: linear-gradient(90deg, rgba(59,218,192,1) 70%, rgba(225,225,225,1) 100%);*/
}

.cta-top-section h2 {
    font-weight: 800;
}

.cta-top-section a,
.cta-top-section p {
    font-size: 18px;
}

.location-side {
    background: url('../images/cofib_image_location.png') no-repeat;
    background-size: contain;
    background-position: center left;
}

/*BUTTONS*/
.btn-primary {
    background: #fff;
    border: 0 none;
    color: #9c9c9e;
    font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #9c9c9e!important;
}

.alt-button {
    color: #fff;
    background: #58595b;
}

.alt-button:hover,
.alt-button:focus {
    background: #9c9c9e!important;
}

.av-elem-wrapper .btn, .av-elem-wrapper .btn:hover, .av-elem-wrapper .btn:focus {
    background-color: #2cd5c4;
    color: #FFF;
}

    .av-elem-wrapper .btn > img {
        width: 2em;
        height: 2em;
    }
    
    /*Forms*/
    .bg-gris, .cultured {
        background-color: #f6f6f6;
    }

.bg-blanquet {
    background-color: #F5F4F2;
}

/*CAROUSEL POSTS*/
#carouselPosts .carousel-control-next,
#carouselPosts .carousel-control-prev {
    color: #000;
    width: auto;
}

#carouselPosts h3,
#carouselPosts h4 {
    color: #00968f;
}

#carouselPosts .post-card {
    margin: 0px 20px;
    padding: 25px;
    box-shadow: -1px -1px 7px 0px rgba(150,150,150,0.60);
    -webkit-box-shadow: -1px -1px 7px 0px rgba(150,150,150,0.60);
    -moz-box-shadow: -1px -1px 7px 0px rgba(150,150,150,0.60);
    height: 100%;
    position: relative;
}

    #carouselPosts .post-card .bottom {
        position: absolute;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    #carouselPosts .carousel-item {
        -webkit-transition: transform .0s ease-in-out !important;
        -moz-transition: transform .0s ease-in-out !important;
        -o-transition: transform .0s ease-in-out !important;
        transition: transform .0s ease-in-out !important;
    }

#carouselPosts .post-card a[type=button] {
    color: #FFF;
}

#carouselPosts img {
    border-radius: 10px;
    border: 1px solid rgb(242, 241, 241);
    max-height: 368px;
}

/*CAROUSEL SERVICES*/
#carouselServices .carousel-control-next,
#carouselServices .carousel-control-prev {
    color: #000;
    width: auto;
}

#carouselServices a {
    text-decoration: none;
}

#carouselServices h4 {
    color: #58595b;
    font-size: 14px;
    text-decoration: none;
}

#carouselServices .post-card {
    margin: 0px 5px;
    padding: 0px 10px 5px 10px;
    box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.55);
    -webkit-box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.55);
    -moz-box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.55);
    height: 100%;
    border-radius: 10px;
}

#carouselServices .carousel-item {
    -webkit-transition: transform .0s ease-in-out!important;
    -moz-transition: transform .0s ease-in-out!important;
    -o-transition: transform .0s ease-in-out!important;
    transition: transform .0s ease-in-out!important;
}

.row.display-flex {
    display: flex;
    flex-wrap: wrap;
}
.row.display-flex > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/*Cercador Section*/
.cercador-wrapper {
    background: rgb(59,218,192);
    background: linear-gradient(90deg, rgba(59,218,192,1) 0%, rgba(150,150,150,1) 100%);
    color: #fff;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.creator-wrapper button {
    background-color: #fff;
    color: #58595b;
    border: 0 none;
}

.creator-wrapper button:hover,
.creator-wrapper button:focus,
.creator-wrapper button:active {
    background-color: #fff!important;
    color: #58595b!important;
}

.creator-wrapper .dropdown-toggle:after {
    display: none!important;
}

.creator-wrapper .middle,
.creator-wrapper .last {
    border: 1px solid #3bdabf;
}

.creator-wrapper .last {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}


/*CTA APOTECARI section*/

.cta-serveislabo-section {
    background: linear-gradient(90deg, #f6f6f6 50%, #FFF 50%);
}

.cta-apotecari-section {
    /*background: rgb(242,246,252);
    background: linear-gradient(90deg, rgba(242,246,252,1) 0%, rgba(161,154,201,1) 100%);*/
    background: linear-gradient(0deg, #2dd5c4 0%, #08914d 100%);
}

.cta-apotecari-section h2 {
    font-weight: 500;
    letter-spacing: .2rem;
    text-transform: uppercase;
    color: #FFF;
}

.cta-apotecari-section h3 {
    font-size: 26px;
    font-weight: 700;
}


.cta-apotecari-section a,
.cta-apotecari-section p {
    font-size: 18px;
    color: #fff;
}

/**/
#formacionGrid .post-card {
    margin: 0px 5px;
    padding: 20px;
    box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.94);
    -webkit-box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.94);
    -moz-box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.94);
    height: 100%;
    border-radius: 0px;
    position: relative;
}

    #formacionGrid .post-card a[type="button"] {
        background-color: #c7b299;
        color: #FFF;
        border: 0 none;
        /*position: absolute;
        bottom: 10px;*/
        /*margin-top: 30px;
        display: block;*/
        margin-left: auto;
        margin-right: auto;
    }

        #formacionGrid .post-card a[type="button"]:hover {
            background-color: #58595b;
        }

    #formacionGrid .post-card .bottom {
        position: absolute;
        bottom: 10px;
        right: 5px;
        left: 5px;
    }


#formacionGrid h4 {
    color: #00968f;
}


/*Oficina Virtual Section*/
#oficinaGrid {
    background-image: url('../images/oficina_virtual_background.jpg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

#oficinaGrid h3 {
    font-size: 18px;
    font-weight: 700;
}

#oficinaGrid img {
    float: right;
}

#oficinaGrid a[type=button] {
    width: 220px;
    height: 60px;
    margin: 0px 10px 10px 0px;
    font-size: 18px;
    line-height: 20px;
    color: #fff;
    background: #2cd5c4;
    border: 0 none;
    font-weight: 600;
    vertical-align: middle;
}

    #oficinaGrid a[type=button]:hover {
        background-color: #58595b;
    }


/*Subfooter section*/
.subfooter {
    background-image: url('../images/background_subfooter.jpg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
}


/*Footer*/
footer {
    background-color: #00968f!important;
    background-image: url('../images/background_footer.jpg');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
    color: #fff;
}

footer a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

footer .maps {
    font-size: 18px;
}

footer a i {
    font-size: 20px;
}

footer a.social i {
    font-size: 30px;
    margin: 0px 40px 0px 0px;
}



/* SECCIONS */

.cta-section h2 {
    font-weight: 800;
}

.cta-verdleft-section {
    background: rgb(59,218,192);
    /*background: linear-gradient(90deg, rgba(59,218,192,1) 0%, rgba(150,150,150,1) 100%);*/
    /*background: linear-gradient(90deg, rgba(59,218,192,1) 0%, rgba(255,255,255,1) 60%);*/
    background: linear-gradient(45deg, rgba(94,223,210,1) 0%, rgba(255,255,255,1) 60%);
}

.cta-verdfortleft-section {
    background: linear-gradient(45deg, #39aea8 0%, rgba(255,255,255,1) 40%);
}

.cta-gris-section {
    background: rgb(244,244,244);
}

.cta-lilaleft-section {
    background: rgb(242,246,252);
    background: linear-gradient(45deg, rgba(161,154,201,1) 0%, rgba(242,246,252,1) 50%);
}


/* FI SECCIONS */

/* CERCADOR */
.search-bar {
    background: linear-gradient(90deg, rgba(59,218,192,1) 0%, rgba(0,150,143,1) 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

    .search-bar input,
    .search-bar select {
        margin: 10px 5px;
        width: 250px;
        max-width: 100%;
        /*border-radius: 4px;*/
        border: none;
        padding: 10px;
    }

        .search-bar input::placeholder {
            color: #999;
        }

.pharmacy-card {
    height: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

    .pharmacy-card:hover {
        transform: translateY(-5px);
    }

    .pharmacy-card img {
        width: 100%;
        height: 290px;
        object-fit: cover;
    }

    .pharmacy-card .card-body {
        padding: 20px;
        margin-bottom: 20px;
    }

    .pharmacy-card .card-title {
        font-weight: bold;
        color: #009688;
        margin-bottom: 10px;
    }

    .pharmacy-card .card-text {
        color: #555;
        margin-bottom: 15px;
    }

    .pharmacy-card .btn {
        background-color: #009688;
        color: white;
        border-radius: 4px;
        padding: 10px 20px;
        text-transform: uppercase;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

        .pharmacy-card .btn:hover {
            background-color: #00796b;
            color: white;
        }

.search-bar label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.search-bar select {
    appearance: none;
    background-color: white;
    background-image: none;
}

.search-bar option {
    color: #555;
}

/* QUEIXES */
.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .contact-info div {
        margin: 0 30px;
    }

    .contact-info i {
        font-size: 4em;
        margin-bottom: 15px;
        color: #3CD4C6;
    }

    .contact-info span, .contact-info a {
        display: block;
        font-size: 18px;
        color: #3CD4C6;
    }

/* FORMACIĶ */
.cta-calendariformatiu-section {
    background: rgb(59,218,192);
    background: linear-gradient(90deg, rgba(59,218,192,1) 0%, rgba(0,150,143,1) 100%);
}

.cta-calendariformatiu-section h1 {
    color: #FFF;
}

.verd-viridia, .f-cursos {
    background-color: #00968f;
}

.turquesa-mig, .f-seminaris {
    background-color: #2cd5c4;
}

.gris-davy, .f-reglada {
    background-color: #58595b;
}

.lila-lavanda, .f-congressos {
    background-color: #8d84bc;
}

.blanc-xines, .f-jornades {
    background-color: #e1e1e1;
}

.salmon, .f-sessionscliniques {
    background-color: #ff8674;
}

.taronja-groc, .f-taulesrodones {
    background-color: #fbb040;
}

.camel, .f-conferencies {
    background-color: #c49a6c;
}
.verd-salvia, .f-reunio {
    background-color: #8a9b6c;
}

.fexterna-wrapper { font-size: 1rem; }
.fexterna-item .wrapper-left { color: #FFF; }

.cta-calendariformatiu-section {
    background: linear-gradient(-45deg, #00968f 0%, #3cdbc0 85%)
}

.card a {
    text-decoration: none;
    color: inherit;
}
.card-image { position: relative; }
.card-image .overlay {
    position: absolute;
    top: 30px;
    right: -.5rem;
    width: 50px;
    height: 50px;
}
.card-image .overlay-alt {
    background-color: grey;
}
.curs-card {
    height: 100%;
}
.curs-card .card-body {
    margin-bottom: 75px;
}
.card-inactiu { background-color: #f0f0f0; }
.card-inscripcio {
    /*padding-top: 1em;*/
    position: absolute;
    bottom: 1em;
    left: 5px;
    right: 5px;
}
.card-bottom {
    position: absolute;
    bottom: 2em;
    left: 15px;
    right: 15px;
}
p.card-text {
    margin-bottom: 0px;
}

.llistatTipusCurs {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap; /* Permite saltar a la siguiente línea si no cabe */
    gap: 15px; /* Espacio entre elementos */
}

.llistatTipusCurs li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.llistatTipusCurs li div {
    margin-right: 5px;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 3px;
}

/* WRAPPERS */

    /* Transparčncia */
    .trans-wrapper {
        background: #00968f;
        color: #fff;
        border-top-left-radius: 15px;
        border-bottom-left-radius: 15px;
        font-size: 2em;
    }

.trans-wrapper-right {
    /*background: rgb(246,246,246);*/
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}


        .trans-wrapper-right a {
            text-decoration: none;
            color: inherit;
        }

.peu-foto {
    background: #00968f;
    color: #fff;
    border-radius: 15px;
    width: 60%;
    font-size: 1.2em;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    bottom: 40px;
}

    .peu-foto h2 {
        font-size: 1.4em;
        color: #fff;
    }

.wrapper-left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.wrapper-right {
    background: #f6f6f6;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
/* FI WRAPPERS */
.grid .post-card h4 {
    color: #00968f;
    text-transform: uppercase;
    font-size: 1.2em;
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

/* ACTIVITATS FUNDACIĶ */

.activitats-anys {
    font-size: 1.3em;
}

.activitats-anys-header {
    background: linear-gradient(#afa9d0,#a49dc9);
    color: #FFF;
}

.activitats-anys-index {
    background-color: #f6f6f6;
}

.activitats-anys-index > li:hover {
    background-color: #FFF;
}

.activitats-anys-index > li.selected {
    font-weight: bold;
    background-color: #FFF;
}

/* Salut */
.post-card-grid .post-card {
    padding: 1.5rem;
    /*box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.94);
    -webkit-box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.94);
    -moz-box-shadow: -1px -1px 5px 0px rgba(150,150,150,0.94);*/
    height: 100%;
    border-radius: 10px;
    position: relative;
    color: #00968f;
    background: #FFF;
    text-align: center;
    align-content: center;
    font-size: 1.25rem;

}

.post-card-grid .post-card-clickable {
    text-decoration: none;
}

.post-card-grid .post-card:hover {
    background: #00968f;
    color: #FFF;
}

    /* Audiovisuals*/
.av-elem-wrapper {
    margin: 3rem !important;
    justify-content: center !important;
}
.av-elem-wrapper ul {
    list-style-type: none;
}
.av-elem-wrapper li {
        margin-bottom: 0.5rem !important;
    }
.av-elem-wrapper a {
    text-decoration: none;
    color: inherit;
}
.av-elem-wrapper a:hover {
    font-weight: bold;
}

.av-elem-titol {
    border-radius: 0.375rem !important;
    font-size: 1.25rem !important;
    padding: 1rem !important;
    display: inline-block;
    background-color: #2cd5c4;
    color: #fff;
    position: relative;
}
.av-elem-right{
    text-align: left !important;
}
.av-elem-left {
    text-align: right !important;
}

.av-elem-right .av-elem-titol {
    left: -75px;
}
.av-elem-left .av-elem-titol {
    right: -75px;
}



@media (max-width: 767px) {
    .cta-serveislabo-section {
        background: #FFF;
    }

    #carouselPosts .carousel-inner .carousel-item > div {
        display: none;
    }
    #carouselPosts .carousel-inner .carousel-item > div:first-child {
        display: block;
    }

    #carouselServices .carousel-inner .carousel-item > div {
        display: none;
        width: 100%;
    }
    #carouselServices .carousel-inner .carousel-item > div:first-child {
        display: block;
    }

    /* Cercador */
    .search-bar {
        padding: 10px;
    }
    .search-bar input,
    .search-bar select {
        margin: 5px 0;
        width: 100%;
    }

    /* Transparčncia */
    .trans-wrapper {
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        font-size: 2em;
    }

    .trans-wrapper-right {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

}

#carouselPosts .carousel-inner .carousel-item.active,
#carouselPosts .carousel-inner .carousel-item-next,
#carouselPosts .carousel-inner .carousel-item-prev {
    display: flex;
}
#carouselServices .carousel-inner .carousel-item.active,
#carouselServices .carousel-inner .carousel-item-next,
#carouselServices .carousel-inner .carousel-item-prev {
    display: flex;
}


/* Departaments */
.sidebar {
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .sidebar .nav-link {
        color: #333;
        font-weight: 600;
        padding: 15px 30px;
        cursor: pointer;
    }

        .sidebar .nav-link.active {
            background-color: #a59dca;
            color: white;
            border-radius: 0 8px 8px 0;
            width: 110%;
            z-index: 99;
        }

.content-wrapper {
    margin-left: 15px;
}

.main-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.section-title {
    font-weight: bold;
    color: #00968f;
}

.footer-info {
    background-color: #2cd5c4;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    height: 100%;
}

    .footer-info a {
        color: white;
    }

.labo-footer-logo img {
    max-width: 300px;
}

/* Llistat de guārdies */
.torn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.torn-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.guardia-card {
    border-left: 4px solid #3498db;
}

.guardia-card:hover {
    transform: translateY(-5px);
}

span.green-badge {
    font-size: 1.3rem;
    color: green;
    padding: 0.35em 0.35em;
}

/* Farmācies obertes */
#map {
    position: absolute;
    height: 800px;
    width: 100%;
    top: 0px;
    left: 0px;
}

.overlay-panel {
    position: relative;
    top: 60px;
    left: 20px;
    z-index: 5;
    padding: 20px;
    border-radius: 10px;
    color: white;
    width: 300px;
}

    .overlay-panel h5 {
        margin-bottom: 15px;
    }

.custom-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#filtre {
    background: linear-gradient(rgba(36, 164, 158, 0.9), rgba(80, 213, 194, 0.9));
    margin-bottom: 20px;
}

    #filtre h5 {
        text-transform: uppercase;
    }

#programes {
    background-color: rgb(143, 141, 197, 0.9);
    padding: 15px;
    border-radius: 10px;
}

    #programes h5 {
        color: white;
        text-transform: uppercase;
    }

.panel-button {
    width: 100%;
    padding: 15px;
    color: white;
    font-size: 1.2em;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border: none;
    /*border-radius: 10px;*/
}

    .panel-button svg {
        font-size: 1.5em;
    }

    .panel-button i {
        font-size: 1.5em;
    }

.farmacies-btn {
    background-color: #00A68C;
}

.programes-btn {
    background-color: #6F5499;
}

.collapse {
    padding: 20px;
    /*border-radius: 10px;
      margin-bottom: 20px;*/
}

.text-justificat {
    text-align: justify;
}

.article p {
    font-size: 1.1em;
}

/* CUSTOM INPUTS*/

/* Checkbox */
/* 1. Amaguem el checkbox natiu (el que genera l'ASP.NET) */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 2. Estilitzem l'element 'span' que actuarā com la nostra casella */
.custom-checkbox .custom-checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #ccc;
    transition: background-color 0.2s;
}

/* 3. Estil per al hover */
.custom-checkbox:hover input ~ .custom-checkmark {
    background-color: #ccc;
}

/* 4. Estil quan la casella estā marcada */
.custom-checkbox input:checked ~ .custom-checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

/* 5. Creem la marca de verificaciķ (el "tick") */
.custom-checkbox .custom-checkmark:after {
    content: ""; /* És un pseudo-element */
    position: absolute;
    display: none;
}

/* 6. Mostrem el "tick" quan la casella estā marcada */
.custom-checkbox input:checked ~ .custom-checkmark:after {
    display: block;
}

/* 7. Estil i posiciķ del "tick" */
.custom-checkbox .custom-checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* 8. Ajustem el padding per al text de l'etiqueta (MOLT IMPORTANT) */
.custom-checkbox label {
    padding-left: 25px; /* Crea espai a l'esquerra per al nou check */
    position: relative; /* Necessari per posicionar el checkmark */
    cursor: pointer;
}


@media (max-width: 767.98px) {
    .main-content {
        margin-left: 0;
        margin-top: 20px;
    }

    .footer-info {
        flex-direction: column;
        text-align: center;
    }

        .footer-info div {
            margin-right: 0;
            margin-bottom: 10px;
        }

            .footer-info div:last-child {
                margin-bottom: 0;
            }
}


@media only screen and (max-width: 992px) {
    .av-elem-right .av-elem-titol {
        left: 0px;
    }

    .av-elem-left .av-elem-titol {
        right: 0px;
    }

    #carouselMain img.inner-logo {
        width: 90%;
    }
}


@media only screen and (max-width: 576px) {
    .navbar .nav-link {
        color: #fff !important;
        font-size: 1em;
    }


    #oficinaGrid img {
        float: none;
    }
    .navbar-toggler {
        margin: 0 auto;
        text-align: CENTER;
        display: block;
    }
    .navbar .nav-container {
        width: 100%;
    }

    #carouselPosts .post-card {
        margin: 0px;
        padding: 15px;
    }

    #carouselPosts .p-5 {
        padding: 25px!important;
    }

    #formacionGrid .post-card {
        margin-bottom: 20px;
    }
}