/* =============================================
   HERO BANNER SECTION
============================================= */

.hero-banner {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 1% 0;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/adm-banner-ee.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    object-position: right center;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Content Layout */
.hero-overlay-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 2rem;
}

.hero-overlay-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    z-index: 3;
    padding-left: 2%;
}

/* Hero Columns */
.hero-column-1 {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.hero-column-2 {
    flex: 0 0 25%;
    max-width: 30%;
    margin-bottom: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Hero Typography */
.hero-column-1 h4,
.hero-column-2 h4,
.hero-column-2 h6 {
    margin: 0;
    color: white;
}

.hero-column-1 h4 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-align: center;
}

.hero-column-2 h4 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

.hero-column-2 h6 {
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.hero-column h3,
.hero-column h4,
.hero-column h6,
.hero-column p {
    margin: 0;
    color: white;
}

.hero-column h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.hero-column h5 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.hero-column p {
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Hero Logo */
.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 5%;
    padding: 6px 0 0 0;
    align-items: center;
}

/* =============================================
   CANVA-STYLE SEARCH SECTION
radial-gradient(circle at 50% 130%, #3f0d5b 0%, #f75555 8%, #f7556c 15%, #f75555 22%, #f7a155 30%, #f75555 40%, #3f005c 50%, #9264f6 65%, #17212a 80%, #1c1e22 90%, #071825 95%, #191b22 100%)

============================================= */

.canva-search-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
    box-shadow: none;
    z-index: 1;
}

/* Make the gradient extend all the way down by applying to main section on templates page */
/* Radial gradient like Lovable: purple center fading to blue, then white edges */
/* Continuous gradient that scrolls with the content - extends far down the page */
/* All options have darker tops for white text visibility, fading to lighter/white at bottom */

/* Option 1: Apple-inspired deep blue to light blue (professional, tech) */
/* .main-section:has(.templates-content-section),
.main-section:has(.canva-search-section) {
    background: 
        linear-gradient(180deg, 
            #1a4d7a 0%, 
            #2563a8 15%, 
            #3b82d6 30%, 
            #60a5fa 50%, 
            #93c5fd 70%, 
            #dbeafe 85%, 
            #ffffff 100%) !important;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    background-position: center top;
} */

/* Option 2: Apple-inspired deep purple to lavender (modern, creative) */
/* .main-section:has(.templates-content-section),
.main-section:has(.canva-search-section) {
    background: 
        linear-gradient(180deg, 
            #4c1d95 0%, 
            #6d28d9 15%, 
            #8b5cf6 30%, 
            #a78bfa 50%, 
            #c4b5fd 70%, 
            #e9d5ff 85%, 
            #ffffff 100%) !important;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    background-position: center top;
} */

/* Option 3: Apple-inspired deep teal to mint (fresh, professional) */
/* .main-section:has(.templates-content-section),
.main-section:has(.canva-search-section) {
    background: 
        linear-gradient(180deg, 
            #0f766e 0%, 
            #14b8a6 20%, 
            #2dd4bf 40%, 
            #5eead4 60%, 
            #99f6e4 80%, 
            #ccfbf1 90%, 
            #ffffff 100%) !important;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    background-position: center top;
} */

/* Option 4: Subtle linear gradient - pale pink/peach to pale sky blue (like Outlier.ai) */
.main-section:has(.templates-content-section),
.main-section:has(.canva-search-section) {
    background:
    radial-gradient( 700px 600px at 46% 65%, rgba(31, 156, 233, 0.55), transparent 70% ), radial-gradient( 600px 700px at 60% 30%, rgba(132, 40, 253, 0.55), transparent 70% ), radial-gradient( 700px 600px at 75% 65%, rgba(220, 40, 40, 0.6), transparent 75% ), linear-gradient( 180deg, #000 0%, #0f0f0f 100% );

          background-attachment: fixed;
    min-height: 100vh;
}

/* Option 5: Apple-inspired deep indigo to sky blue (calm, trustworthy) */
/* .main-section:has(.templates-content-section),
.main-section:has(.canva-search-section) {
    background: 
        linear-gradient(180deg, 
            #312e81 0%, 
            #4338ca 15%, 
            #6366f1 30%, 
            #818cf8 50%, 
            #a5b4fc 70%, 
            #c7d2fe 85%, 
            #ffffff 100%) !important;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    background-position: center top;
} */

/* Option 6: Apple-inspired deep rose to pink (friendly, approachable) */
/* .main-section:has(.templates-content-section),
.main-section:has(.canva-search-section) {
    background: 
        linear-gradient(180deg, 
            #9f1239 0%, 
            #be123c 15%, 
            #e11d48 30%, 
            #f43f5e 50%, 
            #fb7185 70%, 
            #fda4af 85%, 
            #ffffff 100%) !important;
    background-size: 100% 100vh;
    background-repeat: no-repeat;
    background-position: center top;
} */

.canva-search-section::before {
    display: none;
}

/* Content wrapper for AI section */
.canva-search-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Beta Badge */
.beta-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6f00, #e65100);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 12px;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(255, 111, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    animation: beta-pulse 2s ease-in-out infinite;
    font-family: 'Poppins', sans-serif;
}

.beta-inline-badge {
    display: inline-block;
    background: #7e5feb;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 1px 3px rgba(255, 111, 0, 0.3);
}

@keyframes beta-pulse {
    0%, 100% { 
        box-shadow: 0 2px 6px rgba(255, 111, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 12px rgba(255, 111, 0, 0.6);
        transform: scale(1.02);
    }
}

/* Loading Overlay */
.canva-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
}

.canva-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.canva-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: #4ea5f2 !important;
    border-radius: 50%;
    animation: canva-spin 1s linear infinite;
}

@keyframes canva-spin {
    to {
        transform: rotate(360deg);
    }
}

.canva-loading-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #ffffff !important;
    margin: 0;
    text-align: center;
}

.canva-loading-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0.5rem 0 0 0;
    text-align: center;
}

.canva-search-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.canva-search-subtitle-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.canva-search-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 0.5625rem 0;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.canva-search-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-align: center;
    width: 100%;
}

.canva-search-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.canva-search-input-wrapper-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.canva-search-input-container {
    position: relative;
    width: 100%;
}

.canva-input-placeholder-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Loading overlay for prompt improvement */
.canva-prompt-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.canva-prompt-loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.canva-prompt-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: canva-spin 1s linear infinite;
}

@keyframes canva-spin {
    to { transform: rotate(360deg); }
}

/* Attached Images Container */
.canva-attached-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 60px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 0.75rem;
}

.canva-attached-image-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.canva-attached-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.canva-attached-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.canva-attached-image-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.canva-attached-image-delete:hover {
    background: rgba(220, 38, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.canva-attached-image-delete:active {
    transform: scale(0.95);
}

/* Coming Soon Message Module */
.canva-coming-soon-message {
    position: absolute;
    bottom: calc(100% + 12px);
    background: #ffffff;
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 260px;
    max-width: 300px;
    animation: fadeInUp 0.3s ease-out;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

.canva-coming-soon-message.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.canva-coming-soon-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}

.canva-coming-soon-arrow::before {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(255, 152, 0, 0.3);
    z-index: -1;
}

.canva-coming-soon-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #333333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.canva-coming-soon-content span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

.canva-coming-soon-content span {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

.canva-coming-soon-icon {
    flex-shrink: 0;
    color: #ff9800;
    width: 16px;
    height: 16px;
}

.canva-search-input-container input,
.canva-search-input-container input[type="text"],
.canva-search-input-container textarea {
    padding: 1rem 1.5rem 1rem 1.5rem !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: 120px !important;
    height: auto !important;
    font-size: 0.9rem !important;
    resize: none !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: pre-wrap !important;
    vertical-align: top !important;
}


.canva-search-input,
input#canva-search-input.canva-search-input,
input[type="text"].canva-search-input,
textarea#canva-search-input.canva-search-input,
textarea.canva-search-input {
    font-family: 'Poppins', sans-serif !important;
    width: 100% !important;
    padding: 1rem 3.5rem 1rem 1.5rem !important;
    font-size: 0.9rem !important;
    border: none !important;
    border-radius: 12px 12px 0 0 !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

/* Textarea always has rounded top corners - image container is separate */
.canva-input-placeholder-wrapper:has(.canva-attached-images-container:not([style*="display: none"])) .canva-search-input {
    border-radius: 12px 12px 0 0 !important;
}

.canva-search-input {
    color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box;
    min-height: 120px !important;
    height: auto !important;
    line-height: 1.5 !important;
    resize: none !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: pre-wrap !important;
    vertical-align: top !important;
}

.canva-search-input:focus,
input#canva-search-input.canva-search-input:focus,
input[type="text"].canva-search-input:focus,
textarea#canva-search-input.canva-search-input:focus,
textarea.canva-search-input:focus {
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
}

.canva-search-input::placeholder {
    color: #888 !important;
    font-weight: 400;
}

/* Simple Input Container (Step 2 - Campaign Name) */
.canva-simple-input-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
}

.canva-simple-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.canva-simple-input {
    font-family: 'Poppins', sans-serif !important;
    flex: 1;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.95rem !important;
    border: none !important;
    border-radius: 12px !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box;
    height: 52px !important;
    line-height: 1.5 !important;
}

.canva-simple-input:focus {
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
}

.canva-simple-input::placeholder {
    color: #888 !important;
    font-weight: 400;
}

.canva-simple-arrow-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 0;
    background: #ffffff !important;
    border: 1px solid #666666 !important;
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.canva-simple-arrow-btn svg {
    width: 16px;
    height: 16px;
    color: #000000 !important;
}

.canva-simple-arrow-btn:hover {
    background: #f5f5f5 !important;
    border-color: #888888 !important;
    color: #000000 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.canva-simple-arrow-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.canva-input-bottom-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    padding: 0.75rem 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}

.canva-input-left-controls,
.canva-input-right-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
}

.canva-attach-btn,
.canva-theme-btn,
.canva-stt-btn,
.canva-magic-wand-btn,
.canva-search-arrow-btn {
    background: #1a1a1a !important;
    border: 1px solid #666666 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666666 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.canva-attach-btn,
.canva-theme-btn {
    height: 32px;
    padding: 0.5rem 0.75rem;
    border-radius: 16px;
    gap: 0.5rem;
    border: 1px solid #666666 !important;
}

.canva-attach-btn .paperclip-icon,
.canva-theme-btn .theme-icon {
    flex-shrink: 0;
    color: #666666 !important;
}

.canva-attach-btn span,
.canva-theme-btn span {
    color: #666666 !important;
}

.canva-theme-btn .chevron-icon {
    flex-shrink: 0;
    margin-left: 0.25rem;
    color: #666666 !important;
}

.canva-stt-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.canva-stt-btn.recording {
    background: #ff4444 !important;
    border-color: #ff6666 !important;
    color: #ffffff !important;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(255, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.8);
    }
}

.canva-magic-wand-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    background: #8B5CF6 !important;
    border: 1px solid #8B5CF6 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canva-magic-wand-btn svg {
    width: 16px;
    height: 16px;
    color: #ffffff !important;
}

.canva-search-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    background: #ffffff !important;
    border: 1px solid #666666 !important;
    color: #000000 !important;
}

.canva-search-arrow-btn svg {
    width: 12px;
    height: 12px;
    color: #000000 !important;
}

.canva-attach-btn:hover,
.canva-theme-btn:hover,
.canva-stt-btn:hover:not(.recording) {
    background: #2a2a2a !important;
    border-color: #888888 !important;
    color: #888888 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.canva-magic-wand-btn:hover {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
}

.canva-search-arrow-btn:hover {
    background: #f5f5f5 !important;
    border-color: #888888 !important;
    color: #000000 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.canva-attach-btn:hover span,
.canva-theme-btn:hover span {
    color: #888888 !important;
}

.canva-attach-btn:hover .paperclip-icon,
.canva-theme-btn:hover .theme-icon,
.canva-theme-btn:hover .chevron-icon {
    color: #888888 !important;
}

/* Template Structure Badge */
.canva-template-structure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.canva-template-structure-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
}

.canva-template-structure-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #af8bff, #9c52f6) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    cursor: help;
}

.canva-template-remove-btn {
    background: transparent !important;
    border: none !important;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.canva-template-remove-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.canva-template-remove-btn svg {
    width: 12px;
    height: 12px;
}

.canva-search-arrow-btn:active {
    transform: translateY(-50%) scale(0.98);
}


.canva-suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
    border: none;
    padding: 0;
}

.canva-prompt-bubble {
    flex: 0 0 auto;
}

.canva-prompt-bubble {
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.canva-prompt-bubble i {
    font-size: 0.75rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
}

.canva-prompt-bubble:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.canva-prompt-bubble:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.canva-see-all-btn {
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex: 0 0 auto;
}

.canva-see-all-btn:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.canva-see-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Examples Link Section */
.canva-examples-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.canva-examples-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.canva-examples-go-btn {
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #7e5feb, #7e5feb) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.canva-examples-go-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.canva-examples-go-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.canva-examples-go-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Step Indicator */
.canva-step-indicator {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 500;
    color: #ffbe8b !important;
    margin-left: 0.5rem;
}

/* Progress Bar - Removed */
.canva-progress-container {
    display: none !important;
}

/* Back Button */
.canva-back-btn {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: absolute;
    left: 0;
    white-space: nowrap;
}

.canva-back-btn:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.canva-back-btn:active {
    transform: translateY(0);
}

.canva-back-btn svg {
    width: 14px;
    height: 14px;
}

.canva-back-btn svg path {
    stroke: #ffffff !important;
}

/* Campaign Type Selection */
.canva-campaign-type-selection {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.canva-campaign-type-btn {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 250px;
    max-width: 450px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.canva-campaign-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.canva-campaign-type-btn:hover {
    transform: translateY(-4px);
}

.canva-campaign-type-btn:hover::before {
    opacity: 1;
}

.canva-campaign-type-btn:active {
    transform: translateY(-2px);
}

.canva-campaign-type-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.canva-campaign-type-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.canva-campaign-type-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.3;
}

.canva-campaign-type-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.4;
}

/* Responsive adjustments for Canva search section */
@media (max-width: 768px) {
    .canva-search-section {
        padding: 2.25rem 1.125rem;
    }
    
    .beta-badge {
        top: 10px;
        right: 10px;
        font-size: 0.6rem;
        padding: 4px 8px;
    }
    
    .beta-inline-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        margin-left: 6px;
    }
    
    .canva-search-header {
        margin-bottom: 1.5rem;
    }
    
    .canva-search-title {
        font-size: 1.3125rem;
    }
    
    .canva-search-subtitle {
        font-size: 0.7125rem;
    }
    
    .canva-step-indicator {
        font-size: 0.65rem;
    }
    
    .canva-search-input-container {
        margin-bottom: 1.125rem;
    }
    
    .canva-search-input {
        padding: 0.75rem 2.25rem 0.75rem 0.9375rem;
        font-size: 0.7125rem;
    }
    
    .canva-search-arrow-btn {
        width: 24px;
        height: 24px;
        right: 0.3rem;
    }
    
    .canva-search-arrow-btn svg {
        width: 10.5px;
        height: 10.5px;
    }
    
    .canva-prompt-bubble {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .canva-prompt-bubble i {
        font-size: 0.65rem;
    }
    
    .canva-see-all-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .canva-template-structure-badge {
        margin-left: 0.5rem;
        gap: 0.4rem;
    }
    
    .canva-template-structure-label {
        font-size: 0.7rem;
    }
    
    .canva-template-structure-name {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .canva-template-remove-btn {
        width: 18px;
        height: 18px;
    }
    
    .canva-template-remove-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .canva-search-input {
        padding: 0.75rem 1.5rem 0.75rem 0.9375rem !important;
    }
    
    .canva-simple-input-container {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .canva-simple-input {
        font-size: 0.85rem !important;
        height: 48px !important;
        padding: 0.75rem 1rem !important;
    }
    
    .canva-simple-arrow-btn {
        width: 48px;
        height: 48px;
    }
    
    .canva-back-btn {
        padding: 0.45rem 0.875rem;
        font-size: 0.7rem;
    }
    
    .canva-back-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .canva-search-subtitle-wrapper {
        gap: 0.75rem;
    }
    
    .canva-campaign-type-selection {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .canva-campaign-type-btn {
        min-width: 100%;
        max-width: 100%;
        padding: 1rem 1.25rem;
    }
    
    .canva-campaign-type-icon {
        font-size: 1.5rem;
    }
    
    .canva-campaign-type-title {
        font-size: 0.9rem;
    }
    
    .canva-campaign-type-desc {
        font-size: 0.7rem;
    }
    
    .canva-template-structure-badge {
        margin-left: 0.5rem;
        gap: 0.4rem;
    }
    
    .canva-template-structure-label {
        font-size: 0.7rem;
    }
    
    .canva-template-structure-name {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .canva-search-section {
        padding: 1.5rem 0.75rem;
    }
    
    .beta-badge {
        top: 8px;
        right: 8px;
        font-size: 0.55rem;
        padding: 3px 6px;
    }
    
    .beta-inline-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
        margin-left: 4px;
    }
    
    .canva-search-header {
        margin-bottom: 1.125rem;
    }
    
    .canva-search-title {
        font-size: 1.125rem;
    }
    
    .canva-search-subtitle {
        font-size: 0.65625rem;
    }
    
    .canva-step-indicator {
        font-size: 0.6rem;
    }
    
    .canva-search-input-container {
        margin-bottom: 0.9375rem;
    }
    
    .canva-suggested-prompts {
        gap: 0.375rem;
    }
    
    .canva-prompt-bubble {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
        gap: 0.35rem;
    }
    
    .canva-prompt-bubble i {
        font-size: 0.6rem;
    }
    
    .canva-see-all-btn {
        padding: 0.35rem 0.9rem;
        font-size: 0.65rem;
    }
    
    .canva-simple-input-container {
        max-width: 100%;
        margin-bottom: 0.875rem;
    }
    
    .canva-simple-input {
        font-size: 0.8rem !important;
        height: 44px !important;
        padding: 0.65rem 0.9rem !important;
    }
    
    .canva-simple-arrow-btn {
        width: 44px;
        height: 44px;
    }
    
    .canva-simple-arrow-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .canva-back-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
        position: relative;
        left: auto;
    }
    
    .canva-back-btn svg {
        width: 11px;
        height: 11px;
    }
    
    .canva-search-subtitle-wrapper {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .canva-campaign-type-selection {
        gap: 0.5rem;
    }
    
    .canva-campaign-type-btn {
        padding: 0.875rem 1rem;
    }
    
    .canva-campaign-type-icon {
        font-size: 1.25rem;
    }
    
    .canva-campaign-type-title {
        font-size: 0.85rem;
    }
    
    .canva-campaign-type-desc {
        font-size: 0.65rem;
    }
    
    .canva-template-structure-badge {
        margin-left: 0.4rem;
        gap: 0.35rem;
        flex-wrap: wrap;
    }
    
    .canva-template-structure-label {
        font-size: 0.65rem;
    }
    
    .canva-template-structure-name {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
    
    .canva-template-remove-btn {
        width: 18px;
        height: 18px;
    }
    
    .canva-template-remove-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .canva-search-input {
        padding: 0.75rem 1.5rem 0.75rem 0.9375rem !important;
    }
}

/* =============================================
   TEMPLATE GRID SECTION
============================================= */

.templates-content-section {
    position: relative;
    z-index: 10;
    background: #1a1a1a;
    min-height: auto;
    padding: 0% 3% 0% 3%;
    margin: -8rem 3% 2rem 3%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    width: calc(100% - 6%);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Make all text white inside templates-content-section */
.templates-content-section h5 {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.templates-content-section .material-symbols-outlined {
    color: #ffffff !important;
}

.templates-content-section .template-text h6 {
    color: #ffffff !important;
}

.templates-content-section .template-text p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.templates-content-section .star-icon {
    color: #ffffff !important;
}

.template-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
    margin-top: 0 !important;
    width: 100% !important;
    justify-items: stretch !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

/* Override app.css flex display - more specific selector */
.templates-content-section .template-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    flex-wrap: nowrap !important;
}

.thumb-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    justify-items: center;
}

/* Template Cards */
.template-card {
    aspect-ratio: 1.5 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
    overflow: hidden !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: auto !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Background image overlay for better text readability */
.template-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.4) !important;
    z-index: 0;
    pointer-events: none;
    border-radius: 12px;
}

/* Badge Container - Reserved space in top-left and top-right corners */
.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

/* Badge space for top-right corner */
.template-card .badge-space {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

/* Template cards inside black container should have transparent background */
.templates-content-section .template-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    flex: none !important;
    aspect-ratio: 1.5 !important;
    overflow: hidden !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Dark overlay for templates in black container */
.templates-content-section .template-card::after {
    background: rgba(26, 26, 26, 0.5) !important;
}

.templates-content-section .template-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.templates-content-section .template-card:hover::after {
    background: rgba(26, 26, 26, 0.45) !important;
}

/* Template-specific background images */
/* Add your background images here by uncommenting and updating the URL paths */

/* Winter Template Background - More specific selector to override templates-content-section */
.templates-content-section .template-card.winter-card {
    background-image: url('/images/templates/winte-tire-snow.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ensure overlay is darker for winter card so text is readable */
.templates-content-section .template-card.winter-card::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.winter-card:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Upgrade Template Background */
.templates-content-section .template-card.upgrade-card {
    background-image: url('/images/templates/dealership-upgrade.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Ensure overlay is darker for upgrade card so text is readable */
.templates-content-section .template-card.upgrade-card::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Specific Template Backgrounds - Ordered from most specific to least specific */

/* Thinking About Going Electric? - must come before generic service-card */
.templates-content-section .template-card.service-card[data-template="ThinkingAboutGoingElectric"] {
    background-image: url('/images/templates/ev spotlight.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="ThinkingAboutGoingElectric"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="ThinkingAboutGoingElectric"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* EV Upgrade - must come before generic service-card */
.templates-content-section .template-card.service-card[data-template="EVUpgrade"] {
    background-image: url('/images/templates/ev.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="EVUpgrade"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="EVUpgrade"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Service & Parts Specials */
.templates-content-section .template-card.service-card[data-template="ServicePartsSpecials"] {
    background-image: url('/images/templates/service-parts-specail.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="ServicePartsSpecials"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="ServicePartsSpecials"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Service Reminder */
.templates-content-section .template-card.service-card[data-template="ServiceReminder"] {
    background-image: url('/images/templates/service-reminder.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="ServiceReminder"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="ServiceReminder"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Conquest EV vs Gas */
.templates-content-section .template-card.service-card[data-template="ConquestEVvsGas"] {
    background-image: url('/images/templates/conquest-ev-gas.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="ConquestEVvsGas"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="ConquestEVvsGas"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Winter Service */
.templates-content-section .template-card.service-card[data-template="WinterService"] {
    background-image: url('/images/templates/winter-service.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="WinterService"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="WinterService"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* EV vs Hybrid vs Plug-In Hybrid (PHEV) - same image as EV Spotlight */
.templates-content-section .template-card.service-card[data-template="EVvsHybridvsPHEV"] {
    background-image: url('/images/templates/ev spotlight.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="EVvsHybridvsPHEV"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="EVvsHybridvsPHEV"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Service Loyalty */
.templates-content-section .template-card.service-card[data-template="ServiceLoyalty"] {
    background-image: url('/images/templates/loyalty-upgrade.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="ServiceLoyalty"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="ServiceLoyalty"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Warranty Expiration & Protection Packages */
.templates-content-section .template-card.service-card[data-template="WarrantyExpiration"] {
    background-image: url('/images/templates/warranty.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card[data-template="WarrantyExpiration"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card[data-template="WarrantyExpiration"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Default Service Template Background (for any service-card not matched above) */
.templates-content-section .template-card.service-card {
    background-image: url('/images/templates/service-reminder.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.service-card::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.service-card:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* End-of-Year Clearance */
.templates-content-section .template-card.sale-card[data-template="EndOfYearClearance"] {
    background-image: url('/images/templates/eoy-clearance.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="EndOfYearClearance"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="EndOfYearClearance"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Holiday Sales Event */
.templates-content-section .template-card.sale-card[data-template="HolidaySalesEvent"] {
    background-image: url('/images/templates/holiday-sales-event.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="HolidaySalesEvent"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="HolidaySalesEvent"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Black Friday */
.templates-content-section .template-card.sale-card[data-template="BlackFriday"] {
    background-image: url('/images/templates/black-friday.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="BlackFriday"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="BlackFriday"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Finance Program */
.templates-content-section .template-card.sale-card[data-template="FinanceProgram"] {
    background-image: url('/images/templates/finance-program.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="FinanceProgram"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="FinanceProgram"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Subscription vs Lease vs Financing - same image as Finance Program */
.templates-content-section .template-card.sale-card[data-template="SubscriptionVsLeaseVsFinancing"] {
    background-image: url('/images/templates/finance-program.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="SubscriptionVsLeaseVsFinancing"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="SubscriptionVsLeaseVsFinancing"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Spring Sales Event */
.templates-content-section .template-card.sale-card[data-template="SpringSalesEvent"] {
    background-image: url('/images/templates/spring.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="SpringSalesEvent"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="SpringSalesEvent"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* New Year Event */
.templates-content-section .template-card.sale-card[data-template="NewYearEvent"] {
    background-image: url('/images/templates/new years.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card[data-template="NewYearEvent"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card[data-template="NewYearEvent"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Default Sale Template Background (for any sale-card not matched above) */
.templates-content-section .template-card.sale-card {
    background-image: url('/images/templates/eoy-clearance.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.sale-card::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.sale-card:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* New Model Launch */
.templates-content-section .template-card.upgrade-card[data-template="NewModelLaunch"] {
    background-image: url('/images/templates/new-model-launch.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="NewModelLaunch"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="NewModelLaunch"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Loyalty Upgrade Event */
.templates-content-section .template-card.upgrade-card[data-template="LoyaltyUpgradeEvent"] {
    background-image: url('/images/templates/loyalty-upgrade.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="LoyaltyUpgradeEvent"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="LoyaltyUpgradeEvent"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Trade-In Appraisal Event */
.templates-content-section .template-card.upgrade-card[data-template="TradeInAppraisalEvent"] {
    background-image: url('/images/templates/trade-in-event.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="TradeInAppraisalEvent"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="TradeInAppraisalEvent"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Brand Comparison */
.templates-content-section .template-card.upgrade-card[data-template="BrandComparison"] {
    background-image: url('/images/templates/brand-comparison.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="BrandComparison"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="BrandComparison"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Model-vs-Model (Same Brand) - same image as Brand Comparison */
.templates-content-section .template-card.upgrade-card[data-template="ModelVsModel"] {
    background-image: url('/images/templates/brand-comparison.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="ModelVsModel"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="ModelVsModel"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Test Drive Event */
.templates-content-section .template-card.upgrade-card[data-template="TestDriveEvent"] {
    background-image: url('/images/templates/test-drive.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="TestDriveEvent"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="TestDriveEvent"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Trim Comparison */
.templates-content-section .template-card.upgrade-card[data-template="TrimComparison"] {
    background-image: url('/images/templates/trim-compare.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.upgrade-card[data-template="TrimComparison"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.upgrade-card[data-template="TrimComparison"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Used Car Blowout Sale */
.templates-content-section .template-card.product-card[data-template="UsedCarBlowoutSale"] {
    background-image: url('/images/templates/used-car-blowout.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.product-card[data-template="UsedCarBlowoutSale"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.product-card[data-template="UsedCarBlowoutSale"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Limited Stock Alert - same image as Used Car Blowout Sale */
.templates-content-section .template-card.product-card[data-template="LimitedStockAlert"] {
    background-image: url('/images/templates/used-car-blowout.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.product-card[data-template="LimitedStockAlert"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.product-card[data-template="LimitedStockAlert"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Product Spotlight */
.templates-content-section .template-card.product-card[data-template="ProductSpotlight"] {
    background-image: url('/images/templates/product-spotlight.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.product-card[data-template="ProductSpotlight"]::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.product-card[data-template="ProductSpotlight"]:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Default Product Template Background (for any product-card not matched above) */
.templates-content-section .template-card.product-card {
    background-image: url('/images/templates/used-car-blowout.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.product-card::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.product-card:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

/* Newsflash Template Background (EV Spotlight) */
.templates-content-section .template-card.newsflash-card {
    background-image: url('/images/templates/ev.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.templates-content-section .template-card.newsflash-card::after {
    background: rgba(26, 26, 26, 0.65) !important;
}

.templates-content-section .template-card.newsflash-card:hover::after {
    background: rgba(26, 26, 26, 0.6) !important;
}

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

.template-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Row 1: Reserved space for badge and icon */
.template-content::before {
    content: '';
    height: 2.5rem;
    width: 100%;
    flex-shrink: 0;
}

/* Icon positioned in top right of first row */
.star-icon {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #1565c0;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    z-index: 10;
    pointer-events: none;
}

/* Row 2: Title */
.template-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding-right: 2.5rem; /* Space for icon */
    box-sizing: border-box;
    margin-top: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Row 3: Description */
.template-text p {
    margin-top: 0.5rem;
}

.template-card a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

/* Template Typography */
.template-text h6 {
    font-size: clamp(1.5rem, 1.5vw, 1.1rem);
    font-weight: 300;
    margin: 0;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.template-text p {
    font-size: clamp(0.75rem, 1.25vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Try Now Badge */
.try-now-badge {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: try-now-pulse 2s ease-in-out infinite;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Coming Soon Badge - Grey background version */
.sale-card .try-now-badge,
.product-card .try-now-badge {
    background: linear-gradient(135deg, #424242, #212121);
    animation: none;
}

/* Seasonal Badge - Top Left Corner Container */
.seasonal-badge {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #2196F3, #1565c0);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
    border: 1px solid rgba(33, 150, 243, 0.5);
    white-space: nowrap;
    box-sizing: border-box;
}

/* Coming Soon Badge */
.coming-soon-badge {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #424242, #212121);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: coming-soon-pulse 2s ease-in-out infinite;
    white-space: nowrap;
    pointer-events: none;
    box-sizing: border-box;
}

@keyframes try-now-pulse {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 8px rgba(46, 125, 50, 0.4);
        transform: scale(1.05);
    }
}

@keyframes coming-soon-pulse {
    0%, 100% { 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
        transform: scale(1.05);
    }
}



/* =============================================
   RECENT CAMPAIGNS SECTION
============================================= */

.recent-campaigns-wrapper {
    margin-top: 2rem;
}

/* Make recent campaigns text white */
.recent-campaigns-wrapper h5 {
    color: #ffffff !important;
}

.recent-campaigns-wrapper .material-symbols-outlined {
    color: #ffffff !important;
}

/* Make filters text white inside templates-content-section */
.templates-content-section .filters-container {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.templates-content-section .filter-label {
    color: #ffffff !important;
}

.templates-content-section .filter-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.templates-content-section .filter-input option {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.thumb-container .thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 237px;
}

.thumb-container .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-container .thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumb-container .thumb-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.thumb-container .thumb-text h6 {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    margin: 0 0 0.25rem 0;
    color: white;
}

.thumb-container .thumb-text p {
    font-size: clamp(0.6rem, 1.25vw, 0.8rem);
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.thumb-container .thumb-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* =============================================
   FILTERS SECTION
============================================= */

.filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0 20px 0;
    flex-wrap: wrap;
    max-width: 400px;
}

.filters-row select {
    padding: 4px 8px;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    height: 28px;
    line-height: 1.4;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
    width: 150px;
}

.filters-row select option {
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
}

.filters-row select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* =============================================
   STATUS BADGE STYLES
============================================= */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge i {
    font-size: 0.7rem;
}

/* Status Colors */
.status-badge[style*="background-color: #6c757d"] { /* Draft */
    background-color: #6c757d !important;
}

.status-badge[style*="background-color: #ffc107"] { /* Scheduled */
    background-color: #ffc107 !important;
}

.status-badge[style*="background-color: #1565c0"] { /* Sent */
    background-color: #1565c0 !important;
}

.status-badge[style*="background-color: #dc3545"] { /* Failed */
    background-color: #dc3545 !important;
}

/* =============================================
   LIVE INDICATOR STYLES
============================================= */

.live-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.live-indicator .pulse {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* =============================================
   FILTER COMPONENTS
============================================= */

.filter-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #1565c0;
    position: relative;
}

.filter-toggle-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.filter-toggle-btn.active {
    background: #1565c0;
    border-color: #1565c0;
    color: white;
}

.filter-badge {
    background: #c62828;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

.filters-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group-wide {
    grid-column: span 1;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.filter-input {
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    color: #495057;
    height: 38px;
    line-height: 1.4;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.25);
}

select.filter-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 35px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.filter-actions .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    justify-content: center;
}

.filter-actions .btn-primary {
    background: #1565c0;
    color: white;
}

.filter-actions .btn-primary:hover {
    background: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.filter-actions .btn-secondary {
    background: #424242;
    color: white;
}

.filter-actions .btn-secondary:hover {
    background: #212121;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 66, 66, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Responsive Overrides */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .filter-group-wide {
        grid-column: span 2;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-group-wide {
        grid-column: span 1;
    }
}

/* =============================================
   RESPONSIVE BREAKPOINTS
============================================= */

@media (max-width: 1366px) {
    .template-grid,
    .thumb-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-gradient-overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 100%);
    }

    /* Hero Banner Responsive */
    .hero-overlay-left {
        flex-direction: row;
        gap: 0.7rem;
        padding-left: 1%;
    }
    .hero-column-1 {
        flex: 0 0 26%;
        max-width: 26%;
        padding: 0 0.5rem;
    }
    .hero-column-2 {
        flex: 0 0 38%;
        max-width: 38%;
        gap: 0.3rem;
    }
    .hero-column-1 h4,
    .hero-column-2 h4 {
        font-size: 1.3rem;
    }
    .hero-column-2 h6 {
        font-size: 1.1rem;
    }
    .hero-logo {
        width: 80px;
    }
}

/* @media (max-width: 900px) {
    .template-grid,
    .thumb-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-overlay-wrapper {
        padding-top: 0.5rem;
    }
    .hero-overlay-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-left: 0;
    }
    .hero-column-1,
    .hero-column-2 {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 0 0.2rem;
        align-items: flex-start;
        text-align: left;
    }
    .hero-column-1 h4,
    .hero-column-2 h4 {
        font-size: 0.95rem;
    }
    .hero-column-2 h6 {
        font-size: 0.8rem;
    }
    .hero-logo {
        width: 60px;
    }
} */

/* @media (max-width: 576px) {
    .template-grid,
    .thumb-container {
        grid-template-columns: 1fr;
    }
} */
