:root{
    /*--primary-color: red;*/
    --primary-color: #009a47;
    --secondary-color: #009a47;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --accent-color: #ffdd00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


.title-page_{
    color: var(--primary-color);
}



body {
    background-color: #fafafa;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: inherit;
    color: white;
    padding: 1rem;
    text-align: center;
}

.top-links {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.links {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    padding: 0 15px;
    gap: 20px;
}

.links a {
    color: #27ae60;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #026c2f;
    text-decoration: underline;
}

.main-nav {
    padding: 1rem!important;
    border-radius: 10px;
    background-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-register {
    background-color: var(--accent-color);
    color: #000;
    /*font-weight: bold;*/
}

.btn-register:hover {
    background-color: #e6c700;
    transform: translateY(-2px);
}

.btn-login {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-login:hover {
    background-color: rgba(255,221,0,0.1);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.mobile-buttons {
    display: none;
}

.banner {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.banner img {
    width: 100%;
    border-radius: 5px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Media Queries */
@media (min-width: 769px) {
    /* Desktop View */
    .main-nav {
        padding: 15px 0;
    }

    .nav-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
}

@media (max-width: 940px){
    .nav-links a{
        padding: 3px 4px;
    }
    .btn {
        height: auto;
        padding: 5px 8px;
    }
}

@media (max-width: 900px) {
    /* Mobile View */
    .main-nav {
        border-radius: 20px;
        padding: 15px 20px;
        margin: 0 auto;
        max-width: 740px;
    }

    .nav-links {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .mobile-buttons .btn {
        padding: 12px 0;
        width: 150px;
        border-radius: 8px;
    }

    body.menu-open .mobile-menu {
        display: flex;
        max-height: 500px;
    }

    .mobile-menu a {
        padding: 15px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    body.menu-open .mobile-menu a {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered animation for menu items */
    body.menu-open .mobile-menu a:nth-child(1) {
        transition-delay: 0.05s;
    }

    body.menu-open .mobile-menu a:nth-child(2) {
        transition-delay: 0.1s;
    }

    body.menu-open .mobile-menu a:nth-child(3) {
        transition-delay: 0.15s;
    }

    body.menu-open .mobile-menu a:nth-child(4) {
        transition-delay: 0.2s;
    }

    body.menu-open .mobile-menu a:nth-child(5) {
        transition-delay: 0.25s;
    }

    body.menu-open .mobile-menu a:nth-child(6) {
        transition-delay: 0.3s;
    }

    body.menu-open .mobile-menu a:nth-child(7) {
        transition-delay: 0.35s;
    }

    .grid {
        grid-template-columns: 100%;
        grid-gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile View */
    .main-nav {
        border-radius: 20px;
        padding: 15px 20px;
        margin: 0 auto;
        max-width: 740px;
    }

    .nav-links {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .mobile-buttons .btn {
        padding: 12px 0;
        width: 150px;
        border-radius: 8px;
    }

    body.menu-open .mobile-menu {
        display: flex;
        max-height: 500px;
    }

    .mobile-menu a {
        padding: 15px;
        color: #333;
        text-decoration: none;
        border-bottom: 1px solid #eee;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    body.menu-open .mobile-menu a {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered animation for menu items */
    body.menu-open .mobile-menu a:nth-child(1) {
        transition-delay: 0.05s;
    }

    body.menu-open .mobile-menu a:nth-child(2) {
        transition-delay: 0.1s;
    }

    body.menu-open .mobile-menu a:nth-child(3) {
        transition-delay: 0.15s;
    }

    body.menu-open .mobile-menu a:nth-child(4) {
        transition-delay: 0.2s;
    }

    body.menu-open .mobile-menu a:nth-child(5) {
        transition-delay: 0.25s;
    }

    body.menu-open .mobile-menu a:nth-child(6) {
        transition-delay: 0.3s;
    }

    body.menu-open .mobile-menu a:nth-child(7) {
        transition-delay: 0.35s;
    }

    .grid {
        grid-template-columns: 100%;
        grid-gap: 30px;
    }
}


footer {
    margin-top: 100px;
    background-color: #222;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    color:var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}


.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-method {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 0;
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 30px;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}


.footer-container .img-payment-grid{
    display: flex;
    flex-wrap: wrap;
    /*flex-wrap: wrap;*/
}
.footer-container .img-payment-grid img{
    margin: 10px;
    width: 100px;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    footer{
        margin-top: 300px;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}