/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-color: #2d5a27;
    --accent-color: #d4a373;
    --bg-color: #fdfbf7;
    --text-color: #333;
    --light-green: #e8f0e4;
    --text-light: #666;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Thêm để chữ không bị zoom tự động nhỏ trên mobile + tăng font base */
html {
    font-size: 62.5%; /* 1rem = 10px */
    text-size-adjust: none;          /* Giải pháp mạnh nhất: tắt zoom tự động chữ */
    -webkit-text-size-adjust: none;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(135deg, transparent 24%, rgba(45, 90, 39, 0.03) 25%, rgba(45, 90, 39, 0.03) 26%, transparent 27%, transparent 74%, rgba(45, 90, 39, 0.03) 75%, rgba(45, 90, 39, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(45deg, transparent 24%, rgba(212, 163, 115, 0.02) 25%, rgba(212, 163, 115, 0.02) 26%, transparent 27%, transparent 74%, rgba(212, 163, 115, 0.02) 75%, rgba(212, 163, 115, 0.02) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    color: var(--text-color);
    line-height: 1.8; /* Tăng khoảng cách dòng cho dễ đọc hơn */
    font-size: clamp(1.4rem, 3vw, 1.8rem); /* Chữ base tối ưu */
}

/* ==================== CONTAINER ==================== */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .container {
        width: 90%;
        padding: 0 18px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
}

/* ==================== KEYFRAMES ==================== */
@keyframes floatingImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes floatingGlow {
    0%, 100% {
        transform: scale(1) translateY(0px);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
        filter: brightness(1.1);
    }
}

@keyframes subtleShift {
    0%, 100% {
        background-position: 
            0 0,
            40px 50px,
            20px 80px,
            0 0,
            50% 50%,
            30% 70%,
            0 0;
    }
    50% {
        background-position: 
            -20px 10px,
            30px 40px,
            40px 60px,
            20px -20px,
            52% 52%,
            35% 65%,
            0 0;
    }
}

/* ==================== PAGE TITLE ==================== */
.page-title {
    text-align: center;
    font-size: clamp(2.8rem, 7vw, 4rem); /* To hơn, fluid theo màn hình */
    color: var(--primary-color);
    margin: 60px 0 40px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .page-title {
        font-size: clamp(2.2rem, 6vw, 3rem); /* To hơn trên mobile */
    }
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1.3rem, 3.5vw, 1.6rem); /* Chữ nút to hơn */
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(45, 90, 39, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    background: #1f3f1b;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(45, 90, 39, 0.4);
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 14px 40px;
        font-size: clamp(1.2rem, 3.2vw, 1.5rem);
    }
}

@media (max-width: 640px) {
    .btn-primary {
        padding: 12px 30px;
        font-size: clamp(1.1rem, 3vw, 1.4rem);
    }
}