@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ===== Base Styles ===== */
body {
    background-color: #dce0db; /* The dark outer backdrop from the image */
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    color: #111;
    -webkit-font-smoothing: antialiased;
}

.header-container {
  width: 100%;
  position: relative;
  z-index: 1000;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto 20px;
    font-size: 13px;
    color: #7a7a7a;
    padding: 0 20px;
}

.breadcrumb a {
    color: #7a7a7a;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #111;
}

/* ===== Main App Container ===== */
.container {
    background: #f4f5ef; /* Soft off-white/beige app background */
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    
    /* This grid magic organizes your raw HTML into a bento layout */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 150px;
}

/* Force non-product items to span the full width of the container */
.container > .error-message,
.container > h1,
.container > .page-description,
.container > .no-updates,
.container > .pagination,
.container > .page-info {
    grid-column: 1 / -1;
}

/* ===== Typography Overrides ===== */
.container > h1 {
    color: #111 !important; /* Overrides your inline blue color */
    font-size: 3.5rem !important; /* Overrides inline size */
    font-weight: 600;
    letter-spacing: -1.5px;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.page-description {
    font-size: 16px;
    color: #7a7a7a;
    max-width: 700px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

/* ===== Product Card (Bento Item) ===== */
.update-item {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

/* ===== Product Image Box ===== */
.update-image {
    background: #f7f7f7;
    border-radius: 16px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Creates the little hover arrow from the image without touching HTML */
.update-image::after {
    content: "\2197"; /* North East Arrow Unicode */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.update-item:hover .update-image::after {
    opacity: 1;
    transform: scale(1);
}

.update-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Blends images seamlessly into the grey background */
    transition: transform 0.4s ease;
}

.update-item:hover .update-image img {
    transform: scale(1.05);
}

/* ===== Product Info ===== */
.update-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.update-content h2 {
    font-size: 12px;
    color: #111;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.update-content p {
    font-size: 20px;
    color: #7a7a7a;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* ===== Lime Green Button ===== */
.product-link {
    background: #caff33; /* Matches the vibrant lime green */
    color: #111 !important; /* Overrides default link blue */
    padding: 12px 24px;
    border-radius: 100px; /* Pill shape */
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    display: block;
}

.product-link:hover {
    background: #b8eb1c; /* Slightly darker lime on hover */
    text-decoration: none;
}

/* ===== Date ===== */
.update-date {
    font-size: 12px;
    color: #aaa;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.pagination a {
    background: #ffffff;
    color: #111;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.pagination a:hover:not(.disabled):not(.active) {
    background: #f0f0f0;
}

.pagination a.active {
    background: #111;
    color: #ffffff;
}

.pagination a.disabled {
    background: transparent;
    color: #ccc;
    box-shadow: none;
    pointer-events: none;
}

.page-info {
    font-weight: 500;
    color: #7a7a7a !important;
    margin-bottom: 0 !important; /* Overrides inline style */
}

/* ===== Empty State / Error ===== */
.no-updates, .error-message {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    color: #7a7a7a;
}

.error-message {
    background: #fff0f0;
    color: #e60000;
    text-align: left;
}

/* ===== SEO Content Card ===== */
.seo-content {
    max-width: 1400px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

.seo-content h2 {
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #111;
    font-weight: 600;
}

.seo-content p {
    font-size: 15px;
    color: #7a7a7a;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.seo-content ul {
    margin: 0 0 20px 20px;
    color: #7a7a7a;
    font-size: 15px;
    line-height: 1.6;
}

.seo-content li {
    margin-bottom: 8px;
}

/* ===== Responsive Mobile Adjustments ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        border-radius: 24px;
    }
    
    .container > h1 {
        font-size: 2.5rem !important;
    }
    
    .seo-content {
        padding: 25px;
        border-radius: 24px;
        margin: 20px auto;
    }
}