/* ZdraveKraka — Medical Blue Theme */
:root {
    --blue: #1565C0; --blue-dark: #0D47A1; --blue-light: #E3F2FD; --blue-soft: #90CAF9;
    --blue-accent: #1E88E5; --teal: #00897B; --teal-light: #E0F2F1;
    --white: #fff; --gray-50: #FAFAFA; --gray-100: #F5F5F5; --gray-200: #EEE; --gray-300: #E0E0E0;
    --gray-400: #BDBDBD; --gray-500: #9E9E9E; --gray-600: #757575; --gray-700: #616161; --gray-800: #424242; --gray-900: #212121;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08); --shadow-md: 0 4px 12px rgba(0,0,0,0.1); --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
    --transition: 0.25s ease;
    --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1100px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--gray-800); background: var(--gray-50); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
h1,h2,h3,h4 { color: var(--gray-900); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.25rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Medical Banner */
.medical-banner { background: var(--blue-light); color: var(--blue-dark); text-align: center; padding: 8px 20px; font-size: 0.82rem; font-weight: 600; border-bottom: 2px solid var(--blue-soft); }
.medical-banner span { margin-right: 4px; }

/* Navbar */
.navbar { background: var(--white); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--gray-200); transition: box-shadow var(--transition); height: 64px; }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; color: var(--blue-dark); white-space: nowrap; }
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--blue-accent); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; color: var(--gray-700); transition: all var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { background: var(--blue-light); color: var(--blue-dark); }
.nav-search input { padding: 7px 14px; border: 1px solid var(--gray-300); border-radius: 20px; font-size: 0.85rem; width: 160px; transition: all var(--transition); outline: none; font-family: var(--font); }
.nav-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.15); width: 200px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-700); padding: 8px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 50%, #0A3D91 100%); color: var(--white); padding: 60px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* Sections */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { color: var(--gray-600); }
.section-blue { background: var(--blue-light); }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.article-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--gray-200); transition: all var(--transition); overflow: hidden; }
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--blue-soft); }
.article-card-body { padding: 20px; }
.article-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.article-card-body h3 a { color: var(--gray-900); }
.article-card-body h3 a:hover { color: var(--blue); }
.article-card-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }
.category-badge { display: inline-block; background: var(--blue-light); color: var(--blue-dark); padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; }
.excerpt { color: var(--gray-600); font-size: 0.92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Category Card */
.cat-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; text-align: center; border: 1px solid var(--gray-200); transition: all var(--transition); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-soft); }
.cat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.cat-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cat-card p { font-size: 0.85rem; color: var(--gray-600); }

/* Article page */
.article-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); padding: 40px 0; }
.article-hero h1 { color: var(--white); font-size: 2rem; max-width: 800px; margin: 0 auto; }
.article-content { background: var(--white); padding: 40px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); margin-top: -20px; position: relative; z-index: 1; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.85; font-size: 1.05rem; }
.article-content h2 { margin: 30px 0 14px; color: var(--blue-dark); font-size: 1.45rem; border-bottom: 2px solid var(--blue-light); padding-bottom: 8px; }
.article-content h3 { margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 14px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; list-style: disc; }
.article-content a { color: var(--blue); font-weight: 500; }

/* FAQ */
.faq-section { margin-top: 30px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-q { padding: 14px 18px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--gray-50); }
.faq-q:hover { background: var(--blue-light); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: all 0.3s; }
.faq-a.open { padding: 14px 18px; max-height: 500px; }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: 0.85rem; color: var(--gray-500); }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--blue); }

/* Sidebar */
.page-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start; }
.sidebar-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; }
.sidebar-box h4 { margin-bottom: 10px; font-size: 0.95rem; }

/* Disclaimer */
.disclaimer-box { background: var(--teal-light); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; font-size: 0.88rem; color: #004D40; line-height: 1.6; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); padding: 40px 0; text-align: center; }
.newsletter h2 { color: var(--white); margin-bottom: 8px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 16px auto 0; }
.newsletter-form input { flex: 1; padding: 10px 16px; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); }
.newsletter-form button { padding: 10px 20px; background: var(--white); color: var(--blue-dark); border: none; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-family: var(--font); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; border: 1px solid var(--gray-300); color: var(--gray-700); }
.pagination a:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; border: none; cursor: pointer; transition: all var(--transition); font-family: var(--font); text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue-dark); }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer h3, .footer h4 { color: var(--white); margin-bottom: 12px; }
.footer ul li { margin-bottom: 6px; }
.footer ul a { color: var(--gray-400); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer-medical { margin-top: 10px; font-size: 0.78rem; color: var(--blue-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 0.82rem; }
.footer-disclaimer { color: var(--blue-soft); font-size: 0.78rem; margin-top: 4px; }

/* 404 */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 h1 { font-size: 5rem; color: var(--blue); }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.6rem; } .hero { padding: 35px 0; } .hero h1 { font-size: 1.9rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-content { padding: 20px; }
    .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); z-index: 999; }
    .nav-links.open { display: flex; }
    .nav-search { display: none; }
    .nav-toggle { display: block; }
}
