/* ==========================================
   AIRA.expert - Styly pro Banner 1 (4 Důvody)
   Cesta souboru: ./banners/banner_1.css
   ========================================== */

/* Kontejner banneru */
.banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    box-sizing: border-box;
}

.banner-1-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-sizing: border-box;
    overflow: visible !important;
}

/* Hlavička banneru */
.banner-1-header {
    text-align: center;
    margin-bottom: 24px;
}

.banner-1-tag {
    display: inline-block;
    background: #d4af37;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.2px;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.banner-1-title {
    color: #004d40;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.banner-1-subtitle {
    color: #00796b;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 600;
    margin: 0;
}

/* ==========================================
   RESPONZIVNÍ GRID PRO DLAŽDICE
   ========================================== */
.banner-1-grid {
    display: grid !important;
    grid-template-columns: 1fr !important; /* Mobil (< 640px): 1 sloupeček */
    gap: 16px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Tablet / Střední displeje (640px - 1023px): 2 v řadě */
@media (min-width: 640px) {
    .banner-1-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

/* PC a široké monitory (≥ 1024px): 4 v jedné řadě */
@media (min-width: 1024px) {
    .banner-1-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px !important;
    }
}

/* ==========================================
   3D OTOČNÁ KARTA (FLIP CARD)
   ========================================== */
.flip-card {
    background: transparent !important;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    height: 240px; /* Pevně stanovená výška pro plynulý otoč */
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Rotace při hoveru nebo kliku/fokusu */
.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:active .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* Společné vlastnosti pro Přední i Zadní stranu */
.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    border-radius: 16px;
    padding: 16px 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 77, 64, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

/* PŘEDNÍ STRANA */
.flip-card-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    z-index: 2;
}

/* ZADNÍ STRANA */
.flip-card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    border-color: #d4af37;
    z-index: 1;
}

/* Akcentovaná tmavá varianta (Karta 4) */
.flip-card-back.dark-theme {
    background: #004d40;
    color: #ffffff;
}

.flip-card-back.dark-theme .banner-1-card-title {
    color: #f3e5ab;
}

.flip-card-back.dark-theme .banner-1-card-desc {
    color: #e0f2f1;
}

/* ==========================================
   KONTROLA VELIKOSTI IKON A OBRÁZKŮ
   ========================================== */
.banner-1-icon-box {
    width: 156px !important;
    height: 156px !important;
    max-width: 156px !important;
    max-height: 156px !important;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f7f5;
    padding: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.back-icon {
    background: #fcf8ec;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.dark-icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(243, 229, 171, 0.3);
}

/* Striktní zamezení roztažení obrázku přes obrazovku */
.banner-1-icon-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

/* Texty v buňkách */
.banner-1-card-title {
    color: #004d40;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.banner-1-card-desc {
    color: #4a5568;
    font-size: clamp(0.75rem, 1.1vw, 0.82rem);
    line-height: 1.35;
    margin: 0;
}