.container .title{
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 10px;
}

.content {
  position: relative;
  margin: auto;
  overflow: hidden;
  border-radius: 2rem;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-sizing: border-box;
}

.content a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(11, 30, 40, 0.1), 0 4px 8px rgba(11, 30, 40, 0.08);
}

.content .content-overlay {
  background: linear-gradient(135deg, rgba(11, 30, 40, 0.85), rgba(11, 30, 40, 0.75));
  border-radius: 2rem;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  box-sizing: border-box;
}

.content:hover .content-overlay{
  opacity: 1;
}

.content-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.content-title {
  position: absolute;
  padding: 1.5rem;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in-out;
  text-align: center;
}

.content-details {
  position: absolute;
  text-align: center;
  padding: 1.5rem;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.4s ease-in-out;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.content:hover .content-details{
  opacity: 1;
}

.content .badge{
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    margin: 0.25rem;
}

.content:hover .badges{
  opacity: 0;
}

.content h3{
  color: #FFFFFF;
  font-weight: 600;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin-bottom: 0.75rem;
  text-transform: capitalize;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-details p{
  color: #FFFFFF;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 0;
  opacity: 0.95;
}

.content-details p.content-text {
  margin-bottom: 0.75rem;
}

.content-details p.color-highlight {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #A55AFF;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 1;
}

.fadeIn-bottom{
  top: 0;
  transform: none;
}

/* NEW RULE for items within the partner group carousel specifically */
#smallContent.owl-carousel .owl-item .content {
    margin-left: auto;    /* Center the card within its owl-item slot */
    margin-right: auto;   /* Center the card within its owl-item slot */
    max-width: 340px;     /* Prevent individual cards from becoming too large, adjust as needed. Matches some of the larger function-carousel item max-widths. */
    /* Height will be inherited from general .content styles or can be set to auto if needed */
}

/* Center the owl-stage within #smallContent when loop is false and items might not fill width */
#smallContent.owl-carousel .owl-stage {
}

/* Általános szabályok a #smallContent körhintához - minden képernyőméretre érvényes, ahol aktív */
#smallContent.owl-carousel .owl-stage-outer {
    overflow: visible !important;
}

#smallContent.owl-carousel .owl-stage {
    padding-top: 5px;
    padding-bottom: 5px;
}

#smallContent.owl-carousel .owl-nav {
    display: none !important;
}

/* Make hero carousel full-width edge-to-edge -- MODIFIED BEHAVIOR */
#smallContent.owl-carousel {
    /* width: 100vw; -- REMOVED to prevent full viewport width */
    /* margin-left: calc(-50vw + 50%); -- REMOVED */
    /* margin-right: calc(-50vw + 50%); -- REMOVED */
    max-width: 100%; /* Ensures it doesn't exceed its parent container's width */
    margin-left: auto;   /* Center the carousel if its max-width is less than parent */
    margin-right: auto;  /* Center the carousel if its max-width is less than parent */
    position: relative;
    padding: 10px 0px; /* Adjusted padding, primarily for vertical spacing. Horizontal handled by items/margins or stagePadding. */
}

/* === ADDING STYLES FOR FUNCTION-CAROUSEL === */
/* General rules for .function-carousel - apply to all screen sizes */
.function-carousel.owl-carousel .owl-stage-outer {
    overflow: visible;
}

.function-carousel.owl-carousel .owl-stage {
    padding-top: 5px;
    padding-bottom: 5px;
}

.function-carousel.owl-carousel .owl-nav {
    display: none !important;
}

/* === END STYLES FOR FUNCTION-CAROUSEL === */

@media only screen and (max-width: 992px) {
    /* Biztosítsa, hogy a #smallContent-en kívüli általános tartalomra ne legyenek hatással az alábbi mobil-specifikus szabályok */
       .content:not(#smallContent .content):not(.function-carousel .owl-item .card.owl-content) { /* Pontosabb kizárás */
         height: 280px !important;
         width: 260px !important;
         margin: 0.5rem auto;
     }
 
     #smallContent .content {
         width: 260px;
         max-width: 400px;
         height: 280px !important;
         margin-left: auto !important;
         margin-right: auto !important;
     }
  
       #smallContent .content-title,
       #smallContent .content-details {
         height: 280px !important;
         width: 100% !important;
       }

    /* Styling for .function-carousel items on mobile */
    .function-carousel .owl-item .card.owl-content { 
        max-width: 340px;
        margin-left: auto !important; 
        margin-right: auto !important; 
    }

    #headerContent {
        width: 100% !important;
    }
    
    .content h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .content-details p {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    
    .content-details p.color-highlight {
        font-size: 0.875rem;
    }
}

/* Extra kicsi mobil igazítások */
@media only screen and (max-width: 480px) {
    #smallContent .content {
        height: 260px !important;
    }
    
    #smallContent .content-title,
    #smallContent .content-details {
        height: 260px !important;
        width: 100% !important;
    }
    
    .content h3 {
        font-size: 1rem;
    }
    
    .content-details p {
        font-size: 0.875rem;
    }

    .function-carousel .owl-item .card.owl-content { 
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    #smallContent.owl-carousel .owl-item .content {
    }
    
    #smallContent.owl-carousel {
        padding: 10px 10px;
    }
}

/* Desktop display rules - constraining function carousel width */
@media only screen and (min-width: 993px) {
  #smallContent {
    display: block !important;
  }
  #normalContent {
    display: none !important;
  }
  #headerText, #headerContent {
    width: 100% !important;
  }
  
  /* Function carousel desktop constraints */
  .function-carousel .owl-item .card.owl-content {
    max-width: 360px !important;
    min-height: auto;
    margin: 0 auto;
  }
}

@media only screen and (min-width: 1135px) {
  .content, .content-title {
    height: 285px !important;
    width: 260px !important;
  }
  
  /* Slightly larger function cards for larger screens */
  .function-carousel .owl-item .card.owl-content {
    max-width: 380px !important;
    min-height: auto !important;
  }
}

@media only screen and (min-width: 1228px) {
  .content, .content-title {
    height: 313px !important;
    width: 280px !important;
  }
  
  .function-carousel .owl-item .card.owl-content {
    max-width: 390px !important;
    min-height: auto !important;
  }
}

/* Mobil és tablet megjelenítési szabályok */
@media only screen and (max-width: 992px) {
  #smallContent {
    display: block !important;
  }
  #normalContent {
    display: none !important;
  }
}
