﻿header {
    background: #1976d2;
}

.navbar {
    padding: 0 50px;
    max-width: 100%;
    margin: 0 auto;
}

.action-hero {
    position: relative;
    top: -30px;
}

    .action-hero h1 {
        position: absolute;
        font-size: 40px;
        text-align: center;
        line-height: normal;
        font-weight: 500;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
    }
.btn-action:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
#toggleViewadt:hover {
    background-color: orange; /* Vàng gold */
    color: black;
}
.action-item {
    display: flex;
    justify-content: center;
    gap:30px;
    align-items: center;
    margin: 60px 0;
}

.action-item-left {
    width: 30%;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.action-item-lefthome {
    width: 36%;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
    .action-item-lefthome h3 {
        font-size: 40px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
.term-content {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    font-family: none !important;
}
.logo {
    position: relative;
    display: inline-block;
}

/* Logo image */
.logo-image {
    width: 90px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Thêm hiệu ứng cho ảnh */
}

/* Hiệu ứng khi hover vào logo */
.logo:hover .logo-image {
    transform: scale(1.1); /* Phóng to ảnh lên, cả 4 phía */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); /* Thêm bóng mờ khi hover */
}

/* Tooltip */
.tooltip-text {
    visibility: hidden;
    position: absolute;
    top: 113%; /* Điều chỉnh vị trí của tooltip */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    width: 115px;
}

.logo:hover .tooltip-text {
    visibility: visible;
    opacity: 1; /* Hiển thị tooltip khi hover */
}
#video-thumbnail {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
}
    #video-thumbnail img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Cắt ảnh cho vừa khung */
    }
    #video-thumbnail:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }

    /* Optional: play icon effect */
    #video-thumbnail .play-icon {
        position: absolute;
        font-size: 48px;
        color: white;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    #video-thumbnail:hover .play-icon {
        opacity: 1;
    }
    .action-item-left h3 {
        font-size: 40px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .action-item-left p {
        color: #848484;
        line-height: 1.5;
        /* nội dung dài thì ... */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
    }

.action-item-right {
    width: 55%;
}
.action-item-righthome {
    width: 40%;
}
    .action-item-righthome img {
        width: 100%;
        border-radius: 24px;
    }
    .action-item-right img {
        width: 100%;
        border-radius: 24px;
    }

.btn-action {
    border: 1px solid black;
    padding: 10px 20px;
    border-radius: 100px;
}

@media (max-width: 768px) {
    header {
        height: 100%;
    }

    .action-hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 50px;
    }

        .action-hero img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .action-hero-content h1 {
        font-size: 30px;
        position: static;
        width: 100%;
        transform: translate(0, 0);
        color: black;
        font-weight: 500;
        text-align: start;
        padding: 0 25px;
    }

    .action-item {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        gap: 30;
    }

    .action-item-left {
        width: 100%;
    }

        .action-item-left h3 {
            font-size: 20px;
        }

        .action-item-left p {
            font-size: 16px;
            line-height: normal;
        }
    .action-item-lefthome {
        width: 100%;
    }

       .action-item-lefthome h3 {
            font-size: 20px;
        }

       

    .action-item-right {
        width: 100%;
    }

        .action-item-right img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    .action-item-righthome {
        width: 100%;
    }

        .action-item-righthome img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
}
