﻿.method-section {
    background: none;
}

@media (max-width: 768px) {
    .method-videos {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* Main Content */
.main-content {
    padding: 20px 0;
}

.content-area {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.hero-banner {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-banner img {
    object-fit: cover;
}

/* Method Section */
.method-section {
    padding: 50px 0;
    text-align: center;
}

    .method-section h2 {
        font-size: 35px;
        color: #333;
        margin-bottom: 30px;
        position: relative;
        display: inline-block;
        font-family: var(--font-family);
    }

.method-videos {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cột đều nhau */
    gap: 20px; /* Khoảng cách giữa các item */
    padding: 20px 0;
}

.method-video {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    height: 100%;
    width: 250px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-video:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.method-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.video-thumbnail img {
    width: 100%;
    height: 180px; /* Cố định chiều cao hình */
    object-fit: cover; /* Ảnh giữ tỉ lệ, không méo */
    display: block;
}


.method-video h3 {
    text-align: start;
    padding: 0 8px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .method-video .minute {
        padding: 0 8px;
        display: flex;
        justify-content: space-between;
    }

.method-video .minute p {
    color: #333;
    font-size: 13px;
}

.method-video .minute p.dolar {
    color: blue;
    font-weight: 600;
    text-align: right;
    margin-top: auto;
}

    .method-video .video-thumbnail {
         height: 120px; 
        border-radius: 5px;
    }

    .method-video p {
        font-size: 14px;
        font-weight: 500;
        color: #333;
        font-family: var(--font-family);
    }

@media (max-width: 1024px) {
    .method-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .method-videos {
        grid-template-columns: 1fr;
    }
}