/* ==========================================================================
   DPS MAP - MASTER STYLESHEET
   Global Styles, Header, Navbar, Footer, Components & Themes
   Last Modified: 8th Oct 2026 by Caleb Jawa Hkun
   ========================================================================== */

/* ==========================================================================
   1. CORE CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --navy: #1e40af;
    --blue: #1e40af;
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --blue-bright: #2f7ee6;
    --sky: #eaf3ff;
    --ink: #172033;
    --deep: #0f172a;
    --muted: #64748b;
    --line: #dce3ec;
    --surface: #f6f8fb;
    --soft: #f8fafc;
    --white: #ffffff;
    --black: #000000;
    --gold: #f59e0b;
    --amber: #aa6500;
    --shadow: 0 18px 50px rgba(14, 35, 68, 0.10);
    --shadow-sm: 0 4px 12px rgba(14, 35, 68, 0.06);
    --shadow-lg: 0 24px 60px rgba(14, 35, 68, 0.15);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

/* ==========================================================================
   2. BASE RESET & ACCESSIBILITY
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--white);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    /* ~15px */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.myanmar-language,
html[lang="my"] body {
    font-family: "Noto Sans Myanmar", "Myanmar Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.85;
}

/* Bilingual content visibility */
.lang-my {
    display: none;
    font-family: "Noto Sans Myanmar", "Myanmar Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lang-en {
    display: inline;
}

.lang-my-block {
    display: none;
    font-family: "Noto Sans Myanmar", "Myanmar Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lang-en-block {
    display: block;
}

body.myanmar-language .lang-my,
html[lang="my"] body .lang-my {
    display: inline;
}

body.myanmar-language .lang-en,
html[lang="my"] body .lang-en {
    display: none;
}

body.myanmar-language .lang-my-block,
html[lang="my"] body .lang-my-block {
    display: block;
}

body.myanmar-language .lang-en-block,
html[lang="my"] body .lang-en-block {
    display: none;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 999;
    background: var(--white);
    color: var(--navy);
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: top 0.2s ease;
    font-size: 0.88rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
    background: #000000;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}

.announcement-content {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.announcement-content span {
    color: #fbbf24;
    font-weight: 700;
}

/* ==========================================================================
   4. SITE HEADER & NAVBAR
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(220, 227, 236, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text strong {
    color: #1e40af;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.logo-text small {
    color: #64748b;
    font-size: 0.76rem;
    letter-spacing: normal;
    text-transform: none;
    font-weight: 500;
}

/* Nav links (Desktop centered) */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 4px 0;
    background: transparent;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1e40af;
    background: transparent;
    font-weight: 600;
}

/* Nav Actions (Search, Lang Switcher, Hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search input */
.nav-search {
    display: flex;
    align-items: center;
    width: 185px;
    height: 38px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search:focus-within {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.nav-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 8px 0 14px;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    font-family: inherit;
}

.nav-search input::placeholder {
    color: #94a3b8;
}

.nav-search button {
    width: 38px;
    min-width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #1769aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-search button:hover {
    background: #f0f6fb;
    color: #0d4f80;
}

.nav-search button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.nav-search-desktop {
    display: flex;
}

.nav-search-mobile-item {
    display: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    padding: 3px;
    gap: 2px;
    background: #f1f5f9;
    border-radius: 999px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.language-button {
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.language-button.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #d9dee7;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: #f0f6fb;
    border-color: #1769aa;
}

.menu-toggle-icon {
    width: 21px;
    height: 21px;
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-bars {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* ==========================================================================
   5. OFFICIAL SITE FOOTER
   ========================================================================== */
.site-footer {
    background: #08182d;
    color: #b9c6d8;
    padding: 58px 0 24px;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-brand-row {
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid #25364d;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
}

.footer-brand .logo-text strong {
    color: var(--white);
}

.footer-brand .logo-text small {
    color: #9fb0c7;
}

.footer-brand p {
    color: #b9c6d8;
    font-size: 0.86rem;
    line-height: 1.55;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: start;
}

.footer-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 36px;
    min-width: 0;
    padding-block: 6px;
}

.footer-side-left {
    padding-right: 48px;
}

.footer-side-right {
    padding-left: 48px;
    border-left: 1px solid #40526a;
}

.footer-column h3,
.footer-contact-card h3 {
    position: relative;
    padding-bottom: 11px;
    margin: 0 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.footer-column h3::after,
.footer-contact-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 38px;
    height: 2px;
    background: #3b82f6;
}

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

.footer-column li {
    margin-bottom: 8px;
    line-height: 1.55;
}

.footer-column a {
    color: #b9c6d8;
    font-size: 0.84rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-contact-card {
    grid-column: 1 / -1;
    padding: 18px 20px;
    border: 1px solid #2c3d52;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.footer-contact-card address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    color: #b9c6d8;
    font-size: 0.84rem;
    font-style: normal;
}

.footer-contact-card address span {
    grid-column: 1 / -1;
}

.footer-contact-card address a {
    color: #b9c6d8;
    transition: color 0.2s ease;
}

.footer-contact-card address a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid #25364d;
    font-size: 0.78rem;
    color: #8a99ad;
}

.footer-bottom a {
    color: #8a99ad;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================================================================
   6. FLOATING VIBER CONTACT BUTTON
   ========================================================================== */
.viber-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    min-height: 46px;
    border-radius: 50px;
    background: #7360f2;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.viber-float:hover {
    transform: translateY(-3px);
    background: #6654e8;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.viber-float:focus-visible {
    outline: 3px solid rgba(115, 96, 242, 0.35);
    outline-offset: 4px;
}

.viber-float-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.viber-float-text {
    white-space: nowrap;
}

/* ==========================================================================
   7. SHARED UI UTILITIES & COMMON COMPONENTS
   ========================================================================== */
.section {
    padding: 4.5rem 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: var(--deep);
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 760px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    padding: 0.78rem 1.25rem;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: #174092;
    color: #ffffff;
}

.btn-light {
    background: #ffffff;
    color: var(--blue);
}

.btn-light:hover {
    background: #f0f6fb;
    color: var(--blue);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.text-link {
    color: var(--blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: #173b82;
    text-decoration: underline;
}

/* ==========================================================================
   8. MYANMAR (BURMESE) TYPOGRAPHY OVERRIDES
   Ensures adequate vertical line clearance for multi-tier vowel marks,
   tone marks, and subscript consonants to eliminate font collision & overlap.
   ========================================================================== */

/* Headings & Section Titles: Expand line-height from 1.15 to 1.58 for diacritic clearance */
body.myanmar-language h1,
body.myanmar-language h2,
body.myanmar-language h3,
body.myanmar-language h4,
body.myanmar-language h5,
body.myanmar-language h6,
body.myanmar-language .section-title,
body.myanmar-language .hero-title,
body.myanmar-language .banner-title,
html[lang="my"] h1,
html[lang="my"] h2,
html[lang="my"] h3,
html[lang="my"] h4,
html[lang="my"] h5,
html[lang="my"] h6,
html[lang="my"] .section-title,
html[lang="my"] .hero-title,
html[lang="my"] .banner-title,
.section-title .lang-my,
.hero-title .lang-my,
.banner-title .lang-my {
    line-height: 1.58;
    letter-spacing: normal;
}

/* Section Lead & General Paragraphs */
body.myanmar-language .section-lead,
html[lang="my"] .section-lead,
body.myanmar-language p,
html[lang="my"] p {
    line-height: 1.85;
}

/* Eyebrow & Badges: Reset letter-spacing and uppercase to avoid broken ligature shaping */
body.myanmar-language .eyebrow,
html[lang="my"] .eyebrow {
    line-height: 1.6;
    letter-spacing: normal;
    text-transform: none;
}

/* Interactive Controls: Buttons & Navigation */
body.myanmar-language .btn,
html[lang="my"] .btn {
    line-height: 1.45;
    letter-spacing: normal;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

body.myanmar-language .nav-links a,
html[lang="my"] .nav-links a {
    line-height: 1.5;
    letter-spacing: normal;
}

body.myanmar-language .logo-text,
html[lang="my"] .logo-text {
    line-height: 1.35;
}

/* Footer & Structured Cards */
body.myanmar-language .footer-brand p,
html[lang="my"] .footer-brand p,
body.myanmar-language .footer-column li,
html[lang="my"] .footer-column li,
body.myanmar-language .footer-contact-card address,
html[lang="my"] .footer-contact-card address {
    line-height: 1.8;
}

body.myanmar-language .footer-column h3,
body.myanmar-language .footer-contact-card h3,
html[lang="my"] .footer-column h3,
html[lang="my"] .footer-contact-card h3 {
    line-height: 1.55;
    letter-spacing: normal;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Desktop condensation (1061px - 1200px) */
@media (max-width: 1200px) and (min-width: 1061px) {
    .navbar {
        gap: 10px;
    }

    .nav-links {
        gap: 0.95rem;
    }

    .nav-links a {
        font-size: 0.86rem;
    }

    .nav-search {
        width: 160px;
    }
}

/* Tablet & Mobile Breakpoint (<= 1060px) */
@media (max-width: 1060px) {
    .navbar {
        min-height: 66px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .nav-search-desktop {
        display: none !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: #ffffff;
        border: 1px solid #dce3ec;
        border-radius: 12px;
        box-shadow: 0 18px 45px rgba(14, 35, 68, 0.12);
        z-index: 1000;
        gap: 4px;
        margin: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-search-mobile-item {
        display: block;
        width: 100%;
        padding-bottom: 10px;
        margin-bottom: 6px;
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-search-mobile {
        display: flex;
        width: 100%;
        height: 42px;
        background: #f8fafc;
    }

    .nav-links a {
        padding: 10px 14px;
        border-radius: 8px;
        color: #1f2937;
        font-size: 0.92rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #eff6ff;
        color: #1e40af;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-side-left {
        padding-right: 0;
    }

    .footer-side-right {
        padding-left: 0;
        padding-top: 30px;
        border-left: 0;
        border-top: 1px solid #40526a;
    }
}

/* Mobile Viewport (<= 760px) */
@media (max-width: 760px) {
    .announcement-content {
        flex-direction: column;
        gap: 3px;
    }

    .footer-side {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }
}

/* Small Mobile Viewport (<= 640px) */
@media (max-width: 640px) {
    .navbar {
        padding: 8px 0;
        min-height: 58px;
        flex-wrap: nowrap;
    }

    .logo img {
        height: 38px;
        width: auto;
    }

    .logo-text strong {
        font-size: 1.05rem;
    }

    .logo-text small {
        font-size: 0.7rem;
    }

    .nav-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }
}

/* Extra Small (<= 600px) */
@media (max-width: 600px) {
    .viber-float {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 50%;
        gap: 0;
    }

    .viber-float-text {
        display: none;
    }

    .viber-float-icon {
        width: 24px;
        height: 24px;
    }
}

/* Ultra Small (<= 420px) */
@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .footer-side {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}