/* ============================================
   IMPORT EXTERNAL STYLES (як в оригіналі)
   ============================================ */
@import "http://www.modernezdravotnictvo.sk/styles/container.css";
@import "http://www.modernezdravotnictvo.sk/styles/content.css";
@import "http://www.modernezdravotnictvo.sk/styles/helper.css";

/* ============================================
   ОРИГІНАЛЬНІ СТИЛІ З САЙТУ
   ============================================ */

/* --- Toplink (з styles-itf.css) --- */
.toplink-container {
    width: 100%;
    position: relative;
}

a.toplink {
    float: right;
    text-align: right;
    font-family: 'pt_sansregular', Arial, sans-serif;
    line-height: 40px;
    right: 0;
    position: absolute;
    display: block;
    text-decoration: none;
    color: #999;
}

a.toplink:hover {
    color: #3a93e5;
    text-decoration: underline;
}

/* --- Player --- */
#player {
    width: 100%;
}

/* --- Program clear --- */
.progclear {
    width: 100px;
    text-align: center;
    width: 100%;
    position: absolute;
    bottom: -60px;
}

/* --- Person info (з styles-itf.css) --- */
.person-info {
    /* height: 150px; - залишаємо як в оригіналі */
    background: #f5f5f5;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
    position: relative;
    z-index: 2;
    min-height: 90px;
}

/* --- Timeline detail (з styles-itf.css) --- */
ul.timeline-detail > li {
    min-height: 310px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* --- Second boxes --- */
.second-boxes {
    margin-top: 0;
    padding-top: 0;
}

/* --- Discussion block --- */
.discussion-block .timeline-container {
    width: 100%;
}

.discussion-block .timeline-container ul.timeline-detail > li {
    width: 100%;
}

/* ============================================
   ОСНОВНІ СТИЛІ (як в оригіналі)
   ============================================ */

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: 'open_sansregular', Arial, sans-serif;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    background: #fff;
}

a {
    color: #3a93e5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

.forceClear {
    clear: both;
    height: 0;
    font-size: 0;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.uppercase {
    text-transform: uppercase;
}

.align-center {
    text-align: center;
}

.w240 {
    width: 240px !important;
}

/* --- Header --- */
.header-banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.header-banner {
    position: relative;
    width: 100%;
    min-height: 520px;
}

.header-banner > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transp-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-top-transp {
    background: rgba(0, 0, 0, 0.7);
    height: 102px;
}

.header-top {
    position: relative;
    z-index: 10;
    height: 102px;
}

.fix-center {
    max-width: 1208px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo-datalan {
    float: left;
    margin-top: 42px;
}

.logo-datalan img {
    display: block;
}

.menu-search-box {
    float: right;
    margin-top: 40px;
}

.menu-nav {
    float: left;
}

.icon-menu {
    display: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.menu-container {
    float: left;
}

.menu-container > ul {
    list-style: none;
}

.menu-container > ul > li {
    float: left;
    margin-left: 20px;
}

.menu-container > ul > li > a {
    display: block;
    color: #fff;
    font-size: 15px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.menu-container > ul > li > a:hover {
    border-bottom-color: #ff9533;
    text-decoration: none;
}

.menu-container > ul > li > a.no-submenu {
    cursor: pointer;
}

/* --- Banner --- */
.banner-box {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 20px;
}

.banner-info-box {
    max-width: 1208px;
    margin: 0 auto;
}

.banner-info-box h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 10px;
}

.banner-info-box h1 span {
    color: #3a93e5;
}

.banner-info-box h2 {
    font-size: 28px;
    color: #fff;
    font-weight: normal;
}

.banner-info-box h2 span {
    color: #ff9533;
}

.event-banner-box .banner-info-box {
    margin-top: 2%;
}

/* --- Content --- */
.content-wrapper {
    width: 100%;
    clear: both;
}

.content-box {
    max-width: 1208px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-box.wider-box {
    max-width: 100%;
    padding: 40px 0;
}

.content-box-100-perc {
    width: 100%;
}

.content-wrapper h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 5px;
}

.content-wrapper p {
    margin: 20px 0;
    line-height: 26px;
}

.horiz-separator-line {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0 30px;
}

/* --- Columns --- */
.col-2-parag p {
    float: left;
    width: 48%;
    margin-right: 4%;
}

.col-2-parag p:last-child {
    margin-right: 0;
}

.col-3-box {
    float: left;
    width: 33.33%;
    padding-right: 30px;
    box-sizing: border-box;
}

.col-3-box.last-box {
    padding-right: 0;
}

.col-3-box h3 {
    font-size: 20px;
    color: #3a93e5;
    margin-bottom: 15px;
}

.col-3-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.col-3-boxes {
    margin: 30px 0;
}

.col-3-boxes.intend-lr {
    padding: 0 20px;
}

/* --- Spíkri (Спікери) --- */
.persons-list {
    list-style: none;
    margin: 0 -15px;
    padding: 15px 0 30px;
}

.persons-list li {
    float: left;
    width: 25%;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    position: relative;
}

.persons-list li img {
    display: block;
    width: 100%;
    border-radius: 8px 8px 0 0;
}

.speaker-name {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.speaker-position {
    display: block;
    font-size: 13px;
    color: #777;
    line-height: 1.3;
}

.person-info-detail {
    display: none;
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.person-info-detail.active-flap {
    display: block;
}

.person-info-detail .icon-flap {
    padding: 10px 0;
}

.close-area {
    display: block;
    text-align: right;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.close-area:hover {
    color: #333;
}

.person-info-detail p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.icon-flap:before,
.icon-flap:after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
}

/* --- Timeline (Програма) --- */
.timeline-wrapper {
    padding: 0 20px;
}

.timeline-tabs {
    list-style: none;
    position: relative;
}

.timeline-tabs.space-top-45 {
    margin-top: 45px !important;
}

.timeline-tabs > li {
    float: left;
    width: 33.33%;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 15px;
}

.timeline-topic {
    background: #f5f5f5;
    padding: 20px 30px;
    border-radius: 8px;
    min-height: 140px;
    border-left: 4px solid #3a93e5;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-topic:hover {
    background: #e8e8e8;
}

.timeline-topic.active-tab {
    background: #3a93e5;
    border-left-color: #2b7bc4;
}

.timeline-topic.active-tab h3,
.timeline-topic.active-tab p {
    color: #fff;
}

.timeline-topic h3 {
    font-size: 22px;
    color: #333;
    margin: 10px 0 5px;
}

.timeline-topic p {
    font-size: 14px;
    color: #777;
    margin: 5px 0;
}

.timeline-container {
    display: none;
    margin-top: 20px;
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e7e7e7;
    position: relative;
}

.timeline-tabs > li.active-tab .timeline-container {
    display: block;
}

.timeline-detail {
    list-style: none;
    padding: 0;
}

.timeline-detail > li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.timeline-detail > li:last-child {
    border-bottom: 0;
}

.time-info {
    float: left;
    background: #3a93e5;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
}

.timeline-detail h4 {
    font-size: 14px;
    color: #ff9533;
    margin-bottom: 5px;
}

.author-info {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.timeline-detail p {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

.timeline-y-axis-container {
    display: none;
}

/* --- Galéria --- */
.gallery-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 20px 35px;
}

.gallery-container {
    overflow: hidden;
}

.gallery-container > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
}

.gallery-container > ul > li {
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

.gallery-container > ul > li img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.gal-nav {
    text-align: center;
    margin-top: 20px;
}

.gal-nav-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #3a93e5;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    font-size: 0;
    transition: all 0.3s;
}

.gal-nav-btn:hover {
    background: #2b7bc4;
}

.gal-nav-btn.disabled-gal-nav-btn {
    opacity: 0.3;
    cursor: default;
}

.gal-nav-btn.gal-nav-prev:before {
    content: "‹";
    font-size: 30px;
}

.gal-nav-btn.gal-nav-next:before {
    content: "›";
    font-size: 30px;
}

/* --- References slider --- */
.references-slider .gallery-container > ul > li {
    padding: 0 50px 20px !important;
}

.references-slider .gallery-container > ul > li p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.ref-author-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ref-author-txt .author-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.ref-author-txt .author-job {
    color: #777;
    font-size: 14px;
}

/* --- Scroll gallery --- */
.scroll-gallery {
    padding: 0 20px;
}

.scroll-pane {
    overflow: hidden;
    position: relative;
}

.scroll-content {
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
}

.scroll-content-item {
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

.scroll-content-item img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.scroll-bar-wrap {
    margin-top: 15px;
    text-align: center;
}

.scroll-bar {
    display: inline-block;
    height: 6px;
    background: #3a93e5;
    border-radius: 3px;
    transition: width 0.3s;
}

/* --- Partneri --- */
.partenrs-list {
    list-style: none;
    margin: 35px -15px;
    padding: 0;
}

.partenrs-list li {
    float: left;
    width: 16.66%;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 30px;
}

.partenrs-list li img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partenrs-list li img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* --- Kontakt --- */
.map-container {
    margin: 30px 0 40px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

.contact-wrapper {
    list-style: none;
    margin: 40px 0;
}

.contact-wrapper > li {
    float: left;
    width: 33.33%;
    padding-right: 30px;
    box-sizing: border-box;
    line-height: 30px;
}

.contact-wrapper h3 {
    font-size: 18px;
    color: #3a93e5;
    margin-bottom: 10px;
}

.contact-data {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    background: #222;
    color: #999;
    padding: 20px 0;
    clear: both;
}

footer .content-box {
    padding: 0 20px;
}

.footer-right {
    float: right;
    font-size: 13px;
}

/* --- Кольорові блоки --- */
.bg-eaeaea {
    background: #eaeaea;
}

.bg-eaeaea .content-box {
    padding-top: 42px;
    padding-bottom: 28px;
}

.bg-3a93e5 {
    background: #3a93e5;
}

.bg-3a93e5 h2 {
    color: #fff !important;
}

.bg-3a93e5 .content-box-center {
    padding: 35px 20px;
    color: #fff;
}

.bg-3a93e5 .btn-trans {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: bold;
}

.bg-3a93e5 .btn-trans:hover {
    background: #fff;
    color: #3a93e5;
    text-decoration: none;
}

.bg-blue-grad {
    background: linear-gradient(to right, #1a5e9c, #3a93e5);
    color: #fff;
}

.bg-blue-grad h2 {
    color: #fff !important;
}

.bg-blue-grad .content-box {
    margin: 0;
}

/* --- Buttons --- */
.btn-blue {
    display: inline-block;
    background: #3a93e5;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-blue:hover {
    background: #2b7bc4;
    color: #fff;
    text-decoration: none;
}

.btn-blue.w240 {
    min-width: 240px;
}

.btn-trans {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid #3a93e5;
    color: #3a93e5;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: bold;
    background: transparent;
}

.btn-trans:hover {
    background: #3a93e5;
    color: #fff;
    text-decoration: none;
}

.dolnyreg {
    padding: 30px 0;
}

.dolnyreg .content-box-center {
    max-width: 1208px;
    margin: 0 auto;
    text-align: center;
}

/* --- Інші елементи --- */
.trans-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.trans-overlay.active {
    display: block;
}

.fix-space-btm {
    margin-bottom: 0 !important;
}

.intend-lr {
    padding: 0 20px;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

/* ============================================
   АДАПТИВНІСТЬ (як в оригіналі)
   ============================================ */

/* --- Mobile devices (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    ul.timeline-detail li {
        min-height: 0;
    }
    
    .persons-list li {
        width: 50%;
    }
    
    .partenrs-list li {
        width: 33.33%;
    }
    
    .col-3-box {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .col-2-parag p {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    
    .timeline-tabs > li {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .contact-wrapper > li {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .banner-info-box h1 {
        font-size: 28px !important;
    }
    
    .banner-info-box h2 {
        font-size: 20px !important;
    }
    
    .header-top {
        height: 70px;
    }
    
    .logo-datalan {
        margin-top: 25px;
    }
    
    .logo-datalan img {
        height: 14px;
        width: auto;
    }
    
    .menu-search-box {
        margin-top: 22px;
    }
    
    .icon-menu {
        display: block;
    }
    
    .menu-container {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        z-index: 100;
    }
    
    .menu-container > ul > li {
        float: none;
        margin-left: 0;
        border-bottom: 1px solid #444;
    }
    
    .menu-container > ul > li > a {
        padding: 12px 0;
        font-size: 16px;
    }
    
    .header-banner {
        min-height: 300px;
    }
    
    .banner-box {
        bottom: 20px;
    }
    
    .footer-right {
        float: none;
        text-align: center;
        display: block;
        margin-top: 10px;
    }
    
    .references-slider .gallery-container > ul > li {
        padding: 0 20px 20px !important;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .mobile {
        display: block;
    }
    
    .desktop {
        display: none;
    }
}

/* --- Tablets (768px - 1024px) --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .persons-list li {
        width: 33.33%;
    }
    
    .partenrs-list li {
        width: 25%;
    }
    
    .timeline-tabs > li {
        width: 50%;
        padding: 0 10px;
    }
    
    .timeline-tabs > li:nth-child(3) {
        clear: both;
        width: 100%;
        padding: 0;
    }
    
    .col-3-box {
        width: 50%;
        padding-right: 20px;
    }
    
    .col-3-box.last-box {
        width: 100%;
        padding-right: 0;
    }
    
    .banner-info-box h1 {
        font-size: 32px !important;
    }
    
    .banner-info-box h2 {
        font-size: 24px !important;
    }
}

/* --- Small desktops (1024px - 1280px) --- */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .persons-list li {
        width: 25%;
    }
    
    .partenrs-list li {
        width: 20%;
    }
    
    .timeline-tabs > li {
        width: 33.33%;
        padding: 0 10px;
    }
    
    .references-slider .gallery-container > ul > li {
        padding: 0 80px 20px !important;
    }
}

/* --- Large desktops (1280px+) --- */
@media screen and (min-width: 1280px) {
    .persons-list li {
        width: 25%;
    }
    
    .partenrs-list li {
        width: 16.66%;
    }
    
    .references-slider .gallery-container > ul > li {
        padding: 0 150px 20px !important;
    }
}

/* --- Extra large (1440px+) --- */
@media screen and (min-width: 1440px) {
    .event-banner-box .banner-info-box {
        margin-top: 0;
    }
    
    .event-banner-box h1 {
        margin-top: 75px;
    }
    
    .references-slider .gallery-container > ul > li {
        padding: 0 200px 20px !important;
    }
}

/* --- Mobile landscape (480px - 768px) --- */
@media screen and (min-width: 480px) and (max-width: 768px) {
    .persons-list li {
        width: 50%;
    }
    
    .partenrs-list li {
        width: 33.33%;
    }
    
    .col-3-box {
        width: 50%;
        padding-right: 20px;
    }
    
    .col-3-box.last-box {
        width: 100%;
        padding-right: 0;
    }
    
    .contact-wrapper > li {
        width: 50%;
    }
    
    .banner-info-box h1 {
        font-size: 28px !important;
    }
    
    .banner-info-box h2 {
        font-size: 20px !important;
    }
}

/* --- IE fixes --- */
.ie8 .col-3-box,
.ie8 .col-2-parag p,
.ie8 .persons-list li,
.ie8 .partenrs-list li,
.ie8 .contact-wrapper > li {
    float: left;
}

.ie8 .clearfix {
    zoom: 1;
}

/* --- Print styles --- */
@media print {
    .header-banner-container,
    .menu-nav,
    .toplink-container,
    .gal-nav,
    footer {
        display: none !important;
    }
    
    .content-box {
        padding: 20px !important;
    }
    
    .banner-box {
        position: static;
        padding: 20px !important;
    }
    
    .banner-info-box h1 {
        color: #333 !important;
        font-size: 28px !important;
    }
    
    .banner-info-box h2 {
        color: #555 !important;
        font-size: 20px !important;
    }
    
    a {
        color: #000 !important;
    }
}