/* Box styles */
.box {
    margin-bottom: 1em;
    max-width: 622px; /* Ajustez selon vos besoins */
    width: 100%;
}

.box-body {
    position: relative;
    padding: 25px;
    background: #FFF;
    color: #464646;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.05), 0 0.2em 0.3em rgba(0, 0, 0, 0.05), 0 0 0.2em inset rgba(255, 255, 255, 0.5);
    border-radius: 1em;
    margin: 10px 0px 0 0px;
    max-width: 622px;
    width: 100%;
    font-size: 0.8em;
}

/* Header styles for the box */
.box > header {
    width: fit-content;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-weight: bold;
    font-variant: small-caps;
    font-size: 1.2em;
    color: #164158;
    padding: 0px 10px;
    margin-bottom: -10px;
    margin-left: 25px;
    background: rgb(54, 252, 254);
    background: linear-gradient(180deg, rgba(54, 252, 254, 1) 0%, rgba(71, 181, 238, 1) 100%);
    border-radius: 10px 10px 0px 0px;
  }

/* Specific variations */
.box-tq {
    width: 75%;
    box-sizing: border-box;
}

.box-half {
    width: calc(50% - 10px); /* Two half-width boxes with space between them */
    box-sizing: border-box;
}

.box-quarter {
    width: calc(25% - 10px);
    box-sizing: border-box;
}

.box-1t {
    width: calc(33.33% - 10px);
    box-sizing: border-box;
}

.box-2t {
    width: calc(66.66%);
    box-sizing: border-box;
}

.box .box-body.bg1 {
    background: url(/assets/img/design/background.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Scrollable content */
.scrollable-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Custom scrollbars for WebKit browsers */
.box.news .scrollable-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
    background-color: #F5F5F5 !important;
    border-radius: 10px; /* Added border-radius */
}

.box.news .scrollable-content::-webkit-scrollbar {
    width: 10px !important;
    background-color: #F5F5F5 !important;
}

.box.news .scrollable-content::-webkit-scrollbar-thumb {
    background-color: #F90 !important;    
    background-image: -webkit-linear-gradient(45deg,
                                              rgba(255, 255, 255, .2) 25%,
                                              transparent 25%,
                                              transparent 50%,
                                              rgba(255, 255, 255, .2) 50%,
                                              rgba(255, 255, 255, .2) 75%,
                                              transparent 75%,
                                              transparent) !important;
    border-radius: 10px; /* Added border-radius */
}

/* For other browsers using the CSS Scrollbars specification */
.box.news .scrollable-content::-moz-scrollbar-track {
    -moz-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
    background-color: #F8F8FB !important;
    border-radius: 10px; /* Added border-radius */
}

.box.news .scrollable-content::-moz-scrollbar {
    width: 10px !important;
    background-color: #F5F5F5 !important;
}

.box.news .scrollable-content::-moz-scrollbar-thumb {
    background-color: #F90 !important;    
    background-image: -moz-linear-gradient(45deg,
                                           rgba(255, 255, 255, .2) 25%,
                                           transparent 25%,
                                           transparent 50%,
                                           rgba(255, 255, 255, .2) 50%,
                                           rgba(255, 255, 255, .2) 75%,
                                           transparent 75%,
                                           transparent) !important;
    border-radius: 10px; /* Added border-radius */
}

.news-item {
    border-radius: 10px;
    margin-bottom: 1em;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd; /* Separator after news header */
    padding-top: 5px;
    padding-bottom: 5px;
}

.news-header .title {
    color: #FEB603;
    font-weight: bold;
    font-size: medium;
}

.news-header .date {
    color: #777;
    font-size: 0.9em;
    margin-right: 15px;
}

.news-item .content {
    margin: 15px;
    text-align: justify;
}

.news-item .content ul {
    padding-left: 35px;
    border-radius: 5px;
    position: relative;
}

.news-item .content ul li {
    line-height: 1.5;
    padding: 0.5em 0;
    list-style-type: none !important;
}

.news-item .content ul li:before {
    content: " ✓ ";
    position: absolute;
    left: 1em;
    color: skyblue;
}