.main-content {
    width: 100%;
    min-height: calc(100vh - 200px);
    padding: 0px 0;
    background-color: #f7dcbc;
}

.game-gallery {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: minmax(133px, 1fr);
    grid-auto-flow: dense;
    gap: 12px;
    background-color: #c2460f;
    padding: 10px;
    /* margin: 10px; */
    border-radius: 10px;
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #e0e0e0, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-card:hover .card-title {
    bottom: 0;
}

.game-card.size-small {
    grid-column: span 1;
    grid-row: span 1;
}

.game-card.size-large {
    grid-column: span 2;
    grid-row: span 2;
}

.game-card a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.game-card .card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card .card-title {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    padding: 12px 10px;
    background: linear-gradient(rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.3));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}



/* ==================== Hot Games Section ==================== */
.hot-games-section {
    margin-top: 10px;
    background: #f5dda2;
    padding: 10px 10px;
    padding-top: 15px;
    border-radius: 20px;
    position: relative;
}


.section-header {
    margin-bottom: 10px;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 0px 10px;
    border-radius: 0 20px 20px 0;
    position: relative;
    left: -10px;
}


.hot-games-section .section-header .section-title{
    color: #000;
}


.section-title i {
    color: #ff6b35;
    font-size: 1.3rem;
}

.hot-games-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    background-color: #312115;
    padding: 10px;
    border-radius: 10px;
}

.hot-game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hot-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hot-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.hot-card-img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hot-game-card:hover .hot-card-img {
    transform: scale(1.08);
}

.hot-card-info {
    padding: 5px;
    background: #fff;
}

.hot-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-card-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #ff6b35;
    background: #fff5f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .hot-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hot-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hot-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-title {
        font-size: 1.2rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .hot-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hot-card-info {
        padding: 12px;
    }

    .hot-card-title {
        font-size: 0.9rem;
    }

    .hot-rank {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
}




/* ==================== Featured Games Section ==================== */
.featured-games-section {
    margin-top: 40px;
    padding: 30px 20px;
    background: #05531f;
    border-radius: 20px;
}


.featured-title h2 {
    color: #fff !important;
}

.featured-title i {
    color: #ffd700 !important;
}

.featured-games-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 20px;
}

.featured-game-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease;
    background-color: #FEE740;
    border-radius: 10px;
    padding: 10px;
    min-width: 0;
    overflow: hidden;
}

.featured-game-card:hover {
    transform: translateY(-5px);
}

.featured-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.featured-game-card:hover .featured-img-wrap {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.featured-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-game-card:hover .featured-card-img {
    transform: scale(1.05);
}

.featured-card-info {
    padding: 10px 2px;
}

.featured-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.featured-card-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1200px) {
    .featured-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-games-section {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .featured-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .featured-card-title {
        font-size: 0.8rem;
    }

    .featured-card-category {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .featured-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .featured-card-info {
        padding: 8px 2px;
    }
}



/* ==================== New Games Section ==================== */
.new-games-section {
    margin-top: 10px;
    padding: 10px 10px;
    padding-top: 10px;
    background: #553924;
    border-radius: 20px;
    border: none;
    position: relative;
}

.new-games-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.new-game-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.new-game-card:hover {
    transform: translateY(-5px);
}

.new-game-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.new-game-card:hover .new-game-img-wrap {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.new-game-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, #000000b3 80%, #00000026);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 8px;
    text-align: center;
    opacity: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.new-game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.new-game-card:hover .new-game-img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .new-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .new-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .new-games-section {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .new-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .new-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.game-card.size-large .card-title {
    font-size: 16px;
    padding: 16px 12px;
}

.game-card .play-icon {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .play-icon {
    opacity: 1;
}

.game-card .play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid #9c27b0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 3px;
}

.game-card.size-large .play-icon {
    width: 36px;
    height: 36px;
    top: 15px;
    right: 15px;
}

.game-card.size-large .play-icon::after {
    border-left: 10px solid #9c27b0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .game-card .card-title {
        font-size: 10px;
        padding: 8px 6px;
    }

    .game-card.size-large .card-title {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .game-card.size-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .game-card .card-title {
        font-size: 9px;
        padding: 6px 4px;
    }

    .game-card.size-large .card-title {
        font-size: 11px;
    }
}



/* ==================== Trending Games Section ==================== */
.trending-games-section {
    margin-top: 40px;
    padding: 30px 20px;
    background: #c2460f;
    border-radius: 20px;
}


.trending-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trending-game-card {
    display: flex;
    background: #f5f0e8;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.trending-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.trending-card-info {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.trending-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-card-likes {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.trending-card-likes i {
    color: #999;
}

.trending-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 28px;
    background: #fff;
    border: 2px solid #1a1a2e;
    border-radius: 25px;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.trending-play-btn:hover {
    background: #1a1a2e;
    color: #fff;
}

.trending-card-img-wrap {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.trending-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.trending-game-card:hover .trending-card-img {
    transform: scale(1.08);
}

@media (max-width: 992px) {
    .trending-games-grid {
        grid-template-columns: 1fr;
    }

    .trending-card-img-wrap {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .trending-games-section {
        padding: 20px 15px;
    }

    .trending-card-info {
        padding: 15px;
    }

    .trending-card-title {
        font-size: 1rem;
    }

    .trending-card-img-wrap {
        width: 120px;
        height: 120px;
    }

    .trending-play-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}




/* ==================== About Section ==================== */
.about-section {
    margin-top: 40px;
    padding: 35px 30px;
    background: linear-gradient(135deg, #a8c948 0%, #8fb339 100%);
    border-radius: 16px;
    color: #fff;
}

.about-content {
    max-width: 100%;
}

.about-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 22px 0;
    color: rgba(255, 255, 255, 0.95);
}

.about-subtitle {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.about-text {
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.92);
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-section {
        padding: 25px 20px;
    }

    .about-main-title {
        font-size: 1.35rem;
    }

    .about-subtitle {
        font-size: 1.05rem;
    }

    .about-intro,
    .about-text {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 20px 15px;
    }

    .about-main-title {
        font-size: 1.2rem;
    }
}