/* =====================================================================
   Department of Law and Land Administration — site design layer
   Loaded last. Dark is the default; [data-theme="light-mode"] is light.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
    --ui-bg: #0f1012;
    --ui-bg-alt: #131417;
    --ui-surface: #17181c;
    --ui-surface-2: #1e2025;
    --ui-input: #0c0d0f;
    --ui-tint: rgba(255, 255, 255, 0.04);
    --ui-border: rgba(255, 255, 255, 0.08);
    --ui-border-strong: rgba(255, 255, 255, 0.16);
    --ui-text: #f3f4f6;
    --ui-text-2: rgba(243, 244, 246, 0.78);
    --ui-muted: rgba(243, 244, 246, 0.56);
    --ui-faint: rgba(243, 244, 246, 0.36);
    --ui-accent: #c8170a;
    --ui-accent-hover: #a91206;
    --ui-accent-text: #ff6b5e;
    --ui-accent-soft: rgba(200, 23, 10, 0.14);
    --ui-success: #3fb871;
    --ui-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.25);
    --ui-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.35);
    --ui-header-bg: rgba(15, 16, 18, 0.86);
    --ui-radius: 12px;
    --ui-radius-sm: 8px;
    --ui-font: "Noto Sans Bengali", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ui-heading: "Noto Sans Bengali", "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

    --thm-primary-color: var(--ui-accent);
    --thm-secondary-color: var(--ui-accent-hover);
    --thm-body-background: var(--ui-bg);
    --thm-black-bg: var(--ui-surface);
    --thm-body-font-color: var(--ui-text-2);
    --thm-paragraph-color: var(--ui-text-2);
    --thm-heading-font-color: var(--ui-text);
    --thm-body-font-family: var(--ui-font);
    --thm-heading-font-family: var(--ui-heading);
    color-scheme: dark;
}

[data-theme="light-mode"] {
    --ui-bg: #f5f6f8;
    --ui-bg-alt: #eceef2;
    --ui-surface: #ffffff;
    --ui-surface-2: #f7f8fa;
    --ui-input: #ffffff;
    --ui-tint: rgba(17, 24, 39, 0.035);
    --ui-border: rgba(17, 24, 39, 0.1);
    --ui-border-strong: rgba(17, 24, 39, 0.18);
    --ui-text: #12151b;
    --ui-text-2: #3c4250;
    --ui-muted: #687082;
    --ui-faint: #9aa1ae;
    --ui-accent: #b91202;
    --ui-accent-hover: #970f02;
    --ui-accent-text: #b91202;
    --ui-accent-soft: rgba(185, 18, 2, 0.08);
    --ui-success: #1f8a4c;
    --ui-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
    --ui-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 36px rgba(16, 24, 40, 0.1);
    --ui-header-bg: rgba(255, 255, 255, 0.9);
    color-scheme: light;
}

/* ---------- Base ---------- */
.body-dark-bg {
    --lawland-text-font: var(--ui-font);
    --lawland-heading-font: var(--ui-heading);
}

html, body, .body-dark-bg {
    background-color: var(--ui-bg);
}

body {
    color: var(--ui-text-2);
    font-family: var(--ui-font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ui-text);
    font-family: var(--ui-heading);
    letter-spacing: -0.015em;
    text-transform: none;
}

p {
    color: var(--ui-text-2);
}

a {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

::selection {
    background: var(--ui-accent);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

.container {
    max-width: 1240px;
}

/* ---------- Buttons ---------- */
.button-style-1,
.ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--ui-accent);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-accent);
    color: #fff;
    font-family: var(--ui-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button-style-1::before,
.button-style-1::after {
    display: none;
}

.button-style-1:hover,
.ui-btn:hover {
    background: var(--ui-accent-hover);
    border-color: var(--ui-accent-hover);
    color: #fff;
}

.button-style-1 span {
    color: inherit;
}

.ui-btn--ghost {
    background: transparent;
    border-color: var(--ui-border-strong);
    color: var(--ui-text);
}

.ui-btn--ghost:hover {
    background: var(--ui-tint);
    border-color: var(--ui-text);
    color: var(--ui-text);
}

.ui-btn--light {
    background: #fff;
    border-color: #fff;
    color: #12151b;
}

.ui-btn--light:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
    color: #12151b;
}

.ui-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ui-accent-text);
    font-weight: 600;
}

.ui-link:hover {
    color: var(--ui-text);
}

.ui-link i {
    font-size: 13px;
    transition: transform 0.15s ease;
}

.ui-link:hover i {
    transform: translateX(3px);
}

/* ---------- Top bar ---------- */
.department-topbar {
    background: #0a0b0c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 7px 0;
}

.department-topbar__inner p,
.department-topbar__inner a {
    font-size: 13px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.72);
}

.department-topbar__inner a:hover {
    color: #fff;
}

/* ---------- Header ---------- */
.main-header-one,
.main-header-one .menu-area {
    background: transparent;
}

.main-header-one {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
}

.main-header-one .menu-area {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header-one .menu-nav {
    min-height: 76px;
    align-items: center;
}

.main-header-one .navbar-wrap > ul > li > a {
    padding: 26px 0;
    font-family: var(--ui-font);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.86);
}

.main-header-one .navbar-wrap > ul > li {
    margin-right: 26px;
}

.main-header-one .navbar-wrap > ul > li:last-child {
    margin-right: 0;
}

.main-header-one .navbar-wrap > ul > li.active > a,
.main-header-one .navbar-wrap > ul > li > a:hover {
    color: #fff;
}

.main-header-one .navbar-wrap > ul > li.active > a::after,
.main-header-one .navbar-wrap > ul > li.current > a::after {
    background: var(--ui-accent);
    height: 2px;
    bottom: 18px;
}

.sticky-menu.menu-area,
.main-header-one .sticky-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--ui-header-bg) !important;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    animation: none;
}

.main-header-one .sticky-menu .navbar-wrap > ul > li > a {
    color: var(--ui-text-2);
    padding: 22px 0;
}

.main-header-one .sticky-menu .navbar-wrap > ul > li.active > a,
.main-header-one .sticky-menu .navbar-wrap > ul > li > a:hover {
    color: var(--ui-text);
}

.main-header-one .sticky-menu .navbar-wrap > ul > li.active > a::after {
    bottom: 14px;
}

.main-header-one .sticky-menu .department-brand__text strong {
    color: var(--ui-text);
}

.main-header-one .sticky-menu .department-brand__text small {
    color: var(--ui-muted);
}

.department-brand__mark {
    border-radius: 8px;
    background: var(--ui-accent);
}

.department-brand__text strong {
    font-family: var(--ui-heading);
    letter-spacing: -0.01em;
}

.department-brand__text small {
    letter-spacing: 0.14em;
}

.ui-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 28px;
}

.ui-theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ui-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.sticky-menu .ui-theme-toggle {
    border-color: var(--ui-border-strong);
    background: var(--ui-tint);
    color: var(--ui-text);
}

.ui-theme-toggle .fa-sun,
[data-theme="light-mode"] .ui-theme-toggle .fa-moon {
    display: none;
}

[data-theme="light-mode"] .ui-theme-toggle .fa-sun {
    display: inline-block;
}

.ui-header-actions .ui-btn {
    padding: 10px 18px;
    font-size: 14px;
}

@media (min-width: 1200px) {
    .navigation .nav-account {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .ui-header-actions .ui-btn {
        display: none;
    }

    .ui-header-actions {
        margin-left: auto;
        margin-right: 14px;
    }

    .main-header-one .menu-nav {
        min-height: 68px;
    }
}

.mobile-nav-toggler {
    color: #fff;
}

.sticky-menu .mobile-nav-toggler {
    color: var(--ui-text);
}

.mobile-menu .menu-box {
    background: var(--ui-surface);
}

.mobile-menu .navigation li > a {
    color: var(--ui-text);
    font-family: var(--ui-font);
    font-weight: 500;
    text-transform: none;
}

.mobile-menu .navigation li {
    border-top: 1px solid var(--ui-border);
}

/* ---------- Inner page header ---------- */
.page-header {
    position: relative;
    padding: 170px 0 64px;
    min-height: 0;
    background: #0d0e10;
    overflow: hidden;
}

.page-header__bg {
    opacity: 0.35;
    filter: grayscale(35%);
}

.page-header__bg::before {
    background: linear-gradient(180deg, rgba(13, 14, 16, 0.55) 0%, rgba(13, 14, 16, 0.92) 100%) !important;
}

.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ui-accent) 0 120px, transparent 120px);
}

.page-header__inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.page-header__inner h2 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    text-transform: none;
    letter-spacing: -0.02em;
}

.thm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.thm-breadcrumb li,
.thm-breadcrumb li a,
.thm-breadcrumb li span {
    font-family: var(--ui-font);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    color: rgba(255, 255, 255, 0.62);
}

.thm-breadcrumb li a:hover {
    color: #fff;
}

.thm-breadcrumb li:last-child {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Section heads ---------- */
.ui-section {
    padding: 96px 0;
}

.ui-section--alt {
    background: var(--ui-bg-alt);
}

.ui-section--tight {
    padding: 64px 0;
}

.ui-eyebrow,
.section-title h5,
.section-title .tg-element-title:first-child:not(h2) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ui-accent-text);
    font-family: var(--ui-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ui-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
}

.ui-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 40px;
}

.ui-section-head h2,
.section-title h2 {
    margin: 0;
    color: var(--ui-text);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
}

.ui-section-head p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--ui-muted);
}

/* ---------- Cards ---------- */
.ui-card {
    position: relative;
    height: 100%;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.ui-card:hover,
.ui-card--hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--ui-shadow-hover);
    border-color: var(--ui-border-strong);
}

/* ---------- Home: hero ---------- */
.home-hero {
    position: relative;
    padding: 190px 0 96px;
    background: #0b0c0e;
    overflow: hidden;
    isolation: isolate;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    filter: grayscale(40%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 420px at 12% 20%, rgba(200, 23, 10, 0.22), transparent 70%),
        linear-gradient(90deg, rgba(11, 12, 14, 0.96) 0%, rgba(11, 12, 14, 0.78) 55%, rgba(11, 12, 14, 0.6) 100%);
}

.home-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.home-hero__kicker span {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--ui-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 680px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.home-hero__lead {
    max-width: 580px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.65;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero__actions .ui-btn--ghost {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.home-hero__actions .ui-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

/* Notice board in the hero */
.home-notices {
    background: rgba(23, 24, 28, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ui-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.home-notices__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-notices__head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.home-notices__head h2 i {
    color: var(--ui-accent-text);
}

.home-notices__head a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.home-notices__head a:hover {
    color: #fff;
}

.home-notices ul {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.home-notices li a {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: start;
    padding: 12px 22px;
    transition: background-color 0.15s ease;
}

.home-notices li a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.home-notices__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0;
    border-radius: var(--ui-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    line-height: 1.1;
}

.home-notices__date strong {
    font-size: 18px;
    font-weight: 700;
}

.home-notices__date small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.home-notices__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

.home-notices__tag {
    display: inline-block;
    margin-top: 4px;
    color: var(--ui-accent-text);
    font-size: 12px;
    font-weight: 600;
}

.home-notices__empty {
    padding: 22px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Home: stats ---------- */
.home-stats {
    position: relative;
    z-index: 2;
    margin-top: -44px;
}

.home-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: var(--ui-shadow);
}

.home-stats__item {
    padding: 26px 28px;
}

.home-stats__item + .home-stats__item {
    border-left: 1px solid var(--ui-border);
}

.home-stats__item strong {
    display: block;
    color: var(--ui-text);
    font-family: var(--ui-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.home-stats__item span {
    display: block;
    margin-top: 8px;
    color: var(--ui-muted);
    font-size: 14px;
}

/* ---------- Home: quick links ---------- */
.home-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-link {
    display: flex;
    gap: 16px;
    padding: 24px;
    color: var(--ui-text-2);
}

.home-link:hover {
    color: var(--ui-text-2);
}

.home-link__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--ui-accent-soft);
    color: var(--ui-accent-text);
    font-size: 19px;
}

.home-link h3 {
    margin: 2px 0 6px;
    color: var(--ui-text);
    font-size: 18px;
    font-weight: 700;
}

.home-link p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 14px;
    line-height: 1.55;
}

.home-link__arrow {
    margin-left: auto;
    align-self: center;
    color: var(--ui-faint);
    transition: transform 0.15s ease, color 0.15s ease;
}

.home-link:hover .home-link__arrow {
    transform: translateX(3px);
    color: var(--ui-accent-text);
}

/* ---------- Home: about + chairman ---------- */
.home-about__text p {
    font-size: 17px;
}

.home-about__points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 28px 0 32px;
    padding: 0;
    list-style: none;
}

.home-about__points li {
    display: flex;
    gap: 10px;
    color: var(--ui-text);
    font-weight: 500;
}

.home-about__points i {
    margin-top: 5px;
    color: var(--ui-accent-text);
}

.home-chair {
    padding: 32px;
}

.home-chair__quote {
    position: relative;
    margin: 0 0 24px;
    padding-left: 22px;
    border-left: 3px solid var(--ui-accent);
    color: var(--ui-text-2);
    font-size: 17px;
    line-height: 1.75;
}

.home-chair__person {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-chair__photo {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ui-accent-soft);
    color: var(--ui-accent-text);
    font-weight: 700;
    font-size: 22px;
}

.home-chair__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-chair__person strong {
    display: block;
    color: var(--ui-text);
    font-size: 16px;
}

.home-chair__person span {
    color: var(--ui-muted);
    font-size: 14px;
}

/* ---------- News cards ---------- */
.ui-news {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
}

.ui-news:hover {
    color: inherit;
}

.ui-news__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ui-surface-2);
    border-bottom: 1px solid var(--ui-border);
}

.ui-news__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.ui-news:hover .ui-news__img img {
    transform: scale(1.03);
}

.ui-news__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.ui-news__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
    color: var(--ui-muted);
    font-size: 13px;
}

.ui-news__meta .is-important {
    color: var(--ui-accent-text);
    font-weight: 600;
}

.ui-news h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 16px;
    color: var(--ui-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.ui-news .ui-link {
    margin-top: auto;
    font-size: 14px;
}

/* ---------- Call to action band ---------- */
.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 44px;
    border-radius: var(--ui-radius);
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
        linear-gradient(120deg, #8f0d01, #c8170a);
    color: #fff;
}

.home-cta h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(24px, 2.6vw, 32px);
}

.home-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-cta .ui-btn--ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.home-cta .ui-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* ---------- Gallery section on the new surface ---------- */
.department-gallery {
    background: var(--ui-bg);
}

.department-gallery .section-title h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.department-gallery__photo {
    border-radius: var(--ui-radius-sm);
}

/* ---------- Footer ---------- */
.footer-one {
    background: #0a0b0c !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-one .footer-main {
    padding: 72px 0 40px;
}

.footer-one .title h3,
.footer-one .single-footer-widget .title h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.footer-one p,
.footer-one a,
.footer-one li {
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
}

.footer-one a:hover {
    color: #fff;
}

.footer-one .footer-widget-links ul li a i {
    font-size: 10px;
    color: var(--ui-accent-text);
}

.footer-one .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
}

.footer-one .footer-bottom p,
.footer-one .footer-bottom a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-top {
    border-radius: 50%;
    background: var(--ui-accent);
    box-shadow: var(--ui-shadow);
}

/* ---------- Light theme: template parts ---------- */
[data-theme="light-mode"] body,
[data-theme="light-mode"] .body-dark-bg {
    background-color: var(--ui-bg);
}

[data-theme="light-mode"] .page-header {
    background: #121418;
}

[data-theme="light-mode"] .page-header__bg::before,
[data-theme="light-mode"] .banner-one__bg::after {
    background: linear-gradient(180deg, rgba(13, 14, 16, 0.55) 0%, rgba(13, 14, 16, 0.92) 100%) !important;
}

[data-theme="light-mode"] .department-gallery__filters button {
    background: var(--ui-surface);
    border-color: var(--ui-border);
    color: var(--ui-text-2);
}

[data-theme="light-mode"] .department-gallery__filters button.active {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    color: #fff;
}

[data-theme="light-mode"] .mobile-nav-toggler {
    color: #fff;
}

[data-theme="light-mode"] .sticky-menu .mobile-nav-toggler {
    color: var(--ui-text);
}

[data-theme="light-mode"] .sticky-menu .department-brand__text strong {
    color: var(--ui-text);
}

[data-theme="light-mode"] .blog-details__content,
[data-theme="light-mode"] .sidebar__single,
[data-theme="light-mode"] .sidebar__post,
[data-theme="light-mode"] .sidebar__category,
[data-theme="light-mode"] .sidebar__tags,
[data-theme="light-mode"] .blog-page__single,
[data-theme="light-mode"] .contact-page__form,
[data-theme="light-mode"] .contact-page__info,
[data-theme="light-mode"] .blog-one__single {
    background-color: var(--ui-surface);
}

[data-theme="light-mode"] input,
[data-theme="light-mode"] textarea,
[data-theme="light-mode"] select {
    color: var(--ui-text);
}

[data-theme="light-mode"] ::placeholder {
    color: var(--ui-faint);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .home-hero {
        padding: 140px 0 80px;
    }

    .home-notices {
        margin-top: 40px;
    }

    .home-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stats__item:nth-child(3) {
        border-left: 0;
    }

    .home-stats__item:nth-child(n + 3) {
        border-top: 1px solid var(--ui-border);
    }

    .home-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .ui-section {
        padding: 72px 0;
    }

    .page-header {
        padding: 130px 0 48px;
    }
}

@media (max-width: 575.98px) {
    .home-links,
    .home-about__points {
        grid-template-columns: 1fr;
    }

    .home-stats__item {
        padding: 20px;
    }

    .home-stats__item strong {
        font-size: 28px;
    }

    .home-hero__lead {
        font-size: 16px;
    }

    .home-cta {
        padding: 28px 24px;
    }

    .home-chair {
        padding: 24px;
    }
}

/* ---------- Always-dark areas keep light text in both themes ---------- */
[data-theme] .home-hero__lead { color: rgba(255, 255, 255, 0.78); }
[data-theme] .home-hero h1,
[data-theme] .home-notices__head h2,
[data-theme] .home-notices__date { color: #fff; }
[data-theme] .home-notices__title { color: rgba(255, 255, 255, 0.92); }
[data-theme] .home-notices__date small,
[data-theme] .home-notices__empty { color: rgba(255, 255, 255, 0.6); }
[data-theme] .home-notices__tag { color: #ff6b5e; }
[data-theme] .department-topbar__inner p,
[data-theme] .department-topbar__inner a { color: rgba(255, 255, 255, 0.72); }
[data-theme] .main-header-one .menu-area:not(.sticky-menu) .department-brand__text strong { color: #fff; }
[data-theme] .main-header-one .menu-area:not(.sticky-menu) .department-brand__text small { color: rgba(255, 255, 255, 0.6); }
[data-theme] .page-header__inner h2 { color: #fff; }
[data-theme] .home-cta p { color: rgba(255, 255, 255, 0.85); }
[data-theme] .footer-one p,
[data-theme] .footer-one li,
[data-theme] .footer-one a { color: rgba(255, 255, 255, 0.62); }
[data-theme] .footer-one a:hover,
[data-theme] .footer-one h3 { color: #fff; }

/* Secondary (outline) button in both themes */
[data-theme] .button-style-2 {
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-sm);
    background: transparent;
    color: var(--ui-text);
    font-family: var(--ui-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

[data-theme] .button-style-2:hover {
    background: var(--ui-tint);
    border-color: var(--ui-text);
    color: var(--ui-text);
}

[data-theme] .liuma-hero__actions .button-style-2 {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Breadcrumb sits on the dark page header in both themes */
[data-theme] .thm-breadcrumb li,
[data-theme] .thm-breadcrumb li a,
[data-theme] .thm-breadcrumb li span {
    color: rgba(255, 255, 255, 0.65);
}

[data-theme] .thm-breadcrumb li a:hover,
[data-theme] .thm-breadcrumb li:last-child {
    color: #fff;
}

/* The footer stays dark in both themes */
[data-theme="light-mode"] .footer-one,
[data-theme="light-mode"] .footer-one .footer-main,
[data-theme="light-mode"] .footer-one .footer-bottom {
    background-color: #0a0b0c !important;
}

[data-theme="light-mode"] .footer-one :is(p, li, a, span, small),
[data-theme="light-mode"] .footer-one .footer-blog-text :is(h3, h4, h5, a) {
    color: rgba(255, 255, 255, 0.62) !important;
}

[data-theme="light-mode"] .footer-one a:hover,
[data-theme="light-mode"] .footer-one .title h3,
[data-theme="light-mode"] .footer-one .department-brand__text strong {
    color: #fff !important;
}

[data-theme] .footer-one .icon-box {
    background: rgba(200, 23, 10, 0.16) !important;
    color: #ff6b5e !important;
}

[data-theme] .footer-one .icon-box span {
    color: #ff6b5e !important;
}

[data-theme] .footer-one .department-brand__mark,
[data-theme] .footer-one .department-brand__mark * {
    color: #fff !important;
}

/* Breadcrumb links on the dark page header, whatever the theme */
.page-header .thm-breadcrumb li,
.page-header .thm-breadcrumb li a,
.page-header .thm-breadcrumb li span {
    color: rgba(255, 255, 255, 0.65) !important;
}

.page-header .thm-breadcrumb li a:hover,
.page-header .thm-breadcrumb li:last-child {
    color: #fff !important;
}

/* Calendar: the selected day is red, so its number is white */
.dept-calendar__cell.is-selected,
.dept-calendar__cell.is-selected * {
    color: #fff !important;
}

/* LIUMA hero sits on a dark photo in both themes */
[data-theme] .banner-one__content .big-title h2,
[data-theme] .banner-one__content .big-title p,
[data-theme] .banner-one__content .liuma-hero__full {
    color: #fff !important;
}

[data-theme] .banner-one__content .big-title p:not(.liuma-hero__full) {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Alumni association panel */
.alumni-association {
    border-radius: var(--ui-radius);
    border: 1px solid var(--ui-border);
    background:
        radial-gradient(700px 260px at 0% 0%, var(--ui-accent-soft), transparent 70%),
        var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.alumni-association h3 { color: var(--ui-text); }
.alumni-association p { color: var(--ui-text-2); }
.alumni-association__mail { color: var(--ui-text-2); }

.alumni-association__stat {
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface-2);
    border: 1px solid var(--ui-border);
    border-left: 3px solid var(--ui-accent);
}

.alumni-association__stat strong { color: var(--ui-text); }
.alumni-association__stat span { color: var(--ui-muted); }

.alumni-card { border-radius: var(--ui-radius); }

.page-header .thm-breadcrumb li,
.page-header .thm-breadcrumb li a,
.page-header .thm-breadcrumb li span {
    font-family: var(--ui-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Status colours readable on white */
[data-theme="light-mode"] .lms-open { color: #a15c00; }
[data-theme="light-mode"] .lms-ok { color: #1f8a4c; }
[data-theme="light-mode"] .lms-alert--ok { color: #145c33; }

/* ---------- LIUMA page ---------- */
.liuma-page-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(48px, 7vw, 84px);
    letter-spacing: 0.02em;
}

[data-theme] .liuma-page-hero__full {
    margin: 0 0 20px;
    color: #fff;
    font-family: var(--ui-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.liuma-page-hero__seal {
    width: min(320px, 72vw);
    aspect-ratio: 1;
    padding: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 10px rgba(200, 23, 10, 0.08);
}

.liuma-page-hero__seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.liuma-activity {
    padding: 26px;
}

.liuma-activity h3 {
    margin: 18px 0 8px;
    color: var(--ui-text);
    font-size: 19px;
}

.liuma-activity p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 15px;
}

.liuma-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.liuma-steps li {
    padding: 28px;
}

.liuma-steps__num {
    display: inline-block;
    color: var(--ui-accent-text);
    font-family: var(--ui-heading);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.liuma-steps h3 {
    margin: 14px 0 8px;
    color: var(--ui-text);
    font-size: 20px;
}

.liuma-steps p {
    margin: 0;
    color: var(--ui-muted);
}

.liuma-join-points {
    grid-template-columns: 1fr;
}

/* ---------- Forms ---------- */
.ui-form-card {
    padding: 30px;
}

.ui-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--ui-text);
    font-size: 14px;
    font-weight: 600;
}

.ui-form label small {
    color: var(--ui-muted);
    font-weight: 400;
}

.ui-form input,
.ui-form textarea,
.ui-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ui-border-strong);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-input);
    color: var(--ui-text);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ui-form input:focus,
.ui-form textarea:focus,
.ui-form select:focus {
    outline: none;
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 3px var(--ui-accent-soft);
}

@media (max-width: 991.98px) {
    .liuma-steps {
        grid-template-columns: 1fr;
    }
}
