:root {
    --ps-bg: #f3f7ff;
    --ps-surface: #ffffff;
    --ps-text: #1f2937;
    --ps-muted: #5f6b7a;
    --ps-border: #dce7ff;
    --ps-primary: #4f46e5;
    --ps-primary-hover: #4338ca;
    --ps-accent: #0ea5e9;
    --ps-shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
    --ps-radius: 18px;
}

body {
    background: radial-gradient(circle at 15% 10%, #e9efff 0, #f7f9ff 38%, #f3f7ff 100%);
    color: var(--ps-text);
    font-size: 14px;
    line-height: 1.55;
}

a {
    color: var(--ps-primary);
    transition: color .2s ease;
}

a:hover,
a:focus {
    color: var(--ps-primary-hover);
}

#wrapper {
    overflow: hidden;
}

.main-container {
    padding: 34px 0 22px;
}

.navbar-site {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(220, 231, 255, 0.9);
    border-radius: 18px;
    margin: 14px auto 0;
    max-width: 1240px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
    backdrop-filter: blur(8px);
}

.navbar-site .container {
    width: auto;
    padding-left: 18px;
    padding-right: 18px;
}

.logo-title .logo-icon img {
    max-height: 46px;
    border-radius: 12px;
}

.logo-text {
    color: #1e1b4b;
    font-weight: 700;
    letter-spacing: .2px;
}

.navbar-nav > li > a {
    border-radius: 10px;
    color: #2b3751;
    font-weight: 600;
    margin: 6px 4px;
    padding: 10px 13px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background: #eef2ff;
    color: var(--ps-primary);
}

.navbar-nav > li.postadd a,
.btn-post {
    background: linear-gradient(135deg, var(--ps-primary) 0%, var(--ps-accent) 100%) !important;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.24);
    color: #fff !important;
    font-weight: 700;
}

.navbar-nav > li.postadd a:hover,
.btn-post:hover {
    background: linear-gradient(135deg, #4338ca 0%, #0284c7 100%) !important;
}

.intro {
    border-radius: 26px;
    margin: 20px auto 0;
    max-width: 1240px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 55px rgba(67, 56, 202, 0.22);
}

.intro::before {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.78), rgba(67, 56, 202, 0.66));
    content: "";
    inset: 0;
    position: absolute;
    z-index: 1;
}

.intro .dtable {
    position: relative;
    z-index: 2;
}

.intro-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: .3px;
}

.intro p.sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
}

.search-row {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
    margin-top: 22px;
    padding: 14px 12px;
}

.search-row .search-col .form-control {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    box-shadow: none;
    color: #ffffff;
    font-size: 15px;
    height: 46px;
    padding-left: 38px;
    background: rgba(255, 255, 255, 0.12);
}

.search-row .search-col .form-control::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.search-row .btn-search {
    border-radius: 11px;
    font-weight: 700;
    height: 46px;
}

.page-sidebar .inner-box,
.inner-box {
    background: var(--ps-surface);
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
}

.inner-box {
    margin-bottom: 18px;
    padding: 0;
}

.inner-box-content {
    padding: 16px 18px 18px;
}

.title-2,
.list-title {
    border-bottom: 1px solid #edf2ff;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 14px 18px;
}

.locations-list.list-filter {
    background: #fff;
    border: 1px solid var(--ps-border);
    border-radius: var(--ps-radius);
    box-shadow: var(--ps-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.navigation {
    margin: 0;
    padding: 8px 12px 14px;
}

.navigation li {
    list-style: none;
    margin: 0;
}

.navigation li a.nav {
    border-radius: 10px;
    color: #334155;
    display: block;
    font-weight: 600;
    padding: 8px 10px;
}

.navigation li a.nav:hover {
    background: #eef2ff;
    color: var(--ps-primary);
}

.form-control,
.selecter .selecter-selected,
.btn {
    border-radius: 10px;
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-danger {
    border: 0;
    font-weight: 600;
}

.table,
.table-responsive {
    background: #fff;
    border-radius: 14px;
}

.table > thead > tr > th {
    background: #eef3ff;
    border-bottom: 0;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
}

.table > tbody > tr > td {
    border-top-color: #edf2ff;
}

.breadcrumb {
    background: #f7f9ff;
    border: 1px solid #e7ecff;
    border-radius: 999px;
    padding: 8px 14px;
}

.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    margin-top: 34px;
    padding: 32px 24px 22px;
}

.footer a {
    color: #c7d2fe;
}

.footer .title__text,
.footer .list-title {
    border-bottom: 0;
    color: #ffffff;
    padding: 0 0 12px;
}

.footer ul {
    padding-left: 0;
}

.footer ul li {
    list-style: none;
    margin-bottom: 8px;
}

.modal-content {
    border: 1px solid #dbe7ff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.25);
}

.menu-overly-mask.is-visible {
    background: rgba(15, 23, 42, 0.45);
}

@media (max-width: 991px) {
    .main-container {
        padding-top: 20px;
    }

    .navbar-site {
        margin: 8px 8px 0;
    }

    .intro {
        margin: 12px 8px 0;
    }

    .intro-title {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .search-row {
        padding: 10px 8px;
    }

    .search-row .search-col {
        margin-bottom: 10px;
    }

    .footer {
        border-radius: 18px 18px 0 0;
        padding: 24px 16px 16px;
    }
}

/* Stability fixes: prevent layout lock and unreadable typography */
html,
body {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: "Segoe UI", Arial, sans-serif !important;
}

#wrapper {
    overflow: visible !important;
}

body.modal-open {
    overflow-y: auto !important;
    padding-right: 0 !important;
}

.intro::before {
    pointer-events: none;
}

.intro,
.locations-list.list-filter {
    overflow: visible;
}

.navbar-site .container {
    width: 1170px;
    max-width: 100%;
}

.logo-text,
.title-2,
.list-title,
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Header alignment: logo first, menu in one clean row */
@media (min-width: 768px) {
    .navbar-site .container {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .left-head {
        display: flex !important;
        align-items: center;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        flex: 0 0 auto;
    }

    .right-head {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        width: auto !important;
        padding: 0 !important;
        margin-left: 0 !important;
        flex: 1 1 auto;
    }

    .right-head .navbar-collapse {
        display: block !important;
        position: static !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .right-head .navbar-right,
    .right-head .navbar-nav {
        float: none !important;
    }

    .right-head .navbar-nav {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        margin: 0;
    }

    .right-head .navbar-nav > li {
        float: none;
    }

    .right-head .navbar-nav > li.postadd {
        margin-left: 8px;
    }
}

@media (max-width: 767px) {
    .left-head {
        position: static !important;
        left: auto !important;
        width: 100% !important;
    }

    .right-head {
        width: 100% !important;
    }

    .right-head .navbar-collapse {
        display: none !important;
    }

    .right-head .navbar-collapse.in {
        display: block !important;
    }

    .right-head .navbar-nav {
        display: block;
    }
}
