:root {
    --emerald: #047857;
    --emerald-dark: #065f46;
    --emerald-soft: #d1fae5;
    --gold: #d4af37;
    --gold-dark: #b38f22;
    --light-bg: #f5fbf7;
    --dark: #11332a;
    --page-bg: #ffffff;
    --text-main: #1f2937;
    --surface-bg: #ffffff;
    --surface-border: rgba(4, 120, 87, .08);
    --shadow-color: rgba(17, 51, 42, .08);
}

:root[data-theme="dark"] {
    --page-bg: #0f172a;
    --text-main: #e5e7eb;
    --surface-bg: #111827;
    --surface-border: rgba(255, 255, 255, .12);
    --shadow-color: rgba(0, 0, 0, .35);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

.theme-transition,
.theme-transition * {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.lptq-navbar,
.footer-lptq,
.hero-default,
.page-hero {
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
}

.lptq-navbar {
    padding: .75rem 0;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.lptq-navbar .container {
    gap: 1rem;
}

.lptq-navbar .navbar-brand {
    flex-shrink: 0;
    margin-right: 1rem;
}

.lptq-navbar .navbar-brand span {
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.1;
}

.lptq-nav-links {
    gap: .2rem;
}

.lptq-nav-links .nav-link {
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.2;
    padding: .6rem .68rem !important;
    white-space: nowrap;
    border-radius: .75rem;
    opacity: .96;
}

.lptq-nav-links .nav-link:hover,
.lptq-nav-links .nav-link:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.lptq-navbar .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1rem;
    padding: .6rem;
    background: rgba(6, 95, 70, .97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.lptq-navbar .dropdown-item {
    color: #f8fafc;
    border-radius: .75rem;
    padding: .7rem .9rem;
}

.lptq-navbar .dropdown-item:hover,
.lptq-navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}

.navbar-actions .btn {
    white-space: nowrap;
    padding: .5rem .9rem;
    font-weight: 700;
    border-radius: .8rem;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #f2d675);
    border: none;
    color: var(--dark);
    font-weight: 700;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
}

.hero-slide {
    min-height: 82vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.hero-content {
    max-width: 760px;
    color: #fff;
    padding: 5.25rem 0 4.5rem;
}

.hero-content h1,
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.hero-content p {
    max-width: 640px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.75rem;
}

.hero-actions .btn {
    min-width: 150px;
    padding: .85rem 1.2rem;
    border-radius: .9rem;
    font-weight: 700;
}

.badge-hero,
.section-kicker {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-card {
    background: var(--surface-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 16px 48px var(--shadow-color);
    border: 1px solid var(--surface-border);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    color: rgba(31, 41, 55, .72);
    line-height: 1.8;
    max-width: 620px;
}

.content-body p,
.content-body li {
    color: inherit;
    line-height: 1.8;
}

.mini-stat {
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.08), rgba(212, 175, 55, 0.14));
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

.mini-stat i,
.date-box {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: var(--emerald);
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mini-stat h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--emerald-dark);
}

.news-card,
.gallery-card,
.team-card {
    background: var(--surface-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 16px 48px var(--shadow-color);
    border: 1px solid var(--surface-border);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-card:hover,
.gallery-card:hover,
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px var(--shadow-color);
    border-color: rgba(4, 120, 87, .16);
}

.news-card-img,
.gallery-card img,
.team-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.news-card-body,
.gallery-card-body,
.team-card-body {
    padding: 1.5rem;
}

.news-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    color: rgba(31, 41, 55, .62);
}

.news-card h3,
.gallery-card h3,
.team-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0;
}

.news-card a {
    color: var(--dark);
    text-decoration: none;
}

.news-card p {
    color: rgba(31, 41, 55, .72);
    line-height: 1.75;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    color: inherit;
    font-size: .95rem;
    align-items: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(107, 114, 128, .14);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--emerald) !important;
    font-weight: 700;
}

.bg-light-green {
    background: var(--light-bg);
}

.list-item-card,
.guest-book-item,
.announcement-item {
    display: flex;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(107, 114, 128, .12);
}

.list-item-card:last-child,
.guest-book-item:last-child,
.announcement-item:last-child {
    border-bottom: none;
}

.date-box {
    text-align: center;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(4, 120, 87, .18);
}

.date-box strong {
    font-size: 1.5rem;
}

.date-box span {
    display: block;
    font-size: .85rem;
    text-transform: uppercase;
}

.list-item-content {
    flex: 1;
}

.list-item-content h4 {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: .45rem;
    color: var(--dark);
}

.list-item-content p {
    color: rgba(31, 41, 55, .74);
    line-height: 1.7;
}

.list-item-content small {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.announcement-icon {
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(4, 120, 87, .12), rgba(212, 175, 55, .2));
    color: var(--emerald);
    font-size: 1.15rem;
}

.section-split-card {
    position: relative;
}

.page-hero {
    color: #fff;
    padding: 5rem 0 4rem;
}

.position {
    color: var(--emerald);
    font-weight: 700;
    margin-bottom: .5rem;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    padding: .55rem .9rem;
    border-radius: 999px;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.footer-link:hover {
    color: var(--gold);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .14);
}

.text-gold {
    color: var(--gold);
}

.sidebar-dark-emerald {
    background: linear-gradient(180deg, #043f30, #065f46);
}

.admin-login-page {
    background: linear-gradient(135deg, rgba(4, 120, 87, .96), rgba(17, 51, 42, .96));
}

.theme-toggle {
    white-space: nowrap;
}

.footer-lptq {
    position: relative;
    overflow: hidden;
}

.footer-lptq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, .16), transparent 35%);
    pointer-events: none;
}

.footer-lptq .container {
    position: relative;
    z-index: 1;
}

.footer-lptq h5,
.footer-lptq h6 {
    margin-bottom: 1rem;
}

.footer-lptq p {
    line-height: 1.8;
}

.admin-stat-row .small-box {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(17, 51, 42, .12);
}

.admin-stat-box .inner {
    padding: 1.4rem 1.25rem;
}

.admin-stat-box h3 {
    font-size: 2rem;
    font-weight: 800;
}

.admin-stat-box p {
    font-size: .98rem;
}

.admin-panel-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(4, 120, 87, .08);
    box-shadow: 0 18px 44px rgba(17, 51, 42, .08);
}

.admin-welcome-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.2rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(4, 120, 87, .08), rgba(212, 175, 55, .14));
}

.admin-welcome-hero h4 {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: .6rem;
    color: var(--dark);
}

.admin-welcome-hero p {
    color: rgba(31, 41, 55, .74);
    line-height: 1.8;
}

.admin-welcome-badge {
    min-width: 120px;
    min-height: 120px;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
    color: #fff;
    box-shadow: 0 16px 32px rgba(4, 120, 87, .24);
}

.admin-welcome-badge i {
    font-size: 2rem;
}

.admin-account-card .card-body {
    text-align: center;
}

.admin-account-avatar {
    width: 82px;
    height: 82px;
    margin: 0 auto 1rem;
    border-radius: 1.2rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(4, 120, 87, .12), rgba(212, 175, 55, .18));
    color: var(--emerald-dark);
    font-size: 2rem;
}

.premium-login-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 1.15fr) minmax(320px, .85fr);
}

.premium-login-side,
.premium-login-form-wrap {
    position: relative;
    padding: 3rem;
}

.premium-login-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(4, 120, 87, .95), rgba(17, 51, 42, .92)),
        radial-gradient(circle at top left, rgba(212, 175, 55, .18), transparent 35%);
}

.premium-login-side h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1rem;
}

.premium-login-side p {
    max-width: 560px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.8;
}

.premium-login-points {
    display: grid;
    gap: .9rem;
    margin-top: 2rem;
}

.premium-login-points div {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: #fff;
    font-weight: 500;
}

.premium-login-points i {
    color: var(--gold);
}

.premium-login-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
}

.premium-login-card {
    width: 100%;
    max-width: 460px;
    border-radius: 1.5rem;
    border: 1px solid rgba(4, 120, 87, .08);
    box-shadow: 0 24px 56px rgba(17, 51, 42, .14);
}

.premium-login-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.premium-login-brand img {
    width: 56px;
    height: 56px;
}

.premium-login-subtitle {
    color: rgba(31, 41, 55, .72);
    line-height: 1.8;
    margin-bottom: 1.4rem;
}

.premium-login-button {
    min-height: 46px;
    border-radius: .9rem;
    font-weight: 700;
}

.premium-login-hint {
    font-size: .9rem;
    color: rgba(31, 41, 55, .62);
    text-align: center;
}

:root[data-theme="dark"] .section-card,
:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .gallery-card,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .content-wrapper,
:root[data-theme="dark"] .main-header,
:root[data-theme="dark"] .modal-content,
:root[data-theme="dark"] .table,
:root[data-theme="dark"] .dropdown-menu,
:root[data-theme="dark"] .login-box .card {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

:root[data-theme="dark"] .content-wrapper,
:root[data-theme="dark"] body,
:root[data-theme="dark"] .wrapper {
    background-color: #0f172a !important;
}

:root[data-theme="dark"] .table td,
:root[data-theme="dark"] .table th,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .custom-select,
:root[data-theme="dark"] .dropdown-menu {
    border-color: rgba(255, 255, 255, .12) !important;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .custom-select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] input {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

:root[data-theme="dark"] .navbar-light .navbar-nav .nav-link,
:root[data-theme="dark"] .main-header .nav-link,
:root[data-theme="dark"] .content-header h1,
:root[data-theme="dark"] .card-title,
:root[data-theme="dark"] .small-box,
:root[data-theme="dark"] .small-box p,
:root[data-theme="dark"] .small-box h3 {
    color: #e5e7eb !important;
}

:root[data-theme="dark"] .section-description,
:root[data-theme="dark"] .news-card p,
:root[data-theme="dark"] .news-date,
:root[data-theme="dark"] .list-item-content p,
:root[data-theme="dark"] .admin-welcome-hero p,
:root[data-theme="dark"] .premium-login-subtitle,
:root[data-theme="dark"] .premium-login-hint {
    color: rgba(229, 231, 235, .76) !important;
}

:root[data-theme="dark"] .news-link,
:root[data-theme="dark"] .position,
:root[data-theme="dark"] .announcement-icon {
    color: #86efac !important;
}

@media (max-width: 991.98px) {
    .lptq-navbar {
        padding: .65rem 0;
    }

    .lptq-navbar .navbar-brand span {
        font-size: 1.2rem;
    }

    .lptq-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        background: rgba(6, 95, 70, .95);
    }

    .lptq-nav-links {
        gap: .1rem;
    }

    .lptq-nav-links .nav-link {
        white-space: normal;
        padding: .7rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        border-radius: 0;
    }

    .lptq-nav-links .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, .12);
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .navbar-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-slide {
        min-height: 68vh;
        align-items: flex-end;
    }

    .hero-content {
        padding: 4rem 0 3rem;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .section-card {
        padding: 1.5rem;
    }

    .admin-welcome-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-welcome-badge {
        min-width: 100%;
        min-height: 88px;
        flex-direction: row;
    }

    .premium-login-shell {
        grid-template-columns: 1fr;
    }

    .premium-login-side,
    .premium-login-form-wrap {
        padding: 2rem 1.25rem;
    }

    .premium-login-side {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .lptq-navbar .navbar-brand img {
        width: 34px;
        height: 34px;
    }

    .lptq-navbar .navbar-brand span {
        font-size: 1.08rem;
    }

    .hero-content {
        padding: 3.25rem 0 2.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.95rem, 9vw, 2.9rem);
    }

    .news-card-body,
    .gallery-card-body,
    .team-card-body {
        padding: 1.2rem;
    }

    .admin-welcome-hero {
        padding: 1rem;
    }

    .premium-login-brand {
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }
}
