/* ===============================
   PROMO BANNER
================================ */
.promo-banner {
    max-width: 650px;
    width: 100%;
    margin: 0 auto 20px auto;
    border: 2px solid #957e33;
    border-radius: 10px;
    overflow: hidden;
    background: #0a1a2a;
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-title {
    font-size: 22px;
    text-align: center;
    margin-top: 12px;
    color: #ffd86b;
    letter-spacing: 0.5px;
}

.promo-divider {
    max-width: 650px;
    width: 100%;
    height: 2px;
    background: #2c3e50;
    margin: 10px auto 25px auto;
}

/* ===============================
   CARD CONTAINER (GRID)
================================ */
.card-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    padding: 0 15px;
}

/* ===============================
   CARD STYLE (พรีเมียมโทนเข้ม)
================================ */
.info-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #957e33;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    width: 100%;
}

/* ===============================
   IMAGE (เท่ากันทุกใบ)
================================ */
.info-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ===============================
   TEXT
================================ */
.summary {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #f5e9c8;
}

.caption {
    margin-top: 4px;
    font-size: 13px;
    color: #c7b98a;
}

.more-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #ffd86b;
    text-decoration: none;
    font-weight: 600;
}

.more-link:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE
================================ */

/* ⭐ มือถือ → 1 คอลัมน์เต็มจอ */
@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 10px;
    }

    .promo-title {
        font-size: 18px;
        margin-top: 10px;
    }
}

/* ⭐ แท็บเล็ต → 2 คอลัมน์เต็มจอ */
@media (min-width: 601px) and (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        padding: 0 12px;
    }

    .promo-title {
        font-size: 20px;
    }
}

/* ป้ายประชาสัมพันธ์ด้านบน */
/* ป้ายประชาสัมพันธ์ *
.promo-banner {
    max-width: 650px;
    width: 100%;
    margin: 0 auto 20px auto;
    border: 2px solid #957e33;
    border-radius: 10px;
    overflow: hidden;
    background: #0a1a2a;
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
}
/* ข้อความใต้ภาพ *

.promo-title {
    font-size: 22px;
    text-align: center;
    margin-top: 12px;
    color: #ffd86b;
    letter-spacing: 0.5px;
}

/* ⭐ Card Container — ปรับให้ยืดหยุ่นทุกหน้าจอ *
.card-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

/* Card *
.info-card {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #2c3e50;
}

/* รูปภาพ *
.info-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}
/* ข้อความสรุป *
/* summary *
.summary {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* caption *
.caption {
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}
/* ลิ้งก์ *
/* link *
.more-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #b8860b;
    text-decoration: none;
    font-weight: 600;
}

.more-link:hover {
    text-decoration: underline;
}
.emblem-premium-frame {
  padding: 3px;
  /*background: linear-gradient(135deg, #d4af37, #b8860b);*
  border-radius: 10px;
 /* border: 2px solid #957e33;*
  box-shadow: 0 0 0 2px #000 inset, 0 4px 12px rgba(0,0,0,0.35);
}
/*--เส้นคั่น--*
/* Divider *
.promo-divider {
    max-width: 650px;
    width: 100%;
    height: 2px;
    background: #2c3e50;
    margin: 10px auto 25px auto;
}
/* ⭐ Tablet *
@media (max-width: 1024px) {
    .promo-title {
        font-size: 20px;
    }
}

/* ⭐ Mobile *
@media (max-width: 600px) {
    .promo-banner {
        width: 100%;
    }

    .promo-title {
        font-size: 18px;
        margin-top: 10px;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}
/* ⭐ Mobile Landscape (มือถือเอียงจอ) *
@media (max-height: 500px) and (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr); /* 2 ใบต่อแถว *
        gap: 15px;
        padding: 0 10px;
        justify-items: center;
    }

    .info-card {
        width: 100%;
        max-width: 260px; /* ป้องกันการยืดจนเกินไป *
    }

    .promo-banner {
        max-width: 500px;
        margin: 0 auto 20px auto;
    }

    .promo-title {
        font-size: 18px;
    }
}

/*--firstpage--*
/* ===============================
   INFO CARD RESPONSIVE
================================ *

/* โครงสร้างหลักให้เป็น Grid *
.info-card-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop *
    gap: 25px;
}

/* ตัวการ์ด *
.info-card {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #957e33;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* รูปภาพให้เต็มคอลัมน์ *
.info-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* มือถือ → 1 คอลัมน์เต็มจอ *
@media (max-width: 768px) {
    .info-card-wrapper {
        grid-template-columns: 1fr !important;
    }
    .info-card {
        max-width: 100%;
    }
}

/* แท็บเล็ต → 2 คอลัมน์เต็มจอ *
@media (min-width: 769px) and (max-width: 1024px) {
    .info-card-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .info-card {
        max-width: 100%;
    }
}
/* ===============================
   CARD CONTAINER (GRID)
================================ *
.card-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    padding: 0 15px;
}

/* ===============================
   CARD STYLE (พรีเมียมโทนเข้ม)
================================ *
.info-card {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #957e33;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    width: 100%;
}

/* ===============================
   IMAGE (เท่ากันทุกใบ)
================================ *
.info-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ===============================
   TEXT
================================ *
.summary {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #f5e9c8;
}

.caption {
    margin-top: 4px;
    font-size: 13px;
    color: #c7b98a;
}

.more-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #ffd86b;
    text-decoration: none;
    font-weight: 600;
}

.more-link:hover {
    text-decoration: underline;
}

/* ===============================
   RESPONSIVE
================================ 

/* ⭐ มือถือ → 1 คอลัมน์เต็มจอ
@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 10px;
    }
}

/* ⭐ แท็บเล็ต → 2 คอลัมน์เต็มจอ 
@media (min-width: 601px) and (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px;
        padding: 0 12px;
    }
}*/
