/* ==========================================================================
   OK Engine - Medical Theme Consolidated Styles (Smaller Typography)
   ========================================================================== */

/* --- 1. Base & Typography --- */
body { 
    font-family: 'Noto Sans Georgian', sans-serif !important; 
    font-size: 0.95rem; 
    padding-top: 70px; /* საბაზისო დაშორება ჰედერისთვის */
    margin: 0;
}

/* --- 2. Header & Navigation --- */
header.ok-navbar {
    position: fixed !important;
    top: 0; left: 0; width: 100%; z-index: 2000 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    height: 70px;
    display: flex;
    align-items: center;
}

/* Logo & Branding */
.ok-logo { 
    max-height: 45px; 
    width: auto; 
}
.brand-text-wrapper { line-height: 1.2; }
.site-title-text { 
    font-size: 1.1rem; 
    display: block; 
}
.site-tagline-text { 
    font-size: 0.7rem; 
    display: block; 
    opacity: 0.7; 
}

/* Navigation Links & Colors */
header .site-title-text, .navbar .site-title-text { color: #333333 !important; }

header .nav-link, .navbar .nav-link { 
    color: #333333 !important; 
    font-size: 0.85rem !important; 
    font-weight: 500; 
}
.nav-link.active { color: #0d6efd !important; font-weight: 700; }

/* Dropdown Styles */
.dropdown-menu { 
    border: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border-radius: 12px; padding: 10px; margin-top: 10px !important; 
    font-size: 0.85rem; 
}
.dropdown-item { border-radius: 8px; padding: 6px 12px; transition: all 0.2s ease; }
.dropdown-item:hover { background-color: rgba(13, 110, 253, 0.05); color: #0d6efd; transform: translateX(3px); }

/* --- 2.1 Burger Menu (Mobile Navigation) - იდეალური ანიმაცია --- */
.navbar-toggler {
    border: none !important;
    padding: 0;
    width: 35px;
    height: 35px;
    position: relative;
    background: transparent !important;
}

.navbar-toggler:focus, .navbar-toggler:active { 
    box-shadow: none !important; 
    outline: none !important;
}

.navbar-toggler span {
    display: block;
    position: absolute;
    width: 26px;
    height: 2px;
    background-color: #0d6efd;
    border-radius: 2px;
    left: 4.5px;
    transform: rotate(0deg) scale(1);
    transition: top 0.3s ease-in-out, transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* საწყისი პოზიციები (დახურული მენიუ) */
.navbar-toggler span:nth-child(1) { top: 9px; }
.navbar-toggler span:nth-child(2) { top: 16px; opacity: 1; }
.navbar-toggler span:nth-child(3) { top: 23px; }

/* ანიმაცია გახსნისას (X ფორმა - დაფუძნებული aria-expanded-ზე) */
.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    top: 16px;
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        padding: 15px 20px 25px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.12);
        border-top: 1px solid #f1f1f1;
        border-bottom: 3px solid #0d6efd;
        z-index: 1050;
    }
    .nav-item { border-bottom: 1px solid #f8f9fa; }
    .nav-link { padding: 12px 0 !important; font-size: 1rem !important; }
}

/* --- 3. Medical Ribbon (ორდენი) --- */
.hero-ribbon-container { position: absolute; top: 0; left: 280px; z-index: 1500; }
.medical-ribbon {
    width: 100px;
    background: #003a70; color: #fff;
    padding: 110px 10px 60px; 
    text-align: center; position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 92%, 0 100%);
}
.ribbon-number { font-size: 1.8rem; font-weight: 800; line-height: 1; display: block; }
.ribbon-text { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; margin-top: 6px; line-height: 1.2; }

/* --- 4. Hero Section & Typography --- */
.hero-section {
    position: fixed !important; top: 0; left: 0; width: 100%; height: 100vh !important; z-index: 0;
    background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(5,18,35,.62) 0%, rgba(5,18,35,.72) 70%, rgba(5,18,35,.78) 100%); }

.hero-title { 
    margin: 0 0 12px; font-weight: 700; line-height: 1.25; color: #fff; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    font-size: 1.5rem !important;
}
.hero-desc { 
    margin: 0 auto 20px; max-width: 650px; color: rgba(255,255,255,.95); 
    font-size: 0.95rem !important; line-height: 1.6;
}
.hero-actions .btn, .hero-desktop .btn {
    font-size: 0.85rem !important; padding: 10px 24px !important; font-weight: 600;
}

/* --- 5. Layouts & Wrappers --- */
.site-content-wrapper { position: relative; z-index: 100; margin-top: 100vh; background: #fff; box-shadow: 0 -10px 30px rgba(0,0,0,0.1); padding-top: 20px; overflow-x: hidden; }
.hero-mobile { position: relative; z-index: 3; display: grid; place-items: center; padding: 20px 0; height: 100vh; }
.hero-mobile .hero-content { width: 100%; max-width: 820px; text-align: center; color: #fff; }
.hero-doctor-mobile { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; width: auto; max-width: min(560px, 92vw); max-height: 92%; object-fit: contain; pointer-events: none; }
.hero-desktop { position: relative; z-index: 3; height: 100vh; }
.doctor-img { filter: drop-shadow(0 22px 50px rgba(0,0,0,.22)); max-height: 90vh; }

/* --- 6. Components (Video & Blog) --- */
.dark-text-section { position: relative; background: #ffffff !important; color: #111111 !important; }
.dark-text-section h1, .dark-text-section h2, .dark-text-section h3, 
.dark-text-section p, .dark-text-section span { color: #111111 !important; opacity: 1 !important; }

.video-parallax-full { position: relative; height: 70vh; min-height: 400px; overflow: hidden; background: #000; }
.video-parallax-full iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }

.blog-card { border-radius: 20px; overflow: hidden; transition: 0.3s; }
.hover-up:hover { transform: translateY(-8px); }

/* --- 7. Responsive Media Queries --- */
@media (min-width: 768px) {
    .hero-title { font-size: 1.85rem !important; }
}
@media (min-width: 992px) { 
    .hero-mobile, .hero-doctor-mobile { display: none; } 
    .hero-desktop { display: block; } 
}
@media (min-width: 1024px) {
    .hero-title { font-size: 2.4rem !important; }
}
@media (max-width: 991.98px) { 
    body { padding-top: 60px; } 
    header.ok-navbar { height: 60px; } 
    .post-hero-fixed { top: 60px; height: 40vh; } 
    .main-scroll-container { margin-top: calc(60px + 40vh); }
    .hero-desktop { display: none; } 
    .hero-mobile { display: grid; } 
    .hero-doctor-mobile { display: block; } 
    
    .hero-ribbon-container { left: 15px; transform: none; }
    .medical-ribbon { width: 85px; padding: 90px 5px 40px; } 
    .ribbon-number { font-size: 1.5rem; } 
    .ribbon-text { font-size: 0.6rem; } 

    .hero-mobile .hero-content { padding-top: 250px !important; }
}

/* ==========================================================================
   OK Engine - Unified Compact & Centered Hero Styles
   ========================================================================== */

.post-hero-fixed { 
    position: fixed; 
    top: 70px; 
    left: 0; 
    width: 100%; 
    height: 45vh; 
    z-index: 1; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
}

.post-hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.85)); 
    z-index: 2; 
}

.post-hero-content { 
    position: relative; 
    z-index: 3; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    padding-bottom: 25px; 
}

.hero-text-container { 
    width: 100%; 
    max-width: 900px; 
    padding: 0 24px; 
    color: #fff; 
    text-align: center; 
}

.post-title-main { 
    font-size: clamp(1.4rem, 4vw, 2.2rem); 
    margin: 0 0 8px 0; 
    font-weight: 800; 
    line-height: 1.1 !important; 
    color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.4); 
}

.post-meta-row { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
    margin-top: 10px; 
    font-size: 0.8rem; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    padding-top: 10px; 
    color: #fff; 
}

.post-category-db a { 
    font-weight: 700; 
    color: #ffffff; 
    text-transform: uppercase; 
    text-decoration: none !important; 
}

.post-author-db, .post-date-db { 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

/* 🎯 ფიქსი: კონტენტის სქროლის ზონა და სიმაღლის ბალანსი */
.main-scroll-container { 
    position: relative; 
    z-index: 10; 
    margin-top: 45vh; 
    min-height: 55vh; 
    background: #fff; 
    box-shadow: 0 -15px 50px rgba(0,0,0,0.08); 
    padding-bottom: 20px; 
}

.content-limit-wrapper { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 30px 24px; 
}

.blog-post-content { 
    font-size: 0.95rem; 
    color: #334155; 
    line-height: 1.45 !important; 
}

.blog-post-content p { 
    margin-bottom: 0.8rem !important; 
    text-indent: 1.2rem; 
    text-align: justify; 
}

/* --- Page Hero & Layout Styles --- */
.page-hero { 
    height: 45vh; 
    width: 100%; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    justify-content: center; 
    margin-bottom: 0; 
}

.page-hero-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.85)); 
    z-index: 1; 
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 24px 30px 24px; 
    text-align: center; 
}

.hero-title { 
    color: #fff; 
    text-shadow: 0 2px 12px rgba(0,0,0,0.5); 
    font-weight: 800; 
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin: 0;
    line-height: 1.2;
}

/* --- News Cards & Excerpt Styles --- */
.section-title { 
    font-weight: 800; 
    color: #2c3e50; 
    margin-bottom: 1rem; 
    position: relative; 
    display: inline-block; 
}

.news-card { 
    border-radius: 15px; 
    background: #fff; 
    overflow: hidden; 
    transition: transform 0.2s; 
    border: 1px solid rgba(0,0,0,0.05); 
}

.news-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.news-img { 
    height: 220px; 
    width: 100%; 
    object-fit: cover; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    display: block; 
}

.news-link { 
    color: #2c3e50; 
    text-decoration: none; 
    font-weight: 700; 
    transition: color 0.2s; 
}

.news-link:hover { 
    color: #0d6efd; 
}

.news-excerpt { 
    color: #666; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 🎯 ფიქსი: ფუთერის უსაფრთხოების ზონა */
footer, .site-footer {
    position: relative;
    z-index: 20; 
    background-color: #ffffff; 
}