/* PozdraVer Modern Theme — isolated visual layer for PHP-Fusion Gretta */
:root {
    --pv-bg: #f4f6fa;
    --pv-surface: #ffffff;
    --pv-surface-soft: #f8f9fc;
    --pv-text: #253047;
    --pv-muted: #748096;
    --pv-line: #e7eaf1;
    --pv-primary: #4268c5;
    --pv-primary-dark: #3153a8;
    --pv-accent: #e98b80;
    --pv-accent-soft: #fff2ef;
    --pv-radius: 18px;
    --pv-shadow: 0 12px 34px rgba(34, 52, 84, .065);
}

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--pv-bg) !important;
    background-image: none !important;
    color: var(--pv-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body *, body *::before, body *::after { box-sizing: border-box; }
body a { color: var(--pv-primary); text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
body a:hover { color: var(--pv-primary-dark); text-decoration: none; }
img { max-width: 100%; }

/* Header */
.pv-header { position: relative; z-index: 20; width: 100%; height: auto !important; margin: 0 !important; padding: 0; background: var(--pv-surface); border-bottom: 1px solid var(--pv-line); }
.pv-header-inner { width: min(1280px, calc(100% - 48px)); min-height: 106px; margin: 0 auto; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pv-brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; color: var(--pv-text) !important; }
.pv-brand:hover { color: var(--pv-text) !important; }
.pv-brand-mark { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #5c7ed4, #3458b0); color: #fff; font-size: 28px; font-weight: 850; letter-spacing: -2px; box-shadow: 0 8px 20px rgba(66, 104, 197, .2); }
.pv-brand-mark span { color: #ffc4b9; }
.pv-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.pv-brand-name { color: #202b40; font-size: 29px; font-weight: 820; letter-spacing: -.9px; }
.pv-brand-tagline { margin-top: 5px; color: var(--pv-muted); font-size: 12px; letter-spacing: .05px; }
.pv-header-message { color: #8a94a5; font-size: 13px; font-weight: 550; }

.pv-primary-nav { width: 100%; background: #fff; border-top: 1px solid #f0f2f6; }
.pv-primary-nav-inner { width: min(1280px, calc(100% - 48px)); min-height: 56px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
body .pv-primary-nav a.pv-nav-link { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 13px; border: 0; border-radius: 10px; background: transparent; color: #536176; font-size: 14px; font-weight: 650; line-height: 1.3; white-space: nowrap; text-shadow: none; }
body .pv-primary-nav a.pv-nav-link:hover { background: #f2f5fc; color: var(--pv-primary-dark); }
body .pv-primary-nav a.pv-nav-home { background: #f0f4ff; color: var(--pv-primary-dark); }

.pv-category-nav { background: #f9faff; border-top: 1px solid #f0f2f6; border-bottom: 1px solid var(--pv-line); }
.pv-category-nav-inner { width: min(1280px, calc(100% - 48px)); min-height: 48px; margin: 0 auto; padding: 8px 0; display: flex; align-items: flex-start; gap: 13px; }
.pv-category-label { flex: 0 0 auto; padding: 5px 0; color: #8993a5; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.pv-category-links { min-width: 0; display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
body .pv-category-links a.pv-category-link { display: inline-flex; align-items: center; min-height: 29px; padding: 4px 10px; border: 1px solid transparent; border-radius: 20px; background: #fff; color: #68758a; font-size: 12px; font-weight: 550; line-height: 1.3; white-space: nowrap; }
body .pv-category-links a.pv-category-link:hover { border-color: #dce5fb; background: #f0f4ff; color: var(--pv-primary-dark); }

/* Main content and sidebar layout */
.pv-site-shell { min-height: 55vh; padding: 34px 0 52px; }
.pv-site-container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.pv-site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; align-items: start; gap: 28px; }
.pv-main-content { min-width: 0; padding: 30px; border: 1px solid var(--pv-line); border-radius: var(--pv-radius); background: var(--pv-surface); box-shadow: var(--pv-shadow); }
.pv-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pv-main-content h1, .pv-main-content h2, .pv-main-content h3, .pv-main-content h4, .pv-sidebar h1, .pv-sidebar h2, .pv-sidebar h3, .pv-sidebar h4 { display: block; color: #26334a; font-family: inherit; font-weight: 750; line-height: 1.3; letter-spacing: -.3px; }
.pv-main-content h1 { margin: 0 0 22px; font-size: clamp(27px, 3vw, 36px); }
.pv-main-content h2 { margin: 27px 0 14px; font-size: clamp(21px, 2.2vw, 26px); }
.pv-main-content h3 { margin: 21px 0 12px; font-size: 20px; }
.pv-main-content p { margin: 0 0 16px; color: #4b586c; line-height: 1.8; }
.pv-main-content ul, .pv-main-content ol { margin: 12px 0 20px; padding-left: 25px; }
.pv-main-content li { margin-bottom: 7px; }
.pv-main-content img { max-width: 100%; height: auto; border-radius: 12px; }
.pv-main-content table { width: 100%; margin: 18px 0; border-collapse: collapse; }
.pv-main-content th, .pv-main-content td { padding: 11px 13px; border: 1px solid var(--pv-line); }
.pv-main-content th { background: #f6f8fc; font-weight: 700; }
.pv-main-content blockquote { margin: 20px 0; padding: 15px 19px; border-left: 3px solid var(--pv-accent); border-radius: 0 12px 12px 0; background: var(--pv-accent-soft); color: #596477; }

/* Legacy PHP-Fusion content panels */
.pv-main-content .question, .pv-main-content .main-border { margin: 0 0 22px !important; padding: 20px; border: 1px solid var(--pv-line); border-radius: 15px; background: #fff; color: #4b586c; box-shadow: var(--pv-shadow); }
.pv-main-content .question > h2 { display: block; margin: 0 0 14px; color: #26334a; font-size: 21px; font-weight: 750; }
.pv-main-content .question-inner, .pv-main-content .question-desc { color: #4b586c; }

/* Homepage news cards */
.pv-main-content .homepage-news { display: block; }
.pv-main-content .news-item { margin: 0 0 22px !important; padding: 22px; border: 1px solid var(--pv-line); border-radius: 16px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.pv-main-content .news-item:hover { border-color: #d7e0f5; box-shadow: 0 9px 25px rgba(35, 57, 99, .06); }
.pv-main-content .news-item h2 { margin: 0 0 9px !important; font-size: 21px; line-height: 1.35; }
.pv-main-content .news-item h2 a { color: #26334a; }
.pv-main-content .news-item h2 a:hover { color: var(--pv-primary); }
.pv-main-content .news-meta { margin-bottom: 13px !important; color: #8994a6; font-size: 12px !important; }
.pv-main-content .news-preview { display: flex !important; align-items: flex-start; gap: 18px !important; }
.pv-main-content .news-preview-image { flex: 0 0 34% !important; max-width: 34% !important; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #f0f3f8; }
.pv-main-content .news-preview-image img, .pv-main-content .news-preview-image img.news-category { display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: cover; border-radius: 12px; }
.pv-main-content .news-preview-text { flex: 1 1 0 !important; min-width: 0; }
.pv-main-content .news-preview-text .text { color: #596579; line-height: 1.75; }
.pv-main-content .news-preview-text a b { display: inline-flex; align-items: center; margin-top: 5px; color: var(--pv-primary); font-size: 14px; }
.pv-main-content .homepage-news-pagination { padding: 16px 10px; color: var(--pv-muted); text-align: center; }
.pv-main-content .homepage-news-pagination a { display: inline-block; padding: 7px 12px; border-radius: 8px; background: #f0f4ff; }

/* Sidebar cards, tools and forms */
.pv-sidebar .card, .pv-sidebar .widget, .pv-sidebar .question { margin: 0 0 2px !important; overflow: hidden; border: 1px solid var(--pv-line) !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 8px 25px rgba(34, 52, 84, .045); }
.pv-sidebar .card-header, .pv-sidebar .widget_title { display: block; margin: 0; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--pv-line); border-radius: 0; background: #fff; color: #2b3850; font-size: 16px; font-weight: 750; line-height: 1.4; }
.pv-sidebar .card-body, .pv-sidebar .widget_body { padding: 18px; }
.pv-sidebar .simple-body { padding: 12px 16px; color: #526077; background: #fff; }
.pv-sidebar p { color: #667287; font-size: 14px; line-height: 1.65; }
.pv-sidebar label { display: inline-block; margin-bottom: 6px; color: #526077; font-size: 13px; font-weight: 650; }
.pv-sidebar .form-control, .pv-sidebar select, .pv-sidebar input[type="text"], .pv-sidebar input[type="number"] { width: 100%; min-height: 43px; padding: 9px 12px; border: 1px solid #dfe5ef; border-radius: 9px; background: #fff; color: var(--pv-text); font: inherit; font-size: 14px; box-shadow: none; }
.pv-sidebar .form-control:focus, .pv-sidebar select:focus, .pv-sidebar input:focus { border-color: #9db3ec; outline: 0; box-shadow: 0 0 0 3px rgba(66, 104, 197, .1); }
.pv-sidebar .btn, .pv-sidebar button[type="submit"] { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--pv-primary); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.pv-sidebar .btn:hover, .pv-sidebar button[type="submit"]:hover { background: var(--pv-primary-dark); color: #fff; }
.pv-sidebar .list-group { margin: 0; padding: 8px; }
.pv-sidebar .list-group-item { display: block; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #526077; font-size: 13px; line-height: 1.45; }
.pv-sidebar .list-group-item:hover { background: #f3f6fc; color: var(--pv-primary-dark); }
.pv-sidebar .list-group-item + .list-group-item { border-top: 0; }
.pv-sidebar .collapse .list-group-item { padding-left: 25px; color: #718096; }
.pv-sidebar #result { min-height: 54px; border: 1px solid var(--pv-line) !important; border-radius: 10px !important; color: #4b586c; font-size: 14px; }
.pv-sidebar .badge { margin: 3px 4px 3px 0; padding: 6px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Forms and legacy elements in main content */
.pv-main-content input[type="text"], .pv-main-content input[type="search"], .pv-main-content input[type="email"], .pv-main-content input[type="password"], .pv-main-content select, .pv-main-content textarea { max-width: 100%; padding: 10px 12px; border: 1px solid #dfe5ef; border-radius: 9px; background: #fff; color: var(--pv-text); }
.pv-main-content input[type="submit"], .pv-main-content button, .pv-main-content .button, .pv-main-content .buttong { min-height: 40px; padding: 9px 15px; border: 0; border-radius: 9px; background: var(--pv-primary); color: #fff; font-weight: 650; cursor: pointer; }
.pv-main-content input[type="submit"]:hover, .pv-main-content button:hover, .pv-main-content .button:hover, .pv-main-content .buttong:hover { background: var(--pv-primary-dark); color: #fff; }
.pv-main-content .breadcrumbs { height: auto; margin: 0 0 18px; color: #8994a6; font-size: 13px; line-height: 1.6; }

/* Footer */
.pv-footer { padding: 34px 24px 28px; border-top: 1px solid var(--pv-line); background: #fff; text-align: center; }
.pv-footer-inner { max-width: 1280px; margin: 0 auto; }
.pv-footer-brand { display: inline-block; color: #26334a !important; font-size: 22px; font-weight: 820; letter-spacing: -.5px; }
.pv-footer-brand span { color: var(--pv-accent); }
.pv-footer p { margin: 7px 0 13px; color: #8994a6; font-size: 13px; }
.pv-footer-copy { color: #9aa4b3; font-size: 12px; }
.pv-footer-copy a { color: #68758a; font-weight: 650; }

/* Bootstrap compatibility: neutralise old fixed-width containers only inside new shell */
.pv-site-shell .container-fluid { width: 100%; max-width: 100%; padding-right: 0; padding-left: 0; }
.pv-site-shell .row { min-width: 0; }
.pv-site-shell .col-md-9, .pv-site-shell .col-md-3 { min-width: 0; }

@media (max-width: 1100px) {
    .pv-site-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
    .pv-main-content { padding: 24px; }
    .pv-header-inner, .pv-primary-nav-inner, .pv-category-nav-inner { width: min(100% - 36px, 1280px); }
}
@media (max-width: 850px) {
    .pv-header-inner { min-height: 88px; }
    .pv-header-message { display: none; }
    .pv-site-layout { grid-template-columns: minmax(0, 1fr); }
    .pv-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .pv-sidebar > * { min-width: 0; }
    .pv-category-nav-inner { align-items: flex-start; }
}
@media (max-width: 620px) {
    .pv-header-inner { width: calc(100% - 30px); min-height: 78px; padding: 13px 0; }
    .pv-brand-mark { width: 43px; height: 43px; flex-basis: 43px; border-radius: 13px; font-size: 24px; }
    .pv-brand-name { font-size: 24px; }
    .pv-brand-tagline { max-width: 230px; font-size: 10px; }
    .pv-primary-nav-inner { width: 100%; min-height: 48px; padding: 5px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
    body .pv-primary-nav a.pv-nav-link { min-height: 36px; padding: 7px 10px; font-size: 12px; }
    .pv-category-nav-inner { width: 100%; padding: 8px 12px; display: block; }
    .pv-category-label { display: block; padding: 0 0 6px; }
    .pv-category-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
    body .pv-category-links a.pv-category-link { flex: 0 0 auto; }
    .pv-site-shell { padding: 18px 0 30px; }
    .pv-site-container { width: calc(100% - 24px); }
    .pv-main-content { padding: 18px 15px; border-radius: 14px; }
    .pv-main-content .news-item { padding: 15px; border-radius: 12px; }
    .pv-main-content .news-preview { display: block !important; }
    .pv-main-content .news-preview-image { width: 100% !important; max-width: 100% !important; margin: 0 0 13px; aspect-ratio: 16 / 9; }
    .pv-main-content .news-item h2 { font-size: 19px; }
    .pv-sidebar { display: flex; }
    .pv-footer { padding: 27px 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
