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

:root {
    --green-dark: #14590d;
    --green-mid: #38942f;
    --green-light: #967761;
    --green-pale: #c8e6c9;
    --bg: #ebe4c0;
    --wood: #9c6f42;
    --white: #ffffff;
    --text: #333;
    --ig-pink: #e1306c;
    --ig-orange: #f77737;
    --tt-dark: #010101;
    --tt-pink: #fe2c55;
    --tt-cyan: #25f4ee;
}

body {
    font-family: 'Prompt', 'Franklin Gothic Medium', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 64px; 
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #093a02;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 64px;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav-logo {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-style: oblique;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    color: rgba(255,255,255,0.8);
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.22s;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--green-dark);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 16px;
    z-index: 199;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu .nav-btn {
    text-align: left;
    border-radius: 10px;
    padding: 12px 16px;
}


.page {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page.hidden { display: none; }
.page.active { display: flex; }

.hidden { display: none !important; }

.page-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 0 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}


.page-hero {
    width: 100%;
    text-align: center;
    padding: 60px 24px 50px;
    background: var(--green-dark);
    color: var(--white);
    border-radius: 100;
}

.page-hero-icon {
    font-size: 3.9rem;
    margin-bottom: 12px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.page-hero h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
}

.hero {
    text-align: center;
    padding: 60px 20px 50px;
    background: linear-gradient(160deg, var(--green-dark) 60%, #218418 100%);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-deco {
    position: absolute;
    right: 40px;
    bottom: 20px;
    font-size: 6rem;
    opacity: 0.08;
    pointer-events: none;
}

.hero h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.5rem;
    color: #ffcea6;
    margin: 6px 0 18px;
    font-weight: 300;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 24px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Kanit', sans-serif;
}


.submission-area {
    margin: 40px 0 0;
    width: 100%;
    max-width: 620px;
    padding: 0 20px;
}

.section-label {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--green-dark);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

#note-form {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.06);
}

textarea {
    width: 100%;
    height: 110px;
    padding: 14px;
    font-family: 'Mali', cursive;
    font-size: 1.15rem;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    color: var(--text);
}

textarea:focus { border-color: var(--green-light); }

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
}

.form-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.color-picker { font-size: 0.88rem; color: #666; }
.color-picker label { display: block; margin-bottom: 6px; }

.color-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-opt input[type="radio"] { display: none; }

.dot {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.color-opt input:checked + .dot {
    border-color: var(--black);
    transform: scale(1.2);
}

.dot:hover { transform: scale(1.3); }


.green { background-color: #c8e6c9; }
.yellow { background-color: #fff9c4; }
.orange-dot { background-color: #ffe0b2; }
.red-dot { background-color: #f1b2b9; }


.submit-btn {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: var(--white);
    border: none;
    padding: 11px 26px;
    border-radius: 25px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 3px 10px rgba(60, 255, 86, 0.25);
}

.submit-btn:hover { transform: scale(1.05); box-shadow: 0 5px 16px rgba(48, 208, 30, 0.3); }
.submit-btn:disabled { opacity: 0.6; transform: none; }


.wall {
    width: 90%;
    max-width: 1200px;
    min-height: 400px;
    background-color: var(--green-mid);
    border: 10px solid var(--wood);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-content: flex-start;
    margin: 20px 0 40px;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.12), 0 6px 24px rgba(0,0,0,0.1);
}

.post-it {
    width: 190px;
    height: 190px;
    padding: 30px 18px 18px;
    font-family: 'Mali', cursive;
    font-size: 1.05rem;
    color: #222;
    box-shadow: 3px 5px 12px rgba(0,0,0,0.18);
    position: relative;
    word-wrap: break-word;
    transition: transform 0.25s, z-index 0.25s, box-shadow 0.25s;
    cursor: default;
}

.post-it:hover {
    transform: scale(1.12) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 6px 10px 24px rgba(0,0,0,0.22);
}

.post-it::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    background: #d32f2f;
    border-radius: 50%;
    box-shadow: 100;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.35);
}

.bg-green { background-color: #c8e6c9; }
.bg-yellow   { background-color: #fff9c4; }
.bg-orange   { background-color: #ffe0b2; }
.bg-red { background-color: #f1b2b9; }

/* ===== FOOTER ===== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.footer-text {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Kanit', sans-serif;
}

.admin-link {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: 1rem;
}

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.about-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid var(--green-light);
    transition: transform 0.22s, box-shadow 0.22s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.about-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.about-card h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #555;
}

.mission-banner {
    width: 100%;
    background: linear-gradient(135deg, var(--green-dark), #1a7012);
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mission-banner::before {
    content: '🌿🌿🌿';
    position: absolute;
    font-size: 5rem;
    opacity: 0.07;
    right: -20px;
    top: -10px;
    pointer-events: none;
}

.mission-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-family: 'Kanit', sans-serif;
}

.mission-banner h2 {
    font-family: 'Kanit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.mission-banner p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.88;
}

.stats-row {
    display: flex;
    gap: 24px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 36px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 160px;
}

.stat-num {
    display: block;
    font-family: 'Kanit', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--green-dark);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.social-card {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 28px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.social-bg-deco {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.07;
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.ig-card .social-bg-deco { background: radial-gradient(circle, var(--ig-pink), var(--ig-orange)); }
.tt-card .social-bg-deco { background: radial-gradient(circle, var(--tt-pink), var(--tt-cyan)); }

.social-icon-wrap {
    padding: 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-card .social-icon-wrap {
    background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
    color: white;
}

.tt-card .social-icon-wrap {
    background: var(--tt-dark);
    color: white;
}

.social-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.social-handle {
    font-family: 'Prompt', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 10px;
}

.ig-card .social-handle { color: var(--ig-pink); }
.tt-card .social-handle { color: var(--tt-pink); }

.social-desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.65;
}

.social-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 1.4rem;
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
}

.social-card:hover .social-arrow {
    opacity: 0.7;
    transform: translateX(4px);
}

.contact-message-box {
    width: 100%;
    background: linear-gradient(135deg, #f0f9f0, #e8f5e9);
    border: 2px solid var(--green-pale);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
}

.msg-icon { font-size: 2.8rem; margin-bottom: 14px; }

.contact-message-box h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.contact-message-box p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 24px;
}

.contact-quick-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.92rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ig-btn {
    background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
    color: white;
    box-shadow: 0 4px 14px rgba(238,42,123,0.3);
}

.tt-btn {
    background: var(--tt-dark);
    color: white;
    box-shadow: 0 4px 14px rgba(1,1,1,0.25);
}

.quick-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.contact-note {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.8;
    padding: 0 20px;
}

/* ===== CARD ANIMATION ===== */
.card-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.5s ease forwards;
}

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

/* ===== ADMIN MODAL ===== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.modal-content {
    background: var(--white);
    width: 90%;
    max-width: 820px;
    padding: 24px;
    border-radius: 14px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn { float: right; font-size: 1.6rem; cursor: pointer; color: #999; }
.modal-content h2 { font-family: 'Kanit', sans-serif; color: var(--green-dark); margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { border: 1px solid #e0e0e0; padding: 10px 14px; text-align: left; font-size: 0.9rem; }
th { background: #f9f9f9; font-family: 'Kanit', sans-serif; color: var(--green-dark); }
.delete-btn {
    background: #ff5252;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.delete-btn:hover { background: #d32f2f; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .navbar { padding: 0 16px; }
    .nav-links { display: none; }
    .hamburger { display: block; }

    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.2rem; }

    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; align-items: stretch; }
    .mission-banner h2 { font-size: 1.6rem; }
    .contact-quick-btns { flex-direction: column; }
    .quick-btn { text-align: center; }

    .page-hero h1 { font-size: 2rem; }
}
