body {
    font-family: 'Sarabun', sans-serif;
}

.bg-main {
    background-image: url('../images/bg-main.jpg');
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.box-btn-start {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.btn-start {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #FFE066;
    color: #000;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-start:hover {
    background-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-start:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.box-txt-main {
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    position: absolute;
    width: 100%;
    top: 20%;
    text-align: center;
    color: white;
    font-size: 9rem;
    font-weight: 900;
    line-height: .9;
}

.bg-list {
    background-color: #bdf4dc;
    min-height: 100vh;
    position: relative;
    /* overflow: hidden; */
}

.box-txt-head {
    background: #e1ffe6;
    display: inline-block;
    font-weight: 900;
    padding: 30px 100px;
    border-radius: 0 0 500px 500px;
}

.box-txt-head h1,
.box-txt-head h2 {
    font-family: 'Prompt', sans-serif;
    color: #1c9e5c;
    /* Text color */
    text-shadow:
        -3px -3px 0 #fff,
        3px -3px 0 #fff,
        -3px 3px 0 #fff,
        3px 3px 0 #fff;
}

.box-txt-head h1 {
    font-weight: 700;
    font-size: 2.5rem;
}

.box-txt-head h2 {
    font-weight: 400;
    font-size: 2rem;
}

.center {
    text-align: center;
}

.menu-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fcc3fe;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.menu-item:hover,
.menu-item:active {
    color: #4CAF50;
    text-decoration: none;
}

.menu-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.menu-item span {
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
}

.image-menu {
    height: 100px;
}

.image-menu:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.box-medical {
    padding: 20px 10px;
    background: #f2f2f2;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.box-medical:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.box-medical img {
    max-width: 100%;
    height: 150px;
}

.box-medical h3 {
    margin: 10px 0px;
    font-weight: 700;
}

.box-medical p {
    margin-bottom: 0px;
}

.box-medical-detail {
    padding: 10px 0;
}

.h-menu-bottom {
    height: 150px;
    clear: both;
}

a {
    color: inherit;
    text-decoration: none;
}

.box-input {
    text-align: center;
    margin-bottom: 30px;
}

.box-input h3 {
    color: #034172;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-family: 'Prompt', sans-serif;
}

.input-styled {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 5px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.input-styled input {
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: #aaaaaa;
    padding: 10px;
    width: 100%;
    text-align: center;
    background-color: transparent;
}

.input-styled input:focus {
    outline: none;
    box-shadow: none;
}

.input-styled input::placeholder {
    color: #cccccc;
}

.input-styled select {
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: #aaaaaa;
    padding: 10px;
    width: 100%;
    text-align: center;
    text-align-last: center;
    background-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.input-styled select:focus {
    outline: none;
    box-shadow: none;
}

.input-styled select option {
    font-size: 1.5rem;
    text-align: center;
}

/* Add a custom dropdown arrow */
.input-styled {
    position: relative;
}

/* .input-styled::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaaaaa;
    pointer-events: none;
    font-size: 1.5rem;
} */

.box-btn-cal {
    /* display: flex;
    justify-content: space-between; */
    text-align: center;
    margin: 10px 0;
    padding: 0 15px;
}

.btn-back,
.btn-calculate {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-back {
    background-color: #7fc9ff;
    color: #000;
}

.btn-calculate {
    background-color: #ffb6e6;
    color: #000;
}

.btn-back:hover,
.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #000;
}

.btn-back i {
    margin-right: 5px;
}

.btn-calculate i {
    margin-left: 5px;
}

.bg-result {
    background-image: url('../images/bg-result.jpg');
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding-bottom: 80px;
}

.result-txt-head {
    background: #92bc3d;
    color: #ffffff;
    display: inline-block;
    padding: 10px 80px;
    border-radius: 50px;
    margin-top: 20px;
}

.result-txt-head h1 {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    margin: 0;
    font-size: 2.5rem;
    text-shadow:
        -2px -2px 0 #666,
        2px -2px 0 #666,
        -2px 2px 0 #666,
        2px 2px 0 #666;
}

.result-table {
    background-color: #c3ffdf;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-header {
    background-color: #ffb700;
    padding: 15px 0;
    color: #003366;
}

.result-header h3 {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #003366;
}

.result-header2 {
    background-color: #003366;
    padding: 15px 0;
    color: #ffffff;
}

.result-header2 h3 {
    font-family: 'Prompt', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
}

.result-value {
    font-family: 'Prompt', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #003366;
}

.result-body {
    padding: 10px 0;
}

.result-row {
    padding: 10px 15px;
    font-family: 'Prompt', sans-serif;
    font-size: 1.2rem;
}

.result-row div:first-child {
    font-weight: 500;
    color: #003366;
}

.result-row div:nth-child(2) {
    font-weight: 700;
    color: #000;
}

.result-row div:last-child {
    color: #666;
}

.btn-back-home {
    display: inline-block;
    background-color: #8bc34a;
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-family: 'Prompt', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background-color: #7cb342;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.bg-profile {
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

.profile-header {
    padding: 40px 0;
}

.profile-header h1 {
    font-family: 'Oswald', sans-serif;
    color: #003366;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 0;
    letter-spacing: 1px;
}

.profile-header h2 {
    font-family: 'Oswald', sans-serif;
    color: #003366;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.project-title {
    background-color: #4ecca3;
    border-radius: 30px;
    padding: 15px 30px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 30px;
}

.project-title h3 {
    font-family: 'Prompt', sans-serif;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    font-size: 1.3rem;
}

.project-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.project-description p {
    font-family: 'Sarabun', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.profile-illustration {
    position: relative;
    height: 300px;
    margin-top: 30px;
}

.wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-color: #a8d8ff;
    border-radius: 100% 100% 0 0;
    z-index: 1;
}

.doctor-left {
    position: absolute;
    bottom: 0;
    left: 5%;
    height: 250px;
    z-index: 2;
}

.doctor-right {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 250px;
    z-index: 2;
}

.result-txt-sub {
    margin-top: 20px;
    font-weight: 700 !important;
    color: #003366;
}


@media (max-width: 1200px) {
    .box-txt-main {
        top: 30%;
        font-size: 8rem;
        line-height: 1;
    }
}

@media (max-width: 768px) {
    .box-txt-main {
        top: 30%;
        font-size: 6rem;
        line-height: 1;
    }

    .box-txt-head {
        padding: 30px 50px;
    }

    .image-menu {
        height: 80px;
    }

    .result-txt-head {
        padding: 10px 60px !important;
    }

    .profile-header h1,
    .profile-header h2 {
        font-size: 2rem;
    }

    .project-description p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .doctor-left,
    .doctor-right {
        height: 180px;
    }

    .btn-back,
    .btn-calculate {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

.search-box {
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-box .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'Prompt', sans-serif;
    font-size: 1.1rem;
    background: #ffffff;
    color: #333;
}

.search-box .form-control::placeholder {
    color: #aaa;
    font-weight: 300;
}

.search-box .form-control:focus {
    box-shadow: none;
    background: #ffffff;
}

.search-box .input-group-text {
    background: #1c9e5c;
    border: none;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box .input-group-text:hover {
    background: #0d2659;
    cursor: pointer;
}

.product-item {
    transition: all 0.3s ease;
}

.product-item.hidden {
    display: none;
}

@media (max-width: 768px) {
    .search-box {
        padding: 0.3rem;
    }

    .search-box .form-control {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .search-box .input-group-text {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}