@charset "utf-8";
/* css/style.css */

/* พื้นฐาน */
body {
    font-family: 'Sarabun', sans-serif; /* แนะนำ Font ไทยสวยๆ เช่น Sarabun, Prompt */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Header */
header {
    background: #53CBE9;
    color: #fff;
    padding: 10px 0;
    border-bottom: 5px solid #fff;
}

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

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    height: 50px;
    margin-right: 10px;
}

header .logo h1 {
    color: #fff;
    margin: 0;
    font-size: 2em;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1em;
}

header nav a:hover {
    color: #53CBE9;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; /* เปลี่ยนรูปภาพพื้นหลัง */
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* เพิ่มความทึบแสงเพื่อให้ข้อความอ่านง่ายขึ้น */
}

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

.hero h2 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #fff;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background: #2980b9;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: #3498db;
    text-decoration: none;
}

.button-secondary {
    background: #f39c12;
}

.button-secondary:hover {
    background: #e67e22;
}


/* Sections ทั่วไป */
section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
}

section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2980b9;
    margin: 10px auto 0;
}

/* Highlights Section */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.highlight-item {
    background: #53CBE9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item i { /* สำหรับ Icon - ต้องเพิ่ม Font Awesome หรือไอคอนอื่นๆ */
    font-size: 3em;
    color: #2980b9;
    margin-bottom: 15px;
}

.highlight-item h4 {
    margin-top: 0;
    font-size: 1.5em;
}

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

.news-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-item h4 {
    padding: 15px;
    margin: 0;
    font-size: 1.4em;
}

.news-item h4 a {
    color: #2c3e50;
}

.news-item h4 a:hover {
    color: #2980b9;
    text-decoration: none;
}

.news-item p {
    padding: 0 15px 15px;
    font-size: 0.95em;
    color: #555;
}

.news-item .read-more {
    display: block;
    padding: 10px 15px;
    background: #f8f8f8;
    color: #2980b9;
    text-align: right;
    font-weight: bold;
    border-top: 1px solid #eee;
}

.news-item .read-more:hover {
    background: #f0f0f0;
    text-decoration: none;
}

/* Footer */
footer {
    background: #374659;
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
    text-align: left;
}

.footer-section h4 {
    color: #f39c12;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    opacity: 0.8;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-section p, .footer-section i {
    color: #ccc;
}

.footer-section i {
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin: 15px 0;
        text-align: center;
    }
}