/* Logó stílus áthelyezve a navbar.css-be */

#myHolder, #myGif {
    opacity: 0;
}

#myText {
    min-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#myText.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* === HERO SZEKCIÓ STÍLUS === */

/* Hero Animációs Konténer - Megfelelően Méretezve */
.hero-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Logo és Animációs Elemek */
#myHolder, #myGif, #myLogo {
    opacity: 0;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

#myGif {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    z-index: 2;
}

#myLogo {
    position: relative;
    z-index: 1;
    max-height: 120px;
    max-width: 600px;
}

#myText {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-top: 0.5rem;
    font-weight: 500;
    text-align: center;
}

/* === HERO SZEKCIÓ ELRENDEZÉS === */

/* Fő hero szekció konténer */
.hero-section-mobile {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
}

/* Lila kártya szekció - Távolítsa el a negatív margókat és javítsa a térközöket */
.hero-card-container {
    margin-top: 1rem;
    padding: 0 1rem;
}

.hero-gradient-card {
    max-width: 1320px;
    margin: 0 auto;
    border-radius: 2rem;
    overflow: visible;
}

/* Hero kártya tartalom stílus */
.hero-card-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.hero-card-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* === RESZPONZÍV TÖRÉSPONTOK === */

/* Tablet és nagyobb */
@media (min-width: 768px) {
    .hero-section-mobile {
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .hero-animation-container {
        padding: 1rem 1rem;
    }
    
    #myLogo {
        max-height: 140px;
    }
    
    .hero-card-container {
        padding: 0 2rem;
        margin-top: 1.5rem;
    }
    
    /* Better hero carousel spacing on tablet+ */
    .hero-carousel-row {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Asztali */
@media (min-width: 992px) {
    .hero-section-mobile {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
    
    .hero-animation-container {
        padding: 1.25rem 1rem;
    }
    
    #myLogo {
        max-height: 160px;
    }
    
    .hero-card-container {
        padding: 0 3rem;
        margin-top: 2rem;
    }
}

/* Nagy asztali */
@media (min-width: 1200px) {
    .hero-card-container {
        padding: 0 4rem;
    }
}

/* === MOBILE SPECIFIC FIXES === */

/* Mobil portré */
@media (max-width: 576px) {
    .hero-section-mobile .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero-section-mobile {
        padding-top: 0.25rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .hero-card-container {
        margin-top: 0.25rem;
    }
    
    .hero-gradient-card {
        margin: 0;
    }
    
    /* Lila kártya padding javítása */
    .hero-gradient-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .hero-carousel-row {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Animációs konténer mobil méretezés */
    .hero-animation-container {
        padding: 0.25rem 0.5rem;
    }
    
    #myHolder, #myGif, #myLogo {
        max-width: 320px;
    }
    
    #myLogo {
        max-height: 90px;
    }
    
    #myText {
        font-size: 1.5rem;
        margin-top: 0.25rem;
    }
    
    .hero-card-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-card-text {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    /* Jobb térköz a partnercsoportoknak */
    .hero-gradient-card .row.my-3 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Extra aggressive mobile fixes for function carousel */
    .function-carousel.owl-carousel {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .function-carousel .owl-stage-outer {
        padding-bottom: 0 !important;
    }
    
    .function-carousel .owl-item {
        margin-bottom: 0 !important;
    }
    
    /* Reduce overall section padding */
    section.background-light {
        padding-top: 2rem !important;
        padding-bottom: 1rem !important;
    }
}

/* Kis mobil eszközök */
@media (max-width: 375px) {
    .hero-section-mobile {
        padding-top: 0.125rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    .hero-animation-container {
        padding: 0.125rem 0.25rem;
    }
    
    #myHolder, #myGif, #myLogo {
        max-width: 280px;
    }
    
    #myLogo {
        max-height: 80px;
    }
    
    #myText {
        font-size: 1.375rem;
        margin-top: 0.125rem;
    }
    
    .hero-card-container {
        margin-top: 0.125rem;
    }
    
    .hero-gradient-card .card-body {
        padding: 1.25rem 0.75rem;
    }
    /* Győződjön meg róla, hogy az overflow:visible itt is alkalmazva van, ha nem öröklődik vagy felül van írva */
    .hero-gradient-card {
    }
}

/* === SECTION SPACING FIXES === */

/* Ensure proper spacing between hero and next sections */
.hero-section-mobile + section {
    margin-top: 0;
    padding-top: 3rem;
}

/* Fix any remaining layout shifts */
@media (max-width: 768px) {
    .hero-section-mobile + section {
        padding-top: 2rem;
    }
}

/* === FOOTER FIXES === */

footer .icon-link img {
    margin-bottom: auto;
}

/* === CAROUSEL AND GRID RESPONSIVENESS === */

/* Partner groups responsive display is handled in hover-image.css */

/* WebShop card section spacing */
.hero-gradient-card + .row {
    margin-top: 1.5rem;
}

@media (max-width: 576px) {
    .hero-gradient-card + .row {
        margin-top: 1rem;
    }
    
    .hero-gradient-card + .row .card {
        margin: 0.5rem 0;
        padding: 1.25rem;
    }
}

/* Navbar styles moved to navbar.css */

/* === SECTION SPACING FIXES === */

/* Benefit cards image styling */
.benefit-card-img {
    border-radius: 2rem 2rem 0 0;
    height: 180px;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

/* Additional benefit card image optimizations */
.benefit-section .card .row .col-md-5 img,
.benefit-section .card .row .col-lg-5 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Ensure benefit card images don't get cut off on important areas */
.benefit-section .card:nth-child(2) .benefit-card-img {
    object-position: left center;
}

.benefit-section .card:nth-child(1) .benefit-card-img {
    object-position: right center;
}

/* Success story cards image styling */
.success-story-img {
    border-radius: 2rem 2rem 0 0;
    height: 140px;
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

/* Benefit section equal heights */
.benefit-section .row {
    display: flex;
    align-items: stretch;
}

.benefit-section .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.benefit-section .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.benefit-section .card-text {
    flex-grow: 1;
}

/* Success story equal heights */
.success-story-section .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.success-story-section .row.g-0 {
    height: 100%;
}

.success-story-section .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    padding: 2rem 1.5rem;
}

.success-story-section .card-title {
    margin-bottom: 1rem;
}

.success-story-section .card-text {
    line-height: 1.7;
    margin-bottom: 0;
}

/* Function carousel card width constraints */
.function-carousel .owl-item .card.owl-content {
    min-height: auto !important;
    height: auto !important;
}

.function-carousel .card-body {
    padding: 1.5rem;
}

/* Medium screens and up - side-by-side layout for benefit cards */
@media (min-width: 768px) {
    .row .col-md-5.order-md-2 .benefit-card-img {
        border-radius: 0 2rem 2rem 0;
        height: 100%;
        min-height: 180px;
        object-fit: cover;
        object-position: left center;
    }
    
    .row .col-md-5.order-md-1 .benefit-card-img {
        border-radius: 2rem 0 0 2rem;
        height: 100%;
        min-height: 180px;
        object-fit: cover;
        object-position: right center;
    }
    
    .success-story-section .card-body {
        padding: 2rem;
        align-items: flex-start;
        text-align: left;
    }
}

/* Large screens - side-by-side layout for success story cards */
@media (min-width: 992px) {
    .success-story-img {
        border-radius: 2rem 0 0 2rem;
        height: 100%; 
        object-fit: cover;
        object-position: center center;
        min-height: 200px;
        max-height: 260px;
    }

    .success-story-section .card-body {
        justify-content: center;
    }
    
    .function-carousel .owl-item .card.owl-content {
        max-width: 320px;
        min-height: auto;
    }
    
    .function-carousel .card-body {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .function-carousel .card-title {
        margin-bottom: 0.75rem;
    }
    
    .function-carousel .card-text {
        flex-grow: 0;
        margin-bottom: 0;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .function-carousel .owl-item .card.owl-content {
        max-width: 340px;
    }
}

/* Responsive adjustments for benefit cards */
@media (max-width: 991px) {
    .benefit-section .row .col-lg-7,
    .benefit-section .row .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .benefit-section .my-3 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 767px) {
    .benefit-card-img {
        height: 160px;
    }
    
    .success-story-img {
        height: 120px;
    }
    
    .benefit-section .card-body,
    .success-story-section .card-body {
        padding: 1.5rem 1.25rem;
    }
    
    /* Function carousel mobile spacing adjustments */
    .function-carousel.owl-carousel {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Override inline styles from Owl Carousel */
    .function-carousel .owl-item .card.owl-content {
        min-height: auto !important;
    }
    
    section.background-light .container {
        padding-bottom: 1rem !important;
    }
    
    section.background-light .row.text-center.my-3 {
        margin-bottom: 1rem !important;
    }
}

/* Visual hierarchy improvements */
.benefit-section .card-title,
.success-story-section .card-title {
    color: #0B1E28;
    margin-bottom: 0.75rem;
}

.benefit-section .card-text,
.success-story-section .card-text {
    color: rgba(11, 30, 40, 0.8);
    line-height: 1.6;
}

/* Ensure gradient card stands out */
.benefit-section .card-gradient .card-title {
    color: #0B1E28;
    margin-bottom: 1rem;
}

.benefit-section .card-gradient .card-text {
    color: rgba(11, 30, 40, 0.85);
}

/* === FUNCTION CAROUSEL OVERRIDES === */
/* Force remove all inline styles and spacing issues */
.function-carousel .owl-item .card.owl-content {
    min-height: auto !important;
    height: auto !important;
}

.function-carousel .owl-stage {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Make function carousel full-width edge-to-edge */
.function-carousel.owl-carousel {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    padding: 10px 0;
    padding-bottom: 0 !important;
    margin-bottom: 1rem !important;
}

/* Let Owl Carousel handle margins through JS config */
.function-carousel .owl-item {
}

@media (max-width: 767px) {
    .function-carousel.owl-carousel {
        margin-bottom: 0.5rem !important;
        padding: 10px 0 !important;
        padding-bottom: 0 !important;
    }
    
    .function-carousel .owl-item .card.owl-content {
        max-width: 100% !important;
    }
}

/* === PARTNER PAGE OPTIMIZATIONS === */

.partner-page section {
    padding: 4rem 0;
}

.partner-hero-img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    border-radius: 2rem;
    object-fit: cover;
    object-position: center center;
}

.partner-terminal-img {
    max-width: 70%;
    max-height: 180px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
}

.partner-terminal-main-img {
    max-width: 380px;
    max-height: 300px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.partner-function-card {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: transparent;
}

.partner-payment-logos {
    max-height: 250px;
    object-fit: contain;
}

/* New styles for the visual container */
.payment-logos-visual-container {
    position: relative;
    z-index: 5;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .partner-page section {
        padding: 2rem 0;
    }
    
    .partner-hero-img {
        max-height: 280px;
        border-radius: 1.5rem;
    }
    
    .partner-terminal-img {
        max-width: 80%;
        max-height: 160px;
    }
    
    .partner-terminal-main-img {
        max-width: 300px;
        max-height: 240px;
    }
    
    .partner-payment-logos {
        max-height: 180px;
    }
    
    .payment-logos-visual-container {
        margin-bottom: 0;
    }
    
    .partner-section .my-3 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .partner-function-card .card-body {
        padding: 1.5rem 1.25rem;
    }
    
    .partner-terminal-section .row.g-0 {
        --bs-gutter-x: 1rem;
    }
    
    .partner-payment-logos {
        max-height: 130px;
    }

    .payment-logos-visual-container {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .partner-hero-img {
        max-height: 250px;
        border-radius: 1rem;
    }
    
    .partner-terminal-img {
        max-width: 85%;
        max-height: 140px;
    }
    
    .partner-terminal-main-img {
        max-width: 260px;
        max-height: 210px;
    }
    
    .partner-payment-logos {
        max-height: 80px;
    }
}

.hero-gradient-card .card-body {
    padding: 1.5rem 1rem;
}

/* Specific overrides for offer/contact form cards */
@media (max-width: 768px) {
    #offerform_card,
    #contactform_card {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        /* Horizontal padding will be 1.5rem from the .card rule in base.css at this breakpoint */
    }
}

@media (max-width: 576px) {
    #offerform_card,
    #contactform_card {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
        /* Horizontal padding will be 1rem from the .card rule in base.css at this breakpoint (1.5rem 1rem) */
    }
}

/* Constrain width of the 'Tudj meg többet' button in the Webshop card */
.card-gradient .btn-primary {
    max-width: 380px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* display: block; is often handled by btn class or inherited context for centering */
}

/* Styling for the CTA button group in the 'Ők már minket választottak' section */
.cta-button-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns buttons to the left - starting from same spot */
    gap: 0.75rem; /* Adds space between the stacked buttons */
}

.cta-button-group .btn {
    width: 100%; /* Takes full width of the slot given by flex alignment */
    /* margin-left: auto; -- REMOVED to let align-items on parent control positioning */
    /* margin-right: 0; -- REMOVED */
}

@media (min-width: 768px) {
    .cta-button-group .btn {
        max-width: 280px; /* Limit width on tablet and desktop for better proportions */
    }
}

/* Ensure these styles apply primarily on desktop where col-lg-3 is active */
@media (min-width: 992px) { /* Corresponds to lg breakpoint */
    .cta-button-group .btn.d-lg-inline-block {
        display: block !important; /* Force display block to stack them */
        /* width: 100%; is inherited from above .cta-button-group .btn */
        /* max-width: 280px; is inherited */
        margin-bottom: 0; /* Reset bottom margin from smaller screen stacking */
        margin-right: 0; /* Reset side margin from inline-block attempts */
    }
}

/* Make partner page webshop CTA button full-width on mobile */
@media (max-width: 768px) {
    .background-lighter .text-lg-start .btn-secondary {
        width: 100%;
    }
}
