/* =========================================================
   PREMIUM.CSS — Xổ Số Theme Redesign (Green & White)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --green-950: #041f1a;
    --green-900: #0b3830;
    --green-800: #12554a;
    --green-700: #1F6F5F;
    /* Main Heading Color */
    --green-600: #298d7b;
    --green-500: #38b09b;
    --green-400: #5eceb9;
    --green-300: #8ee3d2;
    --green-100: #ccf3eb;
    --green-50: #e6faf6;

    --color-primary: var(--green-700);
    --color-primary-dark: var(--green-800);
    --color-accent: #f59e0b;
    /* Amber for highlights */
    --color-red: #ef4444;
    /* Prize red */

    --color-bg: #f4f7f6;
    --color-surface: #ffffff;

    --color-heading-bg: var(--green-700);
    --color-heading-text: #ffffff;

    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;

    --color-text: #1f2937;
    --color-text-secondary: #4b5563;
    --color-text-muted: #9ca3af;

    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================
   GLOBAL RESET 
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 0.5em;
    color: var(--color-text);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-border-light);
}

::-webkit-scrollbar-thumb {
    background: var(--green-400);
    border-radius: 100px;
}

/* ==========================================================
   NEW HEADER DESIGN (Clean White, Sticky, Soft Shadow)
   ========================================================== */
.new-header {
    background: var(--color-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}

.new-header-top {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 8px 0;
}

.new-header-top .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-live {
    color: #4ade80;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-live .dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.top-region span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 6px;
}

.new-header-main {
    padding: 10px 0;
}

.new-header-main .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.new-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.new-brand img {
    height: 48px;
    width: auto;
    border-radius: 0;
}

.new-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.new-brand .brand-text strong {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--green-800);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.new-brand .brand-text span {
    font-size: 11px;
    font-weight: 600;
    color: var(--green-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav */
.new-nav {
    display: none;
    flex: 1;
    justify-content: center;
}

@media (min-width: 1024px) {
    .new-nav {
        display: flex;
    }
}

.new-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.new-nav ul li {
    position: relative;
    display: flex;
    align-items: center;
}

.new-nav ul li a,
.new-nav ul li a.fl {
    padding: 3px 16px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    border-radius: var(--radius-full);
    text-transform: capitalize;
    transition: all var(--transition);
}

.new-nav ul li:hover>a,
.new-nav ul li.active>a {
    background: var(--green-50);
    color: var(--green-700);
}

/* Submenu */
.new-nav ul li img,
.new-nav ul li .arr-d {
    display: none !important;
}

.new-nav ul li .menu-c2 {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 8px;
    border: 1px solid var(--color-border-light);
    z-index: 100;
}

.new-nav ul li:hover .menu-c2 {
    display: block;
    animation: dropDown 0.2s ease;
}

@keyframes dropDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-nav ul li .menu-c2 li {
    display: block;
    margin-bottom: 2px;
}

.new-nav ul li .menu-c2 li:last-child {
    margin-bottom: 0;
}

.new-nav ul li .menu-c2 li a {
    padding: 10px 14px;
    display: block;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
}

.new-nav ul li .menu-c2 li a:hover {
    background: var(--green-50);
    color: var(--green-800);
    padding-left: 18px;
}

/* Base Wrapper */
.wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--green-800);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--green-100);
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

/* ==========================================================
   LAYOUT GRID
   ========================================================== */
.new-layout {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 24px;
    margin: 32px auto;
    align-items: start;
}

.new-left,
.new-right {
    position: sticky;
    top: 108px;
    z-index: 10;
}

@media (max-width: 1100px) {
    .new-layout {
        grid-template-columns: 1fr 300px;
    }

    .new-left {
        grid-column: span 2;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }

    .new-left>* {
        flex: 1 1 300px;
    }
}

@media (max-width: 768px) {
    .new-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px auto;
    }

    .new-left {
        grid-column: 1;
    }
}

/* Single Layout */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin: 32px auto;
    align-items: start;
}

@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
}

.new-main-content {
    min-width: 0;
}

/* ==========================================================
   BOXES & CARDS
   ========================================================== */
.box,
.new-card,
.premium-card .col-l,
.sidebar-modern .card-inner,
.db-left .card-inner,
.db-right .card-inner,
.content-right {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    margin-bottom: 24px;
}

/* No hover scale for all boxes to prevent jumping, only subtle shadow */
.box:hover {
    box-shadow: var(--shadow-md);
}

/* Remove default backgrounds from wrappers */
.premium-dashboard {
    background: transparent !important;
}

.db-center {
    background: transparent;
}

.sidebar-modern {
    background: transparent;
}

/* ==========================================================
   HEADINGS & TITLES (Dark Green Backgrounds)
   ========================================================== */
.tit-mien,
.title-bor,
.kq-title,
.box .kq-title,
.tit-mien h2,
.tit-mien a,
.title-bor h2,
.content-right .title-r,
h2.section-heading,
.box h2:first-child,
.box>h3:first-child {
    background: var(--color-heading-bg) !important;
    color: var(--color-heading-text) !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: none !important;
    margin: 0;
    font-family: var(--font-heading);
}

.content-right .title-r {
    text-align: left;
    font-size: 14px !important;
    padding: 14px 16px !important;
}

.content-right .title-r a {
    color: var(--color-heading-text) !important;
}

/* ==========================================================
   TABLES
   ========================================================== */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--green-50);
    color: var(--green-900);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 8px;
    border: 1px solid var(--color-border-light);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px 8px;
    border: 1px solid var(--color-border-light);
    font-size: 15px;
    text-align: center;
    color: var(--color-text);
    background: var(--color-surface);
}

.colgiai tbody>tr:nth-of-type(odd) td {
    background: #fdfdfd;
}

.colgiai tbody>tr:hover td {
    background: var(--green-50);
}

.colgiai td div {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-red);
    padding: 4px 0;
}

.colgiai .gdb div,
.colgiai .g8 div {
    font-size: 30px;
    color: var(--color-red);
    letter-spacing: 2px;
}

table.kqmb td.number {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-red);
}

.kqmb .g7 .number,
table.kqmb .db td.number,
table.kqmb .g8 .number {
    font-size: 30px;
    letter-spacing: 2px;
}

/* Striped styling for specific components */
.kqtinh td.v-giai span[class^=v-g] {
    display: inline-block;
    padding: 10px 0;
    font-weight: 600;
}

/* ==========================================================
   TABS
   ========================================================== */
.tab-panel {
    background: transparent;
    border-bottom: 2px solid var(--green-700);
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

.tab-panel li {
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-right: 4px;
    flex: 1;
    text-align: center;
}

.tab-panel li a {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 16px;
    display: block;
}

.tab-panel li:hover {
    background: var(--green-50);
}

.tab-panel li:hover a {
    color: var(--green-700);
}

.tab-panel li.active {
    background: var(--color-heading-bg) !important;
    border-color: var(--color-heading-bg);
}

.tab-panel li.active a {
    color: #fff;
    font-weight: 700;
}

/* ==========================================================
   SIDEBAR FRESH DESIGN
   ========================================================== */
.content-right {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 32px !important;
}

.content-right .title-r {
    background: transparent !important;
    color: var(--green-900) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    padding: 0 0 12px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid var(--green-100) !important;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-right .title-r::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background: var(--color-accent) !important;
    border-radius: 10px;
}

.content-right .title-r a {
    color: var(--green-900) !important;
}

/* Sidebar List Items as floating bubbles / distinct cards */
ul.content-right,
.content-right ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-right li {
    background: #ffffff;
    padding: 12px 16px !important;
    border-radius: 12px;
    border: 1px solid var(--color-border) !important;
    font-size: 14.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.content-right li::before {
    content: '→';
    margin-right: 12px;
    background: var(--green-50);
    color: var(--green-600);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-main);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.content-right li:last-child {
    border-bottom: 1px solid var(--color-border) !important;
    /* Retain border for all bubble cards */
}

.content-right li:hover {
    background: var(--green-50) !important;
    border-color: var(--green-100) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(31, 111, 95, 0.08);
}

.content-right a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    flex: 1;
}

.content-right a:hover {
    color: var(--green-700);
    padding-left: 0 !important;
}

/* ==========================================================
   OPT DATE 
   ========================================================== */
.opt_date_full {
    background: var(--green-50);
    border: 1px solid var(--green-100);
    color: var(--green-800);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.opt_date_full input {
    background: transparent;
    color: var(--green-800);
    font-weight: 600;
    border: none;
    outline: none;
    width: 90px;
    text-align: center;
    font-family: var(--font-main);
}

/* ==========================================================
   PAGINATION
   ========================================================== */
.paging {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.paging a {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 8px 14px;
    box-shadow: var(--shadow-sm);
}

.paging a:hover,
.paging a.active {
    background: var(--green-600);
    color: #fff;
    border-color: var(--green-600);
}

/* ==========================================================
   SINGLE HERO
   ========================================================== */
.single-hero-banner {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.single-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 50%);
}

.single-title {
    font-size: clamp(28px, 5vw, 42px);
    color: #fff;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 10;
}

.single-meta {
    color: var(--green-100);
    font-weight: 500;
    display: inline-flex;
    gap: 16px;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 10;
}

/* ==========================================================
   MEGA645 / VIETLOTT
   ========================================================== */
.mega645 .results li .data td i {
    font-size: 1.2rem;
    font-weight: 800;
    width: 2.8rem;
    height: 2.8rem;
    line-height: 2.8rem;
    border-radius: 50%;
}

.keno .results .data td i {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    border-radius: 50%;
}

/* ==========================================================
   ALERTS / ANNOUNCEMENTS
   ========================================================== */
.announcement {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.announcement .announcement-title {
    color: var(--green-800);
    font-size: 18px;
    margin-bottom: 12px;
}

.alert {
    background: var(--green-50);
    border-left: 4px solid var(--green-500);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--green-900);
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn-see-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: var(--green-600);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(41, 141, 123, 0.3);
    margin: 16px auto;
}

.btn-see-more:hover {
    background: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 141, 123, 0.4);
    color: #fff;
}

a.item_sublink {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--green-700) !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-block;
    margin: 4px;
    box-shadow: var(--shadow-sm);
}

a.item_sublink:hover {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ==========================================================
   EXTRA: BLOG & POST STYLING
   ========================================================== */
.box-detail {
    padding: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
}

.box-detail h2,
.box-detail h3 {
    color: var(--green-900);
    margin-top: 24px;
}

.blog-article-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* ==========================================================
   MOBILE DRAWER NAVIGATION
   ========================================================== */
#menu-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

html.menu-active #menu-mobile-backdrop {
    display: block;
}

#nav-horizontal.nav-pc {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 320px;
    background: var(--color-surface);
    z-index: 2001;
    transform: translateX(-100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

html.menu-active #nav-horizontal.nav-pc {
    visibility: visible;
    transform: translateX(0);
}

#nav-horizontal .menu-header {
    background: var(--green-900) !important;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header .home-logo img {
    height: 40px;
    border-radius: 0;
}

.menu-header .close-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.menu-header .close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.drawer-nav-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    overflow-y: auto;
    flex: 1;
}

.drawer-nav-list li {
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
    float: none !important;
}

.drawer-nav-list li>a {
    display: block;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 14px;
}

.drawer-nav-list li>a:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.drawer-nav-list li .arr-d {
    position: absolute;
    right: 20px;
    top: 16px;
    background: var(--green-50);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-800);
    cursor: pointer;
}

.drawer-nav-list li .menu-c2 {
    display: none;
    background: #f9fafb;
    padding: 8px 0;
    border-top: 1px solid var(--color-border-light);
}

.drawer-nav-list li .menu-c2 li {
    border-bottom: none;
}

.drawer-nav-list li .menu-c2 li a {
    padding: 12px 20px 12px 40px;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    display: block;
}

.drawer-nav-list li .menu-c2 li a:hover {
    color: var(--green-800);
    background: var(--green-50);
}

.drawer-nav-list li img {
    display: none !important;
}

/* Submenu activation hook - rely on JS assigning active or similar */
.drawer-nav-list li.active .menu-c2,
.drawer-nav-list li:hover .menu-c2 {
    display: block;
}

/* ==========================================================
   PAGE TITLE STRIP (for 404 and fallback)
   ========================================================== */
.page-title-strip {
    background: var(--green-800);
    padding: 40px 0;
    margin-bottom: 32px;
}

.page-title-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.ptitle-left h1.page-title-text {
    font-size: 32px;
    color: #fff;
    margin: 0 0 8px;
}

.ptitle-sub {
    color: var(--green-100);
    font-weight: 500;
    font-size: 16px;
    margin: 0;
}

.ptitle-date-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.ptitle-date-label {
    display: block;
    color: var(--green-100);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.ptitle-date-value {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

/* Utility fixes */
.bg-orange {
    background: var(--color-heading-bg) !important;
    color: #fff !important;
}

.b-inner {
    display: flex;
    justify-content: space-between;
}

.tab-content>.tab {
    display: none;
}

.tab-content>.active {
    display: block;
}

.firstlast-mb.fl {
    float: left;
    width: 48%;
}

.firstlast-mb.fr {
    float: right;
    width: 48%;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Go Top button */
#go-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--green-600);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

#go-top:hover {
    background: var(--green-700);
    transform: translateY(-2px);
}

/* Remove previous legacy overriding */
img.brand-logo-img {
    max-height: 48px;
}

/* Misc styles */
h2,
h3,
h4,
.title {
    font-family: var(--font-heading);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Error 404 pure */
.error-404-card {
    background: var(--color-surface);
    padding: 64px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.error-404-code {
    font-size: 80px;
    color: var(--green-700);
    font-weight: 800;
    margin: 0 0 16px;
}

.error-404-msg {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.btn-404-home {
    background: var(--green-600);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-block;
}

.error-404-links {
    margin-top: 32px;
    font-weight: 500;
}

.error-404-links a {
    color: var(--green-700);
    margin: 0 8px;
}

nav {
    background: none;
}

@media (min-width: 1024px) {
    .col-center {
        width: 100%;
    }
}

@media (min-width: 1090px) {
    .col-l {
        width: 100%;
    }
}

/* ==========================================================
   NEW FOOTER DESIGN
   ========================================================== */
.new-footer {
    background: var(--green-950);
    color: var(--green-100);
    margin-top: 48px;
    border-top: 4px solid var(--green-700);
}

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

.new-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .new-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .new-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Footer Brand */
.ft-brand .ft-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.ft-brand .ft-logo img {
    height: 48px;
    opacity: 0.9;
}

.ft-brand .ft-logo strong {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    letter-spacing: -0.5px;
}

.ft-brand .ft-desc {
    font-size: 14.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ft-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ft-badges span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer Links & Contact */
.footer-col .ft-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col .ft-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--green-500);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col li:last-child {
    margin-bottom: 0;
}

.footer-col a {
    color: var(--color-text-muted);
    font-size: 14.5px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-col a:hover {
    color: var(--green-400);
    transform: translateX(4px);
}

.ft-contact .ft-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* Footer Bottom Bar */
.footer-bottom {
    background: #02120e;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .b-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom .b-left p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-bottom .b-left strong {
    color: #fff;
}

.footer-bottom .b-right {
    display: flex;
    gap: 20px;
}

.footer-bottom .b-right a {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.footer-bottom .b-right a:hover {
    color: var(--green-400);
}