/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@400;700;800&display=swap');
/* --- Grayscale Effect --- 
.grayscale-active { filter: grayscale(100%); }
  --- Final & Approved Color Palette --- */
:root {
    --gold: #C59D3F;
    --dark-gold: #A57C34;
    --dark-blue: #2A3B75;
    --text-color: #333;
    --bg-color: #fdfbf5;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Top Accent Bars --- */
.top-accent-bar { background-color: var(--dark-blue); height: 3px; }
.top-bar { background-color: var(--gold); height: 5px; }

/* General Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
header {
    background: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo img { height: 50px; }
header nav { display: block; }
header nav ul { padding: 0; margin: 0; list-style: none; display: flex; }
header nav ul li { margin-left: 25px; }
header nav ul li a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 5px;
    transition: color 0.3s;
}
header nav ul li a.active, header nav ul li a:hover {
    color: var(--dark-gold);
    border-bottom: 3px solid var(--dark-gold);
}
.hamburger { display: none; cursor: pointer; }
.hamburger div { width: 25px; height: 3px; background-color: var(--dark-blue); margin: 5px 0; transition: 0.4s; }

/* Main Content */
main {
    padding: 0; /* Removed padding to allow full-width sections */
}
main > .container {
    padding-top: 2rem; /* Add padding back for pages with container */
    padding-bottom: 2rem;
}

/* Page Titles */
.page-title {
    color: var(--dark-gold);
    font-size: 2.5rem;
    font-weight: 800;
    border-bottom: 4px solid var(--dark-blue);
    padding-bottom: 10px;
    margin-bottom: 2rem;
}
.page-title-light {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Homepage specific styles */
.home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card-content {
    padding: 20px;
}
.news-card h3 {
    margin-top: 0;
    color: var(--dark-gold);
}
.news-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Ideology List */
.ideology-list li {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-left: 5px solid var(--gold);
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ideology-list li::before {
    content: "★";
    color: var(--gold);
    font-weight: bold;
    margin-right: 10px;
}

/* --- Button Styles --- */
.btn-primary, .btn-secondary, .btn-cta {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
}
.btn-primary:hover, .btn-secondary:hover, .btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.btn-primary:hover { background: var(--dark-gold); border-color: var(--dark-gold); }

.btn-secondary { background: #fff; color: var(--dark-gold); border-color: var(--dark-gold); }
.btn-secondary:hover { background: var(--dark-gold); color: #fff; }

.btn-cta {
    background: var(--gold);
    color: var(--dark-blue);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-color: var(--gold);
}
.btn-cta:hover { background: var(--dark-gold); color: #fff; border-color: var(--dark-gold); }


/* --- NEW ELEGANT FOOTER STYLES (GOLD VERSION) --- */
.site-footer {
    background-color: var(--gold); /* CHANGED: Background to Gold */
    color: var(--dark-blue); /* CHANGED: Text to Dark Blue */
    padding-top: 3rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}
.footer-content {
    text-align: center;
}
.footer-logo-centered {
    margin-bottom: 2rem;
}
.footer-logo-centered img {
    max-width: 120px;
}
.footer-contact-details {
    margin-bottom: 2rem;
    line-height: 1.8;
}
.footer-contact-details p {
    margin: 0.5rem 0;
}
.footer-social-icons {
    padding-bottom: 2rem;
}
.footer-social-icons a {
    display: inline-block;
    margin: 0 10px;
}
.footer-social-icons svg {
    width: 32px;
    height: 32px;
    fill: var(--dark-blue); /* CHANGED: Icon color to Dark Blue */
    transition: fill 0.3s, transform 0.3s;
}
.footer-social-icons a:hover svg {
    fill: #fff; /* CHANGED: Hover color to White */
    transform: scale(1.1);
}
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1); /* Adjusted for gold background */
    text-align: center;
    padding: 1rem 0;
    color: var(--dark-blue); /* Text color for bottom bar */
}
.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
}

/* Swiper Slider Styles */
.swiper {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    margin-bottom: 3rem;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .container { width: 95%; }
    header .container { width: 95%; padding: 0 2.5%; box-sizing: border-box; }
    .page-title { font-size: 2rem; }
    .hamburger { display: block; }

    header nav {
        position: absolute; left: 0; top: 79px; background: white;
        width: 100%; transform: translateY(-150%); transition: transform 0.5s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    header nav.mobile-nav-open { transform: translateY(0); }
    header nav ul { flex-direction: column; width: 100%; }
    header nav ul li { margin: 0; text-align: center; border-bottom: 1px solid #f0f0f0; }
    header nav ul li a { display: block; padding: 15px 0; width: 100%; border: none !important; }

    .home-intro-grid { grid-template-columns: 1fr; }
    .leader-section .home-intro-grid { text-align: center; }
    .leader-section .home-intro-grid div:first-child { order: 1; }
    .leader-section .home-intro-grid div:last-child { order: 2; margin-top: 1rem; }
    .leader-section blockquote, .leader-section p { text-align: left; }
}