/* =====================================================================
   Kaldora - dark fantasy theme (own artwork, no CipSoft assets)
   Layered on top of MyAAC's bundled Bootstrap 4.
   ===================================================================== */
:root {
    --kt-bg: #0e1116;
    --kt-panel: #151a22;
    --kt-panel-2: #1b222c;
    --kt-border: #4a3220;
    --kt-gold: #c9a24a;
    --kt-gold-bright: #e3c169;
    --kt-parchment: #e6d3a7;
    --kt-ink: #d8cbb0;
    --kt-muted: #9a8f7a;
    --kt-red: #a33a28;
}

html, body { height: 100%; }
body {
    margin: 0;
    background-color: var(--kt-bg);
    background-image: url(../images/bg-dark.png);
    background-size: 512px 512px;
    color: var(--kt-ink);
    font-family: -apple-system, "Segoe UI", Roboto, Verdana, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
a { color: var(--kt-gold); font-weight: 600; text-decoration: none; }
a:hover { color: var(--kt-gold-bright); text-decoration: none; }
h1, h2, h3, h4 { font-family: Georgia, "DejaVu Serif", serif; color: var(--kt-gold-bright); }
h1 { font-size: 26px; margin: 0 0 14px; }
h2 { font-size: 20px; margin: 0 0 10px; }
h3 { font-size: 17px; }
hr { border: none; border-top: 1px solid rgba(201, 162, 74, .25); }
small { color: var(--kt-muted); }
.white { color: var(--kt-ink) !important; }
.red { color: var(--kt-red) !important; }
.green { color: #6f9a54 !important; }

/* ---- hero ---------------------------------------------------------- */
#hero {
    position: relative;
    height: 360px;
    background: #0b0d11 url(../images/hero.jpg) center 30% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero:after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
    background: linear-gradient(rgba(14, 17, 22, 0), var(--kt-bg));
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-logo { max-width: 420px; width: 70vw; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .8)); }
.hero-tagline {
    margin-top: 6px;
    color: var(--kt-parchment);
    text-shadow: 0 2px 6px #000;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

/* ---- top navigation ------------------------------------------------ */
#topnav {
    background: #0b0d12 url(../images/nav.png) repeat-x;
    border-bottom: 1px solid rgba(201, 162, 74, .5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .55);
}
#topnav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: 46px;
}
#topnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
#topnav li a {
    display: block;
    padding: 13px 14px;
    color: var(--kt-parchment);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .06em;
}
#topnav li a:hover { color: var(--kt-gold-bright); background: rgba(201, 162, 74, .08); }
#lang-switch { font-size: 11px; color: var(--kt-muted); white-space: nowrap; }
#lang-switch a { color: var(--kt-gold); }
#lang-switch .active { color: var(--kt-parchment); }

/* ---- layout -------------------------------------------------------- */
#page {
    max-width: 1200px;
    margin: 22px auto 40px;
    padding: 0 16px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
#sidebar { width: 270px; flex: 0 0 270px; }
#content { flex: 1 1 auto; min-width: 0; }
@media (max-width: 900px) {
    #page { flex-direction: column; }
    #sidebar { width: 100%; flex: 1 1 auto; }
}

/* ---- cards / panels ------------------------------------------------ */
.card, .Content, .TableContainer {
    background: rgba(21, 26, 34, .92);
    border: 1px solid var(--kt-border);
    border-image: url(../images/panel-dark.png) 6 fill / 6px stretch;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    margin-bottom: 16px;
}
.card-header {
    background: rgba(11, 13, 18, .85);
    border-bottom: 1px solid rgba(201, 162, 74, .35);
    color: var(--kt-gold-bright);
    font-family: Georgia, "DejaVu Serif", serif;
    font-size: 15px;
    padding: 9px 12px;
}
.card-body, .Content { padding: 12px; }
.card-footer {
    background: rgba(11, 13, 18, .6);
    border-top: 1px solid rgba(201, 162, 74, .25);
    padding: 8px 12px;
}
.card-info.card-outline { border-top: 3px solid var(--kt-gold); }

/* sidebar widgets */
#sidebar .card-header { font-size: 14px; }
#sidebar ul { list-style: none; margin: 0; padding: 4px 0; }
#sidebar ul li a {
    display: block;
    padding: 6px 12px;
    color: var(--kt-ink);
    font-weight: 500;
    border-left: 2px solid transparent;
}
#sidebar ul li a:hover {
    color: var(--kt-gold-bright);
    background: rgba(201, 162, 74, .07);
    border-left-color: var(--kt-gold);
}
.line, .line.wide { display: none; }

/* ---- tables -------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
.TableContent, .TableContentContainer, table.table {
    background: rgba(21, 26, 34, .92);
    color: var(--kt-ink);
}
.TableContent td, .TableContent th, table.table td, table.table th {
    border-bottom: 1px solid rgba(201, 162, 74, .18);
    padding: 7px 9px;
}
.TableContent th, table.table thead th {
    background: rgba(11, 13, 18, .85);
    color: var(--kt-gold-bright);
    font-family: Georgia, "DejaVu Serif", serif;
    font-weight: 600;
}
tr.Odd, .Odd { background: rgba(255, 255, 255, .02); }
tr.Even, .Even { background: transparent; }
tr:hover { background: rgba(201, 162, 74, .06); }
.LabelV { color: var(--kt-muted); font-weight: 600; padding-right: 8px; }
.TableShadowContainer, .TableShadowContainerRightTop, .TableShadowRightTop,
.TableContentAndRightShadow, .TableBottomShadow, .TableBottomRightShadow { background: none !important; }

/* ---- buttons / forms ----------------------------------------------- */
.btn, .btn-info, button, input[type=submit] {
    background: rgba(32, 26, 18, .95);
    border: 1px solid var(--kt-gold);
    border-image: url(../images/btn-dark.png) 6 fill / 6px stretch;
    color: var(--kt-parchment);
    padding: 7px 14px;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 1px 2px #000;
}
.btn:hover, .btn-info:hover, button:hover, input[type=submit]:hover {
    border-image: url(../images/btn-dark-hover.png) 6 fill / 6px stretch;
    color: var(--kt-gold-bright);
}
.form-control, input[type=text], input[type=password], input[type=email], select, textarea {
    background: rgba(8, 10, 13, .85);
    border: 1px solid rgba(201, 162, 74, .4);
    color: var(--kt-parchment);
    padding: 7px 9px;
    width: 100%;
    max-width: 100%;
}
.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--kt-gold-bright);
    box-shadow: 0 0 0 2px rgba(201, 162, 74, .18);
}
.FormFieldError { color: var(--kt-red); font-size: 12px; }
label { color: var(--kt-muted); }
.m-0 { margin: 0 !important; }

/* ---- news ---------------------------------------------------------- */
article.news, .news { margin-bottom: 18px; }
article.news header, .news .news-header {
    background: rgba(11, 13, 18, .85);
    border-left: 3px solid var(--kt-gold);
    padding: 8px 12px;
    margin-bottom: 10px;
}
article.news header h2, .news .news-header h2 { margin: 0; font-size: 18px; }
.news-date { color: var(--kt-muted); font-size: 11px; }

/* ---- footer -------------------------------------------------------- */
#kt-footer {
    border-top: 1px solid rgba(201, 162, 74, .3);
    background: rgba(8, 10, 13, .9);
    color: var(--kt-muted);
    text-align: center;
    padding: 14px 16px;
    font-size: 12px;
}
#kt-footer a { color: var(--kt-gold); }

/* bootstrap tweaks */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
[class*="col-"] { padding: 0 8px; }
.card-info { border-top-color: var(--kt-gold); }
.badge, .badge-info { background: var(--kt-gold); color: #1a120a; }

/* language blocks inside page content (news, custom pages) */
.kt-pl, .kt-en, .kt-br { display: none; }
body.lang-en .kt-en { display: block; }
body.lang-pl .kt-pl { display: block; }
body.lang-br .kt-br { display: block; }
