@import url("https://fonts.googleapis.com/css2?family=Mitr:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap");

* {
    font-family: "Mitr", sans-serif;
}
.head{
    background: linear-gradient(90deg, rgba(138,89,253,1) 0%, rgba(129,157,244,1) 5%, rgba(187,242,244,1) 55%, rgba(249,255,245,1) 100%);
   
    /* height: 300px; */
}
.content {
    background: red;
   
    /* height: 300px; */
}
#bg-footer{
    background-color: #E4E4E4; 
    /* height: 275px; */
    color: #FFFFFF;
    margin-top: 3rem;
}
.link{
    background-color: #377EF0; 
    height: 70px;
    color: #FFFFFF; 
    text-align: center; 
    font-size: 20px;
    padding-top: 1rem;
}
.btn-circle.btn-md { 
    width: 35px; 
    height: 35px; 
    border: none; 
    padding: 2px 2px;
    border-radius: 50%; 
    font-size: 20px; 
    text-align: center; 
    color: #3D3D3D; 
}
.foot{
    color: #377EF0;
    padding-top: 35px;
    padding-left: 50px;
    font-size: 20px;
     
}
.btn-circlefoot.btn-md{
    border: none; 
    background-color: #377EF0; 
    color: #ffffff; 
    text-align: center; 
    border-radius: 50%; 
    padding: 6px 10px;
}
.btn-blue.btn-lg{
    background: linear-gradient(180deg, rgba(55,126,240,1) 0%, rgba(14,170,225,1) 100%);
    color: #ffffff; 
    border-radius: 25px; 
}
.btn-blue.btn-lg:hover ,.btn-blue.btn-lg:link{
    background: linear-gradient(180deg, rgba(55,126,240,1) 0%, rgba(14,170,225,1) 100%);
    color: #ffffff; 
    border-radius: 25px; 
}
.btn-search.btn-lg{
    background: #543FFE;
    color: #ffffff; 
    border-radius: 25px; 
}
.btn-search.btn-lg:hover ,.btn-blue.btn-lg:link{
    background: #543FFE;
    color: #ffffff; 
    border-radius: 25px; 
}
@media screen and (max-width: 768px){
    .link{
        background-color: #377EF0; 
        height: 90px;
        color: #FFFFFF; 
        text-align: center; 
        padding: 1rem 5rem ;

    }
}

.head2{
    background: rgb(249,255,245);
    background: linear-gradient(90deg, rgba(249,255,245,1) 0%, rgba(187,242,244,1) 55%, rgba(144,179,244,1) 80%, rgba(138,89,253,1) 100%);
    /* This ensures the image maintains its aspect ratio */
    }

.btn-container {
        position: absolute;
        top: 185;
        right: 0;
        margin-top: 20px; /* Adjust vertical position */
        margin-right: 20px; /* Adjust horizontal position */
        text-decoration: none;
    }
* {
        box-sizing: border-box;
    }
      
form.example input[type=text] {
        padding: 10px;
        font-size: 17px;
        float: left;
        width: 80%;
        background: #FFFFFF;
    }
      
form.example button {
        float: left;
        width: 20%;
        padding: 10px;
        background: #2196F3;
        color: white;
        font-size: 17px;
        border: 1px solid grey;
        border-left: none;
        cursor: pointer;
    }
      
form.example button:hover {
        background: #0b7dda;
    }
      
form.example::after {
        content: "";
        clear: both;
        display: table;
    }
.head3{
        background: #E4E4E4;
        width: 1000px; /* Adjust the value as needed */
        height: 60px; /* This ensures the image maintains its aspect ratio */
    }
.filter{
        background-color: #E4E4E4; 
        color: #FFFFFF; 
        text-align: center; 
        font-size: 20px;
        padding: 10px 0;
    }
.item {
        background-color: #80cbc4;
        border: 1px solid #bf0707;
        padding: 20px;
        font-size: 30px;
        text-align: center;
        border-radius: 20px;
    }
.menu-color {
        color: #0C4196; 
        text-align: center; 
    }
.badge{
        background: rgb(55,126,240);
        background: linear-gradient(180deg, rgba(55,126,240,1) 0%, rgba(19,84,162,1) 100%);
        text-align: center;
    }
 /* Custom CSS for responsive text size in footer */
    .footer-contact-text {
        font-size: 0.9rem; /* Default font size for smaller screens */
    }

    /* Media query for larger screens (e.g., tablets and desktops) */
    @media (min-width: 768px) {
        .footer-contact-text {
            font-size: 1rem; /* Larger font size for screens 768px and up */
        }
    }

    /* Optional: Adjust button icon size if needed */
    .btn-circlefoot.btn-md i {
        font-size: 0.9rem; /* Smaller icon size for mobile */
    }

    @media (min-width: 768px) {
        .btn-circlefoot.btn-md i {
            font-size: 1.25rem; /* Original icon size for desktop */
        }
    }
    
    .detail-text p {
    text-align: justify;       /* จัดข้อความแบบชิดขอบทั้งสองด้าน */
    word-wrap: break-word;     /* ตัดคำเมื่อคำยาวเกินขอบ */
    overflow-wrap: break-word; /* รองรับเบราว์เซอร์ใหม่ */
    line-height: 1.8;          /* ระยะห่างระหว่างบรรทัด อ่านง่ายขึ้น */
    font-size: 1.1rem;         /* ขนาดตัวอักษรอ่านสบาย */
    margin: 0 auto;
    max-width: 700px;          /* จำกัดความกว้างของข้อความ */
    }

        /* ==================================== */
/* สไตล์สำหรับ Visitors Counter ใน Footer */
/* ==================================== */

/* กำหนดให้ Footer มีความยืดหยุ่นในการจัดวางองค์ประกอบ */
.container-fluid > .row {
    align-items: center; /* จัดให้อยู่กึ่งกลางแนวตั้ง */
}

/* จัดตำแหน่ง Counter ใน Column ให้อยู่กึ่งกลาง */
.counter-container {
    display: flex;
    justify-content: center; /* จัดกึ่งกลางแนวนอน */
    align-items: center;    /* จัดกึ่งกลางแนวตั้ง */
    height: 100%;           /* ใช้ความสูงเต็มพื้นที่ของ Row */
    padding: 10px 0;
}

.visitor-counter-box {
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px; /* มุมโค้งมน */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ดูมีมิติ */
    text-align: center;
    max-width: 170px; /* จำกัดความกว้างให้ดู compact */
    min-width: 150px;
    border: 1px solid #ddd; /* ขอบบางๆ */
    /* ใช้ฟอนต์ที่ดูสะอาดตา ถ้ามี Roboto หรือ Arial */
    font-family: Arial, sans-serif; 
}

/* สไตล์สำหรับตัวเลขหลักใหญ่ (Total Views) - ให้ดูเหมือน Counter ดิจิทัล */
.big-counter-display {
    font-size: 26px; /* ขนาดใหญ่ */
    font-weight: 900; /* เน้นความหนา */
    
    /* สไตล์แบบดิจิทัล/LED */
    background-color: #333; /* พื้นหลังสีดำเข้ม */
    color: #FFC107; /* สีเหลืองทอง/ส้ม เพื่อให้โดดเด่น */
    /* หรือใช้สีเขียว #4CAF50 ถ้าชอบแบบดั้งเดิม */
    
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace; /* ฟอนต์ Digital Look */
    letter-spacing: 2px; /* ช่องไฟระหว่างตัวเลข */
    overflow: hidden; /* ป้องกันตัวเลขล้น */
    white-space: nowrap; /* ป้องกันการขึ้นบรรทัดใหม่ */
}

/* สไตล์สำหรับส่วนรายละเอียด (วันนี้, ทั้งหมด) */
.details-section {
    margin-bottom: 5px;
}
.details-section p {
    margin: 1px 0;
    font-size: 14px;
    color: #333; /* สีตัวอักษรปกติ */
    line-height: 1.4;
}
.details-section span {
    font-weight: bold;
    color: #000;
}

/* สไตล์สำหรับข้อความ "Visitors Counter" */
.counter-label {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 11px; /* เล็กลงเล็กน้อย */
    font-weight: bold;
    color: #DC3545; /* สีแดงเข้ม (Bootstrap danger) */
    text-transform: uppercase; /* ตัวพิมพ์ใหญ่ทั้งหมด */
}