/* ==========================================================================
   SECTION 1: WHY GOOGLE ADS — Compact Spacing, Modal Pop-Zoom & Google Glow
   ========================================================================== */

.why-google-ads-section {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
    border: none !important;
    overflow: visible;
}

@media (min-width: 640px) {
    .why-google-ads-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.why-section-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .why-section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Header */
.why-header {
    text-align: center;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

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

.why-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.why-subhead {
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--soft);
    margin: 0;
}

/* Swiper Container & Wrapper: Must be overflow visible */
.rd-swiper-why,
.rd-swiper-why .swiper-wrapper,
.why-cards-grid {
    overflow: visible !important;
}

.rd-card-slide {
    overflow: visible !important;
    position: relative;
    z-index: 1;
    transition: z-index 0ms;
}

/* Elevate the hovered slide wrapper */
.rd-card-slide:hover {
    z-index: 99999 !important;
}

/* Base Card Style */
.why-card {
    background: linear-gradient(180deg, #ffffff 0%, rgba(248, 249, 251, 0.7) 100%);
    border: 1.5px solid var(--card-tint-border, rgba(32, 33, 36, 0.1));
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: 0 6px 20px -4px rgba(32, 33, 36, 0.05);
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 260ms ease,
                background 300ms ease;
    transform-origin: center center;
    will-change: transform, box-shadow;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, #4285f4);
    border-radius: 24px 24px 0 0;
    opacity: 0.85;
    transition: opacity 250ms ease, height 250ms ease;
}

.why-card:hover::before {
    opacity: 1;
    height: 5px;
}

/* ==========================================================================
   POP ZOOM OUT MODAL EFFECT ON HOVER:
   - Zooms smoothly directly over side cards without displacing them
   - Dynamic multi-color Google glow (cycling blue, red, yellow, green)
   ========================================================================== */
.rd-card-slide:hover .why-card,
.why-card:hover {
    transform: scale(1.15) translateY(-8px);
    background: #ffffff;
    border-color: transparent;
    animation: google-multicolor-glow 2.4s linear infinite;
    box-shadow:
        0 28px 65px -12px rgba(66, 133, 244, 0.35),
        0 0 0 2px rgba(66, 133, 244, 0.45),
        0 0 35px rgba(66, 133, 244, 0.18);
}

@keyframes google-multicolor-glow {
    0%   { box-shadow: 0 28px 65px -12px rgba(66,133,244,0.35), 0 0 0 2.5px rgba(66,133,244,0.5), 0 0 36px rgba(66,133,244,0.2); }
    25%  { box-shadow: 0 28px 65px -12px rgba(234,67,53,0.35),  0 0 0 2.5px rgba(234,67,53,0.5),  0 0 36px rgba(234,67,53,0.2); }
    50%  { box-shadow: 0 28px 65px -12px rgba(251,188,5,0.35),  0 0 0 2.5px rgba(251,188,5,0.5),  0 0 36px rgba(251,188,5,0.2); }
    75%  { box-shadow: 0 28px 65px -12px rgba(52,168,83,0.35),  0 0 0 2.5px rgba(52,168,83,0.5),  0 0 36px rgba(52,168,83,0.2); }
    100% { box-shadow: 0 28px 65px -12px rgba(66,133,244,0.35), 0 0 0 2.5px rgba(66,133,244,0.5), 0 0 36px rgba(66,133,244,0.2); }
}

/* Card Top Row */
.why-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.why-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--card-tint, #e8f0fe);
    border: 1px solid var(--card-tint-border, rgba(66, 133, 244, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-accent, #4285f4);
    flex-shrink: 0;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
    box-shadow: 0 2px 6px rgba(32, 33, 36, 0.04);
}

.rd-card-slide:hover .why-icon-badge {
    transform: scale(1.18) rotate(-6deg);
    box-shadow: 0 8px 20px -4px var(--card-glow, rgba(66, 133, 244, 0.35));
}

.why-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-tag-mini {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--card-tint, #e8f0fe);
    color: var(--card-accent, #4285f4);
    border: 1px solid var(--card-tint-border, rgba(66, 133, 244, 0.2));
}

.why-card-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--card-accent, #4285f4);
}

/* Card Body */
.why-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.32rem;
    color: var(--ink);
    line-height: 1.28;
    margin: 0;
}

.why-card-desc {
    color: var(--soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: 0.6rem;
    margin-bottom: 1.25rem;
}

/* Card bottom widget */
.why-card-preview-box {
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8f9fb;
    border: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background-color 240ms ease, border-color 240ms ease;
}

.rd-card-slide:hover .why-card-preview-box {
    background: #ffffff;
    border-color: var(--card-tint-border, rgba(66, 133, 244, 0.35));
}

.preview-pill-left {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

.preview-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-accent, #4285f4);
    animation: pulse-badge 2s infinite ease-in-out;
}

.preview-pill-metric {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--card-accent, #4285f4);
    background: var(--card-tint, #e8f0fe);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.why-card-ad-chips {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.65rem;
}

.ad-chip-item {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    color: #3c4043;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: all 180ms ease;
}

.why-card:hover .ad-chip-item {
    border-color: var(--card-accent, #4285f4);
    color: var(--card-accent, #4285f4);
    background: var(--card-tint, #e8f0fe);
}

/* Card Themes */
.card-theme-blue {
    --card-accent: #4285f4;
    --card-tint: #e8f0fe;
    --card-tint-border: rgba(66, 133, 244, 0.22);
    --card-glow: rgba(66, 133, 244, 0.28);
}
.card-theme-red {
    --card-accent: #ea4335;
    --card-tint: #fce8e6;
    --card-tint-border: rgba(234, 67, 53, 0.22);
    --card-glow: rgba(234, 67, 53, 0.28);
}
.card-theme-yellow {
    --card-accent: #fbbc05;
    --card-tint: #fef7e0;
    --card-tint-border: rgba(251, 188, 5, 0.3);
    --card-glow: rgba(251, 188, 5, 0.3);
}
.card-theme-green {
    --card-accent: #34a853;
    --card-tint: #e6f4ea;
    --card-tint-border: rgba(52, 168, 83, 0.22);
    --card-glow: rgba(52, 168, 83, 0.28);
}

/* ---- Comparison Banner ---- */
.why-comparison-banner {
    margin-top: 1.75rem;
    background: #ffffff;
    border: 1px solid var(--hairline);
    border-radius: 1.5rem;
    padding: 1.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 16px rgba(32, 33, 36, 0.04);
}

@media (min-width: 900px) {
    .why-comparison-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.comparison-left-col { max-width: 32rem; }

.comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.comparison-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0;
}

.comparison-desc {
    color: var(--soft);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0.35rem;
}

.comparison-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pill-compare-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--hairline);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.04);
}

.pill-compare-item.active-search {
    background: #e8f0fe;
    border-color: rgba(66, 133, 244, 0.25);
    color: #1a73e8;
}

.btn-why-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(32, 33, 36, 0.15);
}

.btn-why-cta:hover {
    background: #fbbc05;
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 188, 5, 0.3);
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
}

/* ==========================================================================
   WHY GOOGLE ADS DEEP-DIVE MODAL & EXPANDED CARD EFFECTS
   ========================================================================== */

/* Card hover hint badge */
.why-card-hover-hint {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--card-accent, #4285f4);
    opacity: 0.85;
    transition: opacity 180ms ease, transform 180ms ease;
}

.why-card:hover .why-card-hover-hint {
    opacity: 1;
    transform: translateX(2px);
}

/* Modal Overlay */
.why-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), visibility 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.why-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.why-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 21, 24, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

/* Modal Card with Google Glow */
.why-modal-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 660px;
    max-height: calc(100vh - 3.5rem);
    background: #ffffff;
    border-radius: 28px;
    padding: 2.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.92) translateY(24px);
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
    animation: google-modal-glow 2.8s linear infinite;
}

.why-modal-overlay.is-active .why-modal-card {
    transform: scale(1) translateY(0);
}

@keyframes google-modal-glow {
    0%   { box-shadow: 0 32px 80px -15px rgba(66,133,244,0.42), 0 0 0 2.5px rgba(66,133,244,0.55), 0 0 45px rgba(66,133,244,0.22); }
    25%  { box-shadow: 0 32px 80px -15px rgba(234,67,53,0.42),  0 0 0 2.5px rgba(234,67,53,0.55),  0 0 45px rgba(234,67,53,0.22); }
    50%  { box-shadow: 0 32px 80px -15px rgba(251,188,5,0.42),  0 0 0 2.5px rgba(251,188,5,0.55),  0 0 45px rgba(251,188,5,0.22); }
    75%  { box-shadow: 0 32px 80px -15px rgba(52,168,83,0.42),  0 0 0 2.5px rgba(52,168,83,0.55),  0 0 45px rgba(52,168,83,0.22); }
    100% { box-shadow: 0 32px 80px -15px rgba(66,133,244,0.42), 0 0 0 2.5px rgba(66,133,244,0.55), 0 0 45px rgba(66,133,244,0.22); }
}

.why-modal-scrollable {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 0.25rem;
}

.why-modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f4;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    z-index: 20;
    transition: background-color 180ms ease, transform 150ms ease;
}

.why-modal-close-btn:hover {
    background: #e8eaed;
    transform: rotate(90deg);
}

.why-modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
}

.why-modal-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0;
}

.why-modal-overview {
    font-size: 15px;
    line-height: 1.62;
    color: var(--soft);
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.why-modal-section-heading {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-modal-section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hairline);
}

/* Strategic Pillars List in Modal */
.why-modal-pillars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.why-pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.9rem 1.15rem;
    border-radius: 14px;
    background: #f8f9fb;
    border: 1px solid var(--hairline);
    transition: border-color 180ms ease, background-color 180ms ease;
}

.why-pillar-card:hover {
    background: #ffffff;
    border-color: var(--card-tint-border, rgba(66, 133, 244, 0.3));
}

.why-pillar-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--card-tint, #e8f0fe);
    color: var(--card-accent, #4285f4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.why-pillar-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.why-pillar-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--soft);
    margin: 0;
}

/* Metrics Grid in Modal */
.why-modal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.why-modal-metric-box {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: var(--card-tint, #e8f0fe);
    border: 1px solid var(--card-tint-border, rgba(66, 133, 244, 0.2));
    text-align: center;
}

.why-modal-metric-val {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--card-accent, #4285f4);
    white-space: nowrap;
}

.why-modal-metric-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Modal Footer */
.why-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hairline);
}

.btn-why-modal-cta {
    flex: 1 1 200px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: #ffffff;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 180ms ease, transform 150ms ease, box-shadow 180ms ease;
    box-shadow: 0 4px 14px rgba(32, 33, 36, 0.15);
}

.btn-why-modal-cta:hover {
    background: var(--g-yellow);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(251, 188, 5, 0.35);
}

.btn-why-modal-secondary {
    height: 44px;
    padding: 0 1.25rem;
    border-radius: 12px;
    background: #f1f3f4;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 180ms ease;
}

.btn-why-modal-secondary:hover {
    background: #e8eaed;
}

@media (max-width: 640px) {
    .why-modal-card {
        padding: 1.5rem;
        border-radius: 22px;
    }
    .why-modal-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
