:root {
    /* Brand Colors extracted from reference */
    --primary-color: #0d3b66; /* Deep Navy Blue */
    --primary-dark: #082846;
    --accent-color: #c49a46; /* Matte Gold from button/icons */
    --accent-hover: #b08838;
    
    /* Neutrals */
    --bg-color: #f8f9fa; /* Light gray background for body */
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #666666;
    --white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 60px 0;
    --border-radius: 12px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family-en, 'Inter', sans-serif);
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-family-en, 'Merriweather', serif);
    color: var(--primary-color);
    /* font-weight: 700; */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Myanmar Font Definitions */
.mm-content, .mm {
    font-family: var(--font-family-mm, sans-serif);
}

h1.mm-content, h2.mm-content, h3.mm-content, h4.mm-content, h5.mm-content,
.mm h1, .mm h2, .mm h3, .mm h4, .mm h5 {
    font-family: var(--font-family-mm, serif);
}

/* --- Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4px 0;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2%;
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 1rem;
}

.top-social a:hover {
    opacity: 1;
}

.top-contact {
    display: flex;
    gap: 15px;
    align-items: center;
    font-weight: 500;
}

.top-contact .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* --- News Ticker --- */
.top-news-ticker {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 15px;
    font-size: 0.85rem;
}

.ticker-label {
    font-weight: bold;
    color: var(--accent-color);
    white-space: nowrap;
    margin-right: 10px;
    z-index: 2;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Start off-screen right */
    animation: ticker 50s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.ticker-item:hover {
    color: var(--accent-color);
}

.ticker-item::after {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--accent-color);
}

.ticker-item:last-child::after {
    content: ""; /* No bullet after last item */
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 2%; /* Use percentage padding to push items close to edges but not touching */
    width: 100%;
    margin: 0 auto;
    height: 90px;
    max-width: 100%; /* Ensure it overrides any container limits if applied elsewhere */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.logo-text-desktop {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text-mobile {
    display: none;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative; /* For indicator positioning */
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px; /* Spacing from text */
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-donate {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-donate:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(196, 154, 70, 0.3);
}

/* Language Switcher - Refined */
.lang-switch {
    display: flex;
    background: #eee;
    padding: 3px;
    border-radius: 20px;
    margin-left: 20px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Background Slider — now fills the hero and holds text */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Each slide is full-size and holds its own text */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    pointer-events: none; /* Let clicks pass through to dots */
}

.slide.active {
    opacity: 1;
    pointer-events: auto; /* Only the active slide accepts pointer events */
}

/* Dark overlay inside each slide for readability */
.hero-slide-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(8,40,70,0.88) 40%, rgba(8,40,70,0.55) 100%);
    z-index: 1;
}

/* Slide content sits on top of overlay */
.hero-slide-text .hero-container {
    position: relative;
    z-index: 2;
}

/* Gradient Overlay (kept for non-slider pages) */
.hero-overlay-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, #0d3b66 30%, rgba(13, 59, 102, 0.6) 100%);
    z-index: 1;
}

/* Hero container layout */
.hero-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-text {
    padding: 100px 0;
    max-width: 860px;  /* wider so long titles fit on 2 lines */
    margin: 0;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem); /* fluid: 2-line on desktop, scales down on mobile */
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-text .mm-subtitle {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 600px;
    color: rgba(255,255,255,0.92);
}

/* --- Slider Dot Navigation --- */
.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50; /* Must be above slide overlays (z-index 1) and hero-container (z-index 2) */
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: auto;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.35);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(196, 154, 70, 0.4);
}

/* Align separator line to left */
.hero-text div {
    margin: 30px 0 0;
}


/* --- Section Headers --- */
.section-title-wrapper {
    margin-bottom: 40px;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

.section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    gap: 10px;
    align-items: center;
}

.section-title .divider {
    color: var(--text-gray);
    font-weight: 300;
}

.section-title .mm {
    font-weight: 500;
    font-family: sans-serif; /* Fallback for MM font */
    color: var(--text-dark);
}

.section-more-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.section-more-link i {
    margin-left: 6px;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.section-more-link:hover {
    color: var(--accent-hover);
}

.section-more-link:hover i {
    transform: translateX(5px);
}


/* --- Latest Updates (Cards) --- */
.updates-section {
    padding: var(--section-padding);
    background: var(--bg-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.update-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.update-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.update-card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.date-tag {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--primary-color);
}

.card-title-mm {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--primary-color);
}


/* --- About Candidate --- */
.about-section {
    padding: var(--section-padding);
    background: var(--white);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* --- Policy Pledges --- */
.policy-section {
    padding: var(--section-padding);
    background: #f0f4f8; /* Light blue-ish gray */
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.policy-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.policy-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.policy-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.policy-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.policy-title .mm {
    font-size: 1rem;
    color: var(--primary-dark);
}

.policy-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    padding-left: 75px; /* Align with title text */
}


/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    background: white; /* Often logos need bg in dark footer */
    padding: 5px;
    border-radius: 50%;
}

.footer-contact h4, .footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-list li {
    list-style: none;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    opacity: 0.9;
}

.contact-list i {
    color: var(--accent-color);
    width: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
}

.btn-subscribe {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.social-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-image-container { display: none; } /* Hide person on mid-screens if needed or adjust */
    .policy-grid { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; height: auto; padding: 20px; gap: 20px; }
    .nav-menu { flex-direction: column; width: 100%; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; }
}

/* --- Page Loader --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.loader-logo {
    width: 80px;
    height: auto;
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-line {
    width: 200px;
    height: 4px;
    background: rgba(13, 59, 102, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    animation: lineAnim 1.5s infinite ease-in-out;
}

@keyframes lineAnim {
    0% { left: -40%; }
    100% { left: 100%; }
}

@keyframes loaderPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
