.athiti-extralight {
    font-family: "Athiti", sans-serif;
    font-weight: 200;
    font-style: normal;
  }
  
  .athiti-light {
    font-family: "Athiti", sans-serif;
    font-weight: 300;
    font-style: normal;
  }
  
  .athiti-regular {
    font-family: "Athiti", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .athiti-medium {
    font-family: "Athiti", sans-serif;
    font-weight: 500;
    font-style: normal;
  }
  
  .athiti-semibold {
    font-family: "Athiti", sans-serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .athiti-bold {
    font-family: "Athiti", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  















/* Custom navbar styling */
.custom-navbar {
    background-color: #FFA500; /* Orange background for navbar */
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
    color: #000; /* Black text color for navbar items */
}

.custom-navbar .nav-link.active {
    color: #241d1d; /* White text color for active nav link */
}

/* Custom dropdown menu styling */
.custom-dropdown-menu {
    background-color: #FFA500; /* Orange background for dropdown menu */
}

.custom-dropdown-menu .dropdown-item {
    color: #000; /* Black text color for dropdown items */
}

.custom-dropdown-menu .dropdown-item:hover {
    background-color: #ff8c00; /* Slightly darker orange for hover effect */
}



/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    padding: 50px;
}

/* Navbar Styling */
.navbar {
    margin-bottom: 50px;
}

.navbar-brand {
    font-weight: bold;
}

/* Carousel Styling */
.carousel-inner img {
    width: 100%;
    height: auto;
}

/* Card Styling */
.custom-card {
    margin-bottom: 20px;
    border: 1px solid #720000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px; /* Adjust the height of the card image */
    object-fit: cover; /* Ensure the image covers the card without distortion */
}

.card-body {
    padding: 50px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    margin-bottom: 15px;
}

.btn-warning {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.btn-warning:hover {
    background-color: #ec971f;
    border-color: #d58512;
}

/* Responsive Layout for Cards */
@media (max-width: 768px) {
    .card {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .card {
        margin: 5px 0;
    }
}





/* Custom card styling กาดเนื้อหาโค้งของกาด 1 บท 
*/
.custom-card {
    background-color: #001f3e; 
    color: #000000; 
    border: none; 
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgb(0, 0, 0);
    margin-bottom: 20px; 
    overflow: hidden; 
}

/* Style for card body */
.custom-card .card-body {
    background-color: #ffffff; 
    padding: 20px; 
    border-radius: 8px; 
}

/* Style for card title */
.custom-card .card-title {
    color: #000000; 
    font-size: 1.25rem;
    font-weight: bold; 
    margin-bottom: 15px; 
}

/* Style for card text */
.custom-card .card-text {
    color: #000000; 
    font-size: 0.875rem; 
    line-height: 1.6; 
}

/* Style for card image */
.custom-card .card-img-bottom {
    border-top: 1px solid #fff4f4; 
    border-radius: 0 0 8px 8px; 
}






.btn-gradient {
    background: linear-gradient(45deg, #eeff00, #00ff62); 
    color: #000000; 
    border: none; 
    font-size: 1rem;
    padding: 10px 20px; 
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    border-radius: 5px; 
    transition: background 0.3s ease; 
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #04ff00, #2200a9);
}




/* ของchap */
.custom-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.custom-card:hover {
    transform: translateY(-5px);
}

.custom-card img {
    border-radius: 10px 10px 0 0;
}

.card {
    border: none; /* ไม่มีขอบการ์ด */
    border-radius: 15px; /* มุมโค้งมน */
    overflow: hidden; /* ทำให้ภาพไม่เกินขอบ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* เงาของการ์ด */
    transition: transform 0.3s, box-shadow 0.3s; /* เพิ่มการเคลื่อนไหว */
}

.card:hover {
    transform: translateY(-5px); /* การเคลื่อนไหวเมื่อเลื่อนเมาส์ */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* เงาที่ชัดเจนขึ้น */
}

.card-img-top {
    border-radius: 15px 15px 0 0; /* มุมโค้งมนที่มุมบนของรูปภาพ */
}

.card-body {
    padding: 15px;
}








.custom-card { 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.custom-card:hover {
    transform: translateY(-5px);
}

.modal-body img {
    max-width: 100%;
    border-radius: 15px;
}





/* ปุ่มไล่สีหน้า Chap1 */
.btn-gradient {
    background: linear-gradient(45deg, #ff6f61, #d063f2); /* Gradient colors */
    border: none; /* Remove default border */
    color: white; /* Text color */
    position: relative; /* Position relative for pseudo-element */
    overflow: hidden; /* Hide overflow to ensure gradient stays inside button */
    transition: background 0.3s ease; /* Smooth transition on hover */
}
.btn-gradient:hover {
    background: linear-gradient(45deg, #d063f2, #ff6f61); /* Reverse gradient on hover */
}




