/* =========================================
   ZÁKLADNÉ NASTAVENIA A FARBY (Z loga AIU)
========================================= */
:root {
    --primary-teal: #00a29b; /* Svetlejšia farba srdiečka a postavy z loga */
    --primary-navy: #00315c; /* Tmavomodrá farba z loga */
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   HLAVIČKA, NAVIGÁCIA A ZVÄČŠENÉ LOGO
========================================= */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ZVÄČŠENÉ LOGO */
.logo img {
    height: 160px; /* Zvýšené zo 70px na masívnych 160px */
    width: auto;
    padding: 5px 0;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03); /* Malý elegantný efekt pri prejdení myšou nad logom */
}

.nav-links a {
    color: var(--primary-navy);
    font-weight: 700;
    margin-left: 25px;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

/* =========================================
   HERO CSS SLIDER PRE 3 OBRÁZKY
========================================= */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Celkový čas pre 3 fotky: 18 sekúnd */
    animation: fadeCycle3 18s infinite;
}

/* Animácia presne vypočítaná pre prekrývanie 3 fotiek */
@keyframes fadeCycle3 {
    0%, 25% { opacity: 1; }
    33%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 49, 92, 0.45); /* Jemné stmavujúce prekrytie */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 850px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    border: 2px solid var(--primary-teal);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

/* =========================================
   VŠEOBECNÉ SEKCIE A GRID
========================================= */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-navy); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.mt-5 { margin-top: 50px; }

.section-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 15px;
}
.section-title.text-white { color: var(--white); }

.section-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.align-items-center { align-items: center; }

/* =========================================
   IKONOVÉ BOXY (O NÁS)
========================================= */
.icon-box {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.icon-box:hover { transform: translateY(-8px); }

.icon-box i {
    font-size: 3rem;
    color: var(--primary-teal);
    margin-bottom: 20px;
}

.icon-box h4 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* =========================================
   OBRÁZKY
========================================= */
.img-responsive { width: 100%; height: auto; }
.rounded-shadow { border-radius: 15px; box-shadow: 0 10px 30px rgba(0,49,92,0.15); }


/* =========================================
   FAQ SEKCIA (KRÁSNY ANIMOVANÝ AKORDEÓN)
========================================= */
.faq-container {
    max-width: 850px;
    margin: 50px auto 0;
    text-align: left;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Jemný hover efekt na celú kartu */
.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: rgba(0, 162, 155, 0.3); 
}

/* Keď je otázka rozbalená, dostane farebný obrys */
.faq-item[open] {
    border-color: var(--primary-teal);
}

.faq-item summary {
    padding: 22px 30px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-navy);
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Krásna ikona so šípkou v krúžku */
.faq-item summary i {
    color: var(--white);
    background-color: var(--primary-teal);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

/* Po rozbalení sa šípka otočí a zmení farbu na tmavomodrú */
.faq-item[open] summary i {
    transform: rotate(180deg);
    background-color: var(--primary-navy);
}

/* Obal pre text s okrajom */
.faq-content {
    padding: 0 30px 25px;
    color: var(--text-muted);
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
    padding-top: 20px;
}

/* Animácia postupného plynulého zosunutia */
.faq-item[open] .faq-content {
    animation: slideDownFade 0.4s ease-out forwards;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PÄTIČKA A KONTAKT
========================================= */
.footer {
    background-color: #001a33;
    color: #a0b2c1;
    padding: 60px 0 20px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.footer ul li i { color: var(--primary-teal); margin-top: 5px; }
.footer a { color: #a0b2c1; }
.footer a:hover { color: var(--primary-teal); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* =========================================
   RESPONZIVITA (Mobily)
========================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-padding { padding: 50px 0; }
    .logo img { height: 80px; } /* Na mobiloch kúsok zmenšíme, aby nevošla do textu */
}

/* =========================================
   GALÉRIA
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-teal);
}

.gallery-caption {
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
    flex-grow: 1; /* Ak sú texty rôzne dlhé, tento parameter dorovná výšku kariet */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* =========================================
   MODAL (POPUP PRE GALÉRIU)
========================================= */
.modal {
    display: none; /* Štandardne skryté */
    position: fixed;
    z-index: 2000; /* Musí byť vysoko, aby prekrylo aj hlavičku */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 49, 92, 0.92); /* Tmavomodrá AIU farba s priehľadnosťou */
    backdrop-filter: blur(6px); /* Rozmaže pozadie za fotkou */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    padding: 20px 0;
    font-size: 1.15rem;
    font-weight: 600;
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-teal); /* Po nabehnutí myšou sa zafarbí do tyrkysova */
    text-decoration: none;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Kurzor lupy pri nabehnutí na fotky v galérii */
.gallery-item img {
    cursor: zoom-in;
}

/* =========================================
   HERO SEKCIA S VIDEOM NA POZADÍ
========================================= */
.hero-video-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Samotné video - roztiahne sa na celú plochu */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Zabezpečí, že video vyplní celú plochu bez deformácie pomeru strán */
}

/* Tmavý preliv (overlay), aby biely text na videu pekne svietil */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 49, 92, 0.45); /* Tmavomodrá farba AIU z loga s priehľadnosťou */
    z-index: 2;
}

