h1:not(.no-spacing), h2:not(.no-spacing), h3:not(.no-spacing), h4:not(.no-spacing), h5:not(.no-spacing), h6:not(.no-spacing) {
    letter-spacing: var(--letter-spacing) !important;
}

i {
    color: var(--global-color-0);
}

i.alt {
    color: var(--global-color-6);
}

body {
    font-family: 'Roboto', sans-serif;
}

.boxed {
    width: var(--document-width);
}

.no-border {
    border:none !important;
}

.gct-1 {
    grid-template-columns: repeat(1, 1fr) !important;
}

.bg-theme {
    background-color: var(--global-color-0);
}

.fg-1 {
    flex-grow: 1;
}

.main-wrapper {
    /* margin: 50px 0px; */
    display:flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    overflow:hidden;
}

.page {
    width: var(--document-width);
}

.w-doc {
    width: var(--document-width);
}

.flex-between-container {
    display:flex;
    align-items:center;
    justify-content: space-between;
}
.flex-between-container {
    display:flex;
    align-items:stretch;
    justify-content: flex-start;
    gap:20px;
}

.flex-column-center {
    display:flex;
    flex-direction: column;
    align-items:center;
}

.flex-grow-auto {
    flex-grow: 1;
}

.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }
.gap-30 { gap: 30px; }
.gap-35 { gap: 35px; }
.gap-40 { gap: 40px; }
.gap-45 { gap: 45px; }
.gap-50 { gap: 50px; }

/* FLIPBOX */
.flip-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping to the next line */
    gap: 20px;
    margin-top: 30px;
    width: var(--document-width);
}

.flip-box {
    flex: 1 1 250px; /* Make each flip-box take equal space, but with a minimum width */
    height: 200px; /* Reduced height to make them less tall */
    perspective: 1000px;
}

.flip-box-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.flip-box:hover .flip-box-inner {
    transform: rotateX(180deg); /* Flip on the horizontal axis */
}

.flip-box-front, .flip-box-back {
    padding:10px;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    color: var(--global-color-7);
    text-align: center;
}
.flip-box-front {
    text-transform: uppercase;
}
.flip-box-back {
    background-color: var(--global-color-7);
    transform: rotateX(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
}
.flip-box-back p { 
    margin-bottom: 5px;
    color:var(--global-color-1);
}
.flip-box-back a { 
    text-decoration: none;
}

.flip-box-front {
    background-color: var(--global-color-0);
}

.flip-box-back {
    background-color: var(--global-color-7);

}


/* CUSTOM ACCORDION */
/* .custom-accordion {
    background-color: var(--global-color-0);
    color: var(--global-color-6);
    overflow: hidden;
    border-radius: 5px;
} */

/* .custom-accordion .accordion-item {
    border-radius: 5px;
} */

.custom-accordion .accordion-button {
    font-weight: bold;
    background-color: var(--global-color-0);
    color: var(--global-color-6);
}

.custom-accordion .accordion-button::after {
    filter: brightness(0) saturate(100%) invert(86%) sepia(12%) saturate(200%) hue-rotate(180deg);
}

.custom-accordion .list-group-item a {
    text-decoration: none;
}

/* .custom-accordion .accordion-button:not(.collapsed) {
    background-color: var(--global-color-0);
    color: var(--global-color-6);
}

.custom-accordion .accordion-body {
    background-color: var(--global-color-0);
    color: var(--global-color-6);
}

.custom-accordion .list-group-item {
    background-color: transparent;
    color: var(--global-color-6);
    border: none;
    font-weight: bold;
} */


/* THEME BUTTON */
.btn-theme {
    background-color: var(--global-color, #009bdb); /* Use the custom global color */
    color: var(--global-color-7, #ffffff); /* Use the custom text color */
    border: solid 1px var(--global-color-2); /* Optional: Remove any default border */
    padding: 10px 20px; /* Optional: Adjust the padding to fit your design */
    border-radius: 5px; /* Optional: Add rounded corners */
    cursor: pointer; /* Optional: Add pointer cursor for better UX */
    transition: background-color 0.3s ease; /* Optional: Smooth transition for background color */
}

.btn-theme:hover {
    background-color: darken(var(--global-color, #009bdb), 10%); /* Darken on hover (if using SASS) */
    color: var(--global-color-0);
    border: solid 1px var(--global-color-0);
}

.btn-theme:hover i {
    color: var(--global-color-0);
}

/* Override Bootstrap buttons */
.btn {
    padding: 10px 15px !important;
}


/* NEWsTOGGLE */
.toggle-switch {
  display: inline-block;
  position: relative;
  width: 240px;
  height: 45px;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.toggle-switch input {
  display: none;
}

.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #ddd;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.toggle-option {
  flex: 1;
  text-align: center;
  z-index: 2;
  line-height: 50px;
  transition: color 0.3s ease;
}

.toggle-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 1;
  background: var(--toggle-active-color, var(--bs-success, var(--global-color-0)));
}

input:checked + .toggle-label::before {
  transform: translateX(100%);
}


/* HEADER */
.page-header {
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    height: 225px;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header .above-header {
    padding: 10px;
    width: var(--document-width);
    display: flex;
    justify-content: flex-end;
}

.page-header > nav {
    width: var(--document-width);
    background-color: transparent !important;
}

.page-header > nav .navbar-nav {
    margin-left: auto;
}

.page-header > nav .nav-link {
    color: var(--global-color-1) !important;
    text-transform: uppercase;
    text-decoration: none;
    font-size: .9em;
    font-weight: 700;
    font-style: normal;
}

/* Main menu styling */
.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;  /* Required for positioning the submenu */
}

.menu-item.empty-item {
    display: flex;
}

.menu-item.search-item {
    display:flex;
    justify-content: center;
    align-items: center;
}

.menu-item.search-item > i {
    padding: 10px;
    font-size: 1.2em;
    cursor:pointer;
    transition: transform 0.2s ease-in-out;
}
.menu-item.search-item > i:hover {
    transform: scale(1.2);
}

.menu-item.home-item {
    display:flex;
}
.menu-item.home-item > a {
    font-size: 1.1em;
}

/* Style for normal menu items (with links) */
.menu-item > a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--global-color-1);
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    padding: 10px 20px;
    white-space: nowrap;
}

/* Style for placeholder menu items (without links) */
.menu-item.placeholder-item {
    display: block;
    padding: 10px 20px;
    color: var(--global-color-1);
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    cursor: default;  /* Make sure the cursor doesn't change to a link pointer */
}

.menu-item.placeholder-item::after {
    content: "\f107";  /* Unicode for FontAwesome down chevron */
    font-family: 'Font Awesome 5 Free';  /* Ensure the correct font family */
    font-weight: 900;  /* Make sure the chevron is bold */
    margin-left: 10px;  /* Space between title and chevron */
    color: var(--global-color-2);  /* Same color as before or another if needed */
    font-size: 1.2em;  /* Adjust size to fit the design */
}

/* Default behavior for submenus to be hidden */
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #fff;
    list-style: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 230px;
    border: none;
    border-top: solid var(--global-color-0);
    padding: 0px;
    z-index: 100;
    padding-bottom: 10px;
}

/* Show submenu when the 'show' class is added */
.submenu.show {
    display: block;
}

.submenu li {
    padding: 0px;
}

.submenu li a {
    text-decoration: none;
    color: #333;
}

.navbar-toggler:focus {
    box-shadow: var(--global-color-0) 0px 0px 0px 0.895088px !important;
}
/* Show submenu on hover (desktop) */
.menu-item:hover .submenu {
    display: block;
    box-shadow: 2px 2px 10px #00000045;
}

/* Optional: Add transition effects */
.submenu {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.menu-item:hover .submenu {
    opacity: 1;
}

/* Ensure the parent menu item is positioned relative */
.menu-item {
    position: relative;
}

/* Optional: Style for submenu items */
.submenu-item {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--global-color-1);
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Optional: Add hover effect for submenu items */
.submenu-item:hover {
    background-color: #f1f1f1;
    color: var(--global-color-0);
}

/* CONTENT HEADER */
.content-header {
    width: 100%;
    text-align: center;
    background-color: var(--global-color-0);
    padding: 10px 0px;
    margin-bottom: 40px;
}

.content-header h2 {
    margin: 0px;
    color: var(--global-color-6);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* GLOBAL SEARCH BAR */
.global-search-bar:not(.inline) {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 100%;
    padding: 40px 40px;
    background-color: white;
    border-bottom: solid 3px var(--global-color-0);
    z-index: 100;
    display: none;
    box-shadow: 0px 2px 10px #0000003b;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.global-search-input {
    padding-right: 40px; /* Make space for the button inside */
}

.global-search-submit-btn {
    position: absolute;
    right: 0px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    height: 100%;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--global-color-0);
    border-radius: 0px 5px 5px 0px;
}

.global-search-submit-btn i {
    color: var(--global-color-7);
}


.global-search-submit-btn:hover {
    background-color: var(--global-color-2);
}
  

.global-search-bar .global-search-wrapper {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 20px;
}

.global-search-bar .close-global-search-bar {
    font-size: 1.5em;
    cursor: pointer;
}


.global-search-result-header {
    padding: 20px 10px;
    background-color: var(--global-color-7);
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.global-search-result-header .segment-title {
    margin: 0px;
    color: var(--global-color-0);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* FOOTER */
footer {
    padding: 50px 0px;
    min-height: 300px;
    background-position: top center;
    background-size: cover;
}

footer .footer-title.alt {
    color: var(--global-color-1);
    text-decoration: none;
    font-size: .9em;
    font-weight: 700;
    font-style: normal;
}


footer .contact-info .footer-title a {
    color: var(--global-color-1);
    text-transform: uppercase;
    text-decoration: none;
    font-size: .7em;
    font-weight: 700;
    font-style: normal;
}

footer .contact-info .footer-text, footer .contact-info .footer-text a {
    color: var(--global-color-8);
    text-decoration: none;
    font-size: .9em;
    font-style: normal;
}

footer .column {
    margin-top: 80px;
}

footer .list-unstyled li a {
    text-decoration: none;
    color: var(--global-color-1);
    text-decoration: none;
    font-size: .9em;
    font-weight: 700;
    font-style: normal;
}

footer .list-unstyled.alt li a {
    text-decoration: none;
    color: var(--global-color-8);
    text-decoration: none;
    font-size: .9em;
    font-weight: 700;
    font-style: normal;
}


/* SOCIAL LINKS */
.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 12px;
}

.social-links li {
    display: inline-block;
}

.social-links a {
    text-decoration: none;
    font-size: 30px;
    color: #fff;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f39c12; /* Customize hover color */
}

/* LANGUAGE SELECTOR */

.language-selector {
    border-color: transparent !important;
}
.language-selector:active, .language-selector.show {
    border-color: transparent !important;
}

.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 8px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CAROUSEL */
/* Custom carousel height */
.custom-carousel {
    height: var(--news-carousel-height);
    overflow: hidden; /* Ensure content doesn't spill outside the carousel */
    width: 100%;
    background-color: var(--global-color-0);
    /* width: var(--document-width); */
}

.custom-carousel .carousel-inner {
    height: var(--news-carousel-height);
}

.custom-carousel .carousel-inner .carousel-item {
    height: var(--news-carousel-height);
}

.custom-carousel .carousel-inner .carousel-item img {
    height: var(--news-carousel-height);
    object-fit: contain;
    object-position: top center;
}

.custom-carousel .carousel-inner .carousel-item .carousel-caption h5 {
    font-size: 3em;
    text-shadow: 0 0 10px #000;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em!important;
}

.custom-carousel .carousel-control-next-icon, .custom-carousel .carousel-control-prev-icon {
    background-color: var(--global-color-0);
    padding: 10px;
    width: 3em;
    height: 3em;
    border-radius: 5px;
}

.custom-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--global-color-7);
}
.custom-carousel .carousel-indicators .active {
    background-color: var(--global-color-0);
}

/* QUICK LINKS */
.main-page-quick-links {
    background-color: var(--global-color-7);
    border-bottom: solid var(--global-color-0);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    width: 100%;
}

.main-page-quick-links > .content {
    width: 100%;  /* Make sure content takes the full width */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;  /* Allow wrapping of links */
    text-align: center; /* Optional: Align links nicely in the center */
}

.main-page-quick-links > .content > a {
    color: var(--global-color-0);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* Add pipe separator between the links */
.main-page-quick-links > .content > a:not(:last-child)::after {
    content: " |";
    margin-left: 10px;  /* Space between the text and the pipe */
}

/* COUNTER */
.counter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;  /* Allow wrapping if the screen is small */
    padding: 20px;
    width: 100%;
}

.counter-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.counter-number {
    font-size: 2.5em; /* Size of the counter number */
    font-weight: bold;
    color: var(--global-color-0); /* You can change this to match your design */
}

.counter-label {
    font-size: 1.2em;
    color: var(--global-color-0);
    text-transform: uppercase;
    font-weight: normal;
}

/* SEPERATOR */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    text-align: center;
}

.separator span {
    font-size: 16px;
    font-weight: bold;
    color: var(--global-color-0); /* Adjust color to match */
    letter-spacing: 2px;
    padding: 0 15px;
    background: var(--document-color); /* Match background color */
    z-index: 1;
}

.separator span a {
    text-decoration: none !important;
    color: var(--global-color-0) !important;
}

.separator::before,
.separator::after {
    content: "";
    flex-grow: 1;
    height: 3px;
    background: var(--global-color-0); /* Adjust color to match */
    margin: 0 10px;
}

.separator-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    text-align: center;
}

.separator-header .separator-header-item {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--global-color-6);
    background-color: var(--global-color-0);
    letter-spacing: 2px;
    z-index: 1;
    width: 100%;
    padding: 20px 0px;
    text-decoration: none;
}

/* PARTNERS */
.partners-list {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-around; 
    padding: 20px;
    gap:20px;
}

.parnters-carousel-content .partner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-list > .partner img,
.parnters-carousel-content .partner img {
    filter: grayscale(100%);
    opacity: .5;
    transition: filter 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.partners-list > .partner:hover img,
.parnters-carousel-content .partner:hover img {
    filter: grayscale(0%);
    opacity: 1;
}



/* SHELTERS */
.shelters-wrapper {
    width: var(--document-width);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; /* Optional: adds some spacing between grid items */
    box-sizing: border-box; /* Ensures padding/margins don’t break layout */
    padding: 10px;
}

.shelter {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    border-radius: 5px;
    padding: 10px;
    /* border-top: solid var(--global-color-0); */
    min-height: 310px;
    border: solid #ddd 1px;
    /* transition: transform 0.3s ease;  */
}

/* Image wrapper with hidden overflow */
.image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

/* Hover effect on image */
.shelter:hover .image-wrapper img {
    transform: scale(1.1); /* Zoom in the image by 10% on hover */
}

.shelter img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container (may crop) */
    object-position: bottom;
    transition: transform 0.3s ease; /* Smooth image zoom */
}

.shelter p {
    margin-top: auto;
    margin-bottom: 0px;
    text-align: center;
    color: var(--global-color-0);
    font-size: 1.2em;
    font-weight: bold;
}

.shelter-link {
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color from parent */
    height: 100%;
    width: 100%;
}

/* FRONT NEWS GRID */

.news-list-title-container {
    display:flex;
    justify-content: space-between;
    align-items: center;
    width: var(--document-width);
    margin: 20px 0px;
}

.news-list-title-container .news-list-title {
    color: var(--global-color-0);
}

.front-news-quick-filter {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    padding:10px;
}

.front-news-quick-filter .news-button {
    min-width: 200px;
}

.front-news-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
    width: var(--document-width);
}

.front-news-wrapper.no-hits {
    grid-template-columns: 1fr !important;
}

.front-news-item, .front-news-item-filter {
    display: flex;
    background: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    transition: transform 0.3s ease-in-out;
}

.front-news-item-filter {
    background: none;
    box-shadow: none;
}

.front-news-item-filter > .front-news-quick-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px;
    justify-content: center;
}

.news-image {
    width: 50%;
    overflow: hidden; /* Ensures the zoomed image doesn't overflow */
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    object-position: left;
    background-color: #f9f9f9;
    transition: transform 0.3s ease-in-out;
}

/* Zoom effect on hover */
.front-news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 15px;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.news-content.alt {
    width:100%;
    position: relative;
}

.news-date {
    font-size: 14px;
    color: gray;
}

.news-content.alt .news-date {
    height: 40px;
}

.news-title {
    line-height: 1em;
}

.news-content.alt .news-title {
    margin-top: auto;
    width:100%;
}

.news-title a {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color: var(--global-color-0);
}

.news-content.alt .news-title a {
    font-size: 0.6em;
}

.news-content .news-link {
    margin-top: auto;
}

.news-content.alt .news-link {
    width: 100%;
    text-align: right;
}

.news-content .news-date {
    font-weight: bold;
    color: var(--global-color-8);
}


/* .news-title a:hover {
    text-decoration: underline;
} */

.news-link {
    font-size: 14px;
    color: #009bdb;
    text-decoration: none;
    font-weight: bold;
}

.news-link:hover {
    text-decoration: underline;
}

/* NEWS LIST */
.news-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: var(--document-width);
    margin:50px 0px;
}

.news-list-wrapper.alt {
    grid-template-columns: repeat(2, 1fr);
}

.news-list-wrapper.alt .news-list-item{
    min-height: 170px;
    text-decoration: none;
}

.news-list-item:hover img {
    transform: scale(1.1);
}

.news-list-item {
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow:hidden;
    display: flex;
    flex-direction: column;
}

.news-list-wrappert:not(.alt) .news-list-item .news-list-item-taxonomy {
    background-color: var(--global-color-0);
    padding: 5px;
    text-align: end;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-list-wrapper:not(.alt) .news-list-item .news-list-item-taxonomy  p {
    color: var(--global-color-6);
}

.news-list-wrapper.alt .news-list-item .news-list-item-taxonomy {
    padding: 10px 0px;
    text-align: left;
    font-weight: bold;
}

.news-list-wrapper.alt .news-list-item .news-list-item-taxonomy  p {
    color: var(--global-color-8);
}

.news-list-item-img {
    height:200px;
    overflow: hidden;
    position: relative;
}

.news-list-item img {
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.news-list-item .category-list, .front-news-item .category-list {
    min-width: 30%;
    position: absolute;
    top: 20px;
    right: 0px;
}
.front-news-item {
    min-height: 170px;
}

.news-content.alt .category-list {
    top: 10px !important;
}

.news-content.alt .category-list .news-item-category {
    font-size:0.8em !important;
}

.news-list-item .news-item-category, .front-news-item .news-item-category {
    margin-bottom: 5px;
    background-color: var(--global-color-0);
    color: var(--global-color-7);
    padding:5px 10px;
    font-size:0.6em;
}

.news-list-item-content {
    padding: 15px;
    flex-grow: 1;
}

.news-list-wrapper.alt .news-list-item .news-list-item-content {
    position: relative;
}

.news-list-wrapper.alt .news-list-item .news-list-item-content .category-list {
    min-width: 30%;
    position: absolute;
    top: -30px;
    right: 0px;
}

.news-list-wrapper.alt .news-list-item .news-list-item-content .category-list .news-item-category {
    margin-bottom: 5px;
    background-color: var(--global-color-0);
    color: var(--global-color-7);
    padding: 5px 10px;
    font-size: 0.8em;
}

.news-list-item h3 {
    /* font-size: 18px; */
    /* margin: auto 0; */
}

.news-list-wrapper.alt .news-list-item h3 {
    font-size: 1em;
    /* margin: auto 0; */
    text-align: left;
    color: var(--global-color-0);
}

.news-list-wrapper.alt .news-list-item .news-list-item-content {
    display:flex;
    padding-top: 50px;
}

.news-list-item a {
    text-decoration: none;
    color: var(--global-color-0);
    display: block;
    width: 100%;
    text-align: start;
    font-size:0.6em;
}

.news-list-item p {
    font-size: 14px;
    color: #666;
}

/* NEWS */

.news-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-wrapper .news-header {
    color: var(--global-color-0);
    background: var(--global-color-7);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: solid var(--global-color-0);
}

.news-wrapper .news-header .back-container {
    padding: 15px 15px;
    cursor:pointer;
}

.news-wrapper .news-header .back-container a {
    color:var(--global-color-0);
    text-decoration: none;;
}

.news-wrapper .news-header .info-container {
    display: flex;
    align-items: center;
    gap: 20px;
}


.news-wrapper .news-header .views-count {
    padding: 5px 10px;
}

.news-wrapper .news-content {
    width: var(--document-width);
    margin: 50px 0px;
}

.news-wrapper .news-title {
    color: var(--global-color-0);
    margin-bottom: 40px;
    width: 100%;
}

.news-tools-container {
    display:flex;
    justify-content: space-between;
    align-items:center;
    width: var(--document-width);
    margin-top: 30px;
}

.news-tools-box {
    display:flex;
    gap:30px;
}

/* WRAPPERS */
.societies-wrapper {
    width: var(--document-width);
}

.societies-wrapper .seccondary-text {
    text-align: center;
}

.societies-wrapper .seccondary-text h5 {
    color: var(--global-color-0);
    font-size: 2.5em;
}

.societies-wrapper .seccondary-text p {
    color: var(--global-color-0);
    font-size: 1em;
}

/* PROMO */
.promo-container {
    width: var(--document-width);
}
.promo-wrapper {
    width: var(--document-width);
    display: flex;
    gap: 10px;
}

.promo {
    cursor:pointer;
    border-radius: 5px;
    overflow: hidden;
    height: 200px;
    min-width: 180px; /* Ensures it doesn’t shrink too much */
    border: 1px solid #ddd;
}

.promo:hover img {
    transform: scale(1.1);
}

.promo img {
    width: 100%;
    height: 100%;
    object-fit: none;
    transition: transform 0.3s ease-in-out;
}

/* FILTER */

.filter-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
}

/* SOCIETIES */

.society-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 340px;
}

.society-wrapper .content {
    width: var(--document-width);
}

/* HUTS */
.hut-wrapper, .shelter-wrapper {
    width: 100%;
}

.shelter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.shelter-wrapper .content {
    width: var(--document-width);
}


.shelter-wrapper .detail-hut-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: right;
}


.hut-dictionary {
    background-color: var(--global-color-0);
    color: var(--global-color-8);
    padding: 20px 0px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hut-dictionary .list{
    width: var(--document-width);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}
.hut-dictionary .list a {
    color: var(--global-color-6);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.hut-dictionary .list a:not(:last-child)::after {
    content: " |";
    margin-left: 10px;
}

#hut-info, #info-list, #hut-list{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin:25px 0px;
}

#hut-info {
    margin-top: 0px;
}

#hut-info .header, 
#info-list .header, 
#hut-list .header, 
.shelter-wrapper .header,
.society-wrapper .header {
    width: 100%;
    text-align: center;
    background-color: var(--global-color-0);
    padding: 10px 0px;
    margin-bottom: 40px;
}

#hut-info .header h2, 
#info-list .header h2, 
#hut-list .header h2, 
.shelter-wrapper .header h2,
.society-wrapper .header h2 {
    margin:0px;
    color: var(--global-color-6);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

#hut-info .info {
    width: var(--document-width);
}
#info-list .accordion {
    width: var(--document-width);
}
#info-list .accordion .link-list {
    display:flex;
    flex-direction: column;
}
#info-list .accordion .link-list a {
    text-decoration: none;
}

/* CONTACT */
.links {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
}
.links div {
    text-align: left;
}

.section-links {
    padding: 10px;
    background-color: var(--global-color-0);
    border-radius: 5px;
    margin-top: 20px;
}

.section-links p:first-child {
    color:var(--global-color-7);
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
}

.grid-menu:not(.en) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.grid-menu.en {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.grid-menu li {
    display: flex;
    justify-content: center;
    background-color: var(--global-color-6);
    overflow: hidden;
    border-radius: 5px;
    overflow: hidden;
}

.grid-menu a {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--global-color-0);
    padding: 10px;
    display: flex;
    width: 100%;
    text-align: center;
    border: 1px solid var(--global-color-0);
    border-radius: 5px;
    align-items: center;
    justify-content: center;
}

.sub-section-header {
    width: 100%;
    text-align: center;
    background-color: var(--global-color-0);
    padding: 10px 10px;
    margin-bottom: 40px;
    color: var(--global-color-6);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
    text-align: left;
}

/* Responsive for smaller screens */

@media(max-width: 1020px) {
    .counter-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .counter-item {
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    
    .counter-number {
        font-size: 1.5em; /* Size of the counter number */
    }
    
    .counter-label {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .grid-menu {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on tablets */
    }
}

@media (max-width: 545px) {
    .counter-wrapper {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap:10px;
        margin-top: 20px;
    }

    .counter-item {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 0px !important;
    }
}

@media (max-width: 480px) {
    .grid-menu {
        grid-template-columns: repeat(1, 1fr) !important; /* 1 column on mobile */
    }
}

/* LEADERSHIP - CONTACT - SEARCH RESULT */
.leadership-wrapper, .contact-wrapper, .global-search-results-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.leadership-wrapper .content, .contact-wrapper .content, .global-search-results-wrapper .content {
    width: var(--document-width);
    text-align: center;
}

.content .president p:first-child {
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: bold;
    color:var(--global-color-0);
}

/* pheader */
.p-header {
    width: 100%;
    text-align: center;
    background-color: var(--global-color-0);
    padding: 10px 0px;
    margin-bottom: 40px;
}

.p-header h2 {
    margin: 0px;
    color: var(--global-color-6);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

/* news filter box */
.filter-box {
    width: var(--document-width);
    background-color: var(--document-color);
}

@media(max-width: 1440px) {
    :root {
        --document-width: 100%;
    }
    .page-header nav {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
        padding: 10px;
    }
    .news-wrapper .news-content, .news-list-wrapper, .societies-wrapper, .pagination, 
    #hut-info .info, #info-list .info, #hut-list .info,
    .contact-wrapper .content, .commissions-wrapper .w-doc, .commissions-wrapper .flip-container, .vice-presidents-and-secretary,
    .leadership-wrapper .text-content, .honorary-members-wrapper .w-doc, .honorary-members-wrapper .w-doc, .mdo-pd-wrapper .w-doc,
    .pzs-projects-wrapper .w-doc, .promo-container, .shelter-wrapper .content, .easy-filter, .society-wrapper .content {
        padding: 10px;
    }
    .news-list-wrapper {
        margin-top: 10px !important;
    }
    .news-tools-container, .news-tools-box {
        padding-left: 10px;
        padding-right: 10px;
        /* padding-bottom: 10px; */
        margin-top: 10px;
    }

    .filter-wrapper.media {
        width: 100% !important;
    }
}
@media(max-width: 1200px) {
    .news-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
    } 
}
/* Remove absolute positioning for submenu in burger (mobile) mode */
@media (max-width: 991px) {  /* Assuming 991px is your breakpoint for mobile */
    .page-header {
        height: unset;
    }
    .submenu {
        display: none;
        /* position: static; Remove absolute positioning */
        box-shadow: none; /* Optional: Remove shadow on mobile */
        min-width: 100%; /* Adjust the width to fit the screen size */
    }
    .shelters-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-wrapper {
        gap:10px;
    }

    .news-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .front-news-item {
        min-height: unset;
    }

    .news-list-wrapper.alt {
        grid-template-columns: repeat(1, 1fr);
    }

    .news-list-wrapper.alt {
        grid-template-columns: repeat(1, 1fr);
    }
    .news-list-wrapper.alt .news-list-item{
        min-height: 130px;
    }
}
@media(max-width: 860px) {
    .links {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 767px) {
    .news-tools-container.alt {
        flex-direction:column-reverse;
        gap:20px;
    }
    .news-tools-container:not(.alt) {
        flex-direction:column;
        gap:20px;
    }
    .news-tools-box .toggle-switch {
        width:100%;
    }

    .navbar-brand > img {
        width: 150px;
    }

    .filter-wrapper .filter-fields {
        flex-grow: 1;
    }

    footer .column {
        margin-top: 10px;
    }

    .main-page-quick-links > .content > a {
        font-size: 1.2em;  /* Adjust font size for smaller screens */
        margin-bottom: 10px;  /* Add margin for wrapping links */
    }
    
    .main-page-quick-links > .content {
        justify-content: center;
        padding-top: 20px;
    }

    .counter-item {
        flex-basis: 100%;  /* Make items stack on top of each other on small screens */
        margin-bottom: 10px;
    }

    .counter-wrapper {
        /* flex-direction: column;
        gap: 20px; */
        display:none;
    }

    .counter-item:not(:last-child) {
        border-right: none;
    }

    .carousel-item .carousel-caption h5 {
        font-size: 2em !important;
    }

    .front-news-wrapper {
        grid-template-columns: 1fr;
    }

    .hut-dictionary .list a:not(:last-child)::after {
        display:none;
    }

    .news-image img {
        width: 100%;
        height: 100%;
    }

    .shelter-wrapper .shelter-row {
        flex-direction: column-reverse;
    }
    
    .shelter-wrapper .detail-hut-img {
        max-height: unset;
    }

    .news-tools-box {
        flex-direction: column-reverse;
        align-items: flex-end;
    }
}

@media (max-width: 612px) {  
    .links {
        grid-template-columns: repeat(1, 1fr);
    }
    .news-list-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .filter-wrapper {
        align-items: flex-end;
    }
    .filter-fields {
        flex-direction: column;
    }
}

@media (max-width: 480px) {  
    .shelters-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .filter-wrapper {
        flex-direction: column;
    }
    .filter-fields {
        width: 100% !important;
    }
}