/* style.css - Rewritten to mimic buy.2m.pub style */

/* 1. Global Resets and Base Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #4a4a4a; /* Dark grey text */
    background-color: #f4f6f8; /* Light grey background */
    font-size: 16px; /* Increased base font size */
}

.container {
    max-width: 1140px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #1890ff; /* Blue links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #40a9ff; /* Lighter blue on hover */
    text-decoration: none; /* No underline on hover */
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 0.8em;
}

/* 2. Store Navbar */
.store-navbar {
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.store-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.store-logo:hover {
    color: #333;
}

.store-nav-links ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.store-nav-links li {
    margin-left: 25px;
}

.store-nav-links a {
    color: #555;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent; /* For active state */
}

.store-nav-links a:hover,
.store-nav-links a.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

/* 3. Page Content & Announcement */
.page-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.announcement {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 15px; /* Increased */
    line-height: 1.8;
}

.announcement h4 {
    font-size: 16px; /* Increased */
    color: #fa8c16; /* Orange title */
    margin-bottom: 10px;
}

.announcement ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

.announcement li {
    margin-bottom: 5px;
}

/* 4. Main Services Area */
.main-services h2 {
    font-size: 26px; /* Increased */
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

/* 5. Category Filters */
.category-filters {
    text-align: center;
    margin-bottom: 30px;
}

.filter-button {
    background-color: #fff;
    border: 1px solid #d9d9d9;
    color: #555;
    padding: 8px 15px;
    border-radius: 4px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-size: 14px; /* Increased */
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #1890ff;
    border-color: #1890ff;
    background-color: #e6f7ff; /* Light blue background */
}

/* 6. Service Grid & Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.service-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.card-content {
    padding: 15px;
    flex-grow: 1; /* Allow content to grow */
}

.service-title {
    font-size: 17px; /* Increased */
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    /* Limit title to 1-2 lines if needed */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 2; */
    /* -webkit-box-orient: vertical; */
}

.service-description {
    font-size: 15px; /* Increased */
    color: #777;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-button {
    display: block;
    background-color: #1890ff;
    color: #fff;
    text-align: center;
    padding: 10px 15px;
    font-weight: 500;
    border-top: 1px solid #e8e8e8; /* Separator line */
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: #40a9ff;
    color: #fff;
    text-decoration: none;
}

/* 7. Footer */
.store-footer {
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid #e8e8e8;
    color: #aaa;
    font-size: 14px; /* Increased */
}

/* 8. Service Detail Page Styles (Keep Existing) */
.service-detail-content { max-width: 800px; margin: 2rem auto; padding: 2rem; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 8px; text-align: left; }
.service-detail-content h1 { text-align: center; color: #2c3e50; margin-bottom: 1.5em; font-size: 2.2em; }
.service-detail-content h2 { color: #007bff; margin-top: 1.5em; margin-bottom: 0.8em; font-size: 1.6em; }
.service-detail-content ul, .service-detail-content ol { list-style-position: inside; padding-left: 1em; margin-bottom: 1em; }
.service-detail-content li { margin-bottom: 0.5em; }
.service-detail-content ul ul { margin-top: 0.5em; margin-left: 1.5em; }
.service-detail-cta { text-align: center; margin-top: 2rem; }
.service-detail-cta .cta-button { display: inline-block; background-color: #2ecc71; color: #fff; padding: 12px 30px; border-radius: 25px; font-size: 1.1rem; font-weight: bold; text-decoration: none; transition: transform 0.3s ease, background-color 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.service-detail-cta .cta-button:hover { background-color: #27ae60; color: #fff; transform: translateY(-2px); text-decoration:none; }


/* 9. Responsive Adjustments (Basic Example) */
@media (max-width: 768px) {
    .store-nav-links ul {
        /* Implement mobile menu logic if needed */
        display: none; /* Hide by default on small screens */
    }
    .store-nav-links.active ul { /* Example class for active mobile menu */
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 61px; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid #e8e8e8;
    }
    .store-nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .store-nav-links a {
         display: block;
         padding: 15px 0;
         border-bottom: 1px solid #f0f0f0; /* Separator for mobile links */
    }
    .store-nav-links a.active,
    .store-nav-links a:hover {
        border-bottom-color: #1890ff; /* Keep consistent active style */
    }

    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Adjust card size for smaller screens */
    }

    .main-services h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}

/* Contact CTA Card Section */
.contact-cta-section {
    padding: 2rem 0; /* Add some spacing around the card */
}

.contact-cta-card {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%); /* Blue gradient */
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(24, 144, 255, 0.3);
}

.contact-cta-card h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8em;
}

.contact-cta-card p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    opacity: 0.9;
    max-width: 600px; /* Limit text width */
    margin-left: auto;
    margin-right: auto;
}

.contact-card-button {
    /* Reuse cta-button styles or define specifically */
    display: inline-block;
    background-color: #fff;
    color: #1890ff; /* Blue text */
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none; /* Override default border if any */
}

.contact-card-button:hover {
    background-color: #f0f8ff; /* Very light blue on hover */
    color: #1890ff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive adjustments for contact card */
@media (max-width: 768px) {
    .contact-cta-card {
        padding: 2rem;
    }
    .contact-cta-card h3 {
        font-size: 1.5em;
    }
    .contact-cta-card p {
        font-size: 1em;
    }
    .contact-card-button {
        font-size: 1rem;
        padding: 10px 30px;
    }
}
