/* CSS variables for light/dark mode and brand colors */
:root {
    /* Brand Colors */
    --beige: #f5f0e6;
    --beige-dark: #e8dfcc;
    --green-dark: #1a3c34;
    --green-light: #2b564b;
    --gold: #d4af37;
    --gold-light: #f3d674;

    /* Theme - Light (Default) */
    --bg-color: var(--beige);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --nav-bg: rgba(245, 240, 230, 0.7);
    --card-hover: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] {
    /* Theme - Dark */
    --bg-color: #121212;
    --text-primary: #f5f0e6;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(26, 60, 52, 0.3);
    --glass-border: rgba(212, 175, 55, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(18, 18, 18, 0.8);
    --card-hover: rgba(26, 60, 52, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

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

/* Glassmorphism Utilities */
.glass-nav, .glass-card, .glass-btn, .glass-header, .glass-footer, .glass-pagination {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Typography elements */
.accent-link {
    color: var(--gold);
    font-weight: 500;
    transition: color 0.3s;
}

.accent-link:hover {
    color: var(--green-dark);
}

/* Navbar styling inherited from style.css */

.lang-switch {
    display: flex;
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--glass-border);
}

.lang-switch input[type="radio"] {
    display: none;
}

.lang-switch label {
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 18px;
    transition: all 0.3s;
}

.lang-switch input[type="radio"]:checked + label {
    background: var(--gold);
    color: white;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.icon-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.icon-btn svg {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

[data-theme="dark"] .icon-btn svg {
    stroke: var(--gold);
}


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    z-index: 999;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.top-right {
    top: 20px;
    right: 20px;
    padding: 0.6rem 1.5rem;
    background: var(--green-dark);
    color: var(--beige);
    border: 1px solid var(--gold);
}

.top-right:hover {
    background: var(--gold);
    color: var(--green-dark);
}

.bottom-right {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Page Header / Parallax */
.page-header {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    margin-top: 80px; /* offset for nav */
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--gold-light) 100%);
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
    color: var(--bg-color);
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.header-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: var(--beige);
}

.header-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--beige);
}


/* Main Content Layout */
.blog-main {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
}

/* Blog Cards */
.blog-card {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, background 0.4s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.blog-card:hover .img-placeholder {
    transform: scale(1.05);
}

/* Abstract Patterns for Image Placeholders */
.bg-pattern-1 { background-image: linear-gradient(120deg, var(--green-light), var(--gold-light)); }
.bg-pattern-2 { background-image: linear-gradient(-120deg, var(--gold), var(--beige-dark)); }
.bg-pattern-3 { background-image: linear-gradient(45deg, var(--green-dark), #3a6b5d); }
.bg-pattern-4 { background-image: linear-gradient(-45deg, var(--gold-light), #e6c55e); }


.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.blog-title-text {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-dark);
    font-weight: 600;
    transition: color 0.3s;
}

[data-theme="dark"] .read-more {
    color: var(--gold);
}

.read-more:hover {
    color: var(--gold);
}

[data-theme="dark"] .read-more:hover {
    color: var(--green-light);
}

.read-more svg {
    transition: transform 0.3s;
}

.read-more:hover svg {
    transform: translateX(5px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.glass-pagination {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:not([disabled]):hover {
    background: var(--card-hover);
    color: var(--gold);
}

.page-btn.active {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.glass-footer {
    padding: 3rem 0;
    margin-top: auto;
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 40px 40px 0 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.anpc-link {
    font-weight: 700;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-bottom {
    opacity: 0;
    transform: translateY(40px);
    animation: slideInBottom 0.8s ease forwards;
}

@keyframes slideInBottom {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsiveness */
@media (max-width: 992px) {
    .header-content h1 { font-size: 3rem; }
    .page-header { background-size: cover; animation: none;}
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s ease;
    }
    .nav-links.active { left: 0; }
    .mobile-menu-btn { display: block; }

    .header-content h1 { font-size: 2.5rem; }
    .top-right {
        top: 15px; 
        right: 60px; /* shift to not overlap mobile menu btn */
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    .bottom-right {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .nav-container { padding: 1rem; }
    .logo { font-size: 1.2rem; }
    .header-content h1 { font-size: 2rem; }
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color, #0b3d2b);
        padding: 0.4rem;
    }
    .nav-controls {
        display: none !important;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0b3d2b;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
    }
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 5.5rem 5% 0;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.65;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary-color, #0b3d2b); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold, #d4af37); }
[data-theme="dark"] .breadcrumb a { color: var(--gold, #d4af37); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb span { font-weight: 600; color: var(--text-primary); }
