/* Reset và Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --secondary-color: #66bb6a;
    --accent-color: #81c784;
    --text-dark: #1b5e20;
    --text-light: #4a5f4e;
    --bg-light: #f1f8e9;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(46, 125, 50, 0.12);
    --shadow-hover: 0 8px 25px rgba(46, 125, 50, 0.18);
    --green-light: #e8f5e9;
    --green-lighter: #f1f8e9;
    --green-dark: #1b5e20;
    --nature-green: #558b2f;
    --leaf-green: #7cb342;
    --forest-green: #388e3c;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--leaf-green);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
    backdrop-filter: blur(10px);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--nature-green) 25%, var(--leaf-green) 75%, var(--secondary-color) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 50px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    min-width: 200px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Featured News Section */
.featured-news {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.6);
}

.news-card.featured .news-placeholder {
    height: 100%;
}

.news-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-meta i {
    margin-right: 5px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* Stories Section */
.stories {
    background: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.story-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    border-top: 1px solid var(--pink-light);
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-left-color: var(--secondary-color);
}

.story-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--leaf-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.story-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.story-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.story-content {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.story-author i {
    font-size: 1.5rem;
}

/* Tribute Section */
.tribute {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--pink-light) 100%);
}

.tribute-form-container {
    max-width: 600px;
    margin: 0 auto 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--pink-light);
}

.tribute-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--pink-light);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 158, 197, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Tribute Messages */
.tribute-messages {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.tribute-message {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    animation: fadeIn 0.5s ease;
    border-top: 1px solid var(--pink-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.message-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--leaf-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.3);
}

.message-avatar i {
    font-size: 1.5rem;
    color: var(--white);
}

.message-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.message-to {
    color: var(--text-light);
    font-size: 0.9rem;
}

.message-to strong {
    color: var(--primary-color);
}

.message-content {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 65px;
}

.message-time {
    color: var(--text-light);
    font-size: 0.85rem;
    padding-left: 65px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 20px;
}

.quote-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.quote-text {
    font-size: 2rem;
    font-family: 'Merriweather', serif;
    font-style: italic;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-author {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--green-lighter) 0%, var(--green-light) 100%);
        flex-direction: column;
        gap: 0;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        text-align: left;
        padding: 15px 20px;
        border-radius: 10px;
        margin-bottom: 5px;
    }

    /* Overlay khi menu mở */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item {
        min-width: 150px;
        padding: 20px;
    }

    .news-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .news-card.featured .news-placeholder {
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .quote-text {
        font-size: 1.5rem;
    }

    .tribute-form-container {
        padding: 25px;
    }

    .message-content,
    .message-time {
        padding-left: 0;
        margin-top: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 1.5rem;
        padding: 10px 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .news-placeholder {
        height: 200px;
    }

    .news-placeholder i {
        font-size: 3rem;
    }
}
