body {
    background-image: url('/images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.hero {
    background-color: #f9f9f9;
    padding: 30px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.hero h1 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.hero p {
    color: black;
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.cta-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2e7d32;
}

.category-list ul {
    list-style: none;
    padding: 0;
}

.category-item {
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden; /* Ensures sub-list stays within bounds */
    position: relative;
}

.category-item#cat-technology {
    background-image: url('/images/tech-bg.webp');
    background-size: cover;
    background-position: center;
}
.category-item#cat-fashion {
    background-image: url('/images/fashion-bg.webp');
    background-size: cover;
    background-position: center;
}
.category-item#cat-cars {
    background-image: url('/images/cars-bg.webp');
    background-size: cover;
    background-position: center;
}
.category-item#cat-travel {
    background-image: url('/images/travel-bg.webp');
    background-size: cover;
    background-position: center;
}
.category-item#cat-food {
    background-image: url('/images/food-bg.webp');
    background-size: cover;
    background-position: center;
}
.category-item#cat-fitness {
    background-image: url('/images/fitness-bg.webp');
    background-size: cover;
    background-position: center;
}
.category-item#cat-entertainment {
    background-image: url('/images/entertainment-bg.webp');
    background-size: cover;
    background-position: center;
}

.category-item#cat-news {
    background-image: url('/images/news-bg.webp');
    background-size: cover;
    background-position: center;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-header {
    height: 250px;
    padding: 20px;
    text-align: left;
    display: flex;
    align-items: center;
    background: rgba(19, 17, 17, 0.7); /* Semi-transparent overlay for readability */
}

.category-header h2 {
    color: #4CAF50;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    z-index: 1;
}

.sub-list {
    padding: 20px;
    list-style: none;
    background-color: white;
    display: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.sub-list li {
    margin-bottom: 15px;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s;
    border-radius: 5px;
}

.sub-list li:hover {
    background-color: #f9f9f9;
}

.sub-list li span {
    font-weight: bold;
    font-size: 1.2em;
    display: block; /* Ensures span behaves like a block element */
}
.sub-list li:hover span {
    color: #2e7d32;
}

.popup {
    position: fixed;
    top: 0;
    right: -600px; /* Adjusted to match new max-width */
    width: 100%;
    max-width: 600px; /* Increased width */
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    z-index: 1000;
}

.popup.active {
    right: 0;
}

.popup button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.popup button:hover {
    background-color: #2e7d32;
}

.popup h3 {
    color: #4CAF50;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.popup h4 {
    color: #2e7d32;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.popup p {
    color: black;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.content-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added for consistency with About page */
}

/* About Page Styles */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.about-section {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.about-section h1 {
    color: #4CAF50;
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    margin-bottom: 10px;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 5px;
}

.about-section h2 {
    color: #4CAF50;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 10px;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 5px;
}

.about-section p {
    color: black;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-section {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.contact-section h2 {
    color: #4CAF50;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 10px;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 5px;
}

.contact-section p {
    color: black;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 15px;
}

.contact-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #2e7d32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 20px 15px;
    }

    .category-header {
        height: 200px;
        padding: 15px;
    }

    .sub-list {
        padding: 15px;
    }

    .sub-list li {
        margin-bottom: 10px;
        padding: 8px;
    }

    .popup {
        max-width: 80%; /* Responsive width on tablets */
        right: -80%;
    }

    main {
        padding: 0 10px;
    }

    .about-section, .contact-section {
        padding: 15px;
    }

    .about-section h1, .contact-section h1 {
        font-size: clamp(1.2rem, 2.7vw, 1.7rem);
    }

    .about-section h2, .contact-section h2 {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }

    .about-section p, .contact-section p {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .category-header {
        height: 150px;
        padding: 10px;
    }

    .category-header h2 {
        font-size: 1.2rem;
    }

    .sub-list li span {
        font-size: 1rem;
    }

    .popup {
        max-width: 100%; /* Full width on mobile */
        right: -100%;
    }

    .popup button {
        font-size: 1rem;
        padding: 8px;
    }

    .popup h3 {
        font-size: 1.2rem;
    }

    .popup h4 {
        font-size: 1rem;
    }

    .popup p {
        font-size: 0.9rem;
    }

    .content-image {
        max-width: 100%;
        height: auto;
    }

    .about-section, .contact-section {
        margin-bottom: 15px;
        padding: 10px;
    }

    .about-section h1, .contact-section h1 {
        font-size: 1.4rem;
    }

    .about-section h2, .contact-section h2 {
        font-size: 1.2rem;
    }

    .about-section p, .contact-section p {
        font-size: 0.9rem;
    }
}