

.navbar {

background: -webkit-linear-gradient(to right, #FFF9B0, #FFB3B3);
background: linear-gradient(to right, #FFF9B0, #FFB3B3);
/* สีพื้นหลังเหลืองพาสเทล */

/* ความกว้างเต็มจอ */
padding-right: 30px;
}

.navbar-brand .brand-title {
color: #ddbc58; /* สีฟอนต์เหลืองพาสเทลสำหรับหัวข้อ */
}

.navbar-brand .brand-subtitle {
color: #7e6007; /* สีฟอนต์เหลืองพาสเทลที่อ่อนกว่า subtitle */
}

.navbar-nav .nav-link {
color: #a91f3d; /* สีฟอนต์เหลืองพาสเทลเข้มสำหรับลิงก์เมนู */
}

.navbar-nav .nav-link:hover {
color: #FFD700; /* สีเหลืองพาสเทลเมื่อเอาเมาส์ไปวาง */
}

.navbar-toggler {
border-color: #FFD966; /* สีเหลืองพาสเทลสำหรับปุ่ม toggle */
}

.dropdown-menu {
background-color: #FFF9E6; /* สีพื้นหลังเหลืองพาสเทลสำหรับเมนู dropdown */
}

.dropdown-item:hover {
background-color: #FFECB3; /* สีเหลืองพาสเทลสำหรับ dropdown item เมื่อเอาเมาส์ไปวาง */
}

.image-medsci-navbar{
    display:flex;
    
   }
   
.navbar-brand {
display: flex;
text-decoration: none; /* ลบขีดเส้นใต้ */
color: #333; /* สีข้อความ */
display: inline-block; /* ทำให้สามารถจัดระยะห่างด้านในได้ */
text-align: center; /* จัดข้อความให้อยู่กึ่งกลาง */
line-height: 1.2; /* ความสูงบรรทัด */
padding: 10px; /* ระยะห่างด้านใน */
}

.brand-title {
font-size: 24px; /* ขนาดฟอนต์ใหญ่สำหรับหัวข้อ */
font-weight: bold; /* ทำให้ข้อความหนาขึ้น */
color: #2a5d84; /* สีฟ้าเข้ม */
}

.brand-subtitle {
font-size: 18px; /* ขนาดฟอนต์เล็กกว่าสำหรับ subtitle */
font-weight: 300; /* น้ำหนักฟอนต์บางลง */
color: #4a4a4a; /* สีเทาเข้ม */
}

.testcollor{
background-color: #000000;
}

/* search2  */

.containersearch {
display: flex;
justify-content: center;
align-items: center; 
flex-direction: column;
top: 0;
width: 100%;
}


.eachrow{
    width: 100%;
    max-width: 1600px;

    
}
/* สไตล์สำหรับการ์ด */
.card {
    width: 100%;
    max-width: 1600px;
    padding: 10px;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    /* align-items: center; */
    
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.detail{
    
}


.card:hover {
    background-color: #FFB3B3;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    
}   
.detail-col{
    display: flex;
    align-items: center;
    gap: 15px; 
}



.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
}

.info {
    flex-grow: 1;

}

.title {
    font-size: 18px;
    font-weight: bold;
    
}

.company {
    color: #555;
    font-size: 14px;
}

.tag {
    background-color: #e0f7fa;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}



.container-welcome-title {

    height: 600px;
    width: 1200px;

    display: flex;
    justify-content: space-around;
    align-items:right;
}

.title-welcome {
    
    backdrop-filter: blur(2px);
    height: 200px;
    width: 400px;
    
    margin-right: 30%;
    right: 20px; /* ตำแหน่งชิดขวา */
    padding: 20px;
    border-radius: 8px;
    text-align: right;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

}

.title-welcome h1 {
  font-size: 36px;
  color: #d8c486;
  text-shadow: 
    -1px -1px 0 #92977c,  
     1px -1px 0 #515540,
    -1px  1px 0 #515540,
     1px  1px 0 #515540;
}

.title-welcome p {
  font-size: 22px;
  color: #78621f;

}


.rectangle-container {
    
    display: flex;
    position: absolute;
    top:480px;
    left:15px;
    gap: 10px;
}

.rectangle {
    cursor:pointer;
    padding: 20px;
    background: #FFF9B0;
    height: 200px;
    width: 240px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    color: #272727;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    
    
}

.rectangle p{
    padding: 10px;
    margin-bottom: 0;
    position: absolute;
    bottom: 0;
    width: 100%; /* เพื่อให้ข้อความครอบคลุมเต็มความกว้างของ .rectangle */  
    color: #272727;  
}
.rectangle h1{
    display: flex;
    padding:10px;
    color: #272727;
    
    
}

/* การเปลี่ยนสีและเพิ่มเอฟเฟ็กต์เมื่อ hover */
.rectangle:hover {
    background-color: rgb(0, 0, 0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    color: #000000;
    filter: brightness(1.1);
}

.eachrow  p{
    color:#333;
}

.search-bars{
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 10px; 
    margin-bottom: 10px;
}
.search-bar .form-control{
    width:100%;
}
.search-bar-btn {
    background: -webkit-linear-gradient(135deg, #FF4B2B, #FF416C); /* สี gradient แบบมุมเฉียง */
    background: linear-gradient(135deg, #FF4B2B, #FF416C);
    padding: 10px 28px; /* ขนาดปุ่มที่เหมาะสม */
    border: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 30px; /* ขอบโค้งมน */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(255, 65, 108, 0.3); /* เงาแบบ gradient */
    margin-bottom: 15px;

    /* เงาเบาๆ รอบปุ่ม */
    position: relative;
    overflow: hidden;
}

.search-bar-btn:hover {
    background: -webkit-linear-gradient(135deg, #FF416C, #FF4B2B); /* เปลี่ยนทิศทาง gradient เมื่อ hover */
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    transform: translateY(-2px); /* เลื่อนขึ้นเล็กน้อยเมื่อ hover */
    box-shadow: 0px 8px 15px rgba(255, 65, 108, 0.4); /* เพิ่มเงา */
}

.search-bar-btn:active {
    background: linear-gradient(135deg, #FF416C, #FF4B2B); /* คง gradient เดิมเมื่อคลิก */
    transform: translateY(1px); /* เลื่อนลงเล็กน้อยเมื่อคลิก */
    box-shadow: 0px 4px 10px rgba(255, 65, 108, 0.3); /* เงาเบาลง */
}


/* button */
.button-modify{
    z-index: 5;
    position: absolute;
    right: 125px;
    transform: translateY(40px);
}

.button-20 {
    
    
    appearance: button;
    background-color: #ffd700; /* สีเหลืองทอง */
    background-image: linear-gradient(145deg, #FFD700, #FFA500); /* gradient ที่มีสีทองผสมส้ม */
    border: none;
    border-radius: 20px; /* ทำขอบให้โค้งมนมากขึ้น */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้ดูโดดเด่น */
    color: #ffffff; /* ตัวหนังสือสีขาว */
    cursor: pointer;
    
    transform: translateY(40px);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600; /* เพิ่มความหนาของตัวหนังสือ */
    padding: 12px 24px; /* เพิ่มขนาด padding */

}

.button-20:hover {
    background-color: #ff9f00;
    background-image: linear-gradient(145deg, #FF8C00, #FFA500); /* สี gradient ใหม่เมื่อ hover */
    transform: translateY(35px); /* ปรับตำแหน่งให้เลื่อนขึ้นเมื่อ hover */
    color: black;
    box-shadow: 0 6px 12px rgba(34, 32, 30, 0.3); /* เพิ่มเงาเมื่อ hover */
}

.button-20:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 159, 0, 0.5); /* เงารอบนอกเมื่อ focus */
}

.button-20:active {
    background-color: #FFA500;
    transform: translateY(37px); /* เลื่อนลงเล็กน้อยเมื่อ active */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* เงาด้านในเมื่อ active */
}

