.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.container5 {
    background-image: url('https://gokubettingtips.com/resources/app_bg.webp');
    background-size: cover;
    background-position: bottom;
    color: white;
    text-align: left;
    padding: 5vh 3vh 5vh 1vh;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    padding: 2vh;
}
.container1 {
    background-image: url('https://gokubettingtips.com/resources/contbg1.webp');
    background-size: cover;
    background-position: bottom center;
    min-height: 41vh;
    padding: 4vh 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0.1vh 1vh rgba(0, 0, 0, 0.5);
}
.container1 h1, .container1 h2, .container1 p {
    color: white;
    text-shadow: 0.5vh 0.5vh 1vh rgba(0, 0, 0, 0.7);
}
.container1 h1, .container1 h2 {
    font-size: 4vh;
    margin-bottom: 2vh;
}
.container1 p {
    font-size: 2.3vh;
}
.container1 .button-container {
    display: flex;
    gap: 2vh;
    margin-top: 5vh;
}
.container1 .button {
    background: linear-gradient(135.89deg, #D03355 -5.11%, #FB7A6B 97.89%);
    color: white;
    border: none;
    padding: 1.5vh 5vh;
    font-size: 2.5vh;
    font-weight: bold;
    cursor: pointer;
    border-radius: 1vh;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0.5vh 0.5vh 1vh rgba(0, 0, 0, 0.5);
    box-shadow: 1vh 1vh 5vh rgba(0, 0, 0, 0.8);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.container1 .button i {
    margin-right: 1vh;
}
.container1 .button:hover {
    background-color: #0056b3;
    box-shadow: 0 0.5vh 3vh rgba(0, 0, 0, 1);
}
.container2 {
    padding: 3vh 2vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0.1vh 1vh rgba(0, 0, 0, 0.3);
}
.container2 h2 {
    font-size: 3.4vh;
    color: #333;
    margin-bottom: 2.5vh;
}
.content-left h2 {
    font-size: 4vh;
    text-align: center;
    margin: 1vh;
}

.content-left p {
    font-size: 2.3vh;
    text-align: center;
    margin: 2.5vh;
}
.download-image-link img {
    margin-top: 2vh;
    height: 12vh;
    width: 18vw;
}
.features-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3vh;
}
.feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1vh;
    padding: 3vh;
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 1);
}
.feature h3 {
    font-size: 2.7vh;
    margin-bottom: 1.5vh;
    text-shadow: 0.5vh 0.5vh 1vh rgba(0, 0, 0, 0.7);
}
.feature p {
    font-size: 2.2vh;
    text-shadow: 0.5vh 0.5vh 1vh rgba(0, 0, 0, 1);
}
.view-all-button {
    background: linear-gradient(135.89deg, #D03355 -5.11%, #FB7A6B 97.89%);
    color: white;
    border: none;
    padding: 1vh 2vh;
    border-radius: 1vh;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    margin-top: 1vh;
    margin-left: 3vh;
    font-size: 2.3vh;
    font-weight: bold;
}
.view-all-button:hover {
    background-color: #0056b3;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.5);
}
.container4 {
    display: flex;
    flex-direction: column;
    padding: 3vh;
    box-shadow: 0 0.1vh 1vh rgba(0, 0, 0, 0.3);
}
.header-container4 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
.news-posts {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 2vh; /* Add space between feature blocks */
        width: 100%; /* Ensure the wrapper takes full width */
}
.header-container4 h2 {
    color: #333;
    font-size: 3.5vh;
    margin-bottom: 1vh;
}

.header-container4 p {
    margin-bottom: 3vh;
    max-width: 100%; /* Control the width of the paragraph */
    font-size: 2.2vh;
}
.news-item {
    background-color: #fff;
    width: 100%;
    border-radius: 2vh;
    padding: 2.5vh;
    box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.5);
    margin-bottom: 2vh;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-right: 1vw;
}
.news-item:nth-child(3n) {
    margin-right: 0;
}
.news-item:hover {
    box-shadow: 0 1vh 5vh rgba(0, 0, 0, 0.7);
}
.news-content {
    display: flex;
    flex-direction: column; /* Stack the content vertically */
    gap: 1.5vh; /* Add space between content blocks */
}
.news-item img {
    width: 100%;
    height: 20vh;
    object-fit: cover;
    border-radius: 1vh;
}
.news-item .news-header h2,
.news-item .news-header a {
    font-size: 2.3vh;
    font-weight: bold;
    color: #333333; 
    margin: 0;
    border: none;
    text-decoration: none;
}
.news-item .news-header h2 {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2vh;
}
.news-item .news-header a:hover,
.news-item .news-header h2:hover {
    color: #007bff; 
}

.news-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2vh;
}

.news-meta .newscategory {
    font-size: 2vh;
    color: #555;
}

.news-meta .date {
    font-size: 2vh;
    color: #888;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto; /* Push this section to the bottom */
    align-items: center; /* Align items horizontally */
}

.like-count, .comment-count {
    font-size: 2.1vh;
}
.like-count i, .comment-count i {
    font-size: 2vh;
    margin-right : 0.5vh;
}
.view-button {
    background-color: #007bff;
    color: white;
    padding: 1vh 2vh;
    font-size: 2.3vh;
    text-decoration: none;
    border-radius: 1vh;
    transition: background-color 0.3s;
}

.view-button:hover {
    background-color: #0056b3;
}
.container6 {
    padding: 5vh;
    background-color: #f4f7fa;
    text-align: center;
    color: #333;
    box-shadow: 0 1vh 2vh rgba(0, 0, 0, 1);
    display: flex;
    flex-direction: column;
}

.container6 h2 {
    color : #333;
    font-size: 3.5vh;
    font-weight: 700;
    margin-bottom: 1vh;
    margin-top: 5vh;
}

.container6 li {
    font-size: 2.3vh;
    font-weight: 400;
    margin-bottom: 3vh;
    line-height: 1.5;
}

.container6 li h3 {
    margin-top: 1.5vh;
    font-weight: 600;
    
}
.container6 li strong {
    color: #2980B9;
}
.container6 p {
    font-size: 2.3vh;
    font-weight: 400;
    margin-bottom: 2vh;
    line-height: 1.6;
    max-width: 95vw;
}

.container6 h3 {
    color: #2980B9;
    font-size: 3vh;
    font-weight: 600;
    margin-top: 2vh;
    margin-bottom: 1.5vh;
}

.container6 ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 3vh;
    text-align: left;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
}
.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 23vw);
    gap: 2.5vh;
    margin-top: 3vh;
    width: 100%;
    margin-bottom: 5vh;
}

.feature-card {
    background-color: #21D4FD;
    background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);
    padding: 1.5vh;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 2vh;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card h3 {
    font-size: 3vh;
    font-weight: 600;
    color: white;
    margin-bottom: 2vh;
}

.feature-card p {
    font-size: 2.3vh;
    color: white;
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .container1 {
        padding: 3vh; /* Increased padding for smaller screens */
        height: 20vh; /* Adjust height for smaller screens */
        min-height: 20vh;
    }

    .container1 h1, .container1 h2 {
        font-size: 2.5vh; /* Increase font size for better readability on small screens */
        margin-bottom: 1.5vh;
    }

    .container1 p {
        margin: 0.5vh;
        font-size: 1.5vh; /* Increase paragraph text size */
    }

    .container1 .button-container {
        gap:1vh;
        margin-top: 2vh;
        margin-bottom: 2vh;
    }

    .container1 .button {
        padding: 1vh 2.5vh; /* Adjust padding for better clickability */
        font-size: 1.9vh; /* Adjust button text size */
    }
    .container2 {
        padding: 2vh;
    }
    .container2 h2 {
        font-size: 2.3vh;
        margin-bottom: 1vh;
    }
    /* Adjust padding for the container */
    .container4 {
        padding: 2vh;
    }
    .header-container4 {
      margin-bottom: 2vh;  
    }
    .header-text h2 {
        margin-top: 1vh;
        font-size: 2.5vh;
        
    }
    .header-text p {
        margin: 0;
        display: block;
    }
    .header-container4 p {
        display: none;
    }
    /* Reduce size of the 'view all' button */
    .view-all-button {
        font-size: 2vh;
        margin: 0;
        text-align: center;
    }
    .news-posts {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(1, 1fr); 
        gap: 0.5vh; /* Add space between feature blocks */
        width: 100%; /* Ensure the wrapper takes full width */
}
    .news-item {
        width: 100%; /* Make each news item take full width on smaller screens */
        margin-right: 0;
        margin-bottom: 2vh; /* Adjust the margin between items */
    }

    .news-content {
        display: flex;
        flex-direction: column; /* Stack the content vertically */
        gap: 1.5vh; /* Add space between content blocks */
    }

    .news-item img {
        width: 100%; /* Make the image full width of the container */
        height: 16vh; /* Maintain the aspect ratio */
        border-radius: 1vh;
    }

    .news-item .news-header h2 {
        font-size: 2vh;
        margin-bottom: 2vh;
    }

    /* Category and Date to appear in the same row */
    .news-meta {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1vh;
    }

    .news-meta .newscategory,
    .news-meta .date {
        font-size: 1.7vh;
        margin-bottom: 0.5vh;
    }

    /* Stack like and comment count vertically */
    .news-actions {
        align-items: flex-start; /* Align the items to the left */
        gap: 1vh;
        margin-top: auto; /* Push this section to the bottom */
    }
    .like-count, .comment-count {
        margin-top: 1vh;
        font-size: 1.8vh;
    }
    .view-button {
        font-size: 1.6vh;
        width: 40%; /* Make the 'View News' button take full width */
        text-align: center;
    }
    /* Container 5 Styles */
    .container5 {
        text-align: center; /* Center text for mobile */
        padding: 1vh; /* Adjust padding for mobile */
        display: flex;
        flex-direction: column; /* Stack content vertically */
        align-items: center;
    }

    /* Content Left */
    .content-left {
        flex: 1;
        display: flex;
        flex-direction: column; /* Stack text and image vertically */
        text-align: center;
        margin-bottom: 1vh; /* Add space between sections */
    }

    .content-left h2 {
        font-size: 2.5vh; /* Reduce font size for mobile */
        text-align: center;
        margin: 1vh 0;
    }

    .content-left p {
        display: none;
    }

    .download-image-link img {
        width: 55vw; /* Make image smaller for mobile */
        height: auto; /* Maintain aspect ratio */
        margin-top: 0vh;
    }

    /* Features Wrapper - Set grid layout with 2 items per row */
    .features-wrapper {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 features per row */
        gap: 1vh; /* Add space between feature blocks */
        width: 100%; /* Ensure the wrapper takes full width */
        margin-bottom: 1vh;
    }

    .feature {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 1vh;
        padding: 2vh; /* Reduce padding for mobile */
        box-shadow: 0 1vh 3vh rgba(0, 0, 0, 1);
    }

    .feature h3 {
        font-size: 2vh; /* Adjust font size */
        margin-bottom: 1vh;
    }

    .feature p {
        font-size: 1.5vh; /* Adjust font size */
    }
        .container6 {
        padding: 2vh;
        text-align: left;
    }

    .container6 h2 {
        margin-top: 1vh;
        font-size: 2.3vh;
    }

    .container6 p {
        font-size: 1.8vh;
    }

    .container6 h3 {
        font-size: 2.3vh;
    }

    .container6 li {
        font-size: 2vh;
    }

    .container6 .feature-cards {
        grid-template-columns: 100%;
        grid-template-columns: repeat(2, 45vw);
        gap: 1.2vh;
    }

    .container6 .feature-card {
        padding: 0.5vh;
    }
    .feature-card h3 {
        font-size: 1.8vh;
    }
    .feature-card p {
        font-size: 1.6vh;
    }
    .container6 ul {
        margin-left: auto;
        margin-right: auto;
    }
}