/* ============================================================
   МИРГ Никопол – Белене – Гулянци
   Общи стилове за страниците на дейностите
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --navy:      #0a2a5e;
    --navy-dark: #061a3e;
    --navy-mid:  #0d3a7a;
    --teal:      #0e7c6b;
    --gold:      #c8882a;
    --river:     #1a6fa8;
    --light:     #f5f7f9;
    --white:     #ffffff;
    --text:      #1a1a2e;
    --muted:     #5a6070;
    --border:    #dde3ed;
    --radius:    8px;
    --font-h:    'Merriweather', Georgia, serif;
    --font-b:    'Source Sans 3', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); color: var(--text); background: var(--light); font-size: 15px; line-height: 1.65; }
a { color: var(--river); text-decoration: none; }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

/* ── SITE HEADER ── */
.site-header { background: #ffffff; border-bottom: 3px solid var(--gold); padding: 18px 0; }
.site-header .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-brand { display: flex; align-items: center; gap: 16px; }
.site-brand img { width: 130px; height: 130px; object-fit: contain; }
.site-brand .brand-text .name { font-family: var(--font-h); font-size: 18px; color: var(--navy); font-weight: 700; line-height: 1.2; }
.site-brand .brand-text .sub  { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; margin-top: 4px; text-transform: uppercase; }
.header-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-logos img { height: 80px; width: auto; object-fit: contain; }

/* ── SITE NAV ── */
.site-nav { background: var(--navy); border-bottom: 2px solid var(--teal); }
.site-nav .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; }
.site-nav a { display: block; color: #c8d8f0; padding: 12px 16px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 3px solid transparent; transition: all 0.2s; }
.site-nav a:hover, .site-nav a.active { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,0.07); }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--river); }
.breadcrumb span { color: var(--muted); }

/* ── HERO BANNER ── */
.d-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0f4a8a 100%); color: #fff; padding: 36px 0; border-bottom: 3px solid var(--gold); }
.d-hero .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; }
.d-hero-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid rgba(200,136,42,0.5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.d-hero-icon svg { width: 36px; height: 36px; }
.d-hero-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(200,136,42,0.9); margin-bottom: 5px; }
.d-hero h1 { font-family: var(--font-h); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 6px; }
.d-hero p { font-size: 12.5px; opacity: 0.72; margin: 0 0 10px; }
.status-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 3px; letter-spacing: 0.5px; text-transform: uppercase; }
.status-open     { background: #1a5c3e; border: 1px solid #2a8c5e; color: #7ef5c4; }
.status-upcoming { background: #0a3a6e; border: 1px solid #1a6fa8; color: #7ec8e3; }
.status-prep     { background: #5c3a0a; border: 1px solid #c8882a; color: #ffd070; }

/* ── METRICS ── */
.metrics-band { background: var(--white); border-bottom: 1px solid var(--border); padding: 24px 0; }
.metrics-band .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.metric.highlight { border-color: var(--gold); border-top: 3px solid var(--gold); }
.metric .val { display: block; font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.metric.highlight .val { color: var(--gold); }
.metric .lbl { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }

/* ── MAIN CONTENT ── */
.main-content { max-width: 1140px; margin: 0 auto; padding: 36px 24px 56px; }

/* ── TABS ── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn { padding: 11px 20px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: none; border: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; text-transform: uppercase; letter-spacing: 0.4px; font-family: var(--font-b); transition: all 0.2s; }
.tab-btn.active, .tab-btn:hover { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── TWO COLUMN ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ── INFO BOXES ── */
.box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.box.green { border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.box.red   { border-left: 4px solid #e24b4a; border-radius: 0 var(--radius) var(--radius) 0; }
.box.blue  { border-left: 4px solid var(--river); border-radius: 0 var(--radius) var(--radius) 0; }
.box-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ── CHECKLISTS ── */
.checklist { list-style: none; }
.checklist li { font-size: 13.5px; padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid var(--border); color: var(--text); line-height: 1.45; }
.checklist li:last-child { border-bottom: none; }
.checklist.yes li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.checklist.no  li::before { content: '✗'; position: absolute; left: 0; color: #e24b4a; font-weight: 700; }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 4px; font-weight: 600; border: 1px solid; display: inline-block; }
.tag.teal  { background: #e1f5ee; color: #085041; border-color: #5dcaa5; }
.tag.blue  { background: #e6f1fb; color: #0c447c; border-color: #85b7eb; }
.tag.amber { background: #faeeda; color: #633806; border-color: #ef9f27; }
.tag.gray  { background: #f1efe8; color: #444441; border-color: #b4b2a9; }
.tag.purple{ background: #eeedfe; color: #3c3489; border-color: #afa9ec; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { background: #f0f4fa; color: var(--navy); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.data-table td:last-child { font-weight: 700; color: var(--navy); text-align: right; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafd; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: flex-start; gap: 14px; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-body strong { font-size: 14px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 2px; }
.step-body p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ── ALERTS ── */
.alert { border-radius: 5px; padding: 11px 14px; font-size: 13px; line-height: 1.55; margin-top: 12px; }
.alert.info { background: #e1f5ee; border: 1px solid #5dcaa5; color: #085041; }
.alert.warn { background: #faeeda; border: 1px solid #ef9f27; color: #633806; }

/* ── CTA ── */
.cta-band { background: linear-gradient(135deg, var(--teal) 0%, var(--river) 100%); padding: 30px 0; margin-top: 40px; }
.cta-band .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-h); font-size: 20px; color: #fff; margin-bottom: 5px; }
.cta-band p  { font-size: 13.5px; color: rgba(255,255,255,0.85); margin: 0; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 24px; border-radius: 5px; font-weight: 700; font-size: 13px; letter-spacing: 0.3px; cursor: pointer; border: none; font-family: var(--font-b); transition: all 0.2s; }
.btn-gold    { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #e09820; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--teal); color: #fff; }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); color: #8a9ab0; padding: 32px 0 18px; margin-top: 0; }
.site-footer .inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.site-footer .foot-brand .name { font-family: var(--font-h); font-size: 14px; color: #c8d8f0; margin-bottom: 6px; }
.site-footer .foot-brand p { font-size: 11.5px; line-height: 1.6; max-width: 340px; }
.site-footer .foot-links h4 { font-size: 11.5px; font-weight: 700; color: #c8d8f0; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.site-footer .foot-links ul { list-style: none; }
.site-footer .foot-links ul li { margin-bottom: 6px; }
.site-footer .foot-links ul li a { color: #7090b0; font-size: 12.5px; }
.site-footer .foot-links ul li a:hover { color: #c8d8f0; }
.foot-bottom { max-width: 1140px; margin: 20px auto 0; padding: 14px 24px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .metrics-band .inner { grid-template-columns: repeat(2,1fr); }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .metrics-band .inner { grid-template-columns: 1fr 1fr; }
    .d-hero h1 { font-size: 20px; }
    .d-hero-icon { display: none; }
    .site-header .header-logos { display: none; }
    .tab-btn { padding: 9px 10px; font-size: 10.5px; }
}
