/* ==========================================================================
   COMBINED SECTION: SEARCH DEMAND & INDUSTRY SHOWCASES (SPLIT LAYOUT)
   ========================================================================== */

.search-ads-industries-section {
    background: var(--bg-surface-gradient);
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .search-ads-industries-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

.search-industry-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .search-industry-split-grid {
        grid-template-columns: 1.12fr 0.88fr;
        gap: 3.5rem;
        align-items: start;
    }
}

/* Mobile & Tablet Responsive Reordering for #search-ads-industries:
   1. Badge -> 2. Title -> 3. Subtitle -> 4. 9 Industry Pills -> 5. Search Bar & Cards -> 6. Remaining Pillars & CTA */
@media (max-width: 1023px) {
    .search-industry-split-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .industry-left-col,
    .industry-right-col {
        display: contents !important;
    }

    .industry-demand-badge { order: 1 !important; margin-bottom: 0.75rem !important; }
    .industry-right-title { order: 2 !important; margin-bottom: 0.75rem !important; text-align: left !important; }
    .industry-right-sub { order: 3 !important; margin-bottom: 1.25rem !important; text-align: left !important; }
    .industry-pills-scroll-wrap { order: 4 !important; margin-bottom: 1.25rem !important; }
    .google-search-bar-wrap { order: 5 !important; margin-bottom: 1rem !important; }
    .industry-deck-wrapper { order: 6 !important; margin-bottom: 1.75rem !important; }
    .industry-pillars-list { order: 7 !important; margin-bottom: 1.5rem !important; }
    .industry-cta-row { order: 8 !important; }
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: Search Bar, Pills, 3D Ad Stack & Solution Details
   -------------------------------------------------------------------------- */

/* Google Search Bar Simulation */
.google-search-bar-wrap {
    margin-bottom: 1.25rem;
}

.google-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 9999px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
    transition: all 250ms ease;
}

.google-search-bar-inner:hover {
    box-shadow: 0 2px 10px rgba(32, 33, 36, 0.14);
    border-color: #c9ccd1;
}

.google-search-input-text {
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--ink);
    flex: 1;
    transition: opacity 200ms ease;
}

.google-search-input-text.changing {
    opacity: 0;
}

.google-search-bar-tools {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* 9 Industry Selector Pills with 10-Second Progress Bar */
.industry-pills-scroll-wrap {
    width: 100%;
    margin-bottom: 1.25rem;
}

.industry-pills-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 639px) {
    .industry-pills-scroll-wrap {
        overflow-x: visible !important;
        margin-bottom: 1rem !important;
    }
    .industry-pills-list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.4rem 0.45rem !important;
        padding-right: 0 !important;
    }
}

.industry-pill-btn {
    border: 1px solid var(--hairline);
    background-color: #ffffff;
    color: var(--soft);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: all 220ms cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.03);
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .industry-pill-btn {
        padding: 0.38rem 0.75rem;
        font-size: 11.5px;
    }
}

.industry-pill-btn:hover {
    border-color: rgba(251, 188, 5, 0.5);
    color: var(--ink);
    transform: translateY(-1px);
}

.industry-pill-btn.active {
    background-color: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
    box-shadow: 0 4px 12px -2px rgba(32, 33, 36, 0.25);
}

/* 10-second Animated Progress Bar under active pill */
.pill-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: #FBBC05;
    width: 0%;
    pointer-events: none;
    border-radius: 9999px;
}

/* Clean Industry Card Display & Faded Appear Effect (No 3D Deck, No Extra Space) */
.industry-deck-wrapper {
    position: relative;
    width: 100%;
    min-height: auto;
    margin-top: 0.5rem;
}

.industry-stacked-card {
    background-color: #ffffff !important;
    border: 1px solid rgba(32, 33, 36, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 8px 28px -6px rgba(32, 33, 36, 0.07);
    width: 100%;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    overflow: hidden;
}

@media (max-width: 639px) {
    .industry-stacked-card {
        padding: 1.15rem 1.25rem;
        border-radius: 1.15rem;
    }
}

.industry-stacked-card.is-active {
    display: block !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Faded Appear Transition Keyframes */
.industry-stacked-card.card-fade-appear {
    animation: cardFadeAppear 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeAppear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shuffleCardUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    40% {
        transform: translateY(-20px) scale(1.02);
        opacity: 0.7;
    }
    100% {
        transform: translateY(36px) scale(0.9);
        opacity: 0;
    }
}

.google-ad-sponsored-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #202124;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    font-size: 10.5px;
    font-weight: 800;
    color: #202124;
    letter-spacing: 0.06em;
    background: #ffffff;
    text-transform: uppercase;
    line-height: 1;
}

.google-ad-box {
    padding: 1.15rem 1.35rem;
    background-color: #f8f9fa;
    border-radius: 1.15rem;
    margin-top: 0.75rem;
    border: 1px solid #f1f3f4;
}

.google-ad-breadcrumb {
    font-size: 12.5px;
    color: #4d5156;
    font-family: var(--font-sans);
}

.google-ad-headline {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #1a0dab;
    line-height: 1.32;
    margin-top: 0.35rem;
    cursor: pointer;
    transition: color 180ms ease;
}

.google-ad-headline:hover {
    text-decoration: underline;
    color: #1558d6;
}

.google-ad-desc {
    font-size: 13.5px;
    color: #4d5156;
    line-height: 1.55;
    margin-top: 0.35rem;
}

.google-sitelinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #dadce0;
}

.google-sitelink-tag {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    padding: 0.35rem 0.9rem;
    font-size: 12px;
    font-weight: 700;
    color: #1a0dab;
    transition: all 180ms ease;
}

.google-sitelink-tag:hover {
    background-color: #f1f3f4;
    border-color: #1a0dab;
}

.industry-conversion-pill {
    color: #0b8043;
    background: #e6f4ea;
    border: 1px solid #ceebd6;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    font-weight: 600;
    padding: 0.45rem 1rem;
    margin-top: 0.85rem;
}

/* --------------------------------------------------------------------------
   DYNAMIC INDUSTRY SOLUTION CARD (BELOW THE AD CARD)
   -------------------------------------------------------------------------- */
.industry-solution-detail-card {
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--hairline);
    border-radius: 1.5rem;
    padding: 1.75rem 1.85rem;
    box-shadow: 0 4px 20px -4px rgba(32, 33, 36, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 300ms cubic-bezier(0.2, 0, 0, 1);
}

.industry-solution-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FBBC05, #4285F4, #34A853);
}

.solution-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.solution-category-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    background: rgba(251, 188, 5, 0.2);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.solution-main-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.solution-main-desc {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--soft);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.solution-strategy-pills {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.strategy-pill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
    background: #f8f9fb;
    border: 1px solid var(--hairline);
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
}

.strategy-pill-item span.icon {
    color: #34A853;
    font-weight: bold;
    flex-shrink: 0;
}

.solution-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-plan-industry {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    background: var(--ink);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms ease;
}

.btn-plan-industry:hover {
    background: #000000;
    box-shadow: 0 4px 14px rgba(32, 33, 36, 0.25);
    color: #FBBC05;
}

.solution-quick-trust {
    font-size: 11.5px;
    color: var(--soft);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: Dynamic Header & 4 Industry Value Pillars
   -------------------------------------------------------------------------- */
.industry-right-col {
    position: relative;
    transition: opacity 250ms ease, transform 250ms ease;
}

.industry-right-col.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.industry-right-col.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.industry-demand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--hairline);
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.04);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.industry-right-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.15rem;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

@media (min-width: 640px) {
    .industry-right-title {
        font-size: 2.75rem;
    }
}

.industry-right-sub {
    color: var(--soft);
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* 4 Dynamic Value Pillars */
.industry-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.value-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: 1.25rem;
    background-color: #ffffff;
    border: 1px solid var(--hairline);
    transition: transform 250ms var(--ease-out), border-color 250ms ease, box-shadow 250ms ease;
    box-shadow: 0 2px 8px -2px rgba(32, 33, 36, 0.03);
}

.value-pillar-item:hover {
    border-color: rgba(251, 188, 5, 0.45);
    box-shadow: 0 8px 24px -6px rgba(32, 33, 36, 0.08);
    transform: translateX(4px);
}

.pillar-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.pillar-title {
    font-family: var(--font-display);
    font-semibold: 700;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.3;
}

.pillar-desc {
    color: var(--soft);
    font-size: 13.5px;
    margin-top: 0.2rem;
    line-height: 1.5;
}

.industry-cta-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .industry-cta-row {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 1023px) {
    .search-ads-industries-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .industry-deck-wrapper {
        min-height: auto;
        position: relative;
    }

    .industry-stacked-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        padding: 1.25rem 1rem;
        border-radius: 1.25rem;
        box-shadow: 0 4px 16px -4px rgba(32, 33, 36, 0.06);
    }

    .industry-stacked-card[aria-hidden="true"] {
        display: none !important;
    }

    .industry-pills-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 6px;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .industry-pills-list::-webkit-scrollbar {
        display: none;
    }

    .industry-pill-btn {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 11.5px;
        padding: 0.35rem 0.75rem;
    }

    .google-search-mock-bar {
        padding: 0.45rem 0.75rem;
    }

    .google-search-input-text {
        font-size: 12px;
        max-width: 78vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .google-ad-box {
        padding: 0.85rem;
    }

    .google-ad-headline {
        font-size: 15px;
    }

    .google-ad-desc {
        font-size: 12.5px;
    }

    .value-pillar-item {
        padding: 0.85rem 1rem;
        border-radius: 1rem;
    }

    .industry-solution-detail-card {
        padding: 1.25rem 1rem;
        border-radius: 1.25rem;
    }

    .industry-cta-row .btn-industry-primary,
    .industry-cta-row .btn-industry-wa {
        width: 100%;
        justify-content: center;
    }
}

/* Authentic Google Search Ads Elements */
.google-rating-snippet {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #4d5156;
    margin-top: 4px;
}
.google-stars {
    color: #e37400;
    font-size: 13px;
    letter-spacing: 1px;
}
.google-callout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.google-callout-chip {
    font-size: 11.5px;
    color: #4d5156;
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e8eaed;
}
.google-ad-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
    font-size: 12.5px;
}
.google-phone-btn {
    color: #1a0dab;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.google-location-tag {
    color: #5f6368;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
