/* ==========================================
   ASEAN Power Grid Financing Initiative
   Design based on ASEAN Centre for Energy
   ========================================== */

/* CSS Variables */
:root {
    /* Colors - Clean institutional palette */
    --primary-blue: #003366;
    --accent-blue: #0066b3;
    --light-blue: #e8f4fc;
    --text-dark: #1a1a1a;
    --text-body: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f0f0;
    --border-light: #e0e0e0;
    --border-medium: #cccccc;

    /* ASEAN Colors */
    --asean-blue: #003399;
    --asean-yellow: #ffcc00;
    --asean-red: #cc0000;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-hero: 3.5rem;

    /* Layout */
    --max-width: 1400px;
    --header-height: 120px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ==========================================
   Header - Two Tier Navigation (ACE Style)
   ========================================== */
.main-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Utility Bar */
.utility-bar {
    background: var(--bg-white);
    padding: var(--space-sm) 0;
}

.utility-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-xl);
}

.utility-links {
    display: flex;
    gap: var(--space-xl);
}

.utility-links a {
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: color 0.2s ease;
}

.utility-links a:hover {
    color: var(--accent-blue);
}

.utility-icons {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.utility-icons a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.utility-icons a:hover {
    color: var(--accent-blue);
}

.utility-icons svg {
    width: 20px;
    height: 20px;
}

/* Main Navigation */
.main-nav {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-emblem {
    height: 56px;
    width: 56px;
    object-fit: cover;
    object-position: left center;
    border-radius: 50%;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #0066b3;
    line-height: 1.2;
}

.logo-tagline {
    font-size: var(--font-size-sm);
    color: #0066b3;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-dark);
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-links a svg {
    opacity: 0.6;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
}

.nav-links a.nav-cta {
    background: var(--accent-blue);
    color: var(--bg-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    font-weight: 600;
}

.nav-links a.nav-cta:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.nav-links a.nav-cta::after {
    display: none;
}

.has-dropdown > a::after {
    display: none;
}

.btn-portal {
    background: var(--accent-blue) !important;
    color: var(--bg-white) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: 4px;
    font-weight: 500;
}

.btn-portal:hover {
    background: var(--primary-blue) !important;
}

.btn-portal.active::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--bg-white);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-medium);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

/* ==========================================
   News Ticker
   ========================================== */
.news-ticker {
    background: var(--primary-blue);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: 40px;
}

.news-ticker-label {
    background: var(--asean-blue);
    color: var(--bg-white);
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.news-ticker-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, var(--asean-blue), transparent);
    z-index: 1;
}

.news-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.news-ticker-items {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    gap: var(--space-3xl);
    padding-left: var(--space-xl);
}

.news-ticker-items:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.news-ticker-item a {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-ticker-item a:hover {
    color: var(--asean-yellow);
}

.news-ticker-dot {
    width: 4px;
    height: 4px;
    background: var(--asean-yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .news-ticker {
        height: 36px;
    }

    .news-ticker-label {
        padding: 0 var(--space-md);
        font-size: var(--font-size-xs);
    }

    .news-ticker-item a {
        font-size: var(--font-size-xs);
    }
}

/* ==========================================
   Hero Section - Split Layout (ACE Style)
   ========================================== */
.hero {
    background: var(--bg-white);
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    padding: var(--space-2xl) 0;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 520px;
    overflow: hidden;
}

.hero-image-strip {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-image-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
}

.hero-image-strip:nth-child(1)::before {
    background: #1e3a5f;
}

.hero-image-strip:nth-child(2)::before {
    background: #c45a20;
}

.hero-image-strip:nth-child(3)::before {
    background: #2d6a4f;
}

.hero-image-strip:nth-child(4)::before {
    background: #1a5f4a;
}

.hero-image-strip:nth-child(5)::before {
    background: #1e3a6e;
}

.hero-image-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    background: var(--bg-white);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   Section Styles
   ========================================== */
.section {
    padding: var(--space-4xl) 0;
}

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

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 700px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-title {
    margin-bottom: var(--space-md);
}

.section-header .section-subtitle {
    margin: 0 auto var(--space-xl);
}

/* ==========================================
   Intro Section
   ========================================== */
.intro-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.intro-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.intro-text p {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.intro-partners h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
}

.partner-logos-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: flex-start;
}

.partner-logo-item {
    display: block;
    transition: opacity 0.2s ease;
}

.partner-logo-item:hover {
    opacity: 0.8;
}

.partner-logo-item img {
    height: 45px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.partner-logo-item img[src*="ASEAN"] {
    border-radius: 50%;
    height: 50px;
}

.partner-logo-item img[src*="adb"] {
    height: 50px;
}

.partner-note {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

/* ==========================================
   Partners Section
   ========================================== */
.partners-section {
    padding: var(--space-4xl) 0;
}

.partners-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.partners-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.partners-text p {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    line-height: 1.8;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.partner-logo {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    border: 1px solid var(--border-light);
}

.partner-logo:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.1);
}

.partner-logo img {
    height: 50px;
    width: auto;
}

.partner-logo span {
    font-size: var(--font-size-sm);
    color: var(--text-body);
    font-weight: 500;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: white;
}

.logo-placeholder.adb {
    background: #0072bc;
}

.logo-placeholder.wb {
    background: #002244;
}

/* ==========================================
   Features Grid
   ========================================== */
.features-section {
    background: var(--bg-light);
    padding: var(--space-4xl) 0;
}

.features-section .section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.12);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--accent-blue);
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 100%);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
}

.cta-content .btn-primary {
    background: var(--bg-white);
    color: var(--primary-blue);
    font-weight: 600;
    padding: var(--space-lg) var(--space-3xl);
}

.cta-content .btn-primary:hover {
    background: var(--asean-yellow);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Links Section
   ========================================== */
.links-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

.links-section .section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.link-card {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.link-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.12);
    transform: translateY(-4px);
}

.link-card h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.link-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==========================================
   Page Hero (Internal Pages)
   ========================================== */
.page-hero {
    background: var(--bg-light);
    padding: var(--space-4xl) 0;
    border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.page-hero p {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
}

/* ==========================================
   Content Pages
   ========================================== */
.content-section {
    padding: var(--space-4xl) 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-4xl);
    align-items: start;
}

.content-main h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main p {
    color: var(--text-body);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.content-main ul {
    margin-left: var(--space-xl);
    margin-bottom: var(--space-lg);
    list-style: disc;
}

.content-main li {
    color: var(--text-body);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.benefit-item {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

.benefit-item h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.benefit-item p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-card {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.sidebar-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent-blue);
}

.sidebar-card.highlight-card {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.sidebar-card.highlight-card h3 {
    color: var(--bg-white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-card.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.sidebar-card.highlight-card .btn-primary {
    background: var(--bg-white);
    color: var(--accent-blue);
    width: 100%;
}

.partner-list,
.principles-list {
    list-style: none;
    margin: 0;
}

.partner-list li,
.principles-list li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.partner-list li:last-child,
.principles-list li:last-child {
    border-bottom: none;
}

.partner-list strong,
.principles-list strong {
    display: block;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
}

.partner-list span,
.principles-list span {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.partner-list a {
    text-decoration: none;
}

/* Timeline */
.timeline {
    list-style: none;
    margin: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline li {
    padding-left: var(--space-xl);
    padding-bottom: var(--space-lg);
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.timeline .date {
    display: block;
    font-weight: 600;
    color: var(--accent-blue);
    font-size: var(--font-size-sm);
}

.timeline .event {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

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

/* Sidebar Partners */
.partners-card {
    background: var(--bg-white);
}

.sidebar-partners {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-partner-logo {
    display: block;
    transition: opacity 0.2s ease;
}

.sidebar-partner-logo:hover {
    opacity: 0.7;
}

.sidebar-partner-logo img {
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-partner-logo img[src*="adb"] {
    height: 42px;
}

/* ==========================================
   PACE Page
   ========================================== */
.objectives-list {
    margin: var(--space-xl) 0;
}

.objective-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.objective-number {
    width: 48px;
    height: 48px;
    background: var(--accent-blue);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.objective-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.objective-content p {
    margin: 0;
    color: var(--text-muted);
}

.partner-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.partner-type-card {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
}

.partner-type-card h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.partner-type-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

.stages-timeline {
    display: flex;
    justify-content: space-between;
    margin: var(--space-xl) 0;
    position: relative;
}

.stages-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--border-light);
}

.stage-item {
    text-align: center;
    position: relative;
    flex: 1;
}

.stage-marker {
    width: 48px;
    height: 48px;
    background: var(--accent-blue);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
}

.stage-content h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.stage-content p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   Portal Page
   ========================================== */
.portal-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.portal-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.portal-intro h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.portal-intro p {
    color: var(--text-muted);
}

.form-section {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin: 0 auto;
}

.form-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.form-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.hidden {
    display: none !important;
}

/* Partner Type Selector */
.partner-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.partner-type-option {
    cursor: pointer;
}

.partner-type-option input {
    display: none;
}

.partner-type-option .option-card {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.partner-type-option:hover .option-card {
    border-color: var(--accent-blue);
}

.partner-type-option input:checked + .option-card {
    border-color: var(--accent-blue);
    background: var(--light-blue);
}

.partner-type-option .option-card h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 var(--space-sm);
    padding: 0;
    border: none;
}

.partner-type-option .option-card p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
}

.required {
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: 4px;
    transition: background 0.2s ease;
    font-size: var(--font-size-sm);
}

.checkbox-label:hover {
    background: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--accent-blue);
}

.consent-label {
    background: var(--bg-light);
    padding: var(--space-md) !important;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: var(--space-2xl);
}

.success-icon {
    color: #16a34a;
    margin-bottom: var(--space-xl);
}

.success-message h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.success-message .btn {
    margin-top: var(--space-xl);
}

/* ==========================================
   Footer
   ========================================== */
.main-footer {
    background: var(--primary-blue);
    color: var(--bg-white);
    padding: 0;
}

.footer-top {
    background: var(--bg-white);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-light);
}

.footer-logos-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4xl);
    flex-wrap: wrap;
}

.footer-logos-strip a {
    display: block;
    transition: opacity 0.2s ease;
}

.footer-logos-strip a:hover {
    opacity: 0.7;
}

.footer-logos-strip img {
    height: 40px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-logos-strip img[src*="ASEAN"] {
    border-radius: 50%;
    height: 45px;
}

.footer-logos-strip img[src*="adb"] {
    height: 45px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding: var(--space-3xl) 0;
}

.footer-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-info p {
    opacity: 0.8;
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

.footer-info p a {
    color: var(--asean-yellow);
}

.footer-info p a:hover {
    text-decoration: underline;
}

.footer-links h4,
.footer-contact h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--bg-white);
    opacity: 0.7;
    font-size: var(--font-size-sm);
    display: block;
    padding: var(--space-xs) 0;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--bg-white);
}

.footer-contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.footer-contact p {
    opacity: 0.7;
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.footer-contact a {
    color: var(--asean-yellow);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: var(--font-size-xs);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1200px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-image {
        height: 400px;
        order: -1;
    }

    .hero h1 {
        font-size: var(--font-size-3xl);
    }

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

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

    .partners-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-image {
        display: none;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .utility-bar {
        display: none;
    }

    .main-nav {
        padding: var(--space-md) 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: var(--space-md);
        border-top: 1px solid var(--border-light);
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links a.nav-cta {
        text-align: center;
        border-bottom: none;
        margin-top: var(--space-sm);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: var(--font-size-2xl);
    }

    .hero {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .features-grid,
    .links-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid,
    .partner-types-grid,
    .partners-logos {
        grid-template-columns: 1fr;
    }

    .stages-timeline {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stages-timeline::before {
        top: 0;
        bottom: 0;
        left: 24px;
        width: 2px;
        height: auto;
    }

    .stage-item {
        display: flex;
        text-align: left;
        gap: var(--space-lg);
    }

    .stage-marker {
        margin: 0;
        flex-shrink: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-logos-strip {
        gap: var(--space-xl);
    }

    .footer-logos-strip img {
        height: 35px;
    }

    .footer-contact-columns {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .partner-logos-row {
        gap: var(--space-lg);
    }

    .partner-type-selector {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

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

    .page-hero h1 {
        font-size: var(--font-size-2xl);
    }

    .form-section {
        padding: var(--space-lg);
    }

    .hero h1 {
        font-size: var(--font-size-2xl);
    }
}

/* ==========================================
   Knowledge Hub
   ========================================== */

/* Section Layout */
.kh-section {
    padding: var(--space-3xl) 0;
}

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

.kh-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.kh-section-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-dark);
}

.kh-see-more {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    border: 2px solid var(--accent-blue);
    border-radius: 100px;
    color: var(--accent-blue);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kh-see-more:hover {
    background: var(--accent-blue);
    color: var(--bg-white);
}

/* Country Profiles Grid */
.kh-country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.kh-country-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-xl);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 140px;
}

.kh-country-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 16px rgba(0, 102, 179, 0.1);
    transform: translateY(-2px);
}

.kh-country-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.kh-country-flag {
    font-size: 36px;
    line-height: 1;
}

.kh-country-arrow {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.kh-country-card:hover .kh-country-arrow {
    color: var(--accent-blue);
}

.kh-country-name {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-dark);
    margin-top: auto;
}

/* Card Grid (Articles, Opinion, Publications) */
.kh-card-grid {
    display: grid;
    gap: var(--space-xl);
}

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

.kh-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.kh-card:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 179, 0.12);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.kh-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-gray);
}

.kh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kh-card:hover .kh-card-image img {
    transform: scale(1.05);
}

.kh-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--bg-gray) 100%);
}

.kh-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.kh-card-body h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kh-card-tag {
    display: inline-block;
    padding: 3px var(--space-sm);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    width: fit-content;
    margin-top: auto;
}

/* Official Documents List */
.kh-doc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.kh-doc-item {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.kh-doc-item:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.1);
}

.kh-doc-thumb {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-gray);
}

.kh-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-doc-info {
    flex: 1;
}

.kh-doc-info h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
}

.kh-doc-link {
    color: var(--accent-blue);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Loading State */
.knowledge-loading {
    text-align: center;
    padding: var(--space-3xl) 0;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-light);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.knowledge-empty {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-3xl) 0;
    grid-column: 1 / -1;
}

/* Source Attribution */
.knowledge-source {
    padding: var(--space-lg) 0;
    text-align: center;
}

.knowledge-source p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.knowledge-source a {
    font-weight: 500;
}

/* Knowledge Hub Responsive */
@media (max-width: 1024px) {
    .kh-country-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .kh-country-grid {
        grid-template-columns: 1fr;
    }

    .kh-card-grid--3 {
        grid-template-columns: 1fr;
    }

    .kh-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .kh-doc-item {
        flex-direction: column;
        text-align: center;
    }

    .kh-doc-thumb {
        width: 80px;
        height: 100px;
    }
}

/* ==========================================
   Contact Page
   ========================================== */
.contact-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-main h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.contact-intro {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.contact-team {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-person {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.contact-person:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 179, 0.08);
}

.contact-person-icon {
    width: 48px;
    height: 48px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-blue);
}

.contact-person-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.contact-person-role {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-blue);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: var(--primary-blue);
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--space-lg);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-blue);
}

.contact-info-item h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--accent-blue);
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.contact-cta-card {
    background: var(--primary-blue);
    border-radius: 8px;
    padding: var(--space-xl);
    color: var(--bg-white);
}

.contact-cta-card h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-cta-card p {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.contact-cta-card .btn {
    background: var(--bg-white);
    color: var(--primary-blue);
    border: none;
}

.contact-cta-card .btn:hover {
    background: var(--bg-light);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-person {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
        align-items: center;
    }
}
