/* 1. Fonts - Using Chakra Petch from variables.css */

/* 2. Body and Some General Stuff */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background) !important;
    font-family: var(--font-family);
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

/* Override Bootstrap text-muted class for about-us section */
.about-us-section .text-muted,
.about-us-section p.text-muted {
    color: #ffffff !important;
}

.about-us-section h2,
.about-us-section h3,
.about-us-section .section-heading,
.about-us-section .section-subheading {
    color: #ffffff !important;
}

a {
    text-decoration: none;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Remove any conflicting old section backgrounds */
section {
    position: relative;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 16px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 12px;
    }
}

/* Popup Overlay Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #000000;
    color: #ffffff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.close-popup:hover {
    background: #333333;
    transform: rotate(90deg);
}

.adslot {
    min-width: 300px;
    min-height: 250px;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        max-width: 95%;
    }

    .adslot {
        min-width: 250px;
        min-height: 200px;
    }
}

/* 3. Header css - Electric Blue Theme */

.header {
    padding: 16px 0;
    background-color: var(--color-background);
    box-shadow: none;
    border-bottom: 2px solid var(--border-primary);
}

.header .navbar-toggler i {
    color: var(--color-text);
}

.header .offcanvas {
    background: var(--color-background-light);
    padding-top: 50px;
}

.header .offcanvas .offcanvas-header button {
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 20px;
}

.header .offcanvas .navbar-nav .nav-item .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    padding: 10px 20px;
    transition: color var(--transition-normal);
}

.header .offcanvas .navbar-nav .nav-item .nav-link:hover {
    color: var(--color-primary);
}

.header .form_area .search_icon button {
    border: none;
    outline: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.header .form_area .search_icon button i {
    color: var(--color-text);
}

.header .form_area .search_icon button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.header .navbar .navbar-brand img {
    width: 250px;
}

@media (max-width: 1200px) {
    .header .navbar .navbar-brand img {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .header .navbar .navbar-brand img {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header .navbar .navbar-brand img {
        width: 180px;
    }
}

.header .navbar .modal .modal-content .modal_input_box {
    position: relative;
}

.header .navbar .modal .modal-content {
    border-radius: 25px;
    border: none;
}

.header .navbar .modal .modal-content .modal_input_box input {
    width: 100%;
    background-color: #f8f9fa;
    border: none;
    padding: 17px 20px 17px 45px;
    border-radius: 15px;
    border: none;
    outline: none;
    color: #333333;
}

.header .navbar .modal .modal-content .modal_input_box input::placeholder {
    color: #999999;
}

.header .navbar .modal .modal-content .modal_input_box input:focus-visible {
    outline: none;
}

.header .navbar .modal .modal-content .modal_input_box .search_input_icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(0, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .navbar .modal .modal-content .modal_input_box .search_input_icon i {
    font-size: 20px;
    color: #666666;
}

.header .navbar .modal {
    --bs-modal-margin: 6.75rem;
    --tw-backdrop-blur: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.3);
}

.header .navbar .modal-dialog {
    max-width: 600px
}

@media (max-width:480px) {
    .header .navbar .modal-dialog {
        min-width: 90%;
        text-align: center;
        margin: 50px auto;
    }

    .header .navbar .navbar-brand {
        width: 150px;
    }

    .header .navbar .navbar-brand img {
        width: 150px !important;
    }
}

/* Additional header fixes for small screens */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .header .navbar {
        padding: 0;
    }

    /* Fix navigation links spacing */
    .header .navbar-nav {
        gap: 0 !important;
    }

    .header .navbar-nav .nav-item {
        padding: 0;
        margin: 0;
    }

    .header .navbar-nav .nav-item .nav-link {
        font-size: 13px !important;
        padding: 8px 10px !important;
        white-space: nowrap;
    }

    .header .offcanvas .navbar-nav .nav-item .nav-link {
        font-size: 16px;
        padding: 10px 20px;
    }

    .header .form_area .search_icon button {
        width: 36px;
        height: 36px;
    }

    .header .form_area .search_icon button i {
        font-size: 16px;
    }

    /* Ensure logo doesn't take too much space */
    .header .navbar .navbar-brand {
        margin-right: 8px;
        flex-shrink: 0;
    }

    /* Make navbar responsive */
    .header .navbar > .container {
        padding: 0 12px;
    }
}

@media (max-width: 576px) {
    .header .navbar-nav .nav-item .nav-link {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }

    .header .navbar .navbar-brand img {
        width: 160px !important;
    }
}

@media (max-width: 425px) {
    .header .navbar-nav .nav-item .nav-link {
        font-size: 11px !important;
        padding: 6px 6px !important;
    }

    .header .navbar .navbar-brand img {
        width: 140px !important;
    }

    .header .form_area .search_icon button {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 375px) {
    /* Hide navigation items on very small screens - use hamburger menu instead */
    .header .navbar-nav {
        display: none !important;
    }

    .header .navbar .navbar-brand img {
        width: 120px !important;
    }

    /* Ensure hamburger toggle is visible */
    .header .navbar-toggler {
        display: block !important;
        margin-left: auto;
    }
}

/* Alternative: If you want to keep nav visible, use smaller text */
@media (max-width: 375px) {
    /* Only apply if navbar items are not using collapse/offcanvas */
    .header .navbar-collapse .navbar-nav .nav-item .nav-link {
        font-size: 10px !important;
        padding: 4px 4px !important;
    }
}

/* For screens between 376px and 768px */
@media (min-width: 376px) and (max-width: 768px) {
    .header .navbar-nav .nav-item .nav-link {
        font-size: clamp(10px, 2vw, 13px) !important;
        padding: clamp(4px, 1vw, 8px) clamp(4px, 1.5vw, 10px) !important;
    }
}

/* 4. Hero section css - DISABLED (Using Gamozy Style) */

/* 5. Popular Games section css - DISABLED (Using Gamozy Style) */

/* 6. Game Thumbnail Section */

.game_thumbnail_section {
    padding: 25px 0 60px 0;
}

.game_thumbnail_section .top_text h1 {
    font-family: Road Rage;
    font-size: 50px;
    font-weight: 500;
    line-height: 67px;
    color: white;
    margin-bottom: 40px;
    text-transform: capitalize;
}

.game_thumbnail_section .thumbnail_img {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.game_thumbnail_section .thumbnail_img::before {
    content: '';
    display: block;
    padding-top: 100%; /* Square aspect ratio 1:1 */
}

.game_thumbnail_section .thumbnail_img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.game_thumbnail_section .thumbnail_img .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.game_thumbnail_section .thumbnail_img .play-btn a {
    background: var(--Linear, linear-gradient(90deg, #FF247E 0%, #FF7033 100%));
    color: #fff;
    padding: 12px 40px;
    font-size: 25px;
    font-weight: 500;
    border-radius: 5px;
}

@media (max-width:1199px) {
    .game_thumbnail_section {
        padding: 30px 0 50px 0;
    }

    .game_thumbnail_section .top_text h1 {
        font-size: 40px;
        line-height: 55px;
    }

    .game_thumbnail_section .thumbnail_img {
        max-width: 500px;
    }
}

@media (max-width:991px) {
    .game_thumbnail_section {
        padding: 5px 0 40px 0;
    }

    .game_thumbnail_section .top_text h1 {
        font-size: 34px;
        line-height: 45px;
    }

    .game_thumbnail_section .thumbnail_img {
        max-width: 400px;
    }
}

@media (max-width:767px) {
    .game_thumbnail_section .top_text h1 {
        font-size: 26px;
        line-height: 40px;
        margin-bottom: 25px;
    }
}

@media (max-width:575px) {
    .game_thumbnail_section {
        padding: 0px 0 30px 0;
    }

    .game_thumbnail_section .thumbnail_img {
        max-width: 100%;
    }

    .game_thumbnail_section .thumbnail_img .play-btn a {
        padding: 10px 30px;
        font-size: 18px;
    }

    .game_thumbnail_section iframe {
        height: 400px;
    }
}

@media (max-width:480px) {
    .game_thumbnail_section .top_text h1 {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 20px;
    }

    .game_thumbnail_section .thumbnail_img {
        max-width: 100%;
    }
}

/* 7. Game Description Section */

.game_description {
    padding: 0 0 40px 0;
}

.game_description .left_side .image {
    border-radius: 30px;
}

.game_description .left_side .image img {
    border-radius: 30px;
}

.game_description .right_side_area .description_text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.game_description .right_side_area .description_text h5 {
    font-size: 25px;
    font-weight: 700;
    line-height: 28px;
    color: #FFF;
}

.game_description .right_side_area .text_area p {
    font-size: 18px;
    font-weight: 400;
    color: #FFF;
    line-height: 27px;
    opacity: 0.7;
    padding-left: 20px;
}

.game_description .right_side_area .categories_area {
    padding: 10px 0 10px 20px;
}

.game_description .right_side_area .categories_area .player_list {
    font-size: 16px;
    font-weight: 700;
    line-height: 38px;
    color: #FFF;
    text-align: center;
    display: inline-block;
    background-image: url("../img/game-detail/category_img-1.png");
    background-size: cover;
    width: 133px;
    height: 50px;
}

@media (max-width:480px) {
    .game_description .right_side_area .description_text h5 {
        font-size: 23px;
        line-height: 25px;
    }

    .game_description .right_side_area .description_text {
        margin-bottom: 5px;
    }

    .game_description {
        padding: 0 0 10px 0;
    }
}

/* 8. Search Section */

.search_section {
    padding: 70px 0;
}

.search_section .search_area {
    padding: 64px;
    background-color: rgb(31 33 42 / 20%);
    border-radius: 40px;
    text-align: center;
}

.search_section .search_area .top_text h4 {
    font-size: 36px;
    font-weight: 600;
    color: #FFFFFF;
    font-family: 'Rubik', sans-serif;
}

.search_section .search_area .top_text p {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 400;
}

.search_section .search_area .top_text p span {
    color: #FFFFFF;
    font-weight: 600;
}

.search_section .search_area .form_group {
    position: relative;
    margin: 0px;
    overflow: hidden;
    width: 900px;
    text-align: center;
    margin: 30px auto 0;
}

.search_section .search_area .form_group .search_input {
    position: relative;
    display: block;
    font-size: 17px;
    line-height: 50px;
    color: #FFFFFF;
    height: 70px;
    width: 100%;
    padding: 10px 65px 10px 60px;
    background-color: #181A20;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    outline: none;
    border-radius: 40px;
}

.search_section .search_area .form_group .search_input::placeholder {
    color: #FFFFFF;
    font-weight: 400;
}

.search_section .search_area .form_group .arrow_btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    padding: 0;
    cursor: pointer;
    border: none;
    background: rgba(226, 18, 33, 0.1);
    border: 1px solid rgba(226, 18, 33, 0.25);
}

.search_section .search_area .form_group .search_btn {
    position: absolute;
    left: 30px;
    top: 48%;
    transform: translateY(-50%);
    border-radius: 50%;
    cursor: auto;
    background: transparent;
    z-index: 9;
    border: none;
    outline: none;
}

/* === Media query === */

@media (max-width: 1199px) {
    .search_section .search_area .form_group {
        width: 800px;
    }
}

@media (max-width: 991px) {
    .search_section {
        padding: 50px 0;
    }

    .search_section .search_area .form_group {
        width: auto;
    }

    .search_section .search_area .form_group .search_input {
        height: 65px;
    }

    .search_section .search_area {
        padding: 50px;
    }
}

@media (max-width: 767px) {
    .search_section .search_area .form_group {
        width: 430px;
    }

    .search_section .search_area .top_text h4 {
        font-size: 30px;
    }

    .search_section .search_area {
        padding: 30px;
    }

    .search_section .search_area .form_group .search_input {
        height: 55px;
    }

    .search_section .search_area .form_group .arrow_btn {
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .search_section .search_area .form_group {
        width: auto;
    }

    .search_section {
        padding: 30px 0;
    }

    .search_section .search_area .form_group .arrow_btn img {
        width: 14px;
    }
}

@media (max-width: 480px) {
    .search_section .search_area .form_group .search_input {
        font-size: 15px;
        height: 55px;
    }

    .search_section .search_area .form_group .arrow_btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 425px) {
    .search_section .search_area .top_text h4 {
        font-size: 24px;
    }

    .search_section .search_area .top_text p {
        font-size: 15px;
    }

    .search_section .search_area {
        padding: 30px 20px;
    }

    .search_section .search_area .form_group .arrow_btn {
        width: 35px;
        height: 35px;
    }

    .search_section .search_area .form_group .arrow_btn img {
        width: 15px;
    }

    .search_section .search_area .form_group .search_input {
        font-size: 15px;
        height: 50px;
        padding: 8px 53px 8px 54px;
    }

    .search_section .search_area .form_group .search_btn img {
        width: 16px;
    }
}

/* 9. Search Games Section */

.search_games {
    padding: 0 0 30px 0;
}

.search_games .popular_games_area .popular_game_box {
    margin-bottom: 30px;
}

.search_games .popular_game_box .image .search_game_img {
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

/* 10. Game Play Section */

.game-play-section {
    position: relative;
}

.game-play-section iframe {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
}

.game-play-section .back-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 30px;
    top: 30px;
    z-index: 99;
    background: #0B0F19;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-play-section .back-btn a {
    color: white;
    font-size: 18px;
}

/* Media query */

@media (max-width:575px) {
    .game-play-section .back-btn {
        position: absolute;
        width: 40px;
        height: 40px;
        left: 15px;
        top: 15px;
    }
}

/* 11. Content Pages - Electric Blue Theme (Privacy, About, Contact) */

.privacy-policy-section,
.about-us-section,
.contact-us-section {
    padding: 80px 0;
    background-color: var(--color-background);
    min-height: 60vh;
}

.privacy-policy-section .container,
.about-us-section .container,
.contact-us-section .container {
    max-width: 900px;
}

.privacy-policy-section .text-content,
.about-us-section .text-content,
.contact-us-section .text-content {
    background: transparent;
    padding: 0;
}

.privacy-policy-section h1 {
    font-size: 42px;
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: 30px;
    line-height: 1.3;
}

.privacy-policy-section h3,
.about-us-section h3,
.contact-us-section h3 {
    font-size: 28px;
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.privacy-policy-section p,
.about-us-section p,
.contact-us-section p {
    font-size: 18px;
    font-weight: var(--font-normal);
    color: #fff;
    line-height: 1.8;
    margin-bottom: 20px;
}

.privacy-policy-section ul {
    padding-left: 30px;
    margin-bottom: 25px;
}

.privacy-policy-section ul li {
    list-style: disc;
    font-size: 18px;
    font-weight: var(--font-normal);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* First heading styling */
.privacy-policy-section h3:first-of-type,
.about-us-section h3:first-of-type,
.contact-us-section h3:first-of-type {
    margin-top: 0;
}

/* Media query */

@media (max-width:991px) {
    .privacy-policy-section,
    .about-us-section,
    .contact-us-section {
        padding: 60px 0;
    }

    .privacy-policy-section h1 {
        font-size: 36px;
    }

    .privacy-policy-section h3,
    .about-us-section h3,
    .contact-us-section h3 {
        font-size: 24px;
        margin-top: 35px;
        margin-bottom: 18px;
    }

    .privacy-policy-section p,
    .privacy-policy-section ul li,
    .about-us-section p,
    .contact-us-section p {
        font-size: 17px;
        color: #fff;
    }
}

@media (max-width:575px) {
    .privacy-policy-section,
    .about-us-section,
    .contact-us-section {
        padding: 40px 0;
    }

    .privacy-policy-section h1 {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .privacy-policy-section h3,
    .about-us-section h3,
    .contact-us-section h3 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .privacy-policy-section p,
    .privacy-policy-section ul li,
    .about-us-section p,
    .contact-us-section p {
        font-size: 16px;
        line-height: 1.7;
        color: #fff;
    }

    .privacy-policy-section ul {
        padding-left: 25px;
    }
}

/* 12-19. Old Sections - DISABLED (All replaced by Gamozy exact styles below) */

/* ========== GAMOZY EXACT STYLE CSS ========== */

/* Hero Section - Electric Blue Theme */
.gamozy-hero {
    background: var(--gradient-dark);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    margin-left: 70px;
}

.gamozy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(41, 121, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(0, 176, 255, 0.1) 0%, transparent 50%);
}

/* Hero Split Layout with Animation */
.hero-wrapper-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.hero-content-left {
    max-width: 600px;
}

.hero-image-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-animated-image {
    max-width: 200%;
    width: 200%;
    height: auto;
    animation: slideInFromLeft 5.5s ease-out;
    filter: drop-shadow(0 0 30px rgba(41, 121, 255, 0.4));
}

/* Slide in from Left Animation */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    60% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Old centered layout (keeping for backwards compatibility) */
.hero-wrapper {
    position: relative;
    z-index: 1;
}

.hero-content-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.gamozy-hero-title {
    font-size: 56px;
    font-weight: var(--font-extrabold);
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(41, 121, 255, 0.5);
}

.gamozy-hero-subtitle {
    font-size: 20px;
    font-weight: var(--font-normal);
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.hero-search-bar {
    position: relative;
    max-width: 600px;
}

.hero-search-input {
    width: 100%;
    height: 56px;
    background: var(--color-background-card);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-full);
    padding: 0 60px 0 28px;
    font-size: 16px;
    color: var(--color-text);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.hero-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-primary);
}

.hero-search-input::placeholder {
    color: var(--color-text-muted);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-primary);
}

.hero-search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-secondary);
}

.hero-view-all-btn {
    display: block;
    margin: 20px auto 0;
    padding: 14px 40px;
    background: var(--gradient-primary);
    color: var(--color-text);
    font-size: 16px;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid var(--color-primary);
    width: fit-content;
}

.hero-view-all-btn:hover {
    background: var(--color-primary-hover);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

/* Categories Section - Electric Blue Theme */
.gamozy-categories {
    padding: 60px 0;
    background-color: var(--color-background-light);
    margin-left: 70px;
}

.gamozy-section-title {
    font-size: 32px;
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: 32px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--color-background-card);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-light);
}

.category-item:hover {
    background: var(--gradient-primary);
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 12px;
    transition: transform var(--transition-normal);
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 15px;
    font-weight: var(--font-semibold);
    color: var(--color-text);
    text-align: center;
    transition: color var(--transition-normal);
}

.category-item:hover .category-name {
    color: var(--color-text);
}

/* Games Section - Electric Blue Theme */
.gamozy-games-section {
    padding: 60px 0 80px;
    background-color: var(--color-background);
    margin-left: 70px;
}

.gamozy-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.gamozy-game-card {
    background: var(--color-background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-card);
    display: block;
    text-decoration: none;
    border: 1px solid var(--border-light);
}

.gamozy-game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary);
}

.gamozy-game-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--color-background-light);
}

.gamozy-game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gamozy-game-card:hover .gamozy-game-image img {
    transform: scale(1.08);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gamozy-game-card:hover .game-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-background);
    box-shadow: var(--shadow-accent);
}

.gamozy-game-info {
    padding: 16px;
}

.gamozy-game-title {
    font-size: 16px;
    font-weight: var(--font-semibold);
    color: var(--color-text);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

.gamozy-game-plays {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gamozy-game-plays svg {
    width: 14px;
    height: 14px;
}

/* Loading Skeleton */
.skeleton {
    pointer-events: none;
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 16px 16px 0 0;
}

.skeleton-title {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin: 16px;
    border-radius: 4px;
}

.skeleton-plays {
    height: 12px;
    width: 60%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    margin: 0 16px 16px;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Load More Button - Electric Blue Theme */
.gamozy-load-more {
    text-align: center;
    margin-top: 24px;
}

.gamozy-btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gradient-primary);
    color: var(--color-text);
    font-size: 16px;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-primary);
}

.gamozy-btn-primary:hover {
    background: var(--color-primary-hover);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

/* Ad Section */
.gamozy-ad-section {
    padding: 40px 0;
    background-color: var(--color-background-light);
}

/* About Section - Electric Blue Theme */
.gamozy-about-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.gamozy-about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gamozy-about-title {
    font-size: 36px;
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: 24px;
}

.gamozy-about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* Footer - Electric Blue Theme */
.gamozy-footer {
    background-color: var(--color-background);
    padding: 60px 0 30px;
    color: var(--color-text);
    border-top: 2px solid var(--border-primary);
}

.gamozy-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 24px;
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: 12px;
}

.footer-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 18px;
    font-weight: var(--font-semibold);
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 15px;
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.gamozy-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a2a;
}

.gamozy-footer-bottom p {
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* Responsive Design - Gamozy */

@media (max-width: 991px) {
    .gamozy-hero {
        padding: 60px 0 80px;
    }

    .hero-wrapper-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content-left {
        max-width: 100%;
    }

    .hero-search-bar {
        margin: 0 auto;
    }

    .hero-animated-image {
        max-width: 400px;
    }

    .gamozy-hero-title {
        font-size: 42px;
    }

    .gamozy-hero-subtitle {
        font-size: 18px;
    }

    .gamozy-section-title {
        font-size: 28px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .gamozy-hero {
        padding: 40px 0 50px;
    }

    .hero-wrapper-split {
        gap: 25px;
    }

    .hero-animated-image {
        max-width: 280px;
    }

    .gamozy-hero-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .gamozy-hero-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero-search-input {
        height: 48px;
        font-size: 14px;
        padding: 0 54px 0 20px;
    }

    .hero-search-btn {
        width: 38px;
        height: 38px;
    }

    .hero-view-all-btn {
        padding: 12px 30px;
        font-size: 15px;
    }

    .gamozy-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .category-item {
        padding: 18px 12px;
    }

    .category-icon {
        font-size: 30px;
    }

    .category-name {
        font-size: 13px;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .gamozy-about-title {
        font-size: 26px;
    }

    .gamozy-about-content p {
        font-size: 15px;
    }

    .gamozy-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 575px) {
    .gamozy-hero {
        padding: 35px 0 45px;
    }

    .gamozy-hero-title {
        font-size: 26px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .gamozy-hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
    }

    .hero-search-input {
        height: 46px;
        padding: 0 52px 0 18px;
        font-size: 14px;
    }

    .hero-search-btn {
        width: 36px;
        height: 36px;
    }

    .hero-view-all-btn {
        padding: 11px 28px;
        font-size: 14px;
    }

    .gamozy-section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gamozy-game-title {
        font-size: 14px;
    }

    .gamozy-game-plays {
        font-size: 12px;
    }

    .gamozy-btn-primary {
        padding: 12px 32px;
        font-size: 15px;
    }
}

/* 425px breakpoint - between 376px and 480px */
@media (min-width: 376px) and (max-width: 480px) {
    .hero-search-bar {
        position: relative !important;
    }

    .hero-search-input {
        height: 44px !important;
        padding: 0 50px 0 16px !important;
        font-size: 13px !important;
        border: 2px solid rgba(104, 66, 255, 0.3) !important;
        background: rgba(26, 29, 41, 0.8) !important;
    }

    .hero-search-input:focus {
        border-color: #6842FF !important;
        background: rgba(26, 29, 41, 1) !important;
    }

    .hero-search-btn {
        width: 36px !important;
        height: 36px !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #6842FF 0%, #8b6bff 100%) !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .hero-search-btn svg {
        width: 16px !important;
        height: 16px !important;
        color: #fff !important;
    }

    .hero-search-btn:hover {
        transform: translateY(-50%) scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(104, 66, 255, 0.4) !important;
    }
}

@media (max-width: 480px) {
    .gamozy-hero {
        padding: 30px 0 40px;
    }

    .gamozy-hero-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
        word-wrap: break-word;
    }

    .gamozy-hero-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.4;
    }

    .hero-search-bar {
        position: relative !important;
    }

    .hero-search-input {
        height: 44px !important;
        padding: 0 50px 0 16px !important;
        font-size: 13px !important;
        border: 2px solid rgba(104, 66, 255, 0.3) !important;
        background: rgba(26, 29, 41, 0.8) !important;
    }

    .hero-search-input:focus {
        border-color: #6842FF !important;
        background: rgba(26, 29, 41, 1) !important;
    }

    .hero-search-btn {
        width: 36px !important;
        height: 36px !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        background: linear-gradient(135deg, #6842FF 0%, #8b6bff 100%) !important;
    }

    .hero-search-btn svg {
        width: 16px !important;
        height: 16px !important;
        color: #fff !important;
    }

    .hero-view-all-btn {
        padding: 10px 26px;
        font-size: 14px;
    }

    .gamozy-section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-item {
        padding: 14px 8px;
    }

    .category-icon {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .category-name {
        font-size: 11px;
        line-height: 1.3;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gamozy-game-info {
        padding: 10px;
    }

    .gamozy-game-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .gamozy-game-plays {
        font-size: 11px;
    }

    .gamozy-btn-primary {
        padding: 10px 26px;
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .gamozy-hero {
        padding: 20px 0 20px;
        margin-top: 70px !important; /* Account for fixed header */
    }

    /* Ensure single column layout with image below text */
    .hero-wrapper-split {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .hero-content-left {
        order: 1;
    }

    .hero-image-right {
        order: 2;
        max-width: 240px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .hero-animated-image {
        max-width: 240px !important;
    }

    .gamozy-hero-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .gamozy-hero-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .hero-search-bar {
        position: relative !important;
        max-width: calc(100% - 16px) !important;
    }

    .hero-search-input {
        height: 40px !important;
        padding: 0 44px 0 12px !important;
        font-size: 13px !important;
        margin-bottom: 10px !important;
        border: 2px solid rgba(104, 66, 255, 0.3) !important;
        background: rgba(26, 29, 41, 0.8) !important;
    }

    .hero-search-input:focus {
        border-color: #6842FF !important;
        background: rgba(26, 29, 41, 1) !important;
    }

    .hero-search-btn {
        width: 32px !important;
        height: 32px !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 50% !important;
        min-width: 32px !important;
        background: linear-gradient(135deg, #6842FF 0%, #8b6bff 100%) !important;
    }

    .hero-search-btn svg {
        width: 14px !important;
        height: 14px !important;
        color: #fff !important;
    }

    .hero-search-btn:hover {
        transform: translateY(-50%) scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(104, 66, 255, 0.4) !important;
    }

    .hero-search-btn svg {
        width: 15px;
        height: 15px;
        display: block;
    }

    .hero-search-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }

    .hero-view-all-btn {
        padding: 8px 18px;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .gamozy-section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .gamozy-game-title {
        font-size: 12px;
        -webkit-line-clamp: 1;
        line-height: 1.3;
    }

    .gamozy-game-info {
        padding: 8px;
    }

    .gamozy-btn-primary {
        padding: 9px 22px;
        font-size: 13px;
    }

    .category-name {
        font-size: 10px;
    }

    .category-icon {
        font-size: 24px;
    }
}

/* Laptop specific optimizations (1024px - 1440px) */
@media (min-width: 1024px) and (max-width: 1440px) {
    .gamozy-hero {
        padding: 70px 0 90px;
    }

    .gamozy-hero-title {
        font-size: 52px;
    }

    .gamozy-hero-subtitle {
        font-size: 19px;
    }

    .hero-animated-image {
        max-width: 180%;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 22px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 18px;
    }
}

/* Large Desktop / PC (1440px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }

    .gamozy-hero {
        padding: 100px 0 120px;
    }

    .gamozy-hero-title {
        font-size: 64px;
    }

    .gamozy-hero-subtitle {
        font-size: 22px;
    }

    .hero-animated-image {
        max-width: 220%;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 28px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 24px;
    }

    .gamozy-game-title {
        font-size: 17px;
    }

    .gamozy-game-plays {
        font-size: 14px;
    }
}

/* Tablet landscape mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .gamozy-hero {
        padding: 60px 0 70px;
    }

    .hero-wrapper-split {
        gap: 40px;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

/* Mobile landscape mode */
@media (max-width: 767px) and (orientation: landscape) {
    .gamozy-hero {
        padding: 40px 0 50px;
    }

    .hero-wrapper-split {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-animated-image {
        max-width: 100%;
    }

    .gamozy-hero-title {
        font-size: 28px;
    }

    .gamozy-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ========== RESPONSIVE UTILITY CLASSES ========== */

/* Display utilities */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

.hide-tablet {
    display: block;
}

.show-tablet {
    display: none;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }

    .show-tablet {
        display: block !important;
    }
}

.hide-desktop {
    display: block;
}

.show-desktop {
    display: none;
}

@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* Text alignment utilities */
.text-center-mobile {
    text-align: left;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Responsive spacing utilities */
.p-responsive {
    padding: var(--spacing-md);
}

.px-responsive {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.py-responsive {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.m-responsive {
    margin: var(--spacing-md);
}

.mx-responsive {
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
}

.my-responsive {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Responsive flex utilities */
.flex-column-mobile {
    display: flex;
}

@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column !important;
    }
}

.flex-wrap-mobile {
    flex-wrap: nowrap;
}

@media (max-width: 768px) {
    .flex-wrap-mobile {
        flex-wrap: wrap !important;
    }
}

/* Responsive width utilities */
.w-full-mobile {
    width: auto;
}

@media (max-width: 768px) {
    .w-full-mobile {
        width: 100% !important;
    }
}

/* Touch-friendly button sizes on mobile */
@media (max-width: 768px) {
    button, .btn, a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive font sizes using clamp */
.responsive-heading-1 {
    font-size: clamp(28px, 5vw, 64px);
    line-height: var(--line-height-tight);
}

.responsive-heading-2 {
    font-size: clamp(24px, 4vw, 48px);
    line-height: var(--line-height-tight);
}

.responsive-heading-3 {
    font-size: clamp(20px, 3vw, 36px);
    line-height: var(--line-height-normal);
}

.responsive-text {
    font-size: clamp(14px, 2vw, 18px);
    line-height: var(--line-height-relaxed);
}

/* Grid responsive utilities */
.grid-responsive {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 1441px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Safe area insets for mobile devices with notches */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* High DPI / Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== CRITICAL FIX FOR SMALL VIEWPORTS (768px and below) ========== */

/* Fix for 768px width and below - ensure text is always visible */
@media (max-width: 768px) {
    .gamozy-hero {
        margin-top: 70px !important; /* Account for fixed header (60px height + 10px spacing) */
    }

    .gamozy-hero-title {
        font-size: clamp(20px, 4.5vw, 32px) !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .gamozy-hero-subtitle {
        font-size: clamp(12px, 2.5vw, 15px) !important;
        line-height: 1.4 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-search-input {
        font-size: clamp(12px, 2.2vw, 14px) !important;
    }

    .hero-search-input::placeholder {
        font-size: clamp(11px, 2vw, 13px);
    }

    .gamozy-section-title {
        font-size: clamp(18px, 3.5vw, 24px) !important;
    }

    /* Ensure buttons are readable */
    .hero-view-all-btn,
    .gamozy-btn-primary {
        font-size: clamp(13px, 2.3vw, 15px) !important;
        white-space: nowrap;
    }
}

/* Extra small screens - 425px and below */
@media (max-width: 425px) {
    .container {
        padding: 0 8px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .gamozy-hero {
        padding: 15px 0 15px !important;
        margin-top: 70px !important; /* Account for fixed header (60px height + 10px spacing) */
        overflow-x: hidden !important;
    }

    .gamozy-hero .container {
        padding: 0 8px !important;
        overflow-x: hidden !important;
    }

    /* Critical fix for hero layout at 425px - prevent text cutoff */
    .hero-wrapper-split {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 0 !important;
        text-align: left !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .hero-content-left {
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        padding: 0 8px !important;
        box-sizing: border-box;
        order: 1;
    }

    /* Show hero image but make it larger and reduce spacing */
    .hero-image-right {
        display: flex !important;
        order: 2;
        max-width: 280px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .hero-animated-image {
        max-width: 280px !important;
        width: 100% !important;
        height: auto !important;
    }

    .gamozy-hero-title {
        font-size: 20px !important;
        margin-bottom: 6px !important;
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.35 !important;
        padding: 0 !important;
    }

    .gamozy-hero-subtitle {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.5 !important;
        padding: 0 !important;
    }

    /* Ensure search bar doesn't cause overflow */
    .hero-search-form,
    .hero-search-bar {
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        box-sizing: border-box;
    }

    .hero-search-bar {
        position: relative !important;
        max-width: calc(100% - 16px) !important;
    }

    .hero-search-input {
        height: 44px !important;
        padding: 0 50px 0 16px !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border: 2px solid rgba(104, 66, 255, 0.3) !important;
        background: rgba(26, 29, 41, 0.8) !important;
    }

    .hero-search-input:focus {
        border-color: #6842FF !important;
        background: rgba(26, 29, 41, 1) !important;
    }

    .hero-search-btn {
        width: 36px !important;
        height: 36px !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 50% !important;
        min-width: 36px !important;
        background: linear-gradient(135deg, #6842FF 0%, #8b6bff 100%) !important;
    }

    .hero-search-btn svg {
        width: 16px !important;
        height: 16px !important;
        display: block !important;
        color: #fff !important;
    }

    .hero-search-btn:hover {
        transform: translateY(-50%) scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(104, 66, 255, 0.4) !important;
    }

    .hero-view-all-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .gamozy-section-title {
        font-size: 18px !important;
    }
}

/* Very small screens - 320px */
@media (max-width: 320px) {
    .gamozy-hero-title {
        font-size: 18px !important;
    }

    .gamozy-hero-subtitle {
        font-size: 11px !important;
    }

    .hero-search-bar {
        position: relative !important;
        max-width: calc(100% - 12px) !important;
    }

    .hero-search-input {
        height: 40px !important;
        font-size: 11px !important;
        padding: 0 44px 0 12px !important;
        border: 2px solid rgba(104, 66, 255, 0.3) !important;
        background: rgba(26, 29, 41, 0.8) !important;
    }

    .hero-search-input:focus {
        border-color: #6842FF !important;
        background: rgba(26, 29, 41, 1) !important;
    }

    .hero-search-btn {
        width: 32px !important;
        height: 32px !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: absolute !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 50% !important;
        min-width: 32px !important;
        background: linear-gradient(135deg, #6842FF 0%, #8b6bff 100%) !important;
    }

    .hero-search-btn svg {
        width: 14px !important;
        height: 14px !important;
        display: block !important;
        color: #fff !important;
    }

    .hero-search-btn:hover {
        transform: translateY(-50%) scale(1.05) !important;
    }

    .hero-view-all-btn {
        padding: 8px 18px !important;
        font-size: 12px !important;
    }
}

/* Text overflow and visibility fixes for ALL text elements */
@media (max-width: 768px) {
    /* Ensure all headings are visible */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    /* Ensure all paragraphs wrap properly */
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Fix for hero section subtitle text being cut */
    .gamozy-hero .hero-content-wrapper p,
    .gamozy-hero .hero-content-left p,
    .gamozy-hero-subtitle {
        max-width: 100% !important;
        padding: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure hero content wrapper fits properly */
    .gamozy-hero .hero-content-wrapper,
    .gamozy-hero .hero-content-left {
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    /* Ensure hero wrapper itself doesn't overflow */
    .hero-wrapper,
    .hero-wrapper-split {
        max-width: 100%;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Additional safety for hero section container */
    .gamozy-hero .container {
        padding: 0 10px !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    /* Ensure all hero section elements respect container width */
    .gamozy-hero * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix for privacy policy and content pages */
    .privacy-policy-section h1,
    .about-us-section h1,
    .contact-us-section h1 {
        font-size: clamp(24px, 5vw, 32px) !important;
        line-height: 1.2;
    }

    .privacy-policy-section h3,
    .about-us-section h3,
    .contact-us-section h3 {
        font-size: clamp(18px, 3.5vw, 24px) !important;
        line-height: 1.3;
    }

    .privacy-policy-section p,
    .privacy-policy-section ul li,
    .about-us-section p,
    .contact-us-section p {
        font-size: clamp(13px, 2.5vw, 16px) !important;
        line-height: 1.6;
        color: #fff !important;
    }

    /* Game description section */
    .game_description .right_side_area .description_text h5 {
        font-size: clamp(18px, 3.5vw, 23px) !important;
    }

    .game_description .right_side_area .text_area p {
        font-size: clamp(14px, 2.5vw, 16px) !important;
    }

    /* Search section */
    .search_section .search_area .top_text h4 {
        font-size: clamp(20px, 4vw, 28px) !important;
    }

    .search_section .search_area .top_text p {
        font-size: clamp(13px, 2.3vw, 15px) !important;
    }

    /* Footer text */
    .footer-title {
        font-size: clamp(18px, 3vw, 22px) !important;
    }

    .footer-description,
    .footer-links a {
        font-size: clamp(12px, 2.2vw, 14px) !important;
    }

    /* Category names - ensure visible */
    .category-name {
        font-size: clamp(10px, 2vw, 13px) !important;
        line-height: 1.2;
    }

    /* Game card titles */
    .gamozy-game-title {
        font-size: clamp(12px, 2.2vw, 15px) !important;
        line-height: 1.3;
    }

    .gamozy-game-plays {
        font-size: clamp(10px, 1.8vw, 12px) !important;
    }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 425px) {
    /* Reduce padding but keep content visible */
    .privacy-policy-section,
    .about-us-section,
    .contact-us-section {
        padding: 30px 0 !important;
    }

    .game_description {
        padding: 0 0 20px 0 !important;
    }

    .search_section {
        padding: 25px 0 !important;
    }

    .search_section .search_area {
        padding: 20px 15px !important;
    }

    /* Game thumbnail adjustments */
    .game_thumbnail_section .top_text h1 {
        font-size: clamp(18px, 4vw, 24px) !important;
    }

    .game_thumbnail_section .thumbnail_img .play-btn a {
        font-size: clamp(14px, 3vw, 18px) !important;
        padding: 8px 24px !important;
    }
}

/* Remove sidebar margin on mobile for all sections */
@media (max-width: 767px) {
    .gamozy-hero,
    .gamozy-categories,
    .gamozy-games-section {
        margin-left: 0 !important;
    }
}

/* Sidebar category links - Force white color on mobile */
@media (max-width: 768px) {
    aside a.sidebar-category-link,
    aside a.sidebar-category-link *,
    aside a.sidebar-category-link span,
    aside a.sidebar-category-link .sidebar-link-text,
    .sidebar-category-link,
    .sidebar-category-link *,
    .sidebar-category-link span,
    .sidebar-link-text,
    span.sidebar-link-text {
        color: #ffffff !important;
    }

    /* Keep active links purple */
    aside a.sidebar-category-link.active,
    aside a.sidebar-category-link.active *,
    aside a.sidebar-category-link.active span,
    .sidebar-category-link.active,
    .sidebar-category-link.active *,
    .sidebar-category-link.active span {
        color: #6842FF !important;
    }
}