/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #003366 100%);
    color: var(--white);
    padding: 80px 5%;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    color: #e0e0e0;
}

.cta-button {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

/* --- Quick Access Grid --- */
.services {
    padding: 60px 5%;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--primary-navy);
    margin-bottom: 40px;
    font-size: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-teal);
}

.card h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.card-link {
    color: var(--dark-teal);
    text-decoration: none;
    font-weight: 600;
}

/* --- Prevention Tips Section --- */
.prevention-tips {
    padding: 60px 5%;
    background-color: #e8eef1; /* สีพื้นหลังที่แตกต่างเล็กน้อย */
}

.tip-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--accent-teal);
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.tip-card h3 {
    color: var(--primary-navy);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.tip-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Latest News Section --- */
.latest-news {
    padding: 60px 5%;
    background-color: var(--white);
}

.news-card {
    background: var(--white);
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date { font-size: 0.85rem; color: #999; margin-bottom: 10px; }
.news-card h3 { font-size: 1.2rem; color: var(--primary-navy); margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 0.95rem; color: #666; margin-bottom: 15px; flex-grow: 1; }

.read-more {
    display: inline-block;
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: background-color 0.3s, transform 0.2s;
}
.read-more:hover {
    background-color: var(--accent-teal);
    color: var(--primary-navy);
    text-decoration: none;
    transform: translateY(-2px);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background-color: var(--primary-navy);
    color: var(--white);
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--white);
    padding: 60px 20px;
    margin-top: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-family: 'Sarabun', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent-teal);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease-in-out;
    min-width: 20px; /* prevent layout shift */
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    color: #555;
}
.faq-answer p { padding: 0 10px 20px 10px; }