@charset "utf-8";

/* บังคับฟอนต์ */
* { font-family: 'Bai Jamjuree', sans-serif; }

/* =========================== */
/* 1. Header Banner (สีเลือดหมู-ทอง) */
/* =========================== */
.hero-banner-gradient {
    position: relative;
    height: 45vh; min-height: 320px;
    /* ไล่สี: แดงเลือดหมู -> แดงเข้ม -> ดำ */
    background: linear-gradient(135deg, #961919 0%, #610505 50%, #2e0202 100%);
    display: flex; justify-content: center; align-items: center;
    text-align: center; color: #fff; overflow: hidden; margin-bottom: 0;
}

.hero-overlay-texture {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,215,0,0.05) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2; padding: 20px; margin-top: -30px;
}

.hero-content h1 {
    font-size: 3.5rem; font-weight: 800; color: #FFD700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6); margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.3rem; font-weight: 300; letter-spacing: 1px; color: #fff; opacity: 0.95;
}

/* =========================== */
/* 2. Top Wave (คลื่นบน) */
/* =========================== */
.custom-shape-divider-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0; transform: rotate(180deg);
    z-index: 3;
}
.custom-shape-divider-bottom svg {
    position: relative; display: block; width: calc(130% + 1.3px); height: 90px;
    animation: waveMove 12s linear infinite alternate;
}
.custom-shape-divider-bottom .shape-fill { fill: #f4f1ea; /* สีเบจ (เข้ากับพื้นหลังเนื้อหา) */ }

@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-50px); } }

/* =========================== */
/* 3. Content Section (พื้นหลังสีเบจ ถนอมสายตา) */
/* =========================== */
.oit-section-container {
    position: relative; /* สำคัญสำหรับคลื่นล่าง */
    padding-bottom: 120px; /* เว้นที่ให้คลื่นล่าง */
    padding-top: 30px;
    background-color: #f4f1ea; /* สีเบจ (Warm Grey) */
}

.section-main-title {
    font-size: 1.8rem; font-weight: 800; color: #610505;
    position: relative; display: inline-block;
    padding-bottom: 10px; margin-bottom: 15px;
}
.section-main-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 4px;
    background: #b8860b; border-radius: 2px;
}

.category-title {
    color: #610505; font-weight: 700; font-size: 1.2rem;
    border-left: 4px solid #b8860b; padding-left: 12px;
    margin-bottom: 15px; margin-top: 10px;
}

/* =========================== */
/* 4. Premium Cards (Compact) */
/* =========================== */
.oit-premium-card {
    display: block; text-decoration: none;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease; height: 100%;
}

.card-icon-header {
    background: linear-gradient(135deg, #a81b1b, #610505);
    padding: 12px 18px; display: flex; justify-content: space-between;
    align-items: center; color: #fff; position: relative;
    overflow: hidden; height: 65px;
}

.card-icon-header i {
    font-size: 1.8rem; color: #FFD700; z-index: 2; transition: transform 0.4s;
}

.o-number {
    font-size: 2.2rem; font-weight: 900; opacity: 0.2;
    position: absolute; right: 10px; bottom: -6px;
    z-index: 1; color: #fff; transition: all 0.4s;
}

.card-content { padding: 15px 10px; text-align: center; }
.card-content h5 {
    font-weight: 700; color: #444; font-size: 1rem;
    margin: 0; transition: color 0.3s; line-height: 1.3;
}

/* Hover Effects */
.oit-premium-card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.oit-premium-card:hover .card-icon-header i { transform: scale(1.1); }
.oit-premium-card:hover .o-number { opacity: 0.4; transform: translateX(-5px); }
.oit-premium-card:hover .card-content h5 { color: #800000; }

/* =========================== */
/* 5. Footer Wave (คลื่นล่าง) */
/* =========================== */
.custom-shape-divider-footer-down {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0;
}
.custom-shape-divider-footer-down svg {
    position: relative; display: block;
    width: calc(130% + 1.3px); height: 80px;
}
.custom-shape-divider-footer-down .shape-fill { fill: #f4f1ea; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-banner-gradient { height: 35vh; min-height: 280px; }
    .card-icon-header { height: 55px; padding: 10px 15px; }
    .card-icon-header i { font-size: 1.5rem; }
    .o-number { font-size: 1.8rem; }
}