﻿:root {
            --red: #2b944a;
            --deep-red: #a90000;
            --purple: #7028f3;
            --deep-purple: #4a01ab;
            --ink: #202124;
            --muted: #6b7280;
            --line: #e9e9ef;
            --soft: #f5f5f8;
            --footer: #17171f;
            --max: 1180px;
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            color: var(--ink);
            background: #fff;
            font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
            font-size: 15px;
            line-height: 1.65;
        }

        img {
            display: block;
            max-width: 100%;
            height: auto;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .container {
            width: min(var(--max), calc(100% - 32px));
            margin: 0 auto;
        }

        .top-strip {
            background: var(--red);
            color: #fff;
            font-size: 14px;
        }

        .top-strip .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 8px 0;
        }

        .top-strip span {
            white-space: nowrap;
        }

        .top-strip-actions {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .language-switcher {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .language-btn {
            display: grid;
            width: 32px;
            height: 28px;
            place-items: center;
            border: 1px solid rgb(255 255 255 / 45%);
            border-radius: 6px;
            background: rgb(255 255 255 / 14%);
            color: #fff;
            cursor: pointer;
            font: inherit;
            line-height: 1;
            transition: 160ms ease;
        }

        .language-btn:hover,
        .language-btn.is-active {
            border-color: #fff;
            background: #fff;
            box-shadow: 0 2px 8px rgb(0 0 0 / 16%);
        }

        .header {
            background: #fff;
            padding: 20px 0;
        }

        .brand {
            display: grid;
            grid-template-columns: 132px 1fr;
            gap: 18px;
            align-items: center;
        }

        .brand-logo {
            width: 120px;
            margin: auto;
        }

        .brand h1 {
            margin: 0;
            color: var(--deep-purple);
            font-size: clamp(24px, 4vw, 42px);
            line-height: 1.25;
            font-weight: 700;
        }

        .brand p {
            margin: 6px 0 0;
            color: var(--red);
            font-size: clamp(17px, 2vw, 24px);
            font-weight: 700;
        }

        .nav-wrap {
            position: sticky;
            top: 0;
            z-index: 10;
            background: #fff;
            box-shadow: 0 2px 7px rgb(0 0 0 / 25%);
        }

        .nav {
            display: flex;
            align-items: stretch;
            justify-content: center;
            min-height: 54px;
        }

        .nav > a,
        .dropdown > button {
            display: flex;
            align-items: center;
            padding: 0 18px;
            border: 0;
            background: transparent;
            color: #232323;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
        }

        .nav > a:hover,
        .dropdown:hover > button {
            background: var(--red);
            color: #fff;
        }

        .dropdown {
            position: relative;
            display: flex;
        }

        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 230px;
            padding: 8px 0;
            background: #fff;
            box-shadow: 0 14px 30px rgb(0 0 0 / 18%);
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: 180ms ease;
        }

        .dropdown:hover .dropdown-menu {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .dropdown-menu a {
            display: block;
            padding: 9px 16px;
            border-bottom: 1px solid #f0f0f0;
            color: #333;
        }

        .dropdown-menu a:hover {
            color: var(--red);
        }

        .search-band {
            background: linear-gradient(90deg, var(--red) 0 23%, #fff 23% 100%);
            padding: 18px 0;
        }

        .search-box {
            display: grid;
            grid-template-columns: 210px 1fr 120px;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
        }

        .search-title {
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--red);
            color: #fff;
            font-weight: 700;
        }

        .search-box input {
            min-width: 0;
            padding: 13px 16px;
            border: 0;
            font: inherit;
        }

        .search-box button {
            border: 0;
            background: var(--deep-purple);
            color: #fff;
            font: inherit;
            font-weight: 700;
        }

        .hero {
            background: #f7f7fb;
            padding: 30px 0 36px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.55fr .8fr;
            gap: 24px;
            align-items: stretch;
        }

        .hero-card {
            position: relative;
            min-height: 365px;
            overflow: hidden;
            border-radius: 0;
            background: #111;
        }

        .hero-card img {
            width: 100%;
            height: 100%;
            min-height: 365px;
            object-fit: cover;
        }

        .hero-card::after {
            position: absolute;
            inset: 0;
            content: "";
            background: linear-gradient(0deg, rgb(0 0 0 / 70%), rgb(0 0 0 / 5%) 60%);
        }

        .hero-copy {
            position: absolute;
            left: 28px;
            right: 28px;
            bottom: 24px;
            z-index: 1;
            color: #fff;
        }

        .hero-copy .badge {
            display: inline-block;
            margin-bottom: 10px;
            padding: 5px 16px;
            border-radius: 20px;
            background: var(--red);
            font-weight: 700;
        }

        .hero-copy h2 {
            margin: 0;
            font-size: clamp(24px, 3vw, 40px);
            line-height: 1.25;
            text-shadow: 2px 2px 0 #000;
        }

        .notice {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            background: #fff;
            border: 1px solid var(--line);
            padding: 24px;
        }

        .notice h2 {
            margin: 0 0 10px;
            color: var(--deep-purple);
            font-size: 27px;
        }

        .notice .announce {
            margin: 0;
            padding: 16px;
            border-left: 5px solid var(--red);
            background: #fff5f5;
            color: #4b4b4b;
            font-weight: 700;
        }

        .notice .slogan {
            margin: 22px 0 0;
            color: var(--red);
            font-size: 25px;
            font-weight: 700;
            text-align: center;
        }

        .quick-links {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 24px;
        }

        .quick-links a {
            padding: 12px 10px;
            border-radius: 30px;
            background: var(--soft);
            color: var(--deep-purple);
            text-align: center;
            font-weight: 700;
        }

        .quick-links a:first-child {
            background: var(--purple);
            color: #fff;
        }

        .main {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 24px;
            padding: 30px 0;
        }

        .section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 18px;
        }

        .section-title h2 {
            margin: 0;
            color: var(--deep-purple);
            font-size: 26px;
        }

        .more {
            color: var(--red);
            font-weight: 700;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .news-card {
            overflow: hidden;
            border: 1px solid var(--line);
            background: #fff;
        }

        .news-card img {
            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
        }

        .news-card div {
            padding: 12px 14px 16px;
        }

        .news-card h3 {
            margin: 0 0 8px;
            color: #252525;
            font-size: 16px;
            line-height: 1.45;
        }

        .news-card p,
        .mini-list p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
        }

        .mini-list {
            margin-top: 22px;
            border-top: 1px dashed #ccc;
        }

        .mini-item {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 14px;
            padding: 12px 0;
            border-bottom: 1px dashed #ccc;
        }

        .mini-item a {
            color: #242424;
            font-weight: 700;
        }

        .mini-item span {
            color: var(--muted);
            font-size: 13px;
        }

        .side {
            display: grid;
            gap: 18px;
            align-content: start;
        }

        .panel {
            border: 1px solid var(--line);
            background: #fff;
            padding: 16px;
        }

        .director {
            text-align: center;
        }

        .director img {
            width: 200px;
            height: 200px;
            margin: 0 auto 12px;
            object-fit: cover;
            border-radius: 50%;
        }

        .director strong {
            display: block;
            color: var(--deep-purple);
            font-size: 18px;
        }

        .panel h3 {
            margin: 0 0 12px;
            color: var(--deep-purple);
            font-size: 20px;
        }

        .link-list {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .link-list li {
            border-bottom: 1px dashed #ddd;
        }

        .link-list a,
        .link-list span {
            display: block;
            padding: 8px 0;
        }

        .system-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .system-grid a {
            padding: 13px 10px;
            border: 1px solid var(--line);
            color: var(--deep-purple);
            text-align: center;
            font-weight: 700;
        }

        .activity,
        .downloads {
            padding: 34px 0;
            background: #fafafa;
        }

        .activity-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
        }

        .activity-card {
            border: 1px solid var(--line);
            background: #fff;
        }

        .activity-card img {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }

        .activity-card h3 {
            margin: 0;
            padding: 12px;
            font-size: 15px;
            line-height: 1.4;
        }

        .download-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
        }

        .download-box {
            border: 1px solid var(--line);
            background: #fff;
            padding: 18px;
            box-shadow: 3px 5px 30px rgb(0 0 0 / 8%);
        }

        .download-box h3 {
            margin: 0 0 12px;
            color: var(--deep-purple);
        }

        .download-box p {
            margin: 0 0 14px;
            color: var(--muted);
        }

        .banner-links {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            padding: 28px 0;
        }

        .banner-links img {
            width: 100%;
            border: 1px solid var(--line);
        }

        .footer {
            background: var(--footer);
            color: #d9d9e3;
            padding: 42px 0 26px;
        }

        .footer-top {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            gap: 30px;
            padding-bottom: 26px;
            border-bottom: 1px solid rgb(255 255 255 / 12%);
            text-align: center;
        }

        .footer-top img {
            width: 150px;
            margin: 0 auto 10px;
        }

        .qr img {
            width: 155px;
            margin: 0 auto;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.2fr .9fr 1.1fr 1fr;
            gap: 26px;
            padding-top: 28px;
        }

        .footer h3 {
            margin: 0 0 12px;
            color: #fff;
            font-size: 18px;
        }

        .footer ul,
        .footer ol {
            margin: 0;
            padding-left: 22px;
        }

        .copyright {
            background: #0c0c12;
            color: #c7c7d1;
            padding: 13px 16px;
            text-align: center;
            font-size: 13px;
        }

        .chat-buttons {
            position: fixed;
            right: 18px;
            bottom: 18px;
            display: grid;
            gap: 8px;
            z-index: 20;
        }

        .chat-buttons img {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
        }

        .page-hero {
            position: relative;
            overflow: hidden;
            padding: 58px 0 64px;
            background:
                linear-gradient(90deg, rgb(74 1 171 / 92%), rgb(112 40 243 / 78%)),
                url("https://www.mueangnakhonsidole.com/images/thumbnails/mod_minifrontpage/55_125.webp") center / cover;
            color: #fff;
        }

        .page-hero::after {
            position: absolute;
            right: max(22px, calc((100% - var(--max)) / 2));
            bottom: -70px;
            width: 230px;
            height: 230px;
            border: 34px solid rgb(255 255 255 / 12%);
            border-radius: 50%;
            content: "";
        }

        .page-hero .container {
            position: relative;
            z-index: 1;
        }

        .breadcrumb {
            display: inline-block;
            margin-bottom: 14px;
            padding: 6px 16px;
            border-radius: 18px;
            background: rgb(255 255 255 / 16%);
            font-size: 14px;
            font-weight: 700;
        }

        .page-hero h2 {
            max-width: 820px;
            margin: 0;
            font-size: clamp(30px, 5vw, 52px);
            line-height: 1.2;
            text-shadow: 2px 2px 0 rgb(0 0 0 / 30%);
        }

        .page-hero p {
            max-width: 760px;
            margin: 16px 0 0;
            font-size: clamp(16px, 2vw, 21px);
        }

        .history-page {
            background: linear-gradient(180deg, #fafafa, #fff 260px);
            padding: 34px 0 46px;
        }

        .history-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 310px;
            gap: 28px;
            align-items: start;
        }

        .history-content {
            border: 1px solid var(--line);
            background: #fff;
            padding: clamp(22px, 4vw, 42px);
            box-shadow: 0 16px 38px rgb(0 0 0 / 7%);
        }

        .history-heading {
            margin-bottom: 22px;
            padding-bottom: 18px;
            border-bottom: 1px dashed #d8d8df;
        }

        .history-heading span {
            display: inline-block;
            margin-bottom: 8px;
            color: var(--red);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0;
        }

        .history-heading h2 {
            margin: 0;
            color: var(--deep-purple);
            font-size: clamp(25px, 4vw, 36px);
            line-height: 1.3;
        }

        .history-content p {
            margin: 0 0 18px;
            color: #30323a;
            font-size: 17px;
            text-align: justify;
            text-indent: 2em;
        }

        .objective-box {
            margin-top: 28px;
            padding: 24px;
            border-left: 6px solid var(--red);
            background: #fbf8ff;
        }

        .objective-box h3 {
            margin: 0 0 10px;
            color: var(--deep-purple);
            font-size: 24px;
        }

        .objective-box p {
            text-indent: 0;
        }

        .objective-box ol {
            display: grid;
            gap: 12px;
            margin: 16px 0 0;
            padding: 0;
            list-style: none;
            counter-reset: objective;
        }

        .objective-box li {
            position: relative;
            min-height: 52px;
            padding: 12px 14px 12px 64px;
            border: 1px solid #ebe4ff;
            background: #fff;
            color: #2f3138;
            font-size: 16px;
        }

        .objective-box li::before {
            position: absolute;
            top: 12px;
            left: 14px;
            display: grid;
            width: 34px;
            height: 34px;
            place-items: center;
            border-radius: 50%;
            background: var(--purple);
            color: #fff;
            counter-increment: objective;
            content: counter(objective);
            font-weight: 700;
        }

        .history-side {
            display: grid;
            gap: 18px;
        }

        .history-card,
        .history-menu {
            border: 1px solid var(--line);
            background: #fff;
            padding: 20px;
            box-shadow: 0 12px 28px rgb(0 0 0 / 6%);
        }

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

        .history-card img {
            width: 118px;
            margin: 0 auto 14px;
        }

        .history-card h3,
        .history-menu h3 {
            margin: 0 0 12px;
            color: var(--deep-purple);
            font-size: 20px;
            line-height: 1.35;
        }

        .history-card p {
            margin: 0;
            color: var(--muted);
        }

        .history-menu a {
            display: block;
            padding: 11px 0;
            border-bottom: 1px dashed #ddd;
            color: #2e2e34;
            font-weight: 700;
        }

        .history-menu a:last-child {
            border-bottom: 0;
        }

        .history-menu a.active,
        .history-menu a:hover {
            color: var(--red);
        }

        .authority-intro {
            max-width: 820px;
            margin-bottom: 24px !important;
            padding: 18px 20px;
            border-left: 6px solid var(--red);
            background: #fbf8ff;
            text-indent: 0 !important;
        }

        .authority-list {
            display: grid;
            gap: 16px;
        }

        .authority-item {
            display: grid;
            grid-template-columns: 86px 1fr;
            gap: 18px;
            align-items: stretch;
            border: 1px solid #ebe4ff;
            background: #fff;
            box-shadow: 0 10px 22px rgb(0 0 0 / 5%);
        }

        .authority-item > span {
            display: grid;
            place-items: center;
            background: var(--purple);
            color: #fff;
            font-size: 24px;
            font-weight: 700;
        }

        .authority-item div {
            padding: 18px 18px 18px 0;
        }

        .authority-item h3 {
            margin: 0 0 8px;
            color: var(--deep-purple);
            font-size: 21px;
            line-height: 1.35;
        }

        .authority-item p {
            margin: 0;
            color: #30323a;
            font-size: 16px;
            text-align: left;
            text-indent: 0;
        }

        .vision-box {
            position: relative;
            overflow: hidden;
            margin-bottom: 34px;
            padding: clamp(24px, 5vw, 38px);
            background: linear-gradient(135deg, var(--deep-purple), var(--purple));
            color: #fff;
            box-shadow: 0 16px 34px rgb(74 1 171 / 22%);
        }

        .vision-box::after {
            position: absolute;
            right: -42px;
            bottom: -72px;
            width: 190px;
            height: 190px;
            border: 30px solid rgb(255 255 255 / 13%);
            border-radius: 50%;
            content: "";
        }

        .vision-box span {
            position: relative;
            z-index: 1;
            display: inline-block;
            margin-bottom: 12px;
            padding: 5px 16px;
            border-radius: 18px;
            background: rgb(255 255 255 / 18%);
            font-weight: 700;
        }

        .vision-box p {
            position: relative;
            z-index: 1;
            max-width: 860px;
            margin: 0;
            color: #fff;
            font-size: clamp(24px, 4vw, 36px);
            line-height: 1.45;
            text-align: left;
            text-indent: 0;
            font-weight: 700;
        }

        .mission-section {
            margin-top: 12px;
        }

        .mission-heading {
            margin-bottom: 18px;
        }

        .mission-list {
            display: grid;
            gap: 18px;
        }

        .mission-item {
            display: grid;
            grid-template-columns: 92px 1fr;
            gap: 18px;
            border: 1px solid var(--line);
            background: #fff;
            box-shadow: 0 10px 22px rgb(0 0 0 / 5%);
        }

        .mission-item > span {
            display: grid;
            place-items: center;
            background: var(--red);
            color: #fff;
            font-size: 24px;
            font-weight: 700;
        }

        .mission-item > div {
            padding: 20px 20px 20px 0;
        }

        .mission-item h3 {
            margin: 0 0 8px;
            color: var(--deep-purple);
            font-size: 22px;
            line-height: 1.35;
        }

        .mission-item p {
            margin: 0;
            color: #30323a;
            font-size: 16px;
            text-align: left;
            text-indent: 0;
        }

        .mission-note {
            margin-top: 14px;
            padding: 12px 14px;
            border-left: 4px solid var(--purple);
            background: #fbf8ff;
            color: #30323a;
            font-weight: 700;
        }

        .laws-page {
            padding-bottom: 58px;
        }

        .laws-content {
            display: grid;
            gap: 22px;
        }

        .laws-summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            margin-bottom: 6px;
        }

        .laws-summary div {
            padding: 18px;
            border: 1px solid #ebe4ff;
            background: #fbf8ff;
        }

        .laws-summary strong {
            display: block;
            color: var(--deep-purple);
            font-size: 30px;
            line-height: 1;
        }

        .laws-summary span {
            display: block;
            margin-top: 8px;
            color: #3f4050;
            font-weight: 700;
        }

        .law-section {
            border: 1px solid var(--line);
            background: #fff;
            box-shadow: 0 12px 28px rgb(0 0 0 / 5%);
        }

        .law-section-head {
            display: grid;
            grid-template-columns: 76px 1fr;
            gap: 18px;
            padding: 20px;
            border-bottom: 1px solid var(--line);
            background: linear-gradient(90deg, #fbf8ff, #fff);
        }

        .law-section-head > span {
            display: grid;
            min-height: 58px;
            place-items: center;
            background: var(--deep-purple);
            color: #fff;
            font-size: 22px;
            font-weight: 700;
        }

        .law-section-head h3 {
            margin: 0 0 6px;
            color: var(--deep-purple);
            font-size: 24px;
            line-height: 1.35;
        }

        .law-section-head p {
            margin: 0;
            color: #3f4050;
            text-align: left;
            text-indent: 0;
        }

        .law-list {
            display: grid;
        }

        .law-item {
            display: grid;
            grid-template-columns: 58px minmax(0, 1fr) auto;
            gap: 16px;
            align-items: center;
            padding: 18px 20px;
            border-bottom: 1px solid var(--line);
            transition: 160ms ease;
        }

        .law-item:last-child {
            border-bottom: 0;
        }

        .law-item:hover {
            background: #fbf8ff;
        }

        .law-icon {
            display: grid;
            width: 54px;
            height: 54px;
            place-items: center;
            background: var(--red);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
        }

        .law-item h4 {
            margin: 0 0 5px;
            color: var(--deep-purple);
            font-size: 18px;
            line-height: 1.4;
        }

        .law-item p {
            margin: 0;
            color: #3f4050;
            text-align: left;
            text-indent: 0;
        }

        .law-item strong {
            justify-self: end;
            padding: 8px 14px;
            background: var(--deep-purple);
            color: #fff;
            font-size: 14px;
            white-space: nowrap;
        }

        .law-item:hover strong {
            background: var(--red);
        }

        .laws-card {
            border-top: 4px solid var(--deep-purple);
        }

        .teachers-page {
            background: #fff;
            padding: 42px 0 58px;
        }

        .teachers-heading {
            max-width: 860px;
            margin-bottom: 22px;
        }

        .director-feature {
            margin-bottom: 32px;
        }

        .director-profile {
            display: grid;
            justify-items: center;
            max-width: 760px;
            margin: 0 auto;
            text-align: center;
        }

        .director-profile img {
            width: 150px;
            aspect-ratio: 3 / 4;
            object-fit: cover;
            background: #2f80ed;
            box-shadow: 0 12px 24px rgb(0 0 0 / 10%);
        }

        .director-profile h3 {
            margin: 12px 0 4px;
            color: var(--deep-purple);
            font-size: 20px;
            line-height: 1.35;
        }

        .director-profile p {
            margin: 0;
            color: #20243a;
            font-size: 16px;
            text-align: center;
            text-indent: 0;
        }

        .personnel-section {
            margin-top: 28px;
        }

        .personnel-divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 0 0 22px;
            color: #181b28;
            font-weight: 700;
            text-align: center;
        }

        .personnel-divider::before,
        .personnel-divider::after {
            flex: 1;
            height: 1px;
            background: #202124;
            content: "";
        }

        .personnel-divider span {
            white-space: nowrap;
        }

        .personnel-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 28px;
        }

        .person-card {
            border-bottom: 1px solid #d8d8df;
            background: #fff;
            transition: 160ms ease;
        }

        .person-card:hover {
            transform: translateY(-3px);
        }

        .person-card img {
            width: 100%;
            aspect-ratio: 16 / 6;
            object-fit: cover;
            background: #303030;
        }

        .person-card div {
            padding: 12px 2px 22px;
        }

        .person-card h3 {
            margin: 0 0 4px;
            color: var(--deep-purple);
            font-size: 18px;
            line-height: 1.4;
        }

        .person-card p {
            margin: 0;
            color: #30323a;
            text-align: left;
            text-indent: 0;
        }

        .news-page {
            background: linear-gradient(180deg, #fafafa, #fff 260px);
            padding: 34px 0 48px;
        }

        .news-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 300px;
            gap: 28px;
            align-items: start;
        }

        .news-list-area,
        .news-side-box {
            border: 1px solid var(--line);
            background: #fff;
            box-shadow: 0 14px 32px rgb(0 0 0 / 6%);
        }

        .news-list-area {
            padding: clamp(18px, 3vw, 28px);
        }

        .news-toolbar {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 22px;
            padding-bottom: 18px;
            border-bottom: 1px dashed #d8d8df;
        }

        .news-toolbar span {
            display: inline-block;
            margin-bottom: 6px;
            color: var(--red);
            font-size: 13px;
            font-weight: 700;
        }

        .news-toolbar h2 {
            margin: 0;
            color: var(--deep-purple);
            font-size: clamp(24px, 4vw, 34px);
            line-height: 1.25;
        }

        .news-filter {
            display: grid;
            grid-template-columns: minmax(190px, 1fr) 140px;
            gap: 10px;
            min-width: 360px;
        }

        .news-filter input,
        .news-filter select {
            width: 100%;
            padding: 11px 12px;
            border: 1px solid var(--line);
            background: #fff;
            color: var(--ink);
            font: inherit;
        }

        .news-feature {
            display: grid;
            grid-template-columns: minmax(240px, .82fr) 1fr;
            gap: 22px;
            margin-bottom: 22px;
            padding: 16px;
            border: 1px solid #ebe4ff;
            background: #fbf8ff;
        }

        .news-feature img {
            width: 100%;
            height: 100%;
            min-height: 260px;
            object-fit: cover;
        }

        .news-feature h3,
        .news-row h3,
        .job-card h3 {
            margin: 8px 0 8px;
            color: var(--deep-purple);
            line-height: 1.35;
        }

        .news-feature h3 {
            font-size: 26px;
        }

        .news-feature p,
        .news-row p,
        .job-card p {
            margin: 0;
            color: #333640;
        }

        .news-pill {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 16px;
            background: var(--red);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
        }

        .news-pill.purple {
            background: var(--purple);
        }

        .news-pill.green {
            background: #168251;
        }

        .news-meta {
            margin-top: 12px;
            color: var(--muted);
            font-size: 14px;
        }

        .read-more {
            display: inline-block;
            margin-top: 16px;
            padding: 9px 18px;
            background: var(--deep-purple);
            color: #fff;
            font-weight: 700;
        }

        .news-card-list,
        .job-list,
        .news-side {
            display: grid;
            gap: 16px;
        }

        .news-row {
            display: grid;
            grid-template-columns: 160px 1fr;
            gap: 16px;
            padding: 14px;
            border: 1px solid var(--line);
            background: #fff;
        }

        .news-row img {
            width: 100%;
            height: 125px;
            object-fit: cover;
        }

        .news-side-box {
            padding: 18px;
        }

        .news-side-box h3 {
            margin: 0 0 12px;
            color: var(--deep-purple);
            font-size: 20px;
        }

        .news-side-box a,
        .news-side-box p {
            display: block;
            margin: 0;
            padding: 10px 0;
            border-bottom: 1px dashed #ddd;
            color: #30323a;
            font-weight: 700;
        }

        .news-side-box a:last-child,
        .news-side-box p:last-child {
            border-bottom: 0;
        }

        .news-side-box a.active,
        .news-side-box a:hover {
            color: var(--red);
        }

        .job-card {
            position: relative;
            padding: 22px;
            border: 1px solid var(--line);
            background: #fff;
            box-shadow: 0 10px 22px rgb(0 0 0 / 5%);
        }

        .job-card.muted {
            background: #fafafa;
        }

        .job-status {
            display: inline-block;
            padding: 5px 13px;
            border-radius: 16px;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
        }

        .job-status.open {
            background: #168251;
        }

        .job-status.closed {
            background: #7b7f8c;
        }

        .job-meta {
            display: grid;
            gap: 6px;
            margin-top: 14px;
            padding: 12px 14px;
            border-left: 4px solid var(--purple);
            background: #fbf8ff;
            color: #30323a;
            font-weight: 700;
        }

        .procurement-table-wrap {
            overflow-x: auto;
        }

        .procurement-table {
            width: 100%;
            min-width: 760px;
            border-collapse: collapse;
            background: #fff;
        }

        .procurement-table th,
        .procurement-table td {
            padding: 14px 12px;
            border-bottom: 1px solid var(--line);
            text-align: left;
            vertical-align: top;
        }

        .procurement-table th {
            background: var(--deep-purple);
            color: #fff;
            font-weight: 700;
        }

        .procurement-table tbody tr:hover {
            background: #fbf8ff;
        }

        .table-status {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 14px;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }

        .table-status.open {
            background: var(--red);
        }

        .table-status.done {
            background: #168251;
        }

        .contact-map {
            height: 430px;
            border-top: 4px solid var(--deep-purple);
            background: #f1f3f7;
        }

        .contact-map iframe {
            display: block;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .contact-breadcrumb {
            background: #f4f4f6;
            color: #3f4050;
            padding: 34px 0;
            font-size: 14px;
        }

        .contact-breadcrumb a {
            color: var(--deep-purple);
            font-weight: 700;
        }

        .contact-page {
            padding: 44px 0 56px;
            background: #fff;
        }

        .contact-layout {
            display: grid;
            grid-template-columns: .9fr 1.1fr;
            gap: clamp(34px, 7vw, 86px);
            align-items: start;
        }

        .contact-info .history-heading {
            border-bottom: 0;
            margin-bottom: 72px;
            padding-bottom: 0;
        }

        .contact-info h3 {
            margin: 0 0 8px;
            color: var(--deep-purple);
            font-size: clamp(25px, 4vw, 38px);
            line-height: 1.35;
        }

        .contact-block {
            margin-top: 18px;
            color: #20243a;
        }

        .contact-block strong {
            display: block;
            margin-bottom: 6px;
            color: #191b28;
        }

        .contact-block p {
            margin: 0 0 4px;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
            margin: 24px 0;
        }

        .contact-mini {
            padding: 18px;
            border: 1px solid var(--line);
            background: #fbf8ff;
        }

        .contact-mini span {
            display: block;
            margin-bottom: 6px;
            color: var(--red);
            font-weight: 700;
        }

        .contact-mini strong {
            display: block;
            color: var(--deep-purple);
            font-size: 17px;
        }

        .contact-mini p {
            margin: 6px 0 0;
            color: #3f4050;
        }

        .contact-form-panel {
            padding-top: 84px;
        }

        .required-note {
            margin: 0 0 10px;
            color: #3f4050;
        }

        .required-note span,
        .contact-form span {
            color: var(--red);
            font-weight: 700;
        }

        .contact-form {
            display: grid;
            gap: 14px;
        }

        .contact-form label {
            display: grid;
            gap: 6px;
            color: #343747;
            font-weight: 700;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #dfe2e8;
            background: #fff;
            color: var(--ink);
            font: inherit;
            font-weight: 400;
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 150px;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border-color: var(--purple);
            box-shadow: 0 0 0 3px rgb(112 40 243 / 12%);
        }

        .contact-form button {
            justify-self: start;
            margin-top: 8px;
            padding: 11px 24px;
            border: 0;
            background: var(--deep-purple);
            color: #fff;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
        }

        .contact-form button:hover {
            background: var(--red);
        }

        @media (max-width: 980px) {
            .hero-grid,
            .main,
            .footer-grid,
            .history-layout,
            .news-layout,
            .news-feature,
            .contact-layout {
                grid-template-columns: 1fr;
            }

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

            .personnel-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .activity-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .nav {
                justify-content: flex-start;
                overflow-x: auto;
            }

            .news-toolbar {
                display: grid;
                align-items: start;
            }

            .news-filter {
                min-width: 0;
                width: 100%;
            }

            .contact-form-panel {
                padding-top: 0;
            }

            .contact-info .history-heading {
                margin-bottom: 28px;
            }
        }

        @media (max-width: 640px) {
            .container {
                width: min(100% - 22px, var(--max));
            }

            .contact-map {
                height: 300px;
            }

            .contact-breadcrumb {
                padding: 22px 0;
            }

            .contact-page {
                padding: 32px 0 42px;
            }

            .contact-grid {
                grid-template-columns: 1fr;
            }

            .contact-form button {
                width: 100%;
            }

            .nav-wrap {
                position: relative;
                top: auto;
            }

            .nav {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                width: min(100% - 22px, var(--max));
                min-height: 0;
                padding: 10px 0;
                overflow: visible;
            }

            .nav > a,
            .dropdown {
                min-width: 0;
            }

            .nav > a,
            .dropdown > button {
                justify-content: center;
                width: 100%;
                min-height: 54px;
                padding: 8px 10px;
                border: 1px solid var(--line);
                background: #fff;
                text-align: center;
                line-height: 1.25;
                white-space: normal;
                word-break: keep-all;
            }

            .nav > a:hover,
            .dropdown:hover > button {
                border-color: var(--red);
            }

            .dropdown {
                display: block;
            }

            .dropdown-menu {
                position: static;
                display: none;
                min-width: 0;
                margin-top: 6px;
                padding: 0;
                box-shadow: none;
                border: 1px solid var(--line);
                opacity: 1;
                pointer-events: auto;
                transform: none;
            }

            .dropdown:hover .dropdown-menu {
                display: block;
            }

            .dropdown-menu a {
                padding: 10px 12px;
                text-align: center;
                line-height: 1.35;
            }

            .top-strip .container,
            .brand,
            .footer-top {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .top-strip .container {
                display: grid;
            }

            .top-strip span {
                white-space: normal;
            }

            .top-strip-actions {
                justify-content: center;
                flex-wrap: wrap;
            }

            .search-band {
                background: var(--red);
            }

            .search-box {
                grid-template-columns: 1fr;
                border-radius: 12px;
            }

            .search-title {
                padding: 10px;
            }

            .hero-copy {
                left: 18px;
                right: 18px;
            }

            .quick-links,
            .news-grid,
            .activity-grid,
            .download-grid,
            .banner-links,
            .system-grid,
            .personnel-grid {
                grid-template-columns: 1fr;
            }

            .news-filter,
            .news-row {
                grid-template-columns: 1fr;
            }

            .news-feature img,
            .news-row img {
                min-height: 0;
                height: auto;
            }

            .page-hero {
                padding: 42px 0 48px;
            }

            .history-content p {
                font-size: 16px;
                text-align: left;
                text-indent: 0;
            }

            .objective-box {
                padding: 18px;
            }

            .objective-box li {
                padding-left: 58px;
            }

            .authority-item {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .authority-item > span {
                min-height: 58px;
            }

            .authority-item div {
                padding: 18px;
            }

            .mission-item {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .mission-item > span {
                min-height: 58px;
            }

            .mission-item > div {
                padding: 18px;
            }

            .laws-summary,
            .law-section-head,
            .law-item {
                grid-template-columns: 1fr;
            }

            .law-item strong {
                justify-self: start;
            }

            .person-card img {
                aspect-ratio: 16 / 8;
            }
        }
