/**
* Template Name: Blogy
* Template URL: https://bootstrapmade.com/blogy-bootstrap-blog-template/
* Updated: Feb 22 2025 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

@charset "UTF-8";

/*--------------------------------------------------------------
# Modal enhancements
--------------------------------------------------------------*/

/* Simple Modal Headers */
.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-header .modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Simple Modal Footer Buttons */
.modal-footer .btn:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Simple Notification Cards */
.notification-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.modal-header-simple {
  background-color: var(--heading-color);
  color: var(--contrast-color);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-header-simple .modal-title {
  color: inherit;
  font-weight: 700;
}

.modal-header-simple .modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.modal-header-simple .modal-icon i {
  color: inherit;
}

.modal-subtitle {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.modal-header-simple .btn-close {
  opacity: 0.75;
  transition: opacity 0.2s ease-in-out;
}

.modal-header-simple .btn-close:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.35);
}

.modal-header-simple .btn-close:hover {
  opacity: 1;
}

.modal-body-neutral {
  background-color: #e9edf1;
  padding: 2rem;
}

.modal-footer-neutral {
  background-color: #a9b7c6;
  padding: 1.5rem 2rem;
}

@media (max-width: 575.98px) {
  .modal-header-simple {
    padding: 1.25rem 1.5rem;
  }

  .modal-body-neutral {
    padding: 1.5rem;
  }

  .modal-footer-neutral {
    padding: 1.25rem 1.5rem;
  }
}

/*--------------------------------------------------------------
# Notification Section Mobile Optimization
--------------------------------------------------------------*/

/* Mobile optimization for notification cards */
@media (max-width: 767.98px) {
  #notifications-section .card-body {
    padding: 2rem 1.5rem !important;
  }
  
  #notifications-section .text-center h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem !important;
  }
  
  #notifications-section .text-center p {
    font-size: 0.9rem;
    margin-bottom: 2rem !important;
  }
  
  #notifications-section .text-center .display-5 {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  #notifications-section .notification-option .card-body {
    padding: 1.5rem 1rem !important;
  }
  
  #notifications-section .notification-option .rounded-circle {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 1rem !important;
  }
  
  #notifications-section .notification-option .rounded-circle i {
    font-size: 1.3rem !important;
  }
  
  #notifications-section .notification-option .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem !important;
  }
  
  #notifications-section .notification-option .text-muted {
    font-size: 0.8rem;
    margin-bottom: 1rem !important;
  }
  
  #notifications-section .notification-option .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Extra small devices optimization */
@media (max-width: 575.98px) {
  #notifications-section .card-body {
    padding: 1.5rem 1rem !important;
  }
  
  #notifications-section .text-center h4 {
    font-size: 1.2rem;
  }
  
  #notifications-section .text-center .display-5 {
    font-size: 2rem !important;
  }
  
  #notifications-section .notification-option .card-body {
    padding: 1.25rem 0.75rem !important;
  }
  
  #notifications-section .notification-option .rounded-circle {
    width: 45px !important;
    height: 45px !important;
  }
  
  #notifications-section .notification-option .card-title {
    font-size: 1rem;
  }
  
  #notifications-section .notification-option .btn {
    padding: 0.4rem 1.25rem;
    font-size: 0.8rem;
  }
}

/*--------------------------------------------------------------
# Custom Styles for Search Modal
--------------------------------------------------------------*/

/* Modern Spinner Classes - Universal */
.modern-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(var(--accent-color-rgb), 0.2));
    display: inline-block;
}

.modern-spinner-sm {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
    filter: drop-shadow(0 0 4px rgba(var(--accent-color-rgb), 0.2));
    display: inline-block;
}

.modern-spinner-lg {
    width: 4rem;
    height: 4rem;
    border: 5px solid transparent;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
    filter: drop-shadow(0 0 12px rgba(var(--accent-color-rgb), 0.3));
    display: inline-block;
}

/* Dual Ring Spinner for special effects */
.modern-spinner-dual {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: inline-block;
}

.modern-spinner-dual:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(var(--accent-color-rgb), 0.2));
}

.modern-spinner-dual:after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border: 3px solid transparent;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1.5s linear infinite reverse;
    opacity: 0.6;
}

/* Spinner Container Utilities */
.spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.spinner-overlay.dark {
    background: rgba(0, 0, 0, 0.8);
}

/* Pulsing effect for loading states */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.4);
    }
    100% {
        box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.2);
    }
}

.modern-spinner.pulse {
    animation: modern-spin 1s linear infinite, pulse-glow 2s ease-in-out infinite;
}

#searchModal {
    z-index: 1050 !important;
}

#searchModal .modal-dialog {
    pointer-events: auto;
    max-height: 90vh;
    margin: 1.75rem auto;
    display: flex;
    align-items: center;
}

#searchModal .modal-content {
    pointer-events: auto;
    max-height: none;
    overflow: hidden;
}

#searchModal .modal-body {
    max-height: 70vh;
    pointer-events: auto;
    overflow-y: auto;
}

/* Stili per lista risultati scrollabile */
.results-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-right: -8px;
}

/* Personalizzazione scrollbar per la lista risultati */
.results-scrollable::-webkit-scrollbar {
    width: 6px;
}

.results-scrollable::-webkit-scrollbar-track {
    background: #a9b7c6;
    border-radius: 10px;
}

.results-scrollable::-webkit-scrollbar-thumb {
    background: #3e607d;
    border-radius: 10px;
}

.results-scrollable::-webkit-scrollbar-thumb:hover {
    background: #1e3a53;
}

/* Indicatore di scroll */
.scroll-indicator {
    position: sticky;
    bottom: 0;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(2px);
    margin-top: auto;
    animation: bounce 2s infinite;
}

.scroll-indicator .bi-chevron-down {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

#searchModal .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#searchModal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#searchModal .card-title {
    color: var(--heading-color);
    font-weight: 600;
}

#searchModal .badge {
    font-size: 0.75em;
}

#searchModal .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(var(--accent-color-rgb), 0.2));
}

/* Stili per i risultati di ricerca unificati */
#unified-results-list .card {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}

#unified-results-list .card:hover {
    border-color: var(--accent-color);
    background-color: rgba(30, 58, 83, 0.02);
}

#unified-results-list .icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

#unified-results-list .card:hover .icon-wrapper {
    transform: scale(1.1);
}

#unified-results-list .card:hover .bi-arrow-right {
    transform: translateX(5px);
    color: var(--accent-color) !important;
}

#unified-results-list .card:hover .card-title {
    color: var(--accent-color) !important;
}

#unified-results-list .bi-arrow-right {
    transition: all 0.3s ease-in-out;
}

/* Stili per gli elementi "more" */
#unified-results-list .bg-light {
    background-color: rgba(248, 249, 250, 0.6) !important;
}

/* Stili per le informazioni aggiuntive negli eventi e utenti */
#unified-results-list .card-body small {
    font-size: 0.8rem;
    line-height: 1.4;
}

#unified-results-list .card-body small i {
    font-size: 0.75rem;
    opacity: 0.7;
}

#unified-results-list .card:hover .card-body small {
    color: var(--default-color) !important;
}

#unified-results-list .card:hover .card-body small i {
    opacity: 1;
    color: var(--accent-color) !important;
}

/*--------------------------------------------------------------
# User Profile Page Styles
--------------------------------------------------------------*/
.author-profile-page .author-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
}

/*--------------------------------------------------------------
# Events Calendar & Search
--------------------------------------------------------------*/
.events-calendar .calendar-card {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  overflow: hidden;
}

.events-calendar .calendar-card .calendar-ambito-toolbar {
  padding: 1.25rem 1.5rem 1rem;
  background: #fff;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.events-calendar .calendar-card .calendar-ambito-label {
  letter-spacing: 0.08em;
}

.events-calendar .calendar-card .calendar-ambito-toolbar .btn {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
}

.events-calendar .calendar-card .calendar-ambito-toolbar .btn.active,
.events-calendar .calendar-card .calendar-ambito-toolbar .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb), 0.18);
}

.events-calendar .calendar-card .card-body {
  padding: 1rem 1.5rem 1.5rem;
}

#events-calendar {
  --fc-border-color: color-mix(in srgb, var(--default-color), transparent 92%);
  --fc-button-text-color: var(--contrast-color);
  --fc-button-bg-color: var(--accent-color);
  --fc-button-border-color: var(--accent-color);
  --fc-button-hover-bg-color: color-mix(in srgb, var(--accent-color), transparent 10%);
  --fc-button-hover-border-color: color-mix(in srgb, var(--accent-color), transparent 10%);
  --fc-button-active-bg-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  --fc-button-active-border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  --fc-today-bg-color: rgba(var(--accent-color-rgb), 0.08);
}

/* Classi colore per eventi del calendario - dalla palette del sito */
.event-color-default {
  background-color: var(--accent-color) !important;
}

.event-color-accent {
  background-color: var(--accent-color) !important;
}

.event-color-heading {
  background-color: var(--heading-color) !important;
}

.event-color-success {
  background-color: #198754 !important; /* Bootstrap success green */
}

.event-color-warning {
  background-color: #fd7e14 !important; /* Bootstrap warning orange */
}

.event-color-info {
  background-color: #0dcaf0 !important; /* Bootstrap info cyan */
}

#events-calendar .fc-toolbar.fc-header-toolbar {
  padding: 1.5rem 1.5rem 0.75rem;
}

#events-calendar .fc-toolbar-title {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

#events-calendar .fc-col-header-cell-cushion,
#events-calendar .fc-daygrid-day-number {
  color: var(--heading-color);
}

#events-calendar .fc-daygrid-event {
  border-radius: 999px;
  border: none;
  padding: 4px 10px;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(var(--accent-color-rgb), 0.18);
}

#events-calendar .fc-daygrid-event:hover {
  opacity: 0.9;
}

/* Stili per eventi nella vista lista (mobile) */
#events-calendar .fc-list-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

#events-calendar .fc-list-event {
  border-radius: 12px;
  border: none;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--accent-color-rgb), 0.12);
  background: white;
  transition: all 0.3s ease;
  position: relative;
}

#events-calendar .fc-list-event:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--accent-color-rgb), 0.2);
}

#events-calendar .fc-list-event-time {
  background: var(--accent-color);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 15px;
  border-radius: 12px 0 0 12px;
  width: 80px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

#events-calendar .fc-list-event-title {
  font-weight: 600;
  color: #333;
  padding: 12px 15px;
  background: white;
  border-radius: 0 12px 12px 0;
  margin: 0;
  vertical-align: middle;
}

#events-calendar .fc-list-event-graphic {
  display: none;
}

/* Indicatore per eventi sovrapposti nella vista lista */
#events-calendar .fc-list-event.overlapping::before {
  content: "●";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffc107;
  font-size: 1.2rem;
  z-index: 10;
}

/* Stili per eventi nella vista settimanale */
#events-calendar .fc-timegrid-event {
  border-radius: 8px;
  border: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(var(--accent-color-rgb), 0.2);
  min-height: 20px; /* Altezza minima per eventi sovrapposti */
}

#events-calendar .fc-timegrid-event:hover {
  opacity: 0.9;
  transform: scale(1.02);
  z-index: 1000; /* Porta in primo piano l'evento al hover */
}

#events-calendar .fc-timegrid-event .fc-event-title {
  font-weight: 600;
  padding: 2px 6px;
}

/* Stili per il contenuto personalizzato degli eventi */
.fc-event-content-custom {
  padding: 2px 4px;
  font-size: 0.85rem;
  line-height: 1.2;
}

.fc-event-time-custom {
  font-weight: 700;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 1px;
}

.fc-event-title-custom {
  font-weight: 600;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Colori aggiuntivi per eventi sovrapposti */
#events-calendar .bg-success {
  background-color: #198754 !important;
}

#events-calendar .bg-warning {
  background-color: #fd7e14 !important;
  color: white !important;
}

#events-calendar .bg-info {
  background-color: #0dcaf0 !important;
}

#events-calendar .bg-danger {
  background-color: #dc3545 !important;
}

#events-calendar .bg-secondary {
  background-color: #6c757d !important;
}

/* Miglioramenti per eventi sovrapposti nella vista giornaliera */
#events-calendar .fc-timegrid-col-events {
  margin: 0 1px; /* Spazio laterale per eventi affiancati */
}

/* Evidenziazione dell'evento selezionato/hover */
#events-calendar .fc-event:hover {
  opacity: 0.85 !important;
  transform: scale(1.02) !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Stili specifici per eventi nella vista giornaliera */
#events-calendar .fc-timegrid-event {
  margin: 0 1px; /* Margine laterale per separare eventi affiancati */
  border-left: 3px solid rgba(255, 255, 255, 0.3); /* Bordo sinistro per distinzione */
}

/* Stili per eventi sovrapposti */
#events-calendar .fc-event.overlapping {
  position: relative;
  border: 2px solid #ffc107 !important;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3) !important;
}

#events-calendar .fc-event.overlapping::after {
  content: "⚠";
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ffc107;
  color: #000;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 10;
}

/* Stili per la vista lista - eventi sovrapposti */
#events-calendar .fc-list-event.overlapping {
  border-left: 4px solid #ffc107 !important;
}

#events-calendar .fc-list-event.overlapping .fc-list-event-time {
  background: linear-gradient(45deg, var(--accent-color), #ffc107) !important;
}

/* Tooltip personalizzato per eventi sovrapposti */
#events-calendar .fc-event.overlapping[title] {
  cursor: help;
}

/* Miglioramento responsività per eventi sovrapposti su mobile */
@media (max-width: 768px) {
  #events-calendar .fc-event.overlapping::after {
    width: 14px;
    height: 14px;
    font-size: 9px;
    top: 1px;
    right: 1px;
  }
  
  .fc-event-content-custom {
    font-size: 0.75rem;
  }
  
  .fc-event-time-custom {
    font-size: 0.7rem;
  }
  
  .fc-event-title-custom {
    font-size: 0.75rem;
  }
}

.filters-card .btn {
  border-radius: 999px;
}

.filters-card .btn.active,
.filters-card .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb), 0.2);
}

.events-search-results .article-card {
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.events-search-results .article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12) !important;
}

.event-preview-modal .modal-content {
  border-radius: 22px;
}

.event-preview-modal .btn-close {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 1060;
  position: relative;
}

.event-preview-modal .btn-close:hover {
  opacity: 1;
}

.event-preview-modal .modal-header {
  position: relative;
  z-index: 1050;
}

.event-preview-modal .modal-content {
  position: relative;
  z-index: 1050;
}

.event-preview-modal .modal-title {
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.event-preview-modal .meta-list li {
  margin-bottom: 0.35rem;
}

.event-preview-modal .meta-list li i {
  color: var(--accent-color);
  font-size: 1rem;
}

.event-preview-modal #event-modal-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--default-color);
}

.event-preview-modal #event-modal-ambito-badge {
  align-self: flex-start;
  font-weight: 600;
}

.author-profile-page .author-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.author-profile-page .contact-info {
    text-align: left;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.author-profile-page .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.author-profile-page .contact-item i {
    width: 20px;
    color: #5f87af;
    margin-right: 10px;
}

.author-profile-page .contact-item a {
    color: #5f87af;
    text-decoration: none;
}

.author-profile-page .contact-item a:hover {
    text-decoration: underline;
}

.author-profile-page .social-links {
    justify-content: center;
}

.author-profile-page .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: #333;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.author-profile-page .social-links a:hover {
    background: #5f87af;
    color: white;
    transform: translateY(-2px);
}

.author-profile-page .user-details {
    background: #a9b7c6;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.author-profile-page .user-details h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-profile-page .user-details p {
    color: #666;
    margin-bottom: 0;
}

.author-profile-page #user-map {
    border-radius: 10px;
    overflow: hidden;
}

.author-profile-page #loading-spinner {
    padding: 100px 0;
}

.author-profile-page .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 4px solid transparent;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: modern-spin 1s linear infinite;
    filter: drop-shadow(0 0 8px rgba(var(--accent-color-rgb), 0.2));
}

.author-profile-page .alert {
    margin: 20px auto;
    max-width: 600px;
}

#searchModal .btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

#searchModal .btn-outline-primary:hover {
    background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Stili per i risultati semplificati */
#searchModal .hover-bg-light {
    transition: background-color 0.2s ease-in-out;
    pointer-events: auto;
}

#searchModal .hover-bg-light:hover {
    background-color: #a9b7c6 !important;
}

#searchModal a {
    pointer-events: auto;
    color: inherit;
}

#searchModal a:hover {
    text-decoration: none;
}

/* Assicura che i pulsanti siano cliccabili */
#searchModal .btn-close,
#searchModal .btn {
    pointer-events: auto !important;
    z-index: 1051;
}

/* Backdrop specifico per il search modal */
.modal-backdrop {
    z-index: 1040 !important;
}

/* Sistema di overlay come la navbar mobile - quando i modal sono aperti */
.modal-overlay-active {
    overflow: hidden;
}

.modal-overlay-active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    z-index: 500;
}

/* Assicura che i modal siano sopra l'overlay */
#searchModal.show,
#notificationModal.show {
    z-index: 1050 !important;
}

/*--------------------------------------------------------------
# Custom Styles for Notification Modal
--------------------------------------------------------------*/
#notificationModal .notification-option {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

#notificationModal .notification-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

#notificationModal .icon-wrapper {
    transition: transform 0.3s ease-in-out;
}

#notificationModal .notification-option:hover .icon-wrapper {
    transform: scale(1.1);
}

#notificationModal .btn {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

#notificationModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#notificationModal .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease-in-out;
}

#notificationModal .btn:hover::before {
    left: 100%;
}

#notificationModal .modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bellRing {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    70% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    90% { transform: rotate(2deg); }
}

#notificationModal .alert {
    background: linear-gradient(135deg, #a9b7c6 0%, #e9edf1 100%);
    border: 1px solid #3e607d;
    transition: all 0.3s ease-in-out;
}

#notificationModal .alert:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #notificationModal .modal-dialog {
        margin: 1rem;
    }
    
    #notificationModal .modal-body {
        padding: 1.5rem;
    }
    
    #notificationModal .modal-header {
        padding: 1.5rem;
    }
    
    #notificationModal .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    #notificationModal .icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    #notificationModal .icon-wrapper i {
        font-size: 2rem !important;
    }
    
    #notificationModal .card-body {
        padding: 1.5rem !important;
    }
}

/*--------------------------------------------------------------
# Custom Styles for Notification Modal
--------------------------------------------------------------*/
#notificationModal .notification-option {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

#notificationModal .notification-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#notificationModal .card-body {
    padding: 2rem 1.5rem;
}

#notificationModal .display-4 {
    font-size: 3rem;
}

#notificationModal .btn {
    transition: all 0.3s ease-in-out;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

#notificationModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#notificationModal .bg-light {
  background-color: rgba(248, 249, 250, 0.8) !important;
}

#notificationModal .modal-header {
    border-bottom: 2px solid #a9b7c6;
    padding-bottom: 1rem;
}

#notificationModal .modal-footer {
    border-top: 2px solid #a9b7c6;
    padding-top: 1rem;
}

/*--------------------------------------------------------------
# Calendar Mobile Optimizations
--------------------------------------------------------------*/
@media (max-width: 767.98px) {
    /* Riduce il padding del calendario su mobile */
    .events-calendar .calendar-card .calendar-ambito-toolbar {
        padding: 0.75rem 1rem 0.5rem;
    }
    
    .events-calendar .calendar-card .card-body {
        padding: 0.5rem 1rem 1rem;
    }
    
    /* Riduce le dimensioni del titolo del calendario */
    #events-calendar .fc-toolbar-title {
        font-size: 1.1rem !important;
        font-weight: 600;
    }
    
    /* Riduce il padding della toolbar */
    #events-calendar .fc-toolbar.fc-header-toolbar {
        padding: 0.75rem 1rem 0.5rem;
        margin-bottom: 0;
    }
    
    /* Riduce la dimensione dei pulsanti */
    #events-calendar .fc-button {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        line-height: 1.3;
    }
    
    /* Riduce il gap tra i pulsanti */
    #events-calendar .fc-button-group .fc-button {
        margin-left: 0 !important;
    }
    
    /* Ottimizza la footer toolbar per mobile */
    #events-calendar .fc-toolbar.fc-footer-toolbar {
        padding: 0.5rem 1rem;
        margin-top: 0;
        border-top: 1px solid var(--fc-border-color);
        background-color: #a9b7c6;
    }
    
    /* Centra i pulsanti nel footer */
    #events-calendar .fc-toolbar.fc-footer-toolbar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Riduce le dimensioni dei pulsanti ambito */
    .events-calendar .calendar-card .calendar-ambito-toolbar .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Riduce le dimensioni delle etichette */
    .events-calendar .calendar-card .calendar-ambito-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    /* Ulteriori riduzioni per schermi molto piccoli */
    #events-calendar .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    #events-calendar .fc-button {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    .events-calendar .calendar-card .calendar-ambito-toolbar .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/*--------------------------------------------------------------
# Custom Ratio for Event Modal Images (1200:630)
--------------------------------------------------------------*/
.ratio-event-cover {
    aspect-ratio: 1200 / 630;
    position: relative;
}

.ratio-event-cover > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Custom Styles for Notification Button in Navigation
--------------------------------------------------------------*/
.navmenu .notification-btn {
    background: linear-gradient(45deg, #5f87af, #3e607d) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 3px 10px rgba(95, 135, 175, 0.3) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.9rem !important;
    margin-left: 15px !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 100 !important;
}

.navmenu .notification-btn:hover {
    background: linear-gradient(45deg, #3e607d, #1e3a53) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(95, 135, 175, 0.4) !important;
}

.navmenu .notification-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease-in-out;
}

.navmenu .notification-btn:hover:before {
    left: 100%;
}

.navmenu .notification-btn .bi-bell {
    animation: bellRing 2s infinite;
    animation-delay: 1s;
}

@keyframes bellRing {
    0%, 50%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-8deg); }
    70% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    90% { transform: rotate(2deg); }
}

/* Responsive styles per mobile */
@media (max-width: 1199px) {
    .navmenu .notification-btn {
        margin-left: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 5px !important;
        padding: 12px 20px !important;
        width: calc(100% - 40px) !important;
        max-width: 250px !important;
        justify-content: center !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        font-size: 0.95rem !important;
    }
    
    /* Assicura che il container del menu mobile centri il bottone */
    .mobile-nav-active .navmenu ul li:last-child {
        display: flex !important;
        justify-content: center !important;
        padding: 0 20px !important;
    }
    
    /* Stili specifici per il mobile menu */
    .mobile-nav-active .navmenu .notification-btn {
        position: relative !important;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(95, 135, 175, 0.4) !important;
    }
}

/* Media query aggiuntiva per dispositivi molto piccoli */
@media (max-width: 576px) {
    .navmenu .notification-btn {
        width: calc(100% - 20px) !important;
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Nunito",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #e9edf1; /* Background color for the entire website, including individual sections */
  --default-color: #122532; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #1e3a53; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #5f87af; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --accent-color-rgb: 95, 135, 175; /* RGB values for accent color for use with rgba() */
  --surface-color: #e9edf1; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #e9edf1; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #122532;  /* The default color of the main navmenu links */
  --nav-hover-color: #5f87af; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #e9edf1; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #e9edf1; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #122532; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #5f87af; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #e9edf1;
  --surface-color: #e9edf1;
}

.dark-background {
  --background-color: #122532;
  --default-color: #e9edf1;
  --heading-color: #a9b7c6;
  --surface-color: #1e3a53;
  --contrast-color: #e9edf1;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid transparent;
  border-top: 3px solid var(--accent-color);
  animation: modern-spin 1s linear infinite;
  filter: drop-shadow(0 0 6px rgba(var(--accent-color-rgb), 0.2));
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 20px 0;
}

.header .top-row {
  padding-bottom: 10px;
}

.header .top-row .logo {
  text-decoration: none;
}

.header .top-row .logo img {
  max-height: 40px;
  margin-right: 10px;
}

.header .top-row .logo .sitename {
  font-size: 32px;
  font-weight: 400;
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin: 0;
}

.header .top-row .logo span {
  color: var(--accent-color);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.header .social-links a {
  color: var(--heading-color);
  padding: 0 8px;
  display: inline-block;
  font-size: 18px;
  transition: 0.3s;
}

.header .social-links a:hover {
  color: var(--accent-color);
}

@media (max-width: 1200px) {
  .header .social-links {
    padding-right: 40px;
  }
}

.header .search-form {
  position: relative;
  width: 100%;
  max-width: 250px;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-shrink: 1;
}

.header .search-form .form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 7px 40px 7px 15px;
  background: transparent;
  transition: 0.3s;
  color: var(--default-color);
  font-size: 14px;
}

.header .search-form .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.header .search-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: none;
}

.header .search-form button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 15px;
  margin: 0;
  color: var(--heading-color);
  transition: 0.3s;
}

.header .search-form button:hover {
  color: var(--accent-color);
}

/* Stili per la barra di ricerca mobile */
.mobile-search-form {
  padding: 15px 20px !important;
  margin: 0 !important;
  justify-content: center !important;
  align-items: center !important;
}

.mobile-search-item {
  background-color: color-mix(in srgb, var(--default-color), transparent 98%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 10px;
  text-align: center !important;
}

.mobile-search-form .form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 14px;
  width: 70%;
  max-width: 250px;
  flex: none !important;
}

.mobile-search-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb), 0.25);
}

.mobile-search-form .btn {
  border-radius: 25px;
  padding: 10px 15px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 42px;
}

.mobile-search-form .btn i {
  font-size: 16px;
  line-height: 1;
  margin: 0;
}

@media (max-width: 1200px) {
  .header .search-form {
    max-width: 200px;
  }
  
  .header .top-row .d-flex {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
  
  .header .search-form .form-control {
    min-width: 150px;
  }
}

@media (max-width: 1199px) {
  /* Nascondi la barra di ricerca desktop su tablet e mobile */
  .header .top-row .search-form {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .header .top-row {
    flex-wrap: wrap;
  }
  
  .header .search-form {
    width: 100%;
    margin: 10px 0 0 0;
    order: 3;
  }
  
  .header .social-links {
    display: none;
  }
}

.header .nav-wrap {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.header .mobile-nav-toggle {
  position: fixed;
  top: 20px;
  right: 5px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  /* Aggiunge supporto per click anche su desktop */
  .navmenu .dropdown.active>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    background-color: color-mix(in srgb, var(--default-color) 10%, white 15%);
    color: var(--nav-color);
    font-size: 24px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: color 0.2s;
    z-index: 999;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto; /* Assicura che sia sempre cliccabile */
    display: inline-block; /* Assicura che abbia dimensioni corrette */
  }

  .mobile-nav-toggle:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu {
    padding: 0;
    z-index: 800;
    position: relative;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 850;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    touch-action: pan-y;
  }

  /* Centra tutti gli elementi del menu mobile principale */
  .navmenu ul > li {
    text-align: center;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: 0.3s;
    text-align: center;
  }


  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none !important; /* Forza il display none di default */
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown.active ul,


  /* Centra gli elementi nei dropdown menu per mobile */
  .navmenu .dropdown ul li {
    text-align: center;
  }

  .navmenu .dropdown ul a {
    justify-content: center;
    text-align: center;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  /* Fix per il dropdown delle categorie su mobile */
  .navmenu .dropdown ul.dropdown-active {
    display: block !important;
    max-height: none;
    overflow: visible;
  }

  /* Assicurati che l'icona si ruoti quando il dropdown è attivo */
  .navmenu .dropdown.active .toggle-dropdown {
    transform: rotate(180deg);
  }
  
  /* Stato di default - icona non ruotata quando dropdown non è attivo */
  .navmenu .dropdown:not(.active) .toggle-dropdown {
    transform: rotate(0deg);
  }

  .mobile-nav-active {
    overflow: hidden;
    position: relative;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 900;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    pointer-events: auto; /* Assicura che sia sempre cliccabile anche quando il menu è aperto */
    cursor: pointer;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
    touch-action: pan-y;
  }



  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

.footer .partner-logos {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  background-color: color-mix(in srgb, var(--background-color), transparent 97%);
}

.footer .partner-logo {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.footer .partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .footer .partner-logo {
    max-height: 60px;
  }
}

/*--------------------------------------------------------------
# Preloader - Modern Design
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  position: relative;
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: modern-spin 1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(var(--accent-color-rgb), 0.3));
}

#preloader:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: modern-spin 1.5s linear infinite reverse;
  opacity: 0.6;
}

@keyframes modern-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 10000;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  text-align: center;
  padding: 20px 0;
}

.page-title .breadcrumbs {
  margin-bottom: 1.5rem;
}

.page-title .breadcrumbs .breadcrumb {
  justify-content: center;
  margin: 0;
  padding: 0;
  background: none;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item.active {
  color: var(--accent-color);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a:hover {
  color: var(--accent-color);
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item a i {
  font-size: 0.9rem;
  margin-right: 0.2rem;
}

.page-title .breadcrumbs .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.page-title .title-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
}

.page-title .title-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--heading-color);
}

.page-title .title-wrapper p {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-title .title-wrapper {
    padding: 1rem 1.5rem;
  }

  .page-title .title-wrapper h1 {
    font-size: 2rem;
  }

  .page-title .title-wrapper p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .page-title .title-wrapper {
    padding: 1.2rem 1.2rem;
  }

  .page-title .title-wrapper h1 {
    font-size: 1.75rem;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 30px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title div {
  color: var(--heading-color);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Blog Hero Section
--------------------------------------------------------------*/
.blog-hero {
  padding-top: 20px;
}

.blog-hero .blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .blog-hero .blog-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-hero .blog-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: transform 0.3s ease-in-out;
  background-color: var(--surface-color);
}

.blog-hero .blog-item:hover {
  transform: translateY(-5px);
}

.blog-hero .blog-item:hover img {
  transform: scale(1.05);
}

.blog-hero .blog-item:hover .blog-content {
  background: linear-gradient(0deg, color-mix(in srgb, var(--default-color), transparent 10%) 0%, transparent 100%);
}

.blog-hero .blog-item.featured {
  grid-column: span 8;
}

@media (max-width: 991px) {
  .blog-hero .blog-item.featured {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .blog-hero .blog-item.featured {
    grid-column: span 1;
  }
}

.blog-hero .blog-item.featured .post-title {
  font-size: 2rem;
}

@media (max-width: 768px) {
  .blog-hero .blog-item.featured .post-title {
    font-size: 1.5rem;
  }
}

.blog-hero .blog-item:not(.featured) {
  grid-column: span 4;
}

@media (max-width: 991px) {
  .blog-hero .blog-item:not(.featured) {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .blog-hero .blog-item:not(.featured) {
    grid-column: span 1;
  }
}

.blog-hero .blog-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  aspect-ratio: 16/9;
}

.blog-hero .blog-item .blog-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(0deg, color-mix(in srgb, var(--default-color), transparent 20%) 0%, transparent 100%);
  transition: background 0.3s ease-in-out;
}

.blog-hero .blog-item .post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--contrast-color);
}

.blog-hero .blog-item .post-meta .date,
.blog-hero .blog-item .post-meta .category {
  display: flex;
  align-items: center;
}

.blog-hero .blog-item .post-meta .date::before,
.blog-hero .blog-item .post-meta .category::before {
  font-family: "bootstrap-icons";
  margin-right: 0.5rem;
  font-size: 1rem;
}

.blog-hero .blog-item .post-meta .date::before {
  content: "\f282";
}

.blog-hero .blog-item .post-meta .category::before {
  content: "\f5d3";
}

.blog-hero .blog-item .post-title {
  margin: 0;
  font-family: var(--heading-font);
}

.blog-hero .blog-item .post-title a {
  color: var(--contrast-color);
  text-decoration: none;
}

.blog-hero .blog-item .post-title a:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

/*--------------------------------------------------------------
# Featured Posts Section
--------------------------------------------------------------*/
.featured-posts {
  overflow: hidden;
  position: relative;
}

.featured-posts .blog-posts-slider .swiper-wrapper {
  height: auto !important;
}

.featured-posts .blog-post-item {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 15px;
}

@media (max-width: 1200px) {
  .featured-posts .blog-post-item {
    height: 450px;
  }
}

@media (max-width: 991px) {
  .featured-posts .blog-post-item {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .featured-posts .blog-post-item {
    height: 450px;
  }
}

.featured-posts .blog-post-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-posts .blog-post-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.featured-posts .blog-post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: var(--contrast-color);
  z-index: 2;
}

@media (max-width: 1200px) {
  .featured-posts .blog-post-content {
    padding: 25px;
  }
}

@media (max-width: 991px) {
  .featured-posts .blog-post-content {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .featured-posts .blog-post-content {
    padding: 30px;
  }
}

.featured-posts .blog-post-content .post-meta {
  margin-bottom: 15px;
  font-size: 14px;
}

.featured-posts .blog-post-content .post-meta span {
  display: inline-block;
  margin-right: 20px;
}

.featured-posts .blog-post-content .post-meta span i {
  margin-right: 5px;
  font-size: 16px;
}

.featured-posts .blog-post-content .post-meta span:last-child {
  margin-right: 0;
}

.featured-posts .blog-post-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--contrast-color);
  line-height: 1.3;
}

@media (max-width: 1200px) {
  .featured-posts .blog-post-content h2 {
    font-size: 20px;
  }
}

@media (max-width: 991px) {
  .featured-posts .blog-post-content h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .featured-posts .blog-post-content h2 {
    font-size: 22px;
  }
}

.featured-posts .blog-post-content h2 a {
  color: var(--contrast-color);
  transition: 0.3s;
}

.featured-posts .blog-post-content h2 a:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.featured-posts .blog-post-content p {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .featured-posts .blog-post-content p {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
}

.featured-posts .blog-post-content .read-more {
  display: inline-flex;
  align-items: center;
  color: var(--contrast-color);
  font-weight: 500;
  transition: 0.3s;
}

.featured-posts .blog-post-content .read-more i {
  margin-left: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.featured-posts .blog-post-content .read-more:hover {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.featured-posts .blog-post-content .read-more:hover i {
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# Category Section Section
--------------------------------------------------------------*/
.category-section .featured-post {
  margin-bottom: 40px;
}

.category-section .featured-post .post-img {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.category-section .featured-post .post-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.category-section .featured-post .category-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.category-section .featured-post .post-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-section .featured-post .author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.category-section .featured-post .author-meta .author-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.category-section .featured-post .author-meta .author-name {
  color: var(--heading-color);
  font-weight: 500;
}

.category-section .featured-post .author-meta .post-date {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.category-section .featured-post .author-meta .post-date:before {
  content: "-";
  margin: 0 8px;
}

.category-section .featured-post .title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}

.category-section .featured-post .title a {
  color: var(--heading-color);
  transition: color 0.3s;
}

.category-section .featured-post .title a:hover {
  color: var(--accent-color);
}

.category-section .list-post {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.category-section .list-post .post-img {
  flex: 0 0 100px;
  border-radius: 8px;
  overflow: hidden;
}

.category-section .list-post .post-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.category-section .list-post .post-content {
  flex: 1;
}

.category-section .list-post .post-category {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 8px;
  display: inline-block;
}

.category-section .list-post .title {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.category-section .list-post .title a {
  color: var(--heading-color);
  transition: color 0.3s;
}

.category-section .list-post .title a:hover {
  color: var(--accent-color);
}

.category-section .list-post .post-meta {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.category-section .list-post .post-meta .read-time:after {
  content: "•";
  margin: 0 8px;
}

@media (max-width: 992px) {
  .category-section .featured-post .title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .category-section .list-post .post-img {
    flex: 0 0 80px;
  }

  .category-section .list-post .post-img img {
    width: 80px;
    height: 80px;
  }

  .category-section .list-post .title {
    font-size: 15px;
  }
}

/*--------------------------------------------------------------
# Call To Action 2 Section
--------------------------------------------------------------*/
.call-to-action-2 {
  position: relative;
  padding: 3rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border-radius: 1rem;
  overflow: hidden;
}

.call-to-action-2 .badge {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 2rem;
}

.call-to-action-2 h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.call-to-action-2 p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.9;
}

.call-to-action-2 .features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--surface-color);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.call-to-action-2 .features .feature-item:hover {
  transform: translateY(-2px);
}

.call-to-action-2 .features .feature-item i {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.call-to-action-2 .features .feature-item span {
  font-weight: 500;
}

.call-to-action-2 .cta-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.call-to-action-2 .cta-buttons .btn.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.call-to-action-2 .cta-buttons .btn.btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
}

.call-to-action-2 .cta-buttons .btn.btn-outline {
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  color: var(--accent-color);
}

.call-to-action-2 .cta-buttons .btn.btn-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.call-to-action-2 .content-right {
  flex-shrink: 0;
  max-width: 100%;
  width: 450px;
}

.call-to-action-2 .content-right img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.call-to-action-2 .content-right .floating-card {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: var(--surface-color);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 3s ease-in-out infinite;
}

.call-to-action-2 .content-right .floating-card .card-icon {
  width: 3rem;
  height: 3rem;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-to-action-2 .content-right .floating-card .card-icon i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.call-to-action-2 .content-right .floating-card .card-content {
  display: flex;
  flex-direction: column;
}

.call-to-action-2 .content-right .floating-card .card-content .stats-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.call-to-action-2 .content-right .floating-card .card-content .stats-text {
  font-size: 0.875rem;
  opacity: 0.8;
}

.call-to-action-2 .decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.call-to-action-2 .decoration .circle-1,
.call-to-action-2 .decoration .circle-2 {
  position: absolute;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.call-to-action-2 .decoration .circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  opacity: 0.5;
}

.call-to-action-2 .decoration .circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
  opacity: 0.3;
}

@media (max-width: 991.98px) {
  .call-to-action-2 {
    padding: 2rem;
  }

  .call-to-action-2 .content-right {
    width: 100%;
    margin-top: 2rem;
  }

  .call-to-action-2 .content-right .floating-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: -3rem;
    margin-right: 1rem;
    z-index: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/*--------------------------------------------------------------
# Latest Posts Section
--------------------------------------------------------------*/
.latest-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.latest-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.latest-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}

.latest-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.latest-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.latest-posts .title a:hover {
  color: var(--accent-color);
}

.latest-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.latest-posts .post-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.latest-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action .container {
  padding: 80px 80px 0 80px;
  background: color-mix(in srgb, var(--default-color), transparent 96%);
  border-radius: 15px;
}

@media (max-width: 992px) {
  .call-to-action .container {
    padding: 60px 60px 0 60px;
  }
}

@media (max-width: 575px) {
  .call-to-action .container {
    padding: 25px 15px 0 15px;
    border-radius: 0;
  }
}

.call-to-action .cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.call-to-action .cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.call-to-action .cta-form .form-control {
  height: 50px;
  border-radius: 25px 0 0 25px;
  border: 1px solid var(--accent-color);
  padding-left: 20px;
}

.call-to-action .cta-form .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.call-to-action .cta-form .btn {
  height: 50px;
  border-radius: 0 25px 25px 0;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 0 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.call-to-action .cta-form .btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 10%);
  border-color: color-mix(in srgb, var(--accent-color), black 10%);
}

/*--------------------------------------------------------------
# Category Postst Section
--------------------------------------------------------------*/
.category-postst article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.category-postst .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.category-postst .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}

.category-postst .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.category-postst .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.category-postst .title a:hover {
  color: var(--accent-color);
}

.category-postst .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.category-postst .post-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.category-postst .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Pagination 2 Section
--------------------------------------------------------------*/
.pagination-2 {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.pagination-2 ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-2 li {
  margin: 0 5px;
  transition: 0.3s;
}

.pagination-2 li a {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
}

.pagination-2 li a.active,
.pagination-2 li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.pagination-2 li a.active a,
.pagination-2 li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  max-width: 1000px;
  margin: 0 auto;
}

.blog-details .hero-img {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
}

.blog-details .hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-details .hero-img .meta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.blog-details .hero-img .meta-overlay .meta-categories .category {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-details .hero-img .meta-overlay .meta-categories .category:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.blog-details .hero-img .meta-overlay .meta-categories .divider {
  color: var(--contrast-color);
  margin: 0 0.75rem;
}

.blog-details .hero-img .meta-overlay .meta-categories .reading-time {
  color: var(--contrast-color);
  font-size: 0.9rem;
}

.blog-details .hero-img .meta-overlay .meta-categories .reading-time i {
  margin-right: 0.3rem;
}

@media (max-width: 768px) {
  .blog-details .hero-img {
    height: 350px;
    margin-top: -30px;
    margin-bottom: 2rem;
  }
}

.blog-details .article-content {
  padding: 0 1rem;
}

.blog-details .article-content .content-header {
  margin-bottom: 3rem;
}

.blog-details .article-content .content-header .title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 768px) {
  .blog-details .article-content .content-header .title {
    font-size: 2rem;
  }
}

.blog-details .article-content .content-header .author-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .article-content .content-header .author-info .author-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-details .article-content .content-header .author-info .author-details .author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-details .article-content .content-header .author-info .author-details .info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--heading-color);
}

.blog-details .article-content .content-header .author-info .author-details .info .role {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.blog-details .article-content .content-header .author-info .post-meta {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.95rem;
}

.blog-details .article-content .content-header .author-info .post-meta i {
  margin-right: 0.3rem;
}

.blog-details .article-content .content-header .author-info .post-meta .divider {
  margin: 0 0.75rem;
}

.blog-details .article-content .content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.blog-details .article-content .content .lead {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

.blog-details .article-content .content h2 {
  font-size: 2rem;
  color: var(--heading-color);
  margin: 3rem 0 1.5rem;
}

.blog-details .article-content .content p {
  margin-bottom: 1.5rem;
}

.blog-details .article-content .content ul {
  margin-bottom: 2rem;
  padding-left: 1.2rem;
}

.blog-details .article-content .content ul li {
  margin-bottom: 0.75rem;
  position: relative;
}

.blog-details .article-content .content .content-image {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-details .article-content .content .content-image.right-aligned {
  float: right;
  max-width: 450px;
  margin: 1rem 0 2rem 2rem;
}

@media (max-width: 768px) {
  .blog-details .article-content .content .content-image.right-aligned {
    float: none;
    max-width: 100%;
    margin: 2rem 0;
  }
}

.blog-details .article-content .content .content-image img {
  width: 100%;
  height: auto;
}

.blog-details .article-content .content .content-image figcaption {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  background-color: color-mix(in srgb, var(--surface-color), transparent 50%);
}

.blog-details .article-content .content .highlight-box {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.blog-details .article-content .content .highlight-box h3 {
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.blog-details .article-content .content .highlight-box .trend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-details .article-content .content .highlight-box .trend-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.blog-details .article-content .content .highlight-box .trend-list li i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-right: 1rem;
}

.blog-details .article-content .content .highlight-box .trend-list li span {
  color: var(--heading-color);
  font-weight: 500;
}

.blog-details .article-content .content .content-grid {
  margin: 3rem 0;
}

.blog-details .article-content .content .content-grid .info-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.blog-details .article-content .content .content-grid .info-card:hover {
  transform: translateY(-5px);
}

.blog-details .article-content .content .content-grid .info-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.blog-details .article-content .content .content-grid .info-card h4 {
  color: var(--heading-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.blog-details .article-content .content .content-grid .info-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-details .article-content .content blockquote {
  position: relative;
  margin: 3rem 0;
  padding: 2rem 3rem;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.blog-details .article-content .content blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 8rem;
  color: color-mix(in srgb, var(--accent-color), transparent 85%);
  font-family: serif;
  line-height: 1;
}

.blog-details .article-content .content blockquote p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--heading-color);
  margin: 0 0 1rem;
  position: relative;
}

.blog-details .article-content .content blockquote cite {
  font-style: normal;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.95rem;
  display: block;
}

.blog-details .article-content .meta-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  display: grid;
  gap: 2rem;
}

.blog-details .article-content .meta-bottom h4 {
  color: var(--heading-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.blog-details .article-content .meta-bottom .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-details .article-content .meta-bottom .tags .tag {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-details .article-content .meta-bottom .tags .tag:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-details .article-content .meta-bottom .social-links {
  display: flex;
  gap: 1rem;
}

.blog-details .article-content .meta-bottom .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.blog-details .article-content .meta-bottom .social-links a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-2px);
}

.blog-details .article-content .meta-bottom .social-links a i {
  font-size: 1.2rem;
}

/*--------------------------------------------------------------
# Blog Author Section
--------------------------------------------------------------*/
.blog-author .author-box {
  padding: 2rem;
  background-color: var(--surface-color);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.blog-author .author-box:hover {
  transform: translateY(-5px);
}

.blog-author .author-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--surface-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-author .author-img:hover {
  transform: scale(1.05);
}

.blog-author .author-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
  margin: 0 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.blog-author .author-social-links a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.blog-author .author-social-links a.linkedin:hover {
  background-color: #0077b5;
}

.blog-author .author-social-links a.twitter:hover {
  background-color: #000000;
}

.blog-author .author-social-links a.github:hover {
  background-color: #333333;
}

.blog-author .author-social-links a.facebook:hover {
  background-color: #1877f2;
}

.blog-author .author-social-links a.instagram:hover {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.blog-author .author-content {
  padding-left: 1rem;
}

@media (max-width: 767.98px) {
  .blog-author .author-content {
    padding-left: 0;
    margin-top: 2rem;
    text-align: center;
  }
}

.blog-author .author-content .author-name {
  font-size: 1.75rem;
  margin: 0;
  color: var(--heading-color);
  font-weight: 700;
}

.blog-author .author-content .author-title {
  display: inline-block;
  font-size: 1rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-top: 0.5rem;
  font-family: var(--heading-font);
}

.blog-author .author-content .author-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--default-color);
  margin: 1rem 0;
}

.blog-author .author-content .author-website {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .blog-author .author-content .author-website {
    justify-content: center;
  }
}

.blog-author .author-content .author-website a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.blog-author .author-content .author-website a i {
  font-size: 1.1rem;
}

.blog-author .author-content .author-website a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  transform: translateX(3px);
}

.blog-author .author-content .author-website .more-posts {
  font-weight: 500;
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding-bottom: 30px;
}

.blog-comments .section-header {
  margin-bottom: 40px;
}

.blog-comments .section-header h3 {
  color: var(--heading-color);
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-comments .section-header h3 .comment-count {
  color: color-mix(in srgb, var(--heading-color), transparent 40%);
  font-size: 24px;
  font-weight: 500;
}

.blog-comments .comments-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.blog-comments .comment-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 25px;
  border-left: 4px solid transparent;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.blog-comments .comment-card:hover {
  border-left-color: var(--accent-color);
  transform: translateX(5px);
}

.blog-comments .comment-card.reply {
  margin-left: 48px;
  border-left-color: color-mix(in srgb, var(--accent-color), transparent 70%);
  background-color: color-mix(in srgb, var(--surface-color), transparent 3%);
}

@media (min-width: 768px) {
  .blog-comments .comment-card.reply {
    margin-left: 85px;
  }
}

.blog-comments .reply-thread {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.blog-comments .comment-header {
  margin-bottom: 20px;
}

.blog-comments .comment-header .user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-comments .comment-header .user-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 85%);
}

.blog-comments .comment-header .user-info .meta .name {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px;
}

.blog-comments .comment-header .user-info .meta .date {
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-comments .comment-header .user-info .meta .date i {
  font-size: 13px;
}

.blog-comments .comment-content p {
  color: var(--default-color);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-comments .comment-actions {
  display: flex;
  gap: 20px;
}

.blog-comments .comment-actions .action-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-comments .comment-actions .action-btn i {
  font-size: 15px;
  transition: transform 0.3s ease;
}

.blog-comments .comment-actions .action-btn:hover {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.blog-comments .comment-actions .action-btn:hover.like-btn i {
  transform: scale(1.2);
}

.blog-comments .comment-actions .action-btn:hover.reply-btn i {
  transform: translateX(-3px);
}

.blog-comments .comment-actions .action-btn.like-btn.active {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .blog-comments .section-header {
    margin-bottom: 30px;
  }

  .blog-comments .section-header h3 {
    font-size: 28px;
  }

  .blog-comments .section-header h3 .comment-count {
    font-size: 20px;
  }

  .blog-comments .comment-card {
    padding: 20px;
  }

  .blog-comments .comment-card.reply {
    margin-left: 35px;
  }

  .blog-comments .comment-header .user-info img {
    width: 40px;
    height: 40px;
  }

  .blog-comments .comment-header .user-info .meta .name {
    font-size: 15px;
  }

  .blog-comments .comment-header .user-info .meta .date {
    font-size: 13px;
  }

  .blog-comments .comment-content p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .blog-comments .comment-actions .action-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Blog Comment Form Section
--------------------------------------------------------------*/
.blog-comment-form {
  max-width: 900px;
  margin: 0 auto 0 auto;
  padding-top: 30px;
}

.blog-comment-form form {
  padding: 30px;
  background-color: var(--surface-color);
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-comment-form .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.blog-comment-form .section-header h3 {
  font-size: 28px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 15px;
}

.blog-comment-form .section-header h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.blog-comment-form .section-header p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 15px;
  margin: 0;
}

.blog-comment-form .form-group {
  margin-bottom: 20px;
}

.blog-comment-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--heading-color);
  font-size: 14px;
}

.blog-comment-form .form-group .form-control {
  height: 48px;
  padding: 10px 15px;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  font-size: 14px;
  transition: all 0.3s ease-in-out;
}

.blog-comment-form .form-group .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.blog-comment-form .form-group .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.blog-comment-form .form-group .form-control:hover:not(:focus) {
  border-color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.blog-comment-form .form-group textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

.blog-comment-form .btn-submit {
  padding: 12px 32px;
  border-radius: 50px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.blog-comment-form .btn-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.blog-comment-form .btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 768px) {
  .blog-comment-form {
    padding: 20px;
  }

  .blog-comment-form .section-header h3 {
    font-size: 24px;
  }

  .blog-comment-form .btn-submit {
    width: 100%;
    padding: 12px 20px;
  }
}

/*--------------------------------------------------------------
# Author Profile Section
--------------------------------------------------------------*/
.author-profile .author-card {
  background-color: var(--surface-color);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.author-profile .author-card .author-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.author-profile .author-card .author-image img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

.author-profile .author-card .author-info {
  text-align: center;
}

.author-profile .author-card .author-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.author-profile .author-card .author-info .designation {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.author-profile .author-card .author-info .author-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-profile .author-card .author-stats {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 1rem 0;
}

.author-profile .author-card .author-stats .stat-item h4 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--accent-color);
}

.author-profile .author-card .author-stats .stat-item p {
  font-size: 0.85rem;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.author-profile .author-card .social-links {
  margin-top: 1.5rem;
}

.author-profile .author-card .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.author-profile .author-card .social-links a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.author-profile .author-card .social-links a i {
  font-size: 1rem;
}

.author-profile .author-content {
  background-color: var(--surface-color);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.author-profile .author-content .content-header {
  margin-bottom: 1.5rem;
}

.author-profile .author-content .content-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.author-profile .author-content .content-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.author-profile .author-content .content-body .expertise-areas h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.author-profile .author-content .content-body .expertise-areas .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-profile .author-content .content-body .expertise-areas .tags span {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.author-profile .author-content .content-body .expertise-areas .tags span:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.author-profile .author-content .content-body .featured-articles h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.author-profile .author-content .content-body .featured-articles .article-card {
  background-color: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.author-profile .author-content .content-body .featured-articles .article-card:hover {
  transform: translateY(-5px);
}

.author-profile .author-content .content-body .featured-articles .article-card .article-img {
  height: 200px;
  overflow: hidden;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-img:hover img {
  transform: scale(1.1);
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details {
  padding: 1.25rem;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details .post-category {
  display: inline-block;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details h5 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details h5 a {
  color: var(--heading-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details h5 a:hover {
  color: var(--accent-color);
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details .post-meta {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details .post-meta span {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}

.author-profile .author-content .content-body .featured-articles .article-card .article-details .post-meta span i {
  margin-right: 0.35rem;
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .author-profile .author-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .author-profile .featured-articles .article-card {
    margin-bottom: 1.5rem;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color) 10%, transparent);
  margin-bottom: 1rem;
}

.about .section-badge i {
  font-size: 1rem;
}

.about .about-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.about .about-description,
.about .section-text {
  color: color-mix(in srgb, var(--default-color) 80%, transparent);
  line-height: 1.6;
}

.about .features-boxes .feature-box {
  height: 100%;
  position: relative;
}

.about .features-boxes .feature-box .icon-box {
  width: 60px;
  height: 60px;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--accent-color) 15%, transparent);
  color: var(--accent-color);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.about .features-boxes .feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about .features-boxes .feature-box h3 a {
  color: var(--heading-color);
}

.about .features-boxes .feature-box p {
  color: color-mix(in srgb, var(--default-color) 80%, transparent);
  margin-bottom: 0;
  line-height: 1.6;
}

.about .features-boxes .feature-box:hover .icon-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.about .features-boxes .feature-box:hover h3 a {
  color: var(--accent-color);
}

.about .video-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about .video-box img {
  width: 100%;
  border-radius: 20px;
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  position: relative;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 8px;
  transition: 0.3s;
}

.team .team-member:hover {
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.team .team-member .member-img {
  flex: 0 0 200px;
  overflow: hidden;
}

.team .team-member .member-img img {
  width: 200px;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.team .team-member .member-info {
  padding: 25px;
  text-align: left;
}

.team .team-member .member-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.team .team-member .member-info span {
  font-size: 0.9rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--heading-color), transparent 30%);
  display: block;
  margin-bottom: 15px;
}

.team .team-member .member-info p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.team .team-member .member-info .social {
  display: flex;
  gap: 10px;
}

.team .team-member .member-info .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  color: var(--heading-color);
  transition: 0.3s;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.team .team-member .member-info .social a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

@media (max-width: 767px) {
  .team .team-member {
    flex-direction: column;
  }

  .team .team-member .member-img {
    flex: auto;
  }

  .team .team-member .member-img img {
    width: 100%;
    border-radius: 8px 8px 0 0;
  }

  .team .team-member .member-info {
    text-align: center;
  }

  .team .team-member .member-info .social {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-card {
  background-color: var(--surface-color);
  padding: 30px;
  text-align: center;
  height: 100%;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease-in-out;
}

.contact .info-card:hover {
  transform: translateY(-5px);
}

.contact .info-card .icon-box {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
}

.contact .info-card .icon-box i {
  font-size: 24px;
  color: var(--accent-color);
}

.contact .info-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact .info-card p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 15px;
  line-height: 1.6;
}

.contact .form-wrapper .input-group .input-group-text {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  border-color: color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 8px 0 0 8px;
  padding: 12px 15px;
}

.contact .form-wrapper .input-group .form-control {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 0 8px 8px 0;
  box-shadow: none;
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 12px 15px;
}

.contact .form-wrapper .input-group .form-control:focus {
  border-color: var(--accent-color);
}

.contact .form-wrapper .input-group .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .form-wrapper select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 40px;
}

.contact .form-wrapper textarea.form-control {
  min-height: 160px;
}

.contact .form-wrapper button {
  background-color: var(--accent-color);
  border: 0;
  padding: 12px 40px;
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
  font-size: 16px;
  font-weight: 500;
}

.contact .form-wrapper button:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Search Results Posts Section
--------------------------------------------------------------*/
.search-results-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.search-results-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.search-results-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}

.search-results-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.search-results-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
}

.search-results-posts .title a:hover {
  color: var(--accent-color);
}

.search-results-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.search-results-posts .post-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.search-results-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Pagination 3 Section
--------------------------------------------------------------*/
.pagination-3 {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.pagination-3 ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-3 li {
  margin: 0 5px;
  transition: 0.3s;
}

.pagination-3 li a {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
}

.pagination-3 li a.active,
.pagination-3 li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.pagination-3 li a.active a,
.pagination-3 li a:hover a {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Error 404 Section
.error-404 {
  padding: 80px 0;
  margin: 0 auto;
}

.error-404 .error-icon {
  font-size: 5rem;
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: color-mix(in srgb, var(--heading-color), transparent 10%);
  font-family: var(--heading-font);
  line-height: 1;
}

.error-404 .error-title {
  font-size: 2rem;
  color: var(--heading-color);
  font-weight: 600;
}

.error-404 .error-text {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  max-width: 600px;
  margin: 0 auto;
}

.error-404 .search-box {
  max-width: 500px;
  margin: 0 auto;
}

.error-404 .search-box .input-group {
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.error-404 .search-box .form-control {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 50px;
}

.error-404 .search-box .form-control:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

.error-404 .search-box .form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.error-404 .search-box .search-btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.error-404 .search-box .search-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.error-404 .error-action .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  background-color: var(--accent-color);
  border: none;
  color: var(--contrast-color);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.error-404 .error-action .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .error-404 {
    padding: 30px 0;
  }

  .error-404 .error-code {
    font-size: clamp(4rem, 12vw, 8rem);
  }

  .error-404 .error-title {
    font-size: 1.5rem;
  }

  .error-404 .error-text {
    font-size: 1rem;
    padding: 0 20px;
  }

  .error-404 .search-box {
    margin: 0 20px;
  }
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  margin: 60px 0 30px 0;
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  padding: 0 0 0 10px;
  margin: 0 0 20px 0;
  border-left: 4px solid var(--accent-color);
}

.widget-item {
  margin-bottom: 30px;
  background-color: color-mix(in srgb, var(--default-color), transparent 98%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 30px;
  border-radius: 5px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 3px 10px;
  position: relative;
  border-radius: 50px;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: none;
  color: var(--default-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: 0;
  color: var(--heading-color);
  transition: 0.3s;
}

.search-widget form button:hover {
  color: var(--accent-color);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  padding-bottom: 10px;
}

.categories-widget ul li:last-child {
  padding-bottom: 0;
}

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover {
  color: var(--accent-color);
}

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  margin-right: 15px;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

/*--------------------------------------------------------------
# About Page Custom Styles
--------------------------------------------------------------*/

/* Feature boxes */
.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  transition: 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.feature-box i {
  color: var(--accent-color);
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.feature-box h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.feature-box p {
  color: var(--default-color);
  font-size: 15px;
  margin-bottom: 0;
}

/* Mission box */
.mission-box {
  background: linear-gradient(135deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color), transparent 20%) 100%);
  padding: 40px;
  border-radius: 15px;
  color: #fff;
  text-align: center;
}

.mission-box h3 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 28px;
}

.mission-box h3 i {
  margin-right: 10px;
  font-size: 32px;
}

.mission-box blockquote {
  border: none;
  margin: 0;
  padding: 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
}

.mission-box blockquote p {
  color: #fff;
  margin-bottom: 0;
}

/* Value cards */
.value-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #f8f9fa;
  transition: 0.3s;
  height: 100%;
}

.value-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
}

.value-card .icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 20%));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-card .icon i {
  color: #fff;
  font-size: 36px;
}

.value-card h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.value-card p {
  color: var(--default-color);
  font-size: 15px;
  margin-bottom: 0;
}

/* Steps container */
.steps-container {
  position: relative;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  width: 2px;
  height: calc(100% + 20px);
  background: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  margin-right: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h4 {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-content p {
  color: var(--default-color);
  font-size: 15px;
  margin-bottom: 0;
}

/* Team cards */
.team-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.team-info h4 {
  color: var(--heading-color);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-info h4 i {
  color: var(--accent-color);
  margin-right: 10px;
}

.team-info span {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-info p {
  color: var(--default-color);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--surface-color), var(--accent-color) 5%) 100%);
  padding: 30px 0;
}

.cta-content {
  padding: 40px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.cta-content h3 {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

.cta-content p {
  color: var(--default-color);
  font-size: 16px;
  margin-bottom: 30px;
}

.cta-content .btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 500;
}

/* CTA Info Boxes */
.cta-info {
  margin: 30px 0;
}

.cta-info .info-box {
  background: #f8f9fa;
  padding: 25px 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  height: 100%;
  transition: 0.3s;
}

.cta-info .info-box:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.cta-info .info-box i {
  color: var(--accent-color);
  font-size: 36px;
  margin-bottom: 15px;
  display: block;
}

.cta-info .info-box h5 {
  color: var(--heading-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cta-info .info-box p {
  color: var(--default-color);
  font-size: 14px;
  margin-bottom: 15px;
}

.cta-info .btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Sidebar widgets for about page */
.info-widget .info-list {
  list-style: none;
  padding: 0;
}

.info-widget .info-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #f1f1f1;
}

.info-widget .info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-widget .info-item i {
  color: var(--accent-color);
  font-size: 24px;
  margin-right: 15px;
  margin-top: 5px;
}

.info-widget .info-item h4 {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.info-widget .info-item p {
  color: var(--default-color);
  font-size: 14px;
  margin-bottom: 0;
}

.contact-widget .contact-methods {
  padding-top: 15px;
}

.contact-widget .contact-method {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--default-color);
}

.contact-widget .contact-method i {
  color: var(--accent-color);
  font-size: 20px;
  margin-right: 10px;
}

.contact-widget .contact-method a {
  color: var(--default-color);
  transition: 0.3s;
}

.contact-widget .contact-method a:hover {
  color: var(--accent-color);
}

/* Social Updates Widget */
.social-updates-widget .social-updates-content p {
  font-size: 15px;
  margin-bottom: 15px;
}

.social-updates-widget .social-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-updates-widget .social-btn {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
  font-size: 14px;
}

.social-updates-widget .social-btn i {
  font-size: 18px;
  margin-right: 10px;
}

.social-updates-widget .telegram-btn {
  background: #0088cc;
  color: white;
}

.social-updates-widget .telegram-btn:hover {
  background: #006ba3;
  color: white;
  transform: translateY(-1px);
}

.social-updates-widget .whatsapp-btn {
  background: #25d366;
  color: white;
}

.social-updates-widget .whatsapp-btn:hover {
  background: #1ebe57;
  color: white;
  transform: translateY(-1px);
}

/* Association CTA Widget */
.association-cta-widget .association-content p {
  font-size: 15px;
  margin-bottom: 15px;
}

.association-cta-widget .association-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.association-cta-widget .action-item {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: 0.3s;
}

.association-cta-widget .action-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.association-cta-widget .action-item > i {
  color: var(--accent-color);
  font-size: 24px;
  margin-right: 12px;
  margin-top: 2px;
}

.association-cta-widget .action-content {
  flex: 1;
}

.association-cta-widget .action-content h5 {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.association-cta-widget .action-link {
  display: flex;
  align-items: center;
  color: var(--default-color);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.association-cta-widget .action-link:hover {
  color: var(--accent-color);
}

.association-cta-widget .action-link i {
  font-size: 16px;
  margin-right: 6px;
}

.association-cta-widget .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.stats-widget .stats-list {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.stats-widget .stat-item {
  flex: 1;
}

.stats-widget .stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stats-widget .stat-label {
  font-size: 14px;
  color: var(--default-color);
  margin-top: 5px;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mission-box {
    padding: 30px 20px;
  }
  
  .mission-box h3 {
    font-size: 24px;
  }
  
  .mission-box blockquote {
    font-size: 16px;
  }
  
  .feature-box, .value-card, .team-card {
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .step:not(:last-child)::after {
    left: 20px;
  }
  
  .stats-widget .stat-number {
    font-size: 28px;
  }
  
  .cta-content {
    padding: 30px 20px;
  }
  
  .cta-content h3 {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
# Custom Modal Backdrop Opacity
--------------------------------------------------------------*/
/* Sfondo più opaco per Modal Ricerca e Notifiche */
#searchModal.show ~ .modal-backdrop,
#notificationModal.show ~ .modal-backdrop {
  opacity: 0.7 !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Alternative: se il selettore precedente non funziona, usa questo */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7) !important;
  opacity: 0.7 !important;
}

/* Assicura che i modal abbiano il giusto z-index sopra il backdrop opaco */
#searchModal.show,
#notificationModal.show {
  z-index: 1060 !important;
}

/* Transition smooth per il backdrop */
.modal-backdrop {
  transition: opacity 0.3s ease-in-out !important;
}

/* === Theme overrides: colore primario globale === */
:root {
  --bs-primary: #5f87af ;
  --bs-primary-rgb: #1e3a53 ;
  --accent-color: #5f87af ;
  --accent-color-rgb: #1e3a53 ;
}

/* Facoltativo: mantieni anche le classi per compatibilità esplicita */
.text-primary {
  color: #5f87af  !important;
}

.btn-primary {
  background-color: #5f87af ;
  border-color: #5f87af ;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #1e3a53 ;
  border-color: #1e3a53 ;
}

.spinner-border.text-primary {
  border-color: #5f87af ;
  border-right-color: transparent;
}