/* ==========================================================================
   Utsav Poster / Modern Category & Festival Preview Page Styles
   Matches Reference:
   - Soft pastel gradient hero with "Templates for Every Occasion"
   - Subtitle & Centered rounded search bar with orange search icon
   - 4-column modern white cards with square thumbnail, title & "CREATE POST" navy button
   - App Download Section with Hindi headline & dual phone mockup
   - Trusted by 4.5M+ banner with "JOIN US TODAY" button
   ========================================================================== */

/* Colors */
:root {
    --cat-navy: #003358;
    --cat-orange: #F36F21;
    --cat-green: #22C55E;
    --cat-dark: #111827;
    --cat-gray: #4b5563;
}

/* 1. Hero Section */
.category-hero-section {
    background: radial-gradient(circle at 10% 20%, #fff1e6 0%, #fffcf9 40%, #e6f6f1 100%);
    padding: 190px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cat-hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--cat-dark);
    margin-bottom: 16px;
}

.cat-hero-subtitle {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--cat-gray);
    max-width: 820px;
    margin: 0 auto 30px;
}

/* Centered Search Bar */
.cat-search-form {
    max-width: 640px;
    margin: 0 auto;
}

.cat-search-box {
    background: #ffffff;
    border: 1.5px solid var(--cat-navy);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px 20px;
    box-shadow: 0 4px 18px rgba(0, 51, 88, 0.08);
    transition: all 0.3s ease;
}

.cat-search-box:focus-within {
    border-color: var(--cat-orange);
    box-shadow: 0 6px 22px rgba(243, 111, 33, 0.2);
}

.cat-search-icon {
    color: var(--cat-orange);
    font-size: 18px;
    margin-right: 14px;
    flex-shrink: 0;
}

.cat-search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 15px;
    color: var(--cat-dark);
    padding: 8px 0;
}

.cat-search-input::placeholder {
    color: #6b7280;
    font-weight: 400;
    font-size: 14.5px;
}

.cat-search-submit {
    background: var(--cat-navy);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-search-submit:hover {
    background: var(--cat-orange);
}

/* 2. Grid Section */
.category-grid-section {
    background: #ffffff;
    padding: 50px 0 80px;
}

.cat-template-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.cat-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    cursor: pointer;
}

.cat-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cat-template-card:hover .cat-thumb-img {
    transform: scale(1.04);
}

.cat-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cat-template-card:hover .cat-thumb-overlay {
    opacity: 1;
}

.cat-quick-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cat-navy);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cat-card-body {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
}

.cat-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--cat-dark);
    margin: 0 0 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-btn-create {
    background: var(--cat-navy);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 30px;
    padding: 10px 16px;
    border: none;
    width: 100%;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    display: block;
    text-decoration: none !important;
}

.cat-btn-create:hover {
    background: var(--cat-orange);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(243, 111, 33, 0.35);
    transform: translateY(-1px);
}

/* 3. App Download Section (Matches Reference) */
.cat-download-section {
    background: #ffffff;
    padding: 60px 0 70px;
    border-top: 1px solid #f1f5f9;
}

.cat-app-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 22px;
}

.cat-app-brand {
    display: block;
    color: #111827;
    font-size: 32px;
    font-weight: 700;
    margin: 6px 0;
}

.text-utsav-orange {
    color: var(--cat-orange);
}

.text-utsav-green {
    color: var(--cat-green);
}

.cat-app-sub {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.cat-app-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 520px;
    margin-bottom: 24px;
}

.cat-store-badge {
    height: 48px;
    transition: transform 0.2s ease;
}

.cat-store-badge:hover {
    transform: scale(1.04);
}

/* 4. Trusted Banner (Matches Reference) */
.cat-trusted-section {
    background: linear-gradient(90deg, #ffe5d9 0%, #fff5eb 35%, #e8f7f0 70%, #d8f3eb 100%);
    padding: 48px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.cat-trusted-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #111827;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cat-trusted-sub {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 22px;
}

.cat-btn-join-today {
    display: inline-block;
    background: #ffffff;
    color: #111827;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-btn-join-today:hover {
    background: var(--cat-orange);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(243, 111, 33, 0.35);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
    .category-hero-section {
        padding: 150px 0 50px;
    }
    .cat-hero-title {
        font-size: 34px;
    }
    .cat-app-title {
        font-size: 28px;
    }
    .cat-app-brand {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .category-hero-section {
        padding: 130px 15px 40px;
    }
    .cat-hero-title {
        font-size: 26px;
    }
    .cat-hero-subtitle {
        font-size: 14px;
    }
    .cat-search-box {
        padding: 4px 14px;
    }
    .cat-search-input {
        font-size: 13.5px;
    }
    .cat-app-title {
        font-size: 22px;
    }
    .cat-app-brand {
        font-size: 20px;
    }
    .cat-trusted-title {
        font-size: 18px;
    }
}

/* Empty Category Box State */
.empty-category-box {
    background: #ffffff;
    border: 2px dashed #E2E8F0;
    border-radius: 20px;
    padding: 50px 30px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.empty-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(243, 111, 33, 0.1);
    color: var(--cat-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 18px;
}

.empty-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--cat-dark);
}

.empty-desc {
    font-size: 14.5px;
    color: var(--cat-gray);
    line-height: 1.6;
}

