@import url(https://csstools.github.io/normalize.css/);

/* ==========================================
   ZÁKLADNÉ ŠTÝLY
   ========================================== */

body {
    margin: 0 auto;
    font-family: "Inter", sans-serif;
}

a {
    color: #FFF;
    text-decoration: none;
    font-size: 1.1rem;
}

a:hover {
    color: #8BB4E0;
}

/* ==========================================
   HEADER A NAVIGÁCIA
   ========================================== */

header {
    background-color: transparent;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner > a {
    background-color: #1E2C75;
    padding: 10px 30px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    height: 70px;
}

nav {
    background-color: #1E2C75;
    padding: 10px 30px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    width: 375px !important;
    height: 149px !important;
    padding-left: 10px;
}

header a {
    display: inline-block;
    line-height: 0;
}

/* Navigácia */
nav {
    display: flex;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-list li {
    position: relative;
}

.nav-list li:after {
    content: "";
    position: absolute;
    width: 0%;
    height: 1px;
    display: block;
    transition: all 0.3s ease;
    bottom: -1.1rem;
    left: 0;
}

.nav-list li:hover::after {
    width: 100%;
    height: 1px;
    background-color: #639ECB;
}

.nav-list li:has(#domov):after {
    display: none !important;
}

.nav-list li:has(#domov):hover::after {
    display: none !important;
}

#domov {
    color: #4F8DBC;
    text-decoration: underline;
}

#domov:hover {
    color: #639ECB;
}

/* Menu ikona */
.menu-icon {
    display: none;
}

.menu-icon i {
    color: #639ECB;
    font-size: 30px;
}

/* Jazykové menu */
.lang-menu {
    width: 50px;
    text-align: right;
    font-weight: bold;
    margin-top: 20px;
    position: relative;
    margin-left: 20px;
    margin-right: 20px;
}

.lang-menu .selected-lang {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 10px; 
    line-height: 2;
    cursor: pointer;
}

.lang-menu .selected-lang:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/flags/slovakia_flag-png-icon-32.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.lang-menu ul {
    margin: 0;
    padding: 0;
    display: none;
    background-color: #fff;
    position: absolute;
    top: 20px;
    right: 0px;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.lang-menu ul li {
    list-style: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.lang-menu ul li a {
    text-decoration: none;
    width: 355px;
    padding: 5px 10px;
    display: block;
    color: #639ECB;
}

.lang-menu ul li:hover {
    background-color: #f2f2f2;
}

.lang-menu ul li a:before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

.lang-menu:hover ul {
    display: block;
}

.lang-menu.open ul {
    display: block;
}

.lang-menu ul li:first-child:hover {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.lang-menu ul li:last-child:hover {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.lang-arrow {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-left: 2px solid #639ECB;
    border-bottom: 2px solid #639ECB;
    transform: rotate(-45deg); 
    margin-top: -14px;
}

.de:before {
    background-image: url('../images/flags/germany_flag-png-icon-32.png');
}

.en:before {
    background-image: url('../images/flags/united-kingdom_flag-png-icon-32.png');
}

.sk:before {
    background-image: url('../images/flags/slovakia_flag-png-icon-32.png');
}

.lang-menu .selected-lang.en:before {
    background-image: url('../images/flags/united-kingdom_flag-png-icon-32.png') !important;
}

.lang-menu .selected-lang.de:before {
    background-image: url('../images/flags/germany_flag-png-icon-32.png') !important;
}

.lang-menu .selected-lang.sk:before {
    background-image: url('../images/flags/slovakia_flag-png-icon-32.png') !important;
}

/* ==========================================
   KONTAJNER
   ========================================== */

.container {
    padding-left: 15%;
    padding-right: 15%;
    box-sizing: border-box;
    width: 100%;
}

/* === NAVIGÁCIA MEDZI ODDELENIAMI === */
.team-navigation {
    padding: 60px 0;
    background: #2B40A8;
    text-align: center;
}

.team-navigation h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.department-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.department-btn {
    background: #18235E;
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 150px;
    font-family: "Inter", sans-serif;
}

.department-btn:hover,
.department-btn.active {
    background: #24358C;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 141, 188, 0.3);
}

.department-btn i {
    font-size: 2rem;
}

.department-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

/* === PYRAMÍDA TÍMU === */
.team-pyramid-section {
    padding: 80px 0 20px 0;
    background: #f8f9fa;
    text-align: center;
}

.team-pyramid-container {
    max-width: 1100px;
    margin: 0 auto;
}

.pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    margin-top: 40px;
}

.pyramid-level {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 0;
}

.ceo-level .team-member {
    width: 220px;
}

.management-level .team-member {
    width: 180px;
}

.staff-level .team-member {
    width: 140px;
}

.team-member {
    background: #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(47, 53, 117, 0.12);
    padding: 25px 15px 18px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.team-member:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 24px rgba(47, 53, 117, 0.18);
    background: #e8e8e8;
}

.team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2B40A8;
    margin-bottom: 12px;
    background: #e6e6e6;
}

.team-member h3, .team-member h4, .team-member h5 {
    margin: 6px 0 2px 0;
    color: #2B40A8;
    font-weight: 700;
}

.team-member .position {
    color: #5A7AA8;
    font-weight: 600;
    margin: 4px 0 8px 0;
    font-size: 0.95rem;
    font-style: italic;
}

.team-member p {
    color: #8BB4E0;
    font-weight: 500;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

/* Kontakt */
.contact-info {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
}

.contact-info .phone {
    color: #2F3575;
    font-weight: 500;
}

.contact-info .email {
    color: #666;
    font-weight: 400;
    word-break: break-all;
}

.contact-info .phone:hover,
.contact-info .email:hover {
    color: #8BB4E0;
    cursor: pointer;
}

/* Footer */
footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    height: 50px;
    background-color: #24358C;
}

footer p {
    margin-top: 0;
    color: white;
}
.logo {
    height: 50px;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.logo:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.header-inner a img {
    transition: all 0.3s ease;
}

.header-inner a:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}
/* ==========================================
   MEDIA QUERIES
   ========================================== */

@media (max-width: 1250px) {
    .logo {
        height: 35px;
        padding-left: 5px;
    }
    
    .header-inner img {
        width: 300px !important;
        height: auto !important;
    }
}

@media (max-width: 1118px) {
    .logo {
        height: 35px;
        padding-left: 5px;
    }
    
    .header-inner img {
        width: 200px !important;
        height: auto !important;
    }
}

@media (max-width: 1000px) {
    .logo {
        height: 35px;
        padding-left: 5px;
    }
    
    .header-inner img {
        width: 190px !important;
        height: auto !important;
    }
}

@media (max-width: 903px) {
    .nav-list {
        font-size: 14px;
    }
    
    .lang-menu {
        margin-top: 15px;
    }
}

@media (max-width: 900px) {
    .pyramid-level {
        gap: 25px;
    }
    .team-member {
        padding: 18px 8px 12px 8px;
    }
    .team-photo {
        width: 70px;
        height: 70px;
    }
    .contact-info {
        font-size: 0.75rem;
    }
}

@media (max-width: 847px) {
    .nav-list {
        font-size: 12px;
    }
    
    .lang-menu {
        margin-top: 12px;
    }
}

@media (max-width: 1100px) {
    .header-inner {
        padding: 0 10px;
        gap: 10px;
    }
    
    .header-inner > a {
        padding: 5px 15px;
        height: 60px;
    }
    
    nav {
        padding: 5px 15px;
        height: 60px;
        border-radius: 0 0 20px 20px;
    }
    
    nav ul {
        z-index: 2;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        text-align: center;
        background: #2F3575;
        gap: 0;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        border-radius: 0 0 20px 20px;
    }
    
    nav ul li {
        padding: 20px;
        padding-top: 10px;
    }
    
    .nav-list li:after {
        display: none !important;
    }
    
    .nav-list li:hover::after {
        display: none !important;
    }
    
    .menu-icon {
        display: block;
    }
    
    #menuList {
        transition: all 0.5s;
    }
    
    /* Jazykové menu */
    .lang-menu ul {
        top: 18px;
        width: 120px;
    }
    
    .lang-menu ul li a {
        font-size: 0 !important;
        padding: 12px 10px !important;
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .lang-menu ul li a::before {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        vertical-align: middle !important;
        margin: 0 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    .lang-menu ul li a.de::after {
        content: 'DE' !important;
        font-size: 0.9rem !important;
        color: var(--accent-blue);
        position: relative;
    }
    
    .lang-menu ul li a.en::after {
        content: 'EN' !important;
        font-size: 0.9rem !important;
        color: var(--accent-blue);
        position: relative;
    }
    
    .lang-menu ul li a.sk::after {
        content: 'SK' !important;
        font-size: 0.9rem !important;
        color: var(--accent-blue);
        position: relative;
    }
    
    .department-links {
        gap: 20px;
    }
    
    .department-btn {
        min-width: 120px;
        padding: 15px 20px;
    }
}

@media (max-width: 600px) {
    .pyramid-level {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .team-pyramid-section {
        padding: 40px 0 20px 0;
    }
    .contact-info {
        font-size: 0.7rem;
    }
}

@media (max-width: 550px) {
    .lang-menu {
        width: 50px;
    }
    
    .lang-menu .selected-lang {
        justify-content: flex-end;
        gap: 10px;
    }
    
    /* Jazykové menu */
    .lang-menu ul {
        top: 18px;
        width: 120px;
    }
    
    .lang-menu ul li a {
        font-size: 0 !important;
        padding: 12px 10px !important;
        position: relative;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .lang-menu ul li a::before {
        display: inline-block !important;
        width: 20px !important;
        height: 20px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        vertical-align: middle !important;
        margin: 0 !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    .lang-menu ul li a.de::after {
        content: 'DE' !important;
        font-size: 0.85rem !important;
        color: var(--accent-blue);
        position: relative;
    }
    
    .lang-menu ul li a.en::after {
        content: 'EN' !important;
        font-size: 0.85rem !important;
        color: var(--accent-blue);
        position: relative;
    }
    
    .lang-menu ul li a.sk::after {
        content: 'SK' !important;
        font-size: 0.85rem !important;
        color: var(--accent-blue);
        position: relative;
    }
    
    .lang-arrow {
        display: none;
    }
}

/* ==========================================
   NOVÁ ŠTRUKTÚRA TÍMU - FLEXBOX
   ========================================== */

.team-main-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.team-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

/* Nový layout pre 2 stĺpce */
.team-layout-two-columns {
    margin-top: 40px;
}

.team-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Zachovanie starého layoutu pre kompatibilitu */
.team-layout-three-columns {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
}

.team-department {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-layout-three-columns .team-department {
    flex: 1;
    min-height: 500px;
}

.team-row .team-department {
    flex: 1;
    min-height: 400px;
}

.team-row .team-department.single-department {
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0 auto;
}

.team-row .team-department.single-department .team-cards {
    display: flex;
    justify-content: center;
}

.team-department:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.team-department h2 {
    color: #1E2C75;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 3px solid #8BB4E0;
    padding-bottom: 15px;
}

.team-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.single-department .team-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member {
    width: 100%;
    max-width: 250px;
    max-width: 210px;
    height: 292px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(30, 44, 117, 0.2);
    border-color: #8BB4E0;
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 2px solid #8BB4E0;
    transition: border-color 0.3s ease;
}

.team-member:hover .team-photo {
    border-color: #1E2C75;
}

.team-member h3 {
    color: #1E2C75;
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.team-member h4 {
    color: #1E2C75;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-member h5 {
    color: #1E2C75;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.team-member p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 20px;
    font-style: italic;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-info span,
.contact-info a {
    color: #495057;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(139, 180, 224, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(139, 180, 224, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-info span:hover,
.contact-info a:hover {
    background: rgba(139, 180, 224, 0.2);
    border-color: #8BB4E0;
    color: #1E2C75;
    cursor: pointer;
}

.phone::before {
    content: "📞 ";
    margin-right: 5px;
}

.email::before {
    content: "📧 ";
    margin-right: 5px;
}

/* Responzívny dizajn */
@media (max-width: 1200px) {
    .team-row {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .team-row .team-department {
        max-width: 800px;
        width: 100%;
    }
    
    .team-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .team-member {
        max-width: 250px;
    }
    
    .team-layout-three-columns {
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .team-layout-three-columns {
        flex-direction: column;
        gap: 40px;
    }
    
    .team-layout-three-columns .team-department {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .team-layout {
        gap: 40px;
    }
    
    .team-department {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .team-row .team-department,
    .team-layout-three-columns .team-department {
        width: 100%;
        max-width: 100%;
    }
    
    .team-department h2 {
        font-size: 1.6rem;
    }
    
    .team-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-member {
        max-width: 85%;
        width: 85%;
    }
}

@media (max-width: 480px) {
    .team-main-section {
        padding: 40px 15px;
    }
    
    .team-department {
        padding: 25px 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .team-row .team-department,
    .team-layout-three-columns .team-department {
        width: 100%;
        max-width: 100%;
    }
    
    .team-department h2 {
        font-size: 1.4rem;
    }
    
    .team-cards {
        grid-template-columns: 1fr;
    }
    
    .team-member {
        max-width: 90%;
        width: 90%;
        padding: 15px 10px;
    }
    
    .team-photo {
        width: 90px;
        height: 90px;
    }
    
    .team-member h3 {
        font-size: 0.95rem;
    }
    
    .contact-info span {
        font-size: 0.65rem;
        padding: 3px 6px;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 390px) {
    .team-main-section {
        padding: 30px 12px;
    }
    
    .team-department {
        padding: 20px 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .team-row .team-department,
    .team-layout-three-columns .team-department {
        width: 100%;
        max-width: 100%;
    }
    
    .team-member {
        max-width: 92%;
        width: 92%;
        padding: 12px 8px;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .team-member h3 {
        font-size: 0.9rem;
    }
    
    .team-member h4 {
        font-size: 0.8rem;
    }
    
    .contact-info {
        gap: 6px;
    }
    
    .contact-info span {
        font-size: 0.58rem;
        padding: 2px 4px;
        word-break: break-all;
        overflow-wrap: anywhere;
        max-width: 100%;
    }
}

@media (max-width: 375px) {
    .team-main-section {
        padding: 25px 10px;
    }
    
    .team-department {
        padding: 18px 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .team-row .team-department,
    .team-layout-three-columns .team-department {
        width: 100%;
        max-width: 100%;
    }
    
    .team-member {
        max-width: 94%;
        width: 94%;
        padding: 10px 6px;
    }
    
    .team-photo {
        width: 75px;
        height: 75px;
    }
    
    .team-member h3 {
        font-size: 0.85rem;
    }
    
    .contact-info span {
        font-size: 0.55rem;
        padding: 2px 3px;
    }
}