/* === 1. Általános és Háttér stílusok === */
body { font-family: 'Roboto', sans-serif; }
.navbar-brand img { height: 40px; }

.app-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #eaeaea;
  overflow-x: hidden; /* Vízszintes scroll elleni védelem */
}

.app-bg-grey {
  background-color: #f9f9f9;
}

/* === 2. Hero Slider (Képváltó) === */
.hero-slider-wrapper,
#heroCarousel,
.carousel-inner,
.carousel-item {
    /* ITT A VÁLTOZÁS: 66px helyett 56px (így a kép lejjebb fog érni) */
    height: calc(100vh - 56px) !important; 
    min-height: 500px !important;
    margin-bottom: 0 !important; /* Biztosíték, hogy a Bootstrap ne rakjon oda üres teret */
}

.hero-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65); 
    z-index: 1;
}

.hero-slider-wrapper .carousel-caption {
    right: 0;
    left: 0;
    bottom: 0;
    padding-bottom: 0;
    z-index: 2;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* --- Beúszó Animációk --- */
.slide-animate-1, .slide-animate-2, .slide-animate-3 { opacity: 0; transform: translateX(-30px); }
.carousel-item.active .slide-animate-1 { animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.3s; }
.carousel-item.active .slide-animate-2 { animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.6s; }
.carousel-item.active .slide-animate-3 { animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.9s; }
@keyframes slideInLeft { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: translateX(0); } }

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* === 3. Videó és Dizájn Elemek === */
.app-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border: 8px solid #ffffff;
  border-radius: 1rem;
  background-color: #111;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.1);
  z-index: 2;
}

.app-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(1rem - 8px);
}

.app-video-accent {
  background-color: #cc0000;
  border-radius: 1rem;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 25px;
  right: -20px;
  opacity: 0.1;
  z-index: 1;
}

.app-video-accent-left {
  right: auto;
  left: -20px;
}

/* === 4. Gombok és Tipográfia === */
.badge-red-subtle {
  background-color: rgba(204, 0, 0, 0.1);
  color: #cc0000;
  border: 1px solid rgba(204, 0, 0, 0.2);
}

.btn-app-red {
  background-color: #cc0000;
  border-color: #cc0000;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-app-red:hover {
  background-color: #a30000;
  border-color: #a30000;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(204, 0, 0, 0.25);
}

.app-section svg.flex-shrink-0 {
  margin-right: 20px !important;
}

/* === 5. Bevezető (Intro) szekció === */
.intro-section {
  position: relative;
  overflow: hidden;
}

.red-divider {
  width: 80px;
  height: 4px;
  background-color: #cc0000;
  border-radius: 2px;
  margin: 1.5rem auto; 
}

@media (min-width: 992px) {
  .red-divider { margin: 1.5rem 0; }
}

.highlight-box {
  border-left: 5px solid #cc0000;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.intro-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
}

/* === 6. GY.I.K. HARMONIKA (Golyóálló verzió) === */
#faqCatalog .accordion-item {
    border: 1px solid #eaeaea;
    border-radius: 0;
    margin-bottom: 1.5rem;
    background-color: #fff;
    box-shadow: none;
}

#faqCatalog .accordion-button,
#faqCatalog .accordion-button:not(.collapsed) {
    background-color: #fff !important;
    color: #212529 !important;
    box-shadow: none !important;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
}

#faqCatalog .accordion-button:not(.collapsed)::after {
    filter: grayscale(100%) brightness(0); /* Fekete nyíl kinyitva is */
}

.acc-num-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 45px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    margin-right: 1.5rem; 
    flex-shrink: 0;
    transition: all 0.3s ease;
}

#faqCatalog .accordion-button:not(.collapsed) .acc-num-box {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
    color: #fff !important;
}

.acc-text {
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.4;
}

#faqCatalog .accordion-body {
    padding: 0.5rem 1.5rem 2rem calc(3rem + 60px);
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    border-top: none; 
}

/* === 7. Lábléc (Footer) Stílusok === */
.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #cc0000 !important;
    transform: translateX(5px); 
}

.footer-social-icon {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.footer-social-icon:hover,
.footer-social-icon:focus,
.footer-social-icon:active {
    color: #cc0000;
    text-decoration: none !important;
}

/* === 8. Ugrás a tetejére (Back to Top) Gomb javítva === */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; 
    z-index: 9999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    padding: 0;
    line-height: 46px; /* Hozzáigazítva a 2px kerethez */
    font-size: 1.5rem;
    background-color: #cc0000;
    color: #ffffff;
    border: 2px solid #ffffff; /* Fehér keret a kontraszt miatt */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top-btn i {
    color: #ffffff !important; /* Kényszerített fehér ikon */
}

.back-to-top-btn.show {
    display: block;
    animation: fadeInBtn 0.4s ease-out;
}

@keyframes fadeInBtn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Jogi oldalak szövegformázása */
.legal-content { line-height: 1.8; color: #444; }
.legal-content h3 { margin-top: 2.5rem; font-weight: bold; color: #222; 
    
}

/* Menü animáció és stílus */
.navbar-dark .navbar-nav .nav-link {
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.dropdown-menu-dark {
    background-color: #1a1a1a;
    border-top: 3px solid #cc0000 !important;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

.dropdown-item {
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #252525;
    color: #ff4444;
    padding-left: 1.5rem; /* Egy kis csúszás animáció */
}

/* Szélesebb dropdown a SketchUp listához */
@media (min-width: 992px) {
    .dropdown-menu-lg {
        min-width: 280px;
    }
    
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeInDown 0.2s ease-out;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kapcsolat gomb kiemelése */
.btn-outline-danger:hover {
    background-color: #cc0000;
    border-color: #cc0000;
}

/* === Lebegő Kártya Effekt (Hover) === */
.hover-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer;
    border-bottom: 3px solid transparent !important;
}

.hover-card:hover {
    transform: translateY(-12px); /* Itt "lebeg" fel a kártya */
    box-shadow: 0 15px 35px rgba(204, 0, 0, 0.12) !important; /* Pirosas árnyék */
    border-bottom: 3px solid #cc0000 !important; /* Megjelenik a piros alsó vonal */
}

.hover-card .text-danger i {
    transition: transform 0.3s ease;
}

.hover-card:hover .text-danger i {
    transform: scale(1.2); /* Az ikon is picit megnő hoverre */
}

.s-cutout {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  mix-blend-mode: screen;
  transition: all 0.3s ease;
  line-height: 1;
  
  /* EZ A KÉT SOR OLDJA MEG AZ IGAZÍTÁST: */
  vertical-align: middle; 
  margin-top: -4px; 
}

/* Hover állapot, hogy ez is piros legyen */
.footer-social-icon:hover .s-cutout {
  background: #cc0000;
  transform: scale(1.1);
}

/* Frissített Lite Videó Kép stílus */
.video-container-lite {
    position: relative;
    cursor: pointer;
    background-color: #000;
    overflow: hidden; /* Hogy a kép ne lógjon ki a lekerekítésnél */
}

/* A kép kényszerítése a teljes kitöltésre a .ratio dobozon belül */
.video-container-lite img {
    position: absolute; /* KÖTELEZŐ a .ratio miatt */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kitölti a teret, nem nyúlik el, a felesleget levágja */
    object-position: center;
    transition: opacity 0.3s ease;
    opacity: 0.8;
    z-index: 1;
}

.video-container-lite:hover img {
    opacity: 1;
}

/* Egyedi Lejátszás Gomb középre igazítva */
.play-button-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Hajszálpontos középre igazítás */
    width: 70px;
    height: 50px;
    background-color: rgba(204, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 28px;
    z-index: 2; /* A kép felett legyen */
    transition: all 0.3s ease;
    pointer-events: none; /* Átengedi a kattintást a képnek/tárolónak */
}

.video-container-lite:hover .play-button-custom {
    background-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Videók alatti leíró szöveg eltolása az árnyéktól */
.video-description {
    margin-top: 25px; /* Biztosítja a távolságot az árnyék alatt */
    position: relative; /* Fontos! Ezzel kiemeljük a szöveget... */
    z-index: 2; /* ...így az árnyék véletlenül sem takarja ki, és ki lehet jelölni az egeret */
}

/* === MOBIL MENÜ SZÖVEG NAGYÍTÁSA === */
@media (max-width: 991px) {
    /* Főmenü pontok nagyítása */
    .navbar-dark .navbar-nav .nav-link {
        font-size: 1.35rem; /* Alapértelmezettnél picit nagyobb */
        padding: 0.8rem 1rem; /* Kicsit szellősebb, hogy könnyebb legyen rábökni */
    }
    
    /* Legördülő (almenü) pontok nagyítása */
    .dropdown-menu-dark .dropdown-item {
        font-size: 1.05rem; /* Eredetileg 0.9rem volt, ez jobban olvasható mobilon */
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}