/* main */
@import url(./fonts.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Arial, sans-serif; */
    /* font-family: 'UTM Avo' ; */
    font-family: "Montserrat", serif;
}

body {
    margin: 0;
    padding: 0;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    /* Đảm bảo hình ảnh phủ kín màn hình */
    background-position: center;
    /* Canh giữa hình ảnh */
    background-repeat: no-repeat;
    /* Không lặp lại hình ảnh */
    background-attachment: fixed;
    /* Hình ảnh nền cố định khi cuộn */
    /* font-family: 'UTM Avo' ; */
    font-family: "Montserrat", serif;
}

.color-orange {
    color: #e58341;
}

.color-gray {
    color: #6778a3;
}

.mt {
    margin-top: 30px;
}

.container {
    width: 100%;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.col-md-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
}

.col-md-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
}

.col-md-3 {
    flex: 0 0 auto;
    width: 25%;
}

.col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.col-md-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-md-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
}

.col-md-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
}

.col-md-9 {
    flex: 0 0 auto;
    width: 75%;
}

.col-md-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
}

.col-md-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
}

.col-md-12 {
    flex: 0 0 auto;
    width: 100%;
}

/* end main */

/*  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'UTM Avo' ; */
    font-family: "Montserrat", serif;
}

.header {
    background: transparent;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main form {
    margin-left: 24px;
    margin-right: auto;
}

.header .logo {
    height: 40px;
}

.header .search-bar {
    display: flex;
    align-items: center;
    background-image: linear-gradient(#26294b, #14152c);
    border-radius: 30px;
    border: 2px solid #6778a3;
    padding: 5px 15px;
    width: 300px;
}

.search-bar input[type="text"] {
    border: none;
    /* Xóa đường viền mặc định */
    outline: none;
    /* Xóa đường viền khi focus */
}

.search-bar input[type="text"]::placeholder {
    color: #aaa;
    /* Tùy chỉnh màu placeholder nếu muốn */
}

.search-bar input[type="text"]:focus {
    outline: none;
    /* Xóa đường viền khi click hoặc focus */
    border: none;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    width: 100%;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.header-btn.login {
    position: relative;
    padding-right: 10px;
    margin-left: 10px;
}

.header-btn.login:after {
    content: "";
    height: 15px;
    width: 1px;
    background: #fff;
    position: absolute;
    top: 1px;
    left: -7px;
}

.nap-xu {
    background-color: #7d4932;
    color: white;
    border: 2px solid #6778a3;
    border-radius: 30px;
    padding: 8px 16px;
    margin-right: 10px;
}

.auth-btn {
    background: transparent;
    color: white;
}

.btn-member span {
    margin: 0 8px;
    font-size: 24px;
}

.btn-member img {
    margin-bottom: -5px;
    margin-left: 4px;
}

.nav-menu {
    background-color: rgb(125 73 51);
    padding: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.getlink-container {
    background: linear-gradient(180deg,
            rgba(55, 65, 98, 0.9),
            rgba(55, 65, 98, 0.9));
    margin: 20px auto;
    padding: 40px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 860px;
}

.getlink-left {
    color: white;
}

.getlink-left h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

.getlink-left p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.getlink-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: fit-content;
}

.option-buttons {
    display: flex;
    gap: 10px;
}

.option-btn {
    padding: 8px 26px;
    border-radius: 30px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 0.8px solid white;
}

.option-btn.active {
    background-color: #ee7f4b;
    border-color: #ee7f4b;
}

.option-btn img {
    width: 20px;
    height: 20px;
}

.link-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
}

.link-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 24px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.getlink-btn {
    background-color: #ee7f4b;
    color: white;
}

.reset-btn {
    background-color: #6c757d;
    color: white;
}

.action-btn img {
    width: 16px;
    height: 16px;
}

.option-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #fff;
}

.resources-section {
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    color: #fff;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 3px;
    background-color: #ee7f4b;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.resource-card {
    transition: transform 0.3s;
    border: 1px solid transparent;
    /* display: flex;
    flex-direction: column;
    justify-content: space-between; */
}


.resource-card:hover {
    transform: translateY(-5px);
    /* border: 1px solid rgb(71 83 120); */
}

.resource-card a {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

.resource-card video,
.resource-image {
    width: 100%;
    object-fit: cover;
    background-color: #333;
    border-radius: 12px;
    overflow: hidden;

}

.content-item-data {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}


.resource-title {
    width: fit-content;
}

.resource-title h3 {
    color: #f0f3ff;
    font-size: 16px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis
}

.resource-price {
    font-size: 14px;
    color: rgb(229 131 66);
    font-weight: 600;
    text-align: right;
    width: fit-content;
    margin-left: auto;
    white-space: nowrap;
}

.view-more {
    text-align: center;
}

.view-more-btn {
    background-color: transparent;
    border: 2px solid #4a4b6b;
    color: white;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: #4a4b6b;
}

.premie {
    width: 100%;
}

.video--demo {
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    min-height: 218px;
}

.video-thumbnail {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.resource-video {
    width: 100%;

}

.resource-video-thumbnail {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.video-container:hover .video-thumbnail {
    opacity: 0;
}

.video-container:hover .resource-video {
    opacity: 1;
}

.video-volume {
    position: absolute;
    right: 20px;
    bottom:10px;
    color: #fff;
    opacity: 0;
    z-index: 999;
}

.video-volume.active {
    opacity: 1;
}

.timeline {
    position: absolute;
    bottom: 0px;
    left: 6px;
    right: 6px;
    height: 1.8px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.timeline.active {
    display: block;
}

.progress-demo {
    height: 100%;
    width: 0;
    background: #e58342;
    transition: width 0.1s linear;
}

/* Menu Styles */
.premie .menu {
    background-color: rgb(71 83 121);

    margin-bottom: 20px;
}

.premie .menu-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.premie .menu-item {
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: bold;
}

.premie .menu-item:hover,
.premie .menu-item.active {
    background-color: #e67e22;
}

/* Grid Styles */
.bg-premium {
    background-color: rgb(56 62 98);
    padding: 30px 0;

}

.premie .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.premie .grid-item {
    text-align: center;
    color: white;
}

.premie .grid-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.premie .grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.premie .grid-item:hover .grid-image img {
    transform: scale(1.05);
}

.premie .grid-title {
    font-size: 14px;
    margin-top: 10px;
}

/* //Banner-slider  */

.banner--home {
    position: relative;
    width: 80%;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 24px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    flex-shrink: 0;
    width: 100%;
}

.slider-item img {
    width: 100%;
    max-height: 340px;
    display: block;
}

.owl-carousel .owl-stage-outer {
    border-radius: 24px;
}

.owl-nav button {
    width: 32px;
    height: 32px;
    background: #fff !important;
    border-radius: 24px;
    position: absolute;
    top: 40%;
    left: 10px;
}

.owl-nav button.owl-next {
    left: unset;
    right: 10px;
}

.owl-nav button span {
    font-size: 32px;
    line-height: 20px;
    margin-right: 2px;
}

.owl-nav button.owl-next span {
    margin-right: unset;
    margin-left: 2px;
}

.owl-dots {
    margin-top: 10px;
    text-align: center;
}

.owl-dots button {
    width: 16px;
    height: 16px;
    background-color: #fff !important;
    border-radius: 32px;
    margin: 0 4px;
}

.owl-nav button:hover,
.owl-dots button.active {
    background-color: #ee7f4b !important;
}

/* Footer Section */
.footer {
    background-color: #1a1b2e;
    color: white;
    padding: 50px 0 20px;
    margin-top: 30px;
}

.footer .container {
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* grid-template-columns: 1.5fr 1fr 1fr 1fr; */
    grid-template-columns: 60% 40%;
    gap: 30px;
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer .logo img {
    height: 40px;
}

.footer .logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.footer .description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    width: 80%;
}

.footer .column h3 {
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    -webkit-text-stroke: 0.2px rgb(255, 255, 255);
}

.footer .menu-list {
    margin-top: 15px;
    list-style: none;

}

.footer .menu-item {
    margin-bottom: 12px;
}

.footer .menu-link {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer .menu-list li {
    margin-bottom: 10px;
}

.footer .menu-list a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer .menu-list a:hover {
    color: #ff6b35;
}

.footer .menu-list a img {
    margin-right: 8px;
}

.footer .menu-link:hover {
    color: white;
}

.footer .payment-methods {
    margin-top: 35px;
    display: grid;
    grid-template-columns: repeat(4, 40px);
    gap: 10px;
}

.footer .payment-icon {
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer .copyright {
    text-align: center;
    color: #a0a0a0;
    font-size: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2a2b3e;
}

/* Responsive */

@media screen and (min-width: 1600px) {

    .premie .menu-container,
    .getlink-container {
        width: 70%;
        max-width: unset !important;
    }

    .grid-container {
        width: 60%;
        max-width: unset !important;
    }
}

@media screen and (min-width: 1200px) {

    .container {
        width: 90%;
    }
}

@media screen and (max-width: 991px) {
    .container {
        width: 100%;
    }
}

@media screen and (max-width: 767px) {

    .header,
    .header-main {
        display: block;
        padding: 15px 0;
    }

    .header-main {
        display: flex;
        flex-wrap: wrap;
    }

    .header-main form {
        margin-left: 0;
    }

    .menu-mobile {
        display: block !important;
        font-size: 46px;
        cursor: pointer;
    }

    .menu {
        padding: 12px;
        flex-wrap: wrap;
    }

    .menu li {
        width: 100%;
    }

    .submenu {
        width: 100% !important;
    }

    .header-buttons {
        display: flex !important;
        width: 100%;
        align-items: center;
        margin-top: 16px;
    }

    .nap-xu {
        flex: 1;
        max-width: 194px;
        display: block;
        text-align: center;
    }

    .btn-member img {
        width: 36px;
        height: 36px;
        margin-left: 8px;
        margin-bottom: 0;
    }

    .header-buttons .auth-btn {
        width: fit-content;
        display: flex;
        align-items: center;
    }

    .getlink-container {
        display: block;
        padding: 20px;
    }

    .nav-menu,
    .premie .menu-container,
    .premie .grid-container,
    .footer .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .footer .container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer .description {
        width: 100%;
    }

    .search-bar {
        margin: 15px 0;
    }



    .resource-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .banner--home {
        width: 100%;
        margin: 0 auto;
    }


}

@media screen and (max-width: 480px) {
    .owl-nav button {
        top: 30%;
    }
}

/* long code css */
.profile {
    display: flex;
    align-items: center;
}

.header-buttons {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 95px;
    background: linear-gradient(180deg, rgba(55, 65, 98, 0.9), rgba(55, 65, 98, 0.9));
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    z-index: 1000;
    width: 150px;
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    text-decoration: none;
    color: #FFF;
    display: block;
    background: linear-gradient(180deg, rgba(55, 65, 98, 0.9), rgba(55, 65, 98, 0.9));
    border: none;
    width: 100%;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.hidden {
    display: none;
}
