/* Kényszerítjük a T4 keretrendszer belső színváltozóit a fehérre és feketére CSAK az offcanvasen belül */
:root {
    --mainnav-link-color: #ffffff !important;
    --bs-offcanvas-bg: #000000 !important;      /* Tiszta fekete panel háttér */
    --bs-offcanvas-color: #ffffff !important;   /* Alapértelmezett fehér szövegszín */
}

/* Biztonsági extra szabály a teljes offcanvas panel feketítésére és a linkek fehérítésére */
.t4-offcanvas, .offcanvas, .offcanvas-start, .offcanvas-end {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Kifejezetten CSUPÁN az offcanvas panelen belüli címszavakat tesszük fehérré */
.t4-offcanvas h1, .t4-offcanvas h2, .t4-offcanvas h3, .t4-offcanvas h4,
.offcanvas h1, .offcanvas h2, .offcanvas h3, .offcanvas h4 {
    color: #ffffff !important;
}

.t4-offcanvas a, .offcanvas a, .t4-offcanvas .nav-link, .offcanvas .nav-link {
    color: #ffffff !important;
}

/* Teljesen átszinezzük az offcanvas nyitógomb elemeit */
.t4-offcanvas-toggle, 
.t4-off-canvas-toggle, 
.navbar-toggler {
    color: #ffffff !important;
}

/* Átállítjuk a Bootstrap SVG ikon színét fehérre CSS maszkolással */
.t4-offcanvas-toggle .navbar-toggler-icon,
.navbar-toggler-icon {
    background-image: none !important;
    background-color: #ffffff !important;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center !important;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-block !important;
}
.rounded-card {
    background-color: #ffffff !important; /* Fehér kártya háttér */
    border-radius: 20px !important;       /* Lekerekítés */
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important; /* Finom árnyék */
    padding: 30px !important;             /* Belső margó, hogy ne folyjon ki a szöveg */
    overflow: hidden;                     /* Kilógó elemek levágása */
}

/* Mobilon kicsit kisebb belső margó, hogy szebben mutasson */
@media (max-width: 768px) {
    .rounded-card {
        padding: 20px !important;
    }
}
/* Responzív rács szerkezet */
.feature-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Asztali gépen 6 oszlop */
    gap: 15px; /* Térköz a kártyák között */
    margin: 20px 0;
}

/* Alap kártya stílus */
.feature-card-item {
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 220px;
    transition: transform 0.3s ease;
}

.feature-card-item:hover {
    transform: translateY(-5px); /* Lebegő effekt egérrel */
}

/* Piros színátmenetes kártya */
.card-red {
    background: linear-gradient(180deg, #ba2108 0%, #701002 100%);
}

/* Sötétszürke/Fekete színátmenetes kártya */
.card-dark {
    background: linear-gradient(180deg, #424242 0%, #212121 100%);
}
/* Fehér kártya stílus (Fekete szöveggel és sötét ikonnal) */
.card-white {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    color: #111111 !important;
    border: 1px solid #e0e0e0; /* Opcionális finom keret, hogy elváljon a háttértől */
}

/* Fehér kártyán belüli ikon és szöveg színe */
.card-white .card-icon,
.card-white .card-text {
    color: #111111 !important;
}

/* Ikonok stílusa */
.feature-card-item .card-icon {
    font-size: 42px;
    margin-bottom: 20px;
    color: #ffffff;
}

/* Szöveg stílusa */
.feature-card-item .card-text {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
    font-weight: 500;
}

/* --- RESPONZIVITÁS (Mobil és Tablet nézet) --- */

/* Tableten (1200px alatt) 3 oszlopra vált */
@media (max-width: 1200px) {
    .feature-cards-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobilon (768px alatt) 2 oszlopra vált */
@media (max-width: 768px) {
    .feature-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .feature-card-item {
        min-height: 180px;
        padding: 15px 10px;
    }
    .feature-card-item .card-text {
        font-size: 13px;
    }
}

/* Kismobilon (480px alatt) 1 oszlopra vált */
@media (max-width: 480px) {
    .feature-cards-wrapper {
        grid-template-columns: 1fr;
    }
}
/* --- KISEBB KÁRTYA MÓDOSÍTÓ (.card-sm) --- */
.feature-card-item.card-sm {
    min-height: 160px;       /* Kisebb minimális magasság (220px helyett) */
    padding: 15px 10px;      /* Kisebb belső margó */
    border-radius: 14px;     /* Kicsit lágyabb kerekítés a kisebb mérethez */
}

/* Kisebb ikon a kis kártyán */
.feature-card-item.card-sm .card-icon {
    font-size: 30px;         /* 42px helyett 30px */
    margin-bottom: 10px;     /* Kevesebb hely az ikon alatt */
}

/* Kisebb szöveg a kis kártyán */
.feature-card-item.card-sm .card-text {
    font-size: 13px;         /* 15px helyett 13px */
    line-height: 1.3;
}
/* --- 7 OSZLOPOS RÁCS RESPONZÍV BEÁLLÍTÁSA --- */

/* 1. ASZTALI NÉZET (1201px felett): Mind a 7 kártya egy sorban */
@media (min-width: 1201px) {
    .feature-cards-wrapper.cols-7 {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 8px;
    }
}

/* 2. TABLET NÉZET (769px - 1200px között): 4 oszlop */
@media (max-width: 1200px) and (min-width: 769px) {
    .feature-cards-wrapper.cols-7 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px;
    }
}

/* 3. MOBIL NÉZET (768px alatt): 2 oszlop, semmi nem marad le! */
@media (max-width: 768px) {
    .feature-cards-wrapper.cols-7 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
}

/* 4. KISMOBIL NÉZET (480px alatt): 1 oszlop */
@media (max-width: 480px) {
    .feature-cards-wrapper.cols-7 {
        grid-template-columns: 1fr !important;
    }
}
/* Rugalmas, teljesen automatikus kártyarács */
.feature-cards-wrapper.cols-auto {
    display: grid;
    /* 110px a minimum szélesség: így asztali gépen elfér a 7 kártya, mobilon pedig automatikusan 2 vagy 1 oszlopra vált! */
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
    gap: 10px;
}
/* Idővonal tároló */
.step-timeline {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    padding-left: 10px;
}

/* Egy lépés sora */
.step-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 35px;
}

.step-item:last-child {
    margin-bottom: 0;
}

/* A függőleges összekötő vonal (az ikonok mögött) */
.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 45px; /* Az ikon közepére igazítva */
    top: 50px;
    width: 2px;
    height: calc(100% + 35px);
    background-color: #a0a0a0;
    z-index: 1;
}

/* Ikon külső köre és több rétegű árnyéka (A képen látható hatás) */
.step-icon-wrapper {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Szürke és piros külső lágy árnyékok */
    box-shadow: 0 0 0 8px rgba(220, 220, 220, 0.6), 
                0 0 0 16px rgba(220, 60, 40, 0.25);
    margin-right: 40px;
}

/* Belső piros gomb az ikonnak */
.step-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d32f2f 0%, #8e0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 26px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Szöveges tartalom */
.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #212529;
    margin-bottom: 6px;
}

.step-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #555555;
    margin: 0;
}

/* Narancsos/Piros kiemelt szövegek */
.highlight-text {
    color: #d32f2f;
    font-weight: 700;
}

/* --- RESPONZIVITÁS MOBILRA --- */
@media (max-width: 768px) {
    .step-item:not(:last-child)::before {
        left: 32px;
    }
    .step-icon-wrapper {
        width: 65px;
        height: 65px;
        margin-right: 25px;
        box-shadow: 0 0 0 5px rgba(220, 220, 220, 0.6), 
                    0 0 0 10px rgba(220, 60, 40, 0.25);
    }
    .step-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .step-title {
        font-size: 1.1rem;
    }
    .step-text {
        font-size: 0.95rem;
    }
}
/* Szigorú magasságkorlátozás a Hero Style-1 modulra */
/* Megkerüljük a gyári min-height / height korlátozást */
.acm-hero.style-1,
.acm-hero.style-1 .hero-item,
.acm-hero.style-1 .item,
.acm-hero.style-1 .carousel-inner {
    min-height: 450px !important; /* Írd át a kívánt magasságra (pl. 300px, 400px) */
    height: 450px !important;
}

/* Ha a háttérkép a háttérben van, ez garantálja, hogy lekövesse az új magasságot */
.acm-hero.style-1 .hero-item {
    background-size: cover !important;
    background-position: center center !important;
}
/* A szöveges blokk feljebb emelése anélkül, hogy az elrendezés szétesne */
/* 1. ASZTALI NÉZET (Desktop: 992px felett) */
@media (min-width: 992px) {
    .acm-hero.style-1 .hero-content,
    .acm-hero.style-1 .hero-body,
    .acm-hero.style-1 .hero-title {
        position: relative !important;
        top: -80px !important; /* Ezzel tartjuk középen asztali gépen */
    }
}

/* 2. MOBIL ÉS TABLET NÉZET (991px alatt) */
@media (max-width: 991px) {
    /* Mobilon visszaállítjuk a helyére a pozíciót, hogy ne csússzon el */
    .acm-hero.style-1 .hero-content,
    .acm-hero.style-1 .hero-body,
    .acm-hero.style-1 .hero-title {
        position: relative !important;
        top: 0 !important; /* Vagy kis negatív érték, pl: -10px vagy -20px */
    }

    /* Ha mobilon túl kicsi a szövegnek a hely a csökkentett magasság miatt, 
       itt adhatunk a modulnak egy kicsivel több helyet */
    .acm-hero.style-1,
    .acm-hero.style-1 .hero-item,
    .acm-hero.style-1 .item,
    .acm-hero.style-1 .carousel-inner {
        min-height: 280px !important; /* Mobilon kényelmesebb magasság */
        height: auto !important;      /* Engedi, hogy a tartalom elférjen */
    }

    /* Mobilon a betűméreteket is érdemes kicsit kisebbre venni, hogy elférjenek */
    .acm-hero.style-1 .hero-title {
        font-size: 22px !important; /* Cím mérete mobilon */
        line-height: 1.2 !important;
    }
    
    .acm-hero.style-1 .hero-intro {
        font-size: 14px !important; /* Alcím/leírás mérete mobilon */
    }
}