.main_text {
    line-height: 2;
}

.medicine-matrix-wrap {
    margin: 0;
    padding: 0;
}

.medicine-matrix-title {
    color: #333;
    margin: 0 0 2px 0;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.medicine-matrix-scroll {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

.medicine-matrix-table {
    font-size: 0.72rem;
    margin: 0;
    white-space: nowrap;
    line-height: 1.15;
    --bs-table-cell-padding-y: 0.1rem;
    --bs-table-cell-padding-x: 0.2rem;
    --matrix-etc-width: 180px;
}

.medicine-matrix-table th,
.medicine-matrix-table td {
    text-align: center;
    vertical-align: middle;
    padding: 1px 3px;
}

.medicine-matrix-table .matrix-prescription-col {
    text-align: left;
    min-width: 72px;
    max-width: 110px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    padding-left: 2px;
    padding-right: 4px;
}

.medicine-matrix-table thead .matrix-prescription-col {
    z-index: 3;
}

.medicine-matrix-table .matrix-dosage-col {
    min-width: 24px;
}

.medicine-matrix-table .matrix-etc-col {
    text-align: left;
    font-size: 0.68rem;
    padding: 1px 4px;
    white-space: normal;
    width: calc(var(--matrix-etc-width) * 2 / 3);
    max-width: calc(var(--matrix-etc-width) * 2 / 3);
    word-break: keep-all;
}

.medicine-matrix-table .matrix-jomun-col {
    text-align: left;
    font-size: 0.66rem;
    padding: 2px 5px;
    white-space: normal;
    min-width: calc(180px + var(--matrix-etc-width) / 3);
    max-width: calc(320px + var(--matrix-etc-width) / 3);
    vertical-align: top;
    line-height: 1.3;
}

.medicine-matrix-table .matrix-jomun-item + .matrix-jomun-item {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px dashed #ddd;
}

.medicine-matrix-table .matrix-jomun-num {
    font-weight: 600;
    color: #555;
}

.medicine-matrix-table .matrix-col-highlight {
    background-color: #e7f1ff;
    font-weight: 600;
}

.medicine-matrix-table .matrix-prescription-link {
    cursor: pointer;
    color: #0d6efd;
}

.medicine-matrix-table .matrix-prescription-link:hover {
    text-decoration: underline;
}

.medicine-matrix-table tbody .matrix-prescription-col {
    font-weight: 500;
    color: #333;
}

.medicine-matrix-table tbody .matrix-prescription-link {
    color: #0d6efd;
}
.sticky-sub {
    position: sticky;
    top: 60px;
    z-index: 1000;
    background-color: white;
}
/********** Template CSS **********/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

img.animated.pulse {
    animation-duration: 5s;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 85px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 45px;
    padding: 0;
    color: var(--bs-dark);
    font-weight: 500;
    transition: .5s;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

/* 상단 다크 네비: 링크가 어두운 색으로 깨져 보이지 않는 문제 수정 */
.navbar.bg-dark .navbar-brand,
.navbar.bg-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.navbar.bg-dark .navbar-nav .nav-link:hover,
.navbar.bg-dark .navbar-nav .nav-link.active {
    color: #fff;
}

.navbar.bg-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--bs-primary);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
        color: #fff;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    position: relative;
    margin-top: -85px;
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.hero-header::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-light);
}


/*** Feature ***/
.feature-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.feature-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Deal ***/
.deal {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.deal::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.deal .bg-white {
    position: relative;
    z-index: 1;
}

.deal .cdt span {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: 200;
    text-transform: capitalize;
}


/*** How To Use ***/
.how-to-use {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.how-to-use::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.how-to-use .container {
    position: relative;
    z-index: 1;
}

.how-to-use .border {
    border-color: rgba(255, 255, 255, .2) !important;
}


/*** Product ***/
.product-item {
    transition: .1s;
}

.product-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
}

.product-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.testimonial::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.testimonial .testimonial-carousel {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
    border-color: rgba(255, 255, 255, .2) !important;
    margin: 0 auto 20px auto;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--bs-dark);
}


/*** Blog ***/
.blog-item {
    transition: .1s;
}

.blog-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
}

.blog-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Contact ***/
.contact-info-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.contact-info-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Newsletter ***/
.newsletter {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.newsletter::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter .form-control {
    background: rgba(255, 255, 255, .3);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--bs-body);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 3px solid var(--bs-light);
}

.footer .copyright a {
    color: var(--bs-body);
}

.footer .copyright a:hover {
    color: var(--bs-primary);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 3px solid var(--bs-light);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.res-img {
    width: 100%;
    height: auto;
    max-width: 350px; /* 이미지 최대 너비 지정 */
  }
  
  @media (max-width: 768px) {
    .res-img {
      max-width: 150px; /* 화면 너비가 768px 이하인 경우 이미지 최대 너비를 500px로 조정 */
    }
  }

  /* 초기 스타일 (크기) */
.responsive-video {
    width: 100%; /* 비디오의 초기 가로 크기를 100%로 설정합니다. */
    max-width: 100%; /* 비디오의 최대 가로 크기를 100%로 설정합니다. */
    height: auto; /* 비디오의 세로 크기를 자동으로 조절합니다. */
}

/* 화면 크기가 작아질 때 비디오 크기 조절 */
@media (max-width: 768px) {
    .responsive-video {
        width: 100%; /* 화면 크기가 작아질 때 비디오의 가로 크기를 조절합니다. */
        max-width: 100%;
    }
}

/* 더 작아질 때 추가적인 조절이 필요하다면 다른 미디어 쿼리를 추가할 수 있습니다. */