/* ===== Static Features Cards (Style-8) ===== */
/* Container */
.acm-features.style-8.static-cards {
  max-width: 100%;
}

/* Grid Layout */
.acm-features.style-8.static-cards .features-grid {
  display: grid;
  gap: 24px;
  padding: 0px;
  margin: 0 auto;
}

/* Mobile: 1 card per row, centered if only one */
@media (max-width: 767px) {
  .acm-features.style-8.static-cards .features-grid {
    grid-template-columns: 1fr;
  }
  .acm-features.style-8.static-cards .features-grid.column-1 .features-item {
    margin: 0 auto;
  }
}

/* Tablet: 2 cards per row */
@media (min-width: 768px) and (max-width: 1199px) {
  .acm-features.style-8.static-cards .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: Dynamic columns (1-6) */
@media (min-width: 1200px) {
  .acm-features.style-8.static-cards .features-grid.column-1 {
    max-width: 800px;
    grid-template-columns: 1fr;
  }
  .acm-features.style-8.static-cards .features-grid.column-1 .features-item {
    margin: 0 auto;
  }
  .acm-features.style-8.static-cards .features-grid.column-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .acm-features.style-8.static-cards .features-grid.column-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .acm-features.style-8.static-cards .features-grid.column-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .acm-features.style-8.static-cards .features-grid.column-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .acm-features.style-8.static-cards .features-grid.column-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Base Style */
.acm-features.style-8.static-cards .features-item {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  height: auto; /* Height adjusts to content */
}

/* Card Image */
.acm-features.style-8.static-cards .features-item .card-image {
  height: 140px; /* Reduced image height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  width: 100%;
  object-fit: scale-down;
  display: block;
}

/* Hover Effect */
.acm-features.style-8.static-cards .features-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Non-clickable card */
.acm-features.style-8.static-cards .features-item.no-link {
  cursor: default;
}

/* Clickable Card Link */
.acm-features.style-8.static-cards .features-item .card-link {
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Card Inner Layout */
.acm-features.style-8.static-cards .features-item .item-inner {
  flex-grow: 1;
  display: grid;
  flex-direction: column;
  height: auto; /* Adjusts to content */
  min-height: 160px;
  background-color: snow;
}

/* Title Style */
.acm-features.style-8.static-cards .features-item .item-title {
  font-size: 1.25rem; /* Slightly smaller font */
  margin: 10px; /* Reduced margin */
  text-align: center;
}

/* Description Style */
.acm-features.style-8.static-cards .features-item .item-description {
  font-size: 0.9rem; /* Slightly smaller font */
  line-height: 1.4;
  margin: 0 0 12px; /* Reduced margin */
  flex-grow: 1;
  text-align: center;
}

/* Hide empty description */
.acm-features.style-8.static-cards .features-item .item-description:empty {
  display: none;
}

/* Button Container */
.acm-features.style-8.static-cards .features-item .item-button {
  display: inline;
  align-items: center;
  gap: 8px;
  padding: 0px 20px 0px 0px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  justify-content: center;
  text-align: center;
}

/* Button Styling */
.acm-features.style-8.static-cards .features-item .btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: auto; /* Width adjusts to content */
  height: auto; /* Height adjusts to content */
}

/* Hide empty button container */
.acm-features.style-8.static-cards .features-item .item-button:empty {
  display: none;
}

/* Button Hover */
.acm-features.style-8.static-cards .features-item .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button Icon */
.acm-features.style-8.static-cards .features-item .btn-icon {
  display: inline-flex;
}

/* Equal height for cards in the same row */
.acm-features.style-8.static-cards .features-grid {
  align-items: stretch;
}

.acm-features.style-8.static-cards .features-item {
  height: 100%;
}

.item-button-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-icon-left img {
  object-fit: scale-down;
  min-width: 100px;
  min-height: 100px;
  max-height: 20px;
  margin: 5px;
  border-radius: 2px;
}


/* Target the module container */
.biography-grid .mod-articles-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Style each biography card */
.biography-grid .mod-articles-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  background: #fff;
}

/* Hover effect */
.biography-grid .mod-articles-item:hover {
  transform: translateY(-5px);
}

/* Style the image */
.biography-grid .mod-articles-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* Style the content area */
.biography-grid .mod-articles-item .mod-articles-item-content {
  padding: 0px;
}

/* Style the title */
.biography-grid .mod-articles-item .mod-articles-item-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--template-primary-color, #236fa1); /* Primary color */
}

/* Style the intro text */
.biography-grid .mod-articles-item .mod-articles-item-introtext {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

/* Style the "Read More" link */
.biography-grid .mod-articles-item .mod-articles-item-readmore {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Remove bullet points from the biography grid */
.mod-articles-items.mod-articles-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Remove bullet points from individual list items */
.mod-articles-items.mod-articles-grid > li {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Rounded corners for biography card images */
.mod-articles-items.mod-articles-grid .item-image img,
.biography-grid .mod-articles-item img {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 220px;          /* pick a height that fits your design */
  object-fit: contain;      /* fill the card area, crop overflow */
  object-position: center;
  display: block;
}
.mod-articles-image {
  margin-bottom: 0rem;
}
/* Style the biography card title */
.mod-articles-items.mod-articles-grid .biography-title,
.biography-grid .mod-articles-item .mod-articles-item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--template-primary-color); /* Primary color */
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Style the biography card subtitle (e.g., "Redovni profesor") */
.mod-articles-items.mod-articles-grid .biography-title em,
.biography-grid .mod-articles-item .mod-articles-item-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--color-secondary);
  display: block;
  font-size: 1rem;
  margin-top: 4px;
}

/* Style the biography card intro text */
.mod-articles-items.mod-articles-grid .biography-intro p,
.biography-grid .mod-articles-item .mod-articles-item-introtext p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Style the contact info text */
.mod-articles-items.mod-articles-grid .biography-contact,
.biography-grid .mod-articles-item .biography-contact {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

/* Style the contact labels (e.g., "кабинет:", "телефон:") */
.mod-articles-items.mod-articles-grid .biography-contact div,
.biography-grid .mod-articles-item .biography-contact div {
  margin-bottom: 4px;
  color: #777;
  position: relative;
}

/* Style the contact values (e.g., phone numbers, emails) */
.mod-articles-items.mod-articles-grid .biography-contact strong,
.biography-grid .mod-articles-item .biography-contact strong {
  color: #222;
  font-weight: 500;
}

/* Style the "Read More" link */
.mod-articles-items.mod-articles-grid .mod-articles-item-readmore,
.biography-grid .mod-articles-item .mod-articles-item-readmore {
  display: inline-block;
  background-color: #0073aa;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 10px;
}

/* Hover effect for the "Read More" link */
.mod-articles-items.mod-articles-grid .mod-articles-item-readmore:hover,
.biography-grid .mod-articles-item .mod-articles-item-readmore:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Add padding and spacing inside the card */
.mod-articles-items.mod-articles-grid .mod-articles-item-content,
.biography-grid .mod-articles-item .mod-articles-item-content {
  padding: 0px;
}
.mod-articles-items.mod-articles-grid .biography-contact div:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
}

.mod-articles-items.mod-articles-grid .kabinet:before {
  content: "\f0f6"; /* Building icon */
}

.mod-articles-items.mod-articles-grid .contact-info:nth-child(2):before {
  content: "\f095"; /* Phone icon */
}

.mod-articles-items.mod-articles-grid .contact-info:nth-child(3):before {
  content: "\f0e0"; /* Email icon */
}
//* Style the tab container */
.biography-tabs {
  display: flex;
  justify-content: flex-start;
  margin-top: 0 !important;  
  max-width: 100%;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  flex-wrap: wrap;
}

/* Style individual tab buttons */
.biography-tabs button.tab-button {
  flex: 1 0 auto;
  padding: 10px 15px;
  margin: 0 2px 5px 2px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Style for mobile devices */
@media (max-width: 768px) {
  .biography-tabs {
    flex-direction: column;
  }

  .biography-tabs button.tab-button {
    width: 100%;
    margin: 0 0 5px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
  }

  .biography-tabs button.tab-button.active {
    border-bottom: 1px solid #236fa1;
  }
}

/* Style the active tab */
.biography-tabs button.tab-button.active {
  background-color: var(--color-primary);
  color: #fff;
}

/* Style the tab content container */
.tab-content {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 0 6px 6px 6px;
  background-color: #fff;
  width: 100%;
}

/* Style the tab content text */
.tab-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .biography-tabs {
    flex-wrap: wrap;
  }
  .biography-tabs button.tab-button {
    flex: 1 1 100%;
    margin-bottom: 5px;
  }
}

/* Katedre */

.katedre-container {
    font-family: Arial, sans-serif;
    margin: 30px auto;
    padding: 0;
    max-width: 2200px;
    display: flex;
    flex-direction: column;
}

.katedre-header {
    text-align: center;
    margin-bottom: 20px;
}

.katedre-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.katedre-image {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.katedre-image img {
    width: 100%;
    height: auto;
}

.katedre-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.katedre-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    height: fit-content;
}

.katedre-sidebar h3 {
    color: white;
    background-color: var(--color-primary);
    padding: 10px;
    margin: -15px -15px 15px -15px;
    border-radius: 5px 5px 0 0;
}

.katedre-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.katedre-sidebar li {
    margin-bottom: 10px;
}

.katedre-sidebar a {
    display: block;
    padding: 8px;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
}

.katedre-sidebar a:hover,
.katedre-sidebar a.active {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
}

.katedre-main {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    min-height: 400px;
}

.katedre-main h2 {
    color: var(--color-primary);
    margin-top: 0;
}

@media (max-width: 768px) {
    .katedre-content {
        flex-direction: column;
    }
    .katedre-sidebar {
        width: 100%;
    }
}


/* Odseci 

.biography-container {
  font-family: Arial, sans-serif;
  margin-bottom: 40px;
  padding: 20px;
}

.tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  background-color: var(--color-secondary);
  cursor: pointer;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  transition: all 0.3s;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button :active {
  background-color: #f0f0f0;
  cursor: pointer;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  transition: all 0.3s;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
*/

/* Odseci */
.biography-container {
  margin-bottom: 40px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.tabs-menu {
  display: flex;
  width: 100%;
  gap: 5px;
}

.tab-button {
  background-color: var(--color-primary);
  cursor: pointer;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s ease;
  border-radius: 5px 5px 0 0;
  flex: 1;
  text-align: center;
}

.tab-button.active {
  background-color: #fff;
  color: #777;
  font-weight: bold;
}

.tab-button:hover:not(.active) {
  color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
}

.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid var(--color-secondary);
  border-top: none;
  border-radius: 0 0 5px 5px;
  background-color: #fff;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tabele */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        margin-bottom: 20px;
    }

    .styled-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

    .styled-table th,
    .styled-table td {
        padding: 8px;
        text-align: left;
        border: 1px solid #ddd;
    }

    .styled-table th {
        background-color: #fff;
    }

    .styled-table tr:nth-child {
        background-color: #ddd;
    }

    @media (max-width: 768px) {
        .styled-table th,
        .styled-table td {
            padding: 6px;
            font-size: 12px;
        }
    }


.biography-container {
  margin: 0px auto;
  padding: 20px;
}

.biography-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  
}

.biography-image {
  flex: 0;
  min-width: 300px;
}

.biography-image img {
  width: 80%;
  height: auto;
}

.item-page:not(.event-detail):not(.donation-detail) .item-image img {
  border-radius: var(--t4-border-radius);
  -o-object-fit: scale-down;
  object-fit: cover;
  width: 100%;
  max-height: 420px;
  }

.biography-intro-r {
  flex: 0.5;
  min-width: 460px;
  background-color: #f9f9f9;
  padding: 10px 20px 0px 30px;
  border: 1px solid #ddd;
  border-radius: var(--t4-border-radius);
  max-height: 400px;
  margin: 20px;
}

.biography-intro {
  flex: 0.5;
  min-width: 200px;
  background-color: #f9f9f9;
  padding: 10px 10px 0px 20px;
  border: 1px solid #ddd;
  border-radius: var(--t4-border-radius);
  min-height: 200px;

}


.biography-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.biography-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-style: italic;
}

.biography-contact {
  margin-bottom: 10px;
}

.kabinet {
  margin-bottom: 10px;
}

.contact-info {
  margin-bottom: 10px;
}

/* Tabs */
.tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #ddd;
}

.tab-button {
  background-color: var(--color-primary);
  cursor: pointer;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  color: white;
  transition: all 0.3s;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
  background-color: #e0e0e0;
}

.tab-button.active {
  background-color: #f0f0f0;
  color: var(--color-primary);
  font-weight: bold;
  border-bottom: 3px solid #f0f0f0;
}

/* Social Media Icons */
.social-links {
  margin: 25px 0;
}

.social-links a {
  display: inline-block;
  margin-right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.social-links .facebook {
  background-color: #3b5998;
}

.social-links .google {
  background-color: #1da1f2;
}

.social-links .linkedin {
  background-color: #0077b5;
}

.social-links .orcid {
  background-color: #0077b5;
}

.social-links .enauka {
  background-color: #2b579a;
}

.social-links i {
  margin-right: 0;
  line-height: inherit;
}

@media (max-width: 768px) {
  .biography-header {
    flex-direction: column;
  }
}

 .table-container {
            overflow-x: auto;
            margin-bottom: 20px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 0 auto;
        }
        th, td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #ddd;
            word-break: break-word;
        }
        th {
            background-color: #b9e8fd;
            font-weight: bold;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:nth-child(odd) {
            background-color: #ffffff;
        }
        a {
            color: #0066cc;
            text-decoration: none;
        }
        a:hover {
            text-decoration: underline;
        }
        @media (max-width: 768px) {
            th, td {
                padding: 8px;
                font-size: 14px;
            }
        }

:target::before {
    content: "";
    display: block;
    height: 250px; /* Adjust this value to match your sticky menu height */
    margin: -250px 0 0; /* Negative margin to pull the content up */
}

 .impact-contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1.05rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 20px;
}

.form-group {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 15px;
}

.form-group.full-width {
    flex: 0 0 100%;
    max-width: 100%;
}

.impact-contact-form input,
.impact-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fcfcfc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.impact-contact-form input:focus,
.impact-contact-form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
    outline: none;
    background: #fff;
}

.impact-contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.impact-contact-form input::placeholder,
.impact-contact-form textarea::placeholder {
    color: #bdc3c7;
}

.submit-btn {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #3498db;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Validation states */
.impact-contact-form input:invalid,
.impact-contact-form textarea:invalid {
    border-color: #e74c3c;
}

.impact-contact-form input:valid,
.impact-contact-form textarea:valid {
    border-color: #2ecc71;
}

/* Responsive */
@media (max-width: 768px) {
    .impact-contact-form {
        padding: 30px 20px;
    }
    .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-header h3 {
        font-size: 1.5rem;
    }
    .contact-header p {
        font-size: 0.95rem;
    }
}

/* Colors fix */

/* In the <style> block, find and replace: */
.submit-btn {
    background: #3498db;  /* Your primary color */
}
.submit-btn:hover {
    background: #2980b9;  /* Darker version */
}
.impact-contact-form input:focus,
.impact-contact-form textarea:focus {
    border-color: #3498db;  /* Same as button */
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

/* Blog image fit */
.items-row .item .item-image img {
  -o-object-fit: contain;
     object-fit: scale-down;
  -webkit-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
  width: 100%;

/* News slider */

.news-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-slider.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.news-slider-content[hidden] {
    display: none;
}

.news-slider .news-item {
    margin-bottom: 1.5rem;
}

.news-slider .news-title {
    margin-bottom: 0.5rem;
}

.news-slider .news-link {
    text-decoration: none;
}

.news-slider .news-link:hover {
    text-decoration: underline;
}

.news-slider .news-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #005a9c;
    cursor: pointer;
    font: inherit;
}

.news-slider .news-back:hover {
    text-decoration: underline;
}

.news-slider .news-content {
    animation: news-slide-in 0.4s ease both;
}

@keyframes news-slide-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-slider .news-content {
        animation: none;
    }
}


/* Hide the separate top-menu burger on desktop */
.top-menu-mobile {
  display: none;
}

@media (max-width: 991px) {
  /* Show secondary burger */
  .top-menu-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Hide the original horizontal top menu */
  .top-menu-wrapper > ul.nav.navbar-nav {
    display: none !important;
  }

  /* Compact burger button */
  .top-menu-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .top-menu-toggler-icon,
  .top-menu-toggler-icon::before,
  .top-menu-toggler-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .top-menu-toggler-icon {
    position: relative;
  }

  .top-menu-toggler-icon::before,
  .top-menu-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .top-menu-toggler-icon::before {
    top: -6px;
  }

  .top-menu-toggler-icon::after {
    top: 6px;
  }

  /* Optional: animate to X when open */
  .top-menu-toggler[aria-expanded="true"] .top-menu-toggler-icon {
    background: transparent;
  }

  .top-menu-toggler[aria-expanded="true"] .top-menu-toggler-icon::before {
    transform: translateY(6px) rotate(45deg);
  }

  .top-menu-toggler[aria-expanded="true"] .top-menu-toggler-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Collapsed panel */
  .top-menu-collapse {
    width: 100%;
    background: #f7f7f7;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .top-menu-collapse ul.nav.navbar-nav {
    display: block;
    margin: 0;
    padding: 4px 0;
  }

  .top-menu-collapse ul.nav.navbar-nav > li.nav-item {
    border-top: 1px solid rgba(0, 0, 0, .06);
  }

  .top-menu-collapse ul.nav.navbar-nav > li.nav-item:first-child {
    border-top: 0;
  }

  .top-menu-collapse ul.nav.navbar-nav > li.nav-item > a.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 10px 16px;
    font-size: 15px;
    color: #222;
    background: transparent;
    border-radius: 0;
  }

  .top-menu-collapse ul.nav.navbar-nav > li.nav-item > a.nav-link:hover,
  .top-menu-collapse ul.nav.navbar-nav > li.nav-item > a.nav-link:focus {
    background: #e6eef7;
    color: #003366;
  }


  /* Full-width dropdown inside the secondary burger */
  .top-menu-collapse ul.nav.navbar-nav > li.nav-item > ul.dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .top-menu-collapse ul.nav.navbar-nav > li.nav-item > ul.dropdown-menu > li.nav-item > a.dropdown-item {
    min-height: 42px;
    padding: 8px 16px 8px 28px;
    font-size: 14px;
    color: #333;
    white-space: normal;
  }
}
}
