.divider-center-responsive {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 10px; /* ระยะห่างข้อความกับเส้น */
}

/* ข้อความด้านซ้าย */
.divider-center-responsive span:first-child {
    font-weight: 500;
    color: #333;
}

/* ลิงก์ด้านขวา */
.divider-center-responsive a {
    text-decoration: none;
    color: #05315fff;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Hover ของลิงก์ */
.divider-center-responsive a:hover {
    color: #800303ff;
    transform: translateX(3px);
}

/* เส้นกึ่งกลาง */
.divider-center-responsive .line {
    flex-grow: 1;                
    border-bottom: 2px solid #000000ff;
    transform: scaleX(0);        
    transform-origin: left;      
    transition: transform 0.4s ease, border-color 0.4s ease;
}

/* Hover เมื่อชี้ที่ทั้งบล็อก */
.divider-center-responsive:hover .line {
    transform: scaleX(1);        
    border-color: #850707ff;       
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .divider-center-responsive {
        flex-direction: column;       /* เรียงข้อความและลิงก์ลงแนวตั้ง */
        align-items: stretch;
    }

    .divider-center-responsive span:first-child,
    .divider-center-responsive a {
        text-align: center;           /* จัดกลางข้อความเมื่ออยู่แนวตั้ง */
        width: 100%;
        padding: 5px 0;
    }

    .divider-center-responsive .line {
        transform-origin: center;     /* จุดเริ่ม animation กลาง */
        margin: 5px 0;
    }
}

/**********************************/
/*********** Team-members **********/
/**********************************/
    .team-members {
        background: #fff;
        border-radius: 10px;
    }

    .icons {
        font-size: 4rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .txtabout {
        text-align: center;
    }



/**********************************/
/*********** Line Of articles and video CSS **********/
/**********************************/
.divider-center-responsives {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

/* ข้อความตรงกลาง */
.divider-center-responsives .title {
    margin: 0 auto;         /* ดันให้อยู่ตรงกลาง */
    font-weight: 600;
    font-size: 1.2rem;
    color: #000;
    text-align: center;
}

/* ลิงก์ด้านขวา */
.divider-center-responsives a {
    text-decoration: none;
    color: #05315f;
    font-weight: 600;
    margin-left: auto;      /* ดันไปขวาสุด */
    transition: color 0.3s ease, transform 0.2s ease;
}

.divider-center-responsives a:hover {
    color: #800303;
    transform: translateX(3px);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .divider-center-responsives {
        flex-direction: column;       /* เรียงข้อความและลิงก์ลงแนวตั้ง */
        align-items: stretch;
    }

    .divider-center-responsives span:first-child,
    .divider-center-responsives a {
        text-align: center;           /* จัดกลางข้อความเมื่ออยู่แนวตั้ง */
        width: 100%;
        padding: 5px 0;
    }

    .divider-center-responsives .line {
        transform-origin: center;     /* จุดเริ่ม animation กลาง */
        margin: 5px 0;
    }
}


/**********************************/
/*********** Line Of articles Gradient **********/
/**********************************/
  /* พื้นหลัง Gradient */
    /* กล่องหลัก */
   /* ให้ container ครอบทั้งหมด */
        .containers {
            display: flex;              /* ใช้ flexbox */
            justify-content: center;    /* จัดกลางแนวนอน */
            padding: 2rem;              /* ระยะรอบๆ */
        }

        /* ปรับ content-box */
        .content-box {
            background: #fff;
            padding: 2rem;
            border-radius: 16px;
            width: 60%;                 /* กว้าง 80% ของหน้าจอ */
            max-width: 1200px;          /* ไม่ให้ใหญ่เกินไป */
            box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        }

      /* Section Header */
    .section-header {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

/* h2 อยู่ตรงกลาง */
.section-header h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

/* ลิงก์อยู่ด้านขวา */
.section-header .see-all {
    margin-left: auto; /* ดันไปขวา */
    font-size: 0.95rem;
    color: #7B1FA2;
    font-weight: 500;
    transition: color 0.3s;
}
.section-header .see-all:hover { color: #4A148C; }

    /* Articles Grid 3x2 */
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 คอลัมน์ */
        gap: 1.5rem;
    }

    /* Article Card */
    .article-card {
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    }
    .article-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        display: block;
        transition: transform 0.5s;
    }
    .article-card:hover img { transform: scale(1.05); }

    .article-card .text { padding: 1rem; }
    .article-card .text h3 {
        font-size: 1.1rem;
        margin: 0 0 0.5rem;
        color: #333;
        height: 2.6em; /* limit 2 lines */
        overflow: hidden;
    }
    .article-card .text a {
        font-size: 0.9rem;
        color: #7B1FA2;
        font-weight: 500;
        transition: color 0.3s;
    }
    .article-card .text a:hover { color: #4A148C; }

    /* Responsive */
    @media (max-width: 992px) {
        .articles-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 576px) {
        .articles-grid { grid-template-columns: 1fr; }
        .article-card img { height: 150px; }
    }


/**********************************/
/*********** Hero Select **********/
/**********************************/
.text-gradient {
    background: linear-gradient(90deg, #ff6a00, #ffcc00);
    -webkit-text-fill-color: transparent;
}
.btn-gradient {
    background: linear-gradient(90deg, #ff6a00, #ffcc00);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    background: linear-gradient(90deg, #ff8c42, #ffd633);
    transform: translateY(-2px);
}
.bg-image {
    min-height: 100vh;
}




/**********************************/
/*********** Product Select **********/
/**********************************/
 .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.card p {
  margin: 10px 0;
  font-weight: bold;
  color: #444;
}




/**********************************/
/*********** Product horoscop **********/
/**********************************/
/* ======= Carousel Styling ======= */
.carousel-wrapper { 
    position: relative; 
    overflow: hidden; /* ป้องกันการ์ดล้นปุ่ม */
}
.carousel-track {
    display: flex; 
    gap: 15px; 
    transition: transform 0.4s ease;
}

.cardd {
    flex-shrink: 0;
    min-width: 180px;
    cursor: pointer;
    transition: transform 0.3s;
}
.cardd:hover { transform: scale(1.05); }
.cardd-img { height: 120px; object-fit: cover; width: 100%; }
.fallback-img { width: 100%; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; z-index: 10; }
.carousel-indicators button.dot {
    width: 10px; height: 10px; border-radius: 50%; border:none; margin:0 3px;
    background-color: #ccc; cursor:pointer;
}
.carousel-indicators button.dot.active { background-color: #0d6efd; }

/* Responsive */
@media (min-width: 768px) { .cardd { min-width: 200px; } }
@media (min-width: 992px) { .cardd { min-width: 220px; } }