.pc {
    display: block !important;
}

.sp {
    display: none !important;
}

span,
p {
    font-family: 'Gilroy' !important;
    font-size: 18px;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* .container-title {
    width: 400px;
} */

.main-title {
    margin-bottom: 60px;
}

.main-title span {
    font-size: 30px;
    font-weight: bold;
}

.sec-title2 {
    width: 100%;
    text-align: center;
    margin: 30px 0;
}
.sec-title2 span{
    font-size: 50px;
    font-weight: bold;
    color: #00800091;
}
.sec-title2 span.dark{
    color: #337736;
}

.section-kind i,
.about-text-highlight {
    font-weight: bold;
    color: var(--color-yellow-highlight) !important;
}

.section-kind .left {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.section-kind .left img {
    width: 150px;
    border-radius: 10px;
}

.section-kind .left .item {
    min-width: 220px;
}

.section-kind .right {
    background-color: #e8ebef;
}

.section-kind .right {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.section-kind .right span {
    font-size: 16px;
}

.pc .section-circle {
    border-left: 2px solid var(--color-green-dark);
    border-left-style: groove;
    padding-left: 10px;
}

.pc .section-circle {
    place-self: center;
    position: relative;
    margin: 1em auto;
    border: solid .5em transparent;
    padding: 1em;
    max-width: 26em;
    font: 1.25em ubuntu, sans-serif;
}

.pc .section-circle::before {
    position: absolute;
    z-index: -1;
    inset: calc(-1*.5em);
    border: inherit;
    border-radius: 2em;
    background: linear-gradient(orange, deeppink, purple) border-box;
    mask: conic-gradient(from -90deg at 3em 3em, red 25%, #0000 0) 0 0/ calc(100% - 3em) calc(100% - 3em) border-box subtract, conic-gradient(red 0 0) padding-box;
    content: "";
}

.section-circle .images {
    padding: 30px;
    display: flex;
    justify-content: center;
}

.section-circle .images-content {
    position: relative;
    width: 900px;
    height: 650px;
}

.div-with-bg {
    position: relative;
    width: 100%;
    /* height: 400px; */
    background-image: url('../../../images/front/story1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.div-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Lớp phủ đen với độ trong suốt 50% */
    z-index: 1;
}

.div-with-bg .content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
}

.pc .div-with-bg .content span {
    font-size: 20px;
}

.image-box {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Đổ bóng mạnh hơn */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: scale(1);
}

.image-box img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}


/* Khi hiển thị thì opacity = 1 */

.image-box.visible {
    opacity: 1;
}


/* Hover animation */

.image-box:hover {
    transform: scale(1.05);
    /* Zoom nhẹ */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    /* Tăng đổ bóng khi hover */
}

.flower {
    top: -15px;
    left: 137px;
    width: 180px;
}

.plant {
    top: 161px;
    left: 370px;
    width: 350px;
    opacity: 1;
    /* cây luôn hiển thị */
}

.root {
    bottom: -13px;
    left: 380px;
    width: 426px;
}

.label {
    position: absolute;
    bottom: 10px;
    left: 40px;
    font-size: 18px;
    color: red;
    font-weight: bold;
}


/* Animation keyframes */

@keyframes drawLine1 {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawLine2 {
    to {
        stroke-dashoffset: 0;
    }
}

.card-hover {
    transition: 0.5s ease-out;
}


/*Hover*/

.card-hover:hover {
    border-color: #008bf8;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.images-kinds .img-container {
    padding: 0 10px;
}

.images-kinds .img-box {
    background-color: #332F36;
    border-radius: 10px;
}

.images-kinds img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
}

.card-green {
    background-color: #F3F6EE !important;
    border-radius: 15px;
    text-align: justify;
    padding: 1.5rem !important;
}

.card-green-light {
    background-color: #65872C !important;
    color: #fff;
    border-radius: 15px;
    text-align: justify;
    padding: 1.5rem !important;
    margin-bottom: 10px;
}

.structure .images img {
    box-shadow: 0px 0px 10px #e5e0e0, -20px -20px 60px #ffffff;
    width: 800px;
}

.structure .items img {
    width: 100%;
}


/* From Uiverse.io by joe-watson-sbf */

.wrap-test {
    padding: 1px 3rem;
}

.wrap-test.science {
    background-color: #212121;
}

.wrap-test.expanded {
    padding: 4rem;
}

.sec-test {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.science .sec-test {
    color: white;
}

.sec-test .box {
    padding: 1.5rem;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    /* border: 1px solid rgba(255, 255, 255, 0.222); */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 0.7rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 300px;
    cursor: pointer;
    position: relative;
}

.structure .sec-test .box {
    height: 1350px;
}

.science .sec-test .box {
    height: 1450px;
}

.sec-test .box.expanded {
    max-height: 5000px;
    background-image: none;
}

.science .sec-test .box.expanded {
    background-color: #323232 !important;
}

.content-science {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sec-test .box.expanded .content-science {
    opacity: 1;
    /* transform: translateY(0); */
    pointer-events: auto;
}

.image-top {
    width: 100%;
}

.box-hint {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.box-hint p {
    margin: 0;
    text-align: center;
    font-size: 14px;
}

.science .box-hint p {
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.box-hint img {
    display: block;
    margin: 0 auto;
}

.box:hover .box-hint {
    opacity: 1;
}

.box.expanded .box-hint {
    display: none;
}


/* Add overlay for better text visibility */

.sec-test .box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.science .sec-test .box::before {
    background: rgb(0 0 0 / 0%);
}

.sec-test .box.expanded::before {
    display: none;
}

.sec-test .box .text,
.sec-test .box .box-hint {
    position: relative;
    z-index: 2;
}

.sec-test .box .div-title {
    text-align: center;
}


/* .sec-test .box .div-title .text {
    width: 50%;
} */

.sec-test .box .div-title .top {
    font-size: 45px;
}

.sec-test .box .div-title .bottom span {
    font-size: 50px;
    font-weight: bold;
    line-height: 0.5;
}

.structure .sec-test .box .div-title .top {
    color: #00800091;
}

.structure .sec-test .box .div-title .bottom {
    color: #337736;
}

.science .sec-test .box .div-title .top {
    color: #3f9143 !important;
}

.science .sec-test .box .div-title .bottom {
    color: #56bc5b !important;
}

.table1 {
    border-collapse: collapse;
    text-align: center;
}

.table1 th,
.table1 td,
.table2 th,
.table2 td {
    border: 1px solid #999;
    padding: 10px;
    color: #fff !important;
}

.table1 th {
    background-color: #f7f7f7;
}

.table1 tr th.subject {
    background-color: #e1ebe063 !important;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.chart-container {
    width: 800px;
    height: 500px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.axis {
    position: absolute;
}

.x-axis {
    bottom: 40px;
    left: 60px;
    right: 40px;
    height: 1px;
    background-color: #333;
}

.y-axis {
    top: 40px;
    left: 60px;
    bottom: 40px;
    width: 1px;
    background-color: #333;
}

.axis-label {
    position: absolute;
    font-size: 12px;
    color: #666;
}

.x-label {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.y-label {
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.tick {
    position: absolute;
    background-color: #333;
}

.x-tick {
    height: 5px;
    width: 1px;
    bottom: 40px;
}

.y-tick {
    width: 5px;
    height: 1px;
    left: 60px;
}

.tick-label {
    position: absolute;
    font-size: 10px;
    color: #666;
}

.x-tick-label {
    bottom: 25px;
    transform: translateX(-50%);
}

.y-tick-label {
    left: 45px;
    transform: translateY(-50%);
}

.line {
    position: absolute;
    top: 40px;
    left: 60px;
    right: 40px;
    bottom: 40px;
}

.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #4285F4;
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.line-path {
    fill: none;
    stroke: #4285F4;
    stroke-width: 2px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2s ease-in-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.cell-hl {
    background-color: #73a147 !important;
}

.cell-disable {
    background-color: #575555;
    color: #adabab !important;
}

.sec-application .title {
    position: relative;
    text-align: center;
    padding-bottom: 60px;
}

.sec-application .title span {
    font-size: 60px;
}

.sec-application .title img {
    position: absolute;
    width: 100px;
    top: -20px;
}

.img-thumbnail {
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.img-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-content {
    background-color: #323232 !important;
}

.modal-body img {
    max-height: 80vh;
    object-fit: contain;
}


/* Tablet styles */

@media (max-width: 1024px) {
    .wrap-test {
        padding: 0 3rem;
    }
    .wrap-test.expanded {
        padding: 3rem;
    }
    .sec-test {
        /* width: 1000px; */
    }
    .sec-test .box {
        /* max-height: 120px; */
        padding: 1.2rem;
        height: 1400px;
        /* background-color: #323232 !important; */
    }
    .structure .sec-test .box {
        height: 1350px;
    }
    .science .sec-test .box {
        height: 1450px;
    }
    .sec-test .box .title {
        font-size: 1.8rem;
    }
    .table-responsive {
        margin: 0 -15px;
    }
    .table-responsive table {
        min-width: 800px;
    }
    .content-2 .content-right {
        padding-left: 20px;
    }
}


/* Mobile styles */

@media (max-width: 768px) {
    .pc {
        display: none !important;
    }
    .sp {
        display: block !important;
    }
    .main-title {
        margin-bottom: 40px;
    }

    .main-title span {
        font-size: 22px;
    }

    .sec-title2 span{
        font-size: 30px;
    }
    /* .main-title .top {
        font-size: 45px;
        color: #00800091;
    }
    .main-title .bottom {
        font-size: 50px;
        position: relative;
    }
    .main-title .bottom span {
        font-size: 50px;
        position: absolute;
        top: -28px;
        font-weight: bold;
        color: #337736;
    } */
    .section-kind .left, .section-kind .right {
        border-radius: 0 !important;
    }
    .section-kind .left img {
        width: 100%;
    }
    .sec-test {
        max-width: 100%;
        padding: 0 10px;
    }
    .sec-test .box {
        /* max-height: 100px; */
        padding: 1rem;
        height: 1250px;
    }
    .sec-test .box .title {
        font-size: 1.5rem;
    }
    .table-responsive {
        margin: 0 -10px;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive table {
        min-width: 600px;
    }
    .items.row {
        flex-direction: column;
        gap: 1rem;
    }
    .items.row .col-2,
    .items.row .col-4,
    .items.row .col-6,
    .items.row .col-8 {
        width: 100%;
        padding: 0;
    }
    .chart-container {
        width: 100%;
        padding: 10px;
    }
    .images img {
        max-width: 100%;
        height: auto;
    }
    .img-thumbnail {
        width: 150px !important;
    }
    .sec-application .title {
        position: relative;
        text-align: center;
        padding-bottom: 10px;
    }
    .sec-application .title span {
        font-size: 45px;
    }
    .sec-application .title img {
        position: absolute;
        width: 65px;
        top: -6px;
    }
}


/* Small mobile devices */

@media (max-width: 480px) {
    .pc {
        display: none !important;
    }
    .sp {
        display: block !important;
    }
    .container-title {
        width: 100%;
    }
    .section-kind .left .item {
        min-width: unset;
    }
    .section-kind .left .item span {
        font-size: 16px !important;
    }
    .images-kinds img {
        height: auto;
        width: 100%;
        object-fit: contain;
        border-radius: 10px;
        margin-bottom: 15px;
    }
    .wrap-test {
        padding: 0 !important;
        /* background-color: #f8f6f0 !important; */
        margin: 40px 0 !important;
        border-radius: 1rem;
        box-shadow: 0 0 2rem 0 rgba(136, 152, 170);
    }
    .sec-test {
        max-width: 100%;
        padding: 0 !important;
    }
    .sec-test .box {
        max-height: 240px;
        border-radius: 1rem;
        padding: 0.8rem;
    }
    .science .sec-test .box {
        height: 1400px;
    }
    .structure .sec-test .box {
        height: 1900px;
    }
    .structure .sec-test .box::before {
        background: rgb(241 241 241 / 72%);
    }
    .science .sec-test .box::before {
        background: rgb(0 0 0 / 85%);
    }
    .sec-test .box .title {
        font-size: 1.3rem;
    }
    .table-responsive table {
        min-width: 500px;
    }
    .science .sec-test .box.expanded {
        background-color: #323232 !important;
    }
    .image-top {
        padding: 0 !important;
    }
    .box-hint {
        top: 55px;
    }
    .structure .images img {
        box-shadow: 0px 0px 10px #e5e0e0, -20px -20px 60px #ffffff;
        width: 800px;
    }
    .structure .items img {
        width: 100% !important;
    }
    .img-thumbnail {
        width: 120px !important;
    }
}