/* =========================================
   ไฟล์สไตล์หลัก (Global Styles) - อัชนัยแอร์ 
   ========================================= */

/* 🪄 คาถามหานิยม: จัดการระบบตัวหนังสือและระยะบรรทัดทั้งหน้าเว็บให้โปร่งตาสวยงาม อ่านง่ายสบายตา */
* {
    line-height: 1.85 !important; 
    letter-spacing: 0.02em !important; 
    box-sizing: border-box;
}

/* ตั้งค่าฟอนต์หลักของเว็บไซต์ให้เป็น Sarabun */
body { 
    font-family: 'Sarabun', sans-serif; 
}

/* ควบคุมระยะห่างของหัวข้อต่างๆ ให้กระชับสวยงาม */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.4 !important; 
    margin-bottom: 0.5rem;
}

/* ซ่อน Scrollbar ของหน้าต่าง Pop-up ขยายรูปภาพ เพื่อความพรีเมียม */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 🖨️ สไตล์สำหรับการสั่งพิมพ์ใบเสนอราคา (Print Media) */
@media print {
    .no-print { 
        display: none !important; 
    }
    body { 
        background: white; 
        color: black; 
    }
    .print-card h1, .print-card p, .print-card span, .print-card th, .print-card td {
        line-height: 1.6 !important;
    }
}

/* =========================================
   สไตล์การตกแต่งหน้าเพจ at_news.html - อัชนัยแอร์
   ========================================= */

/* 🪄 บังคับระยะบรรทัดและตัวอักษรให้สวยงาม อ่านง่าย ไม่ซ้อนทับกันทุกหน้าจอ */
.news-container, .news-container * {
    line-height: 1.85 !important;
    letter-spacing: 0.02em !important;
}

/* ส่วนหัวข้อข่าวสาร */
.news-header-zone {
    text-align: center;
    padding: 30px 15px;
    background: #1f2937; /* สีเทาเข้ม-ดำ */
    border-radius: 12px;
    color: #ffffff;
    margin-bottom: 30px;
    border-bottom: 5px solid #ff7a00; /* สีส้มประจำร้าน */
}

.news-header-zone h2 {
    color: #00a3ff; /* สีฟ้าสดใส */
    font-size: 24px;
    margin-bottom: 10px;
}

/* 🟢 ปุ่มสถานะกระพริบกระตุ้นความสนใจ */
.live-badge {
    display: inline-block;
    background: #ff7a00;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    animation: pulseEffect 1.5s infinite;
}

/* 🔥 เอฟเฟกต์ Emoji กระพริบเด่น */
.emoji-flash {
    animation: flashEffect 1s infinite alternate;
    display: inline-block;
}

/* กล่องบทความ */
.news-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.news-item h3 {
    color: #1f2937;
    font-size: 20px;
    margin-bottom: 8px;
}

.news-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

/* ปุ่มอ่านต่อ */
.read-more-btn {
    display: inline-block;
    background: #00a3ff;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 15px;
    transition: background 0.2s;
}

.read-more-btn:hover {
    background: #0084cf;
    color: #fff;
}

/* 🔢 แถบเมนูแบ่งหน้าด้านล่างสุด */
.pagination-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #4b5563;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.page-btn.active, .page-btn:hover:not([disabled]) {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
}

.page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 🎬 Keyframes สำหรับเอนิเมชันความเด่น */
@keyframes pulseEffect {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 122, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); }
}

@keyframes flashEffect {
    0% { opacity: 0.3; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}
/* =========================================
   ระบบสไตล์สำหรับโพสต์ข่าวสาร (News Item Styles)
   ========================================= */
.news-item.full-post {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}
.post-title {
    color: #0056b3;
    font-size: 22px;
    margin-bottom: 5px;
    line-height: 1.4;
}
.post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}
.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.post-content {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.7; /* ระยะบรรทัดกำลังดี อ่านบนคอมและมือถือสบายตา */
}
.contact-box {
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #0056b3;
    border-radius: 4px;
    flex: 1;
    min-width: 280px;
    line-height: 1.6;
}
.contact-box a {
    color: #333;
    text-decoration: none;
}
.contact-box a.line-text {
    color: #00c300;
    font-weight: bold;
}

/* --- ระบบสไตล์สำหรับปุ่มแชร์บทความ (Share Buttons) --- */
.action-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 15px;
}
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-text {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.btn-share.facebook { background: #1877F2; }
.btn-share.line { background: #00B900; }
.btn-share.copy-link { background: #6b7280; }
