body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #333;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

.connect-text {
    font-size: 18px;
    font-weight: bold;
    color: #fea03c;
    text-align: center;
    margin: 10px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    gap: 20px; /* Spacing */
    padding: 20px;
    justify-content: center;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #008000; /* Jiji green border */
}

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

.card img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: #e5f7e5; /* Light green background similar to Jiji */
    padding: 10px;
    object-fit: contain;
}

.card h3 {
    color: #008000; /* Jiji green */
    font-size: 16px;
    margin-top: 10px;
}

/* Footer Styling */
.footer {
    text-align: center;
    padding: 10px 0;
    background: #008000; /* Jiji Green */
    color: white;
    font-size: 14px;
}

.footer p {
    color: white;
}


.footer-tabs {
    display: flex;
    justify-content: center; /* Center the links */
    flex-wrap: wrap;
    gap: 30px; /* Space between links */
}

.footer-tab {
    text-align: center;
}

.footer-tab a {
    color: #fcfdff;
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
}

.footer-tab a:hover {
    text-decoration: underline;
}

.footer-copy {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85em;
    color: #666;
}

/* Ensure container consistency */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* Header Styling */
.nav {
    background: #008000; /* Jiji green */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
}

p {
    font-size: 18px;
    font-weight: bold;
    color: #008000; /* Jiji Green */
    text-align: center;
    margin: 10px 0;
}

.sell-btn {
    background: #ff9900; /* Jiji sell button color */
    border: none;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
}

.grid .card a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Keeps the text color the same as its parent */
    display: block; /* Ensures the entire card is clickable */
}

/* Media query for mobile devices (768px and below) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Smaller min width for more columns */
        gap: 10px; /* Reduced spacing */
        padding: 10px;
    }

    .card {
        padding: 10px; /* Reduce padding */
    }

    .card img {
        width: 80px; /* Smaller images */
        height: 80px;
    }

    .card h3 {
        font-size: 12px; /* Smaller text */
        margin-top: 8px;
    }
}

/* Media query for smaller screens (480px and below) */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Even smaller min width */
        gap: 8px; /* Further reduced spacing */
        padding: 8px;
    }

    .card {
        padding: 8px;
    }

    .card img {
        width: 70px;
        height: 70px;
    }

    .card h3 {
        font-size: 11px;
    }
}

/* Media query for very small screens (375px and below) */
@media (max-width: 375px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Smallest min width */
        gap: 6px;
        padding: 6px;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    .card {
        padding: 6px;
    }

    .card img {
        width: 60px;
        height: 60px;
    }

    .card h3 {
        font-size: 10px;
        margin-top: 6px;
    }

    p {
        font-size: 14px;
        line-height: 1.3;
    }

    .connect-text {
        font-size: 14px;
        margin: 5px 0;
    }

    .footer {
        font-size: 11px;
    }
}