* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f4f4f4;
    padding-top: 80px;
    /* Adjusted for fixed navbar */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Navbar Styles */
.navbar {
    background-color: #001f1a;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Left Section: Logo */
.nav-left {
    flex-shrink: 0;
}

/* CHANGED: logo is now an image inside an anchor */
.nav-left img {
    height: 40px;
    /* Example height */
    width: auto;
    display: block;
}

/* Center Section: Promotions & Search */
.nav-center {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    /* Better for centering */
}

.promotions-button {
    background-color: #6f00ff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-left: 585px;
    transition: background-color 0.3s ease;
    font-weight: bolder;
    white-space: nowrap;
}

.promotions-button:hover {
    background-color: #995ee6;
}

.search-container {
    position: relative;
    display: flex;
}

.search-input {
    padding:  10px 15px;
    border: 1px solid #00382e;
    border-radius: 5px;
    margin-left: 20px;
    background-color: #fdfdfd;
    color: #333;
    /* Make text visible when typing */
    font-size: 0.9em;
    width: 250px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.search-input::placeholder {
    color: #a0a0a0;
}

.search-input:focus {
    outline: none;
    border-color: #00796b;
    background-color: #ffffff;
    /* Keep it white on focus for readability */
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1em;
}

/* Right Section: Auth Links & Menu */
.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: #ffffff;
    margin-left: 10px;
    font-size: 0.9em;
    border: none;
    background-color: transparent;
    transition: color 0.3s ease, padding 0.2s ease;
    display: inline-block;
}

.login-button {
    padding: 10px 24px;
    background-color: #009246;
    border-radius: 5px;
    color: black;
    font-family: Arial, sans-serif;
    font-weight: bolder;
    font-size: 1em;
    transition: all 0.2s ease;
}

.login-button:hover {
    background-color: #007236;
    color: white;
}

.register-button {
    padding: 8px 12px;
    color: #66bb6a;
    font-weight: bolder;
    font-size: 20px;
}

.register-button:hover {
    color: #81c784;
}

.menu-toggle {
    display: none;
    /* Hidden by default, shown in media queries */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #66bb6a;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Nav2 Styles */
.nav2 {
    width: 100%;
    background-color: #002b23;
    position: fixed;
    top: 70px;
    /* Adjusted based on navbar height */
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 70px;
    /* Adjusted height */
}

.nav2 ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    height: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Allow horizontal scrolling on smaller screens */
    -webkit-overflow-scrolling: touch;
}

.nav2 ul li {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.icon-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    gap: 5px;
}

.nav2 ul li a:hover {
    color: #66bb6a;
}

.vertical-line {
    width: 2px;
    height: 25px;
    background-color: #acb1b0;
    align-self: center;
    flex-shrink: 0;
}

.new-badge {
    background-color: rgb(139, 6, 6);
    color: white;
    font-size: 0.6em;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    position: absolute;
    top: -8px;
    right: -10px;
}

.mainone {
    margin-top: 60px;
    /* Space for nav2 */
    width: 100%;
    min-height: 100vh;
    background-color: #002b23;

}

.main {
    width: 100%;
    background-color: rgba(12, 59, 53, 0.8);
    display: flex;
    justify-content: center;


}

.leftside,
.rightside {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;

}

.leftside {
    padding-top: 5px;
}

.rightside {
    padding-top: 5px;
}

.middle {
    flex-grow: 1;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 900px;
}

.leftside img,
.rightside img {
    max-width: 130%;
    height: auto;
    display: block;
}

/* UPDATED: card-grid for responsive flexbox layout */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    justify-content: center;
    padding-top: 15px;
}

.card-grid .img-container {
    position: relative;
    overflow: hidden;
    width: 190px;
    /* Base width */
    height: 150px;
    /* Base height */
    border-radius: 5px;
    flex-shrink: 0;
}

.card-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.card-grid .img-container:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.card-grid .img-container .btn {
    position: absolute;
    z-index: 2;
    color: white;
    background-color: #009246;
    border: none;
    padding: 8px 0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    width: 80%;
    text-align: center;
}

.card-grid .img-container .play-btn {
    top: 20%;
    left: -100%;
    color: black;
    font-size: 18px;
    font-weight: bold;
}

.card-grid .img-container .practice-btn {
    bottom: 20%;
    right: -100%;
    color: #108f4b;
    font-size: 20px;
    font-weight: bolder;
    background-color: transparent;
    border: 2px solid #007236;
}

.card-grid .img-container:hover img {
    transform: scale(1.1);
    filter: blur(4px);
}

.card-grid .img-container:hover .play-btn {
    opacity: 1;
    left: 10%;
}

.card-grid .img-container:hover .practice-btn {
    opacity: 1;
    right: 10%;
}

.card-grid .img-container .btn:hover {
    background-color: #007236;
    transform: scale(1.05);
    color: white;
}

.card-grid .img-container .practice-btn:hover {
    background-color: #007236;
    color: white;
}

.lmr {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.lmr button {
    padding: 8px 15px;
    border: 1px solid #0c3b35;
    background-color: #0c3b35;
    cursor: pointer;
    font-size: 16px;
    color: #fffefe;
    font-weight: bolder;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.lmr button:hover {
    background-color: #1b2c23;
    color: #009246;
}

.textbdy {
    margin-top: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* ADDED: Styles for H1 and H3 */
.head1 {
    color: white;
    font-size: 28px;
    font-weight: bolder;
    text-align: center;
}

.head2 {
    color: white;
    font-size: 25px;
    font-weight: bolder;
}

.header {
    /* Footer column titles */
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}


hr {
    border: none;
    border-top: 2px solid rgba(12, 59, 53, 0.8);
    margin: 20px auto;
    width: 100%;
}

.pp {
    font-size: 18px;
    color: white;
    line-height: 1.6;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 2rem 1rem;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto 0;
}

.link-column {
    flex: 1;
    min-width: 200px;
}

.linklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.linklist li a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    font-size: 16px;
}

.linklist li a:hover {
    color: #66bb6a;
    border-bottom-color: #66bb6a;
}

.link-column ul li {
    color: #ffffff;
    font-size: 16px;
}

.payments {
    text-align: center;
    margin-top: 20px;
}

.payments img {
    max-width: 100%;
    height: auto;
}

.footer {
    padding-top: 30px;
}

.hr1 {
    border: none;
    border-top: 1px solid green;
    width: 100%;
    margin: 0 auto;
}

/* FIXED: Made footer responsive */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pfooter {
    font-size: 16px;
    color: white;
    font-weight: bold;
    flex-grow: 1;
}

.s1 {
    color: #66bb6a;
    text-decoration: underline;
    font-size: 16px;
    margin-left: 10px;
}

.bt {
    background-color: #009246;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 5px;
    color: rgb(20, 20, 20);
    transition: background-color 0.3s;
}

.bt:hover {
    background-color: #007236;
}

/* FIXED: Made social links responsive */
.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    padding: 20px 0;
}

.social-links a {
    color: #ece6e6;
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #009246;
}

/* Mobile Navigation Dropdown - MODIFIED */
.mobile-nav-container {
    display: block;
    visibility: hidden;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #001f1a;
    z-index: 998;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
}

.mobile-nav-container.active {
    transform: translateY(0);
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.mobile-nav-item {
    padding: 12px 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.mobile-nav-item:hover {
    background-color: #00382e;
}

.mobile-nav-item img {
    width: 24px;
    height: 24px;
}

.mobile-nav-item .new-badge {
    position: static;
    margin-left: 10px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================= */
/* RESPONSIVE MEDIA QUERIES */
/* ============================================= */

/* Medium screens (992px - 1199px) */
@media (max-width: 1199px) {
    .nav-center {
        justify-content: flex-start;
        margin-left: 20px;
    }

    .nav-right {
        margin-left: auto;
        /* Push right content to the end */
    }
}

/* Small laptops/tablets (768px - 991px) */
@media (max-width: 991px) {
    .main {
        flex-direction: column;
        align-items: center;
    }

    .leftside,
    .rightside {
        width: 100%;
        max-width: 500px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .leftside img,
    .rightside img {
        width: 45%;
        max-width: 200px;
    }

    .middle {
        width: 100%;
        padding: 5px 0;
    }

    .head1,
    .head2,
    .pp {
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablets & Large Phones (up to 767px) */
@media (max-width: 767px) {
    body {
        padding-top: 60px;
        /* Adjust for smaller navbar */
    }

    .navbar {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .nav-center {
        order: 3;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }

    .nav-right {
        margin-left: auto;
    }

    .login-button,
    .register-button {
        display: none;
    }

    /* Hide for simple toggle */

    .menu-toggle {
        display: flex;
        /* Show hamburger menu */
    }

    .nav2 {
        display: none;
        /* Hide nav2 on mobile */
    }

    .mobile-nav-container {
        top: 60px;
        /* Adjust position for smaller navbar */
    }

    .mainone {
        margin-top: 0;
        /* Adjust for hidden nav2 */
    }

    .card-grid .img-container {
        width: 160px;
        height: 130px;
    }

    .links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
    .nav-center {
        display: none;
    }

    /* Hide search on very small screens */

    .navbar {
        justify-content: space-between;
    }

    .nav-left {
        flex-grow: 1;
    }

    .main {
        padding: 10px;
    }

    .leftside,
    .rightside {
        flex-direction: column;
        align-items: center;
    }

    .leftside img,
    .rightside img {
        width: 80%;
    }

    .card-grid {
        gap: 10px;
    }

    .card-grid .img-container {
        width: calc(50% - 5px);
        /* Two columns layout */
        height: 120px;
    }

    .head1 {
        font-size: 22px;
    }

    .head2 {
        font-size: 20px;
    }

    .pp {
        font-size: 16px;
    }
}