/* ==========================================================================
   Hero + blog section refinement
   Loaded after the page stylesheets. Visual styling only: no content,
   images or links are changed. Animations use transform/opacity only.
   ========================================================================== */

:root {
    --hb-red: #bc2125;
    --hb-red-dark: #9a1a1d;
    --hb-red-soft: #fdf0f0;
    --hb-ink: #111827;
    --hb-body: #4b5563;
    --hb-muted: #6b7280;
    --hb-line: rgba(17, 24, 39, .08);
    --hb-radius: 18px;
    --hb-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   1. HERO — main service template (.seo-company-india-section)
   ========================================================================== */
body .seo-company-india-section {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 110px);
    min-height: calc(100svh - 110px);
    padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 4vw, 56px);
    background:
        radial-gradient(60% 70% at 100% 0%, rgba(188, 33, 37, .07) 0%, rgba(188, 33, 37, 0) 60%),
        radial-gradient(45% 60% at 0% 100%, rgba(188, 33, 37, .05) 0%, rgba(188, 33, 37, 0) 60%),
        linear-gradient(180deg, #fff 0%, #fcfbfb 100%);
}

/* Faint dot grid for depth */
body .seo-company-india-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(17, 24, 39, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(70% 70% at 30% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(70% 70% at 30% 40%, #000 0%, transparent 75%);
    pointer-events: none;
}

body .seo-company-india-section > .container > .row {
    --bs-gutter-x: clamp(1.5rem, 4vw, 4rem);
}

body .seo-company-india-trust-badge {
    gap: 8px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(188, 33, 37, .16);
    background: linear-gradient(180deg, #fff, var(--hb-red-soft));
    box-shadow: 0 6px 16px -10px rgba(188, 33, 37, .5);
    font-size: .78rem;
    letter-spacing: .02em;
}

body .seo-company-india-headline {
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin-bottom: 20px;
    color: var(--hb-ink);
}

body .seo-company-india-body-text {
    max-width: 540px;
    margin-bottom: 30px;
    color: var(--hb-body);
    font-size: 1rem;
    line-height: 1.75;
}

/* Form: inputs + arrow grouped in one premium capsule on wider screens */
@media (min-width: 768px) {
    body .seo-company-india-form-wrap {
        padding: 8px;
        gap: 8px !important;
        border: 1px solid var(--hb-line);
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 18px 40px -22px rgba(17, 24, 39, .35), 0 2px 6px rgba(17, 24, 39, .04);
        transition: box-shadow .25s ease, border-color .25s ease;
    }

    body .seo-company-india-form-wrap:focus-within {
        border-color: rgba(188, 33, 37, .35);
        box-shadow: 0 18px 40px -22px rgba(188, 33, 37, .45), 0 0 0 4px rgba(188, 33, 37, .08);
    }

    body .seo-company-india-form-wrap .seo-company-india-input {
        border-color: transparent;
        background: #f7f7f8;
        height: 48px;
    }

    body .seo-company-india-form-wrap .seo-company-india-input:focus {
        background: #fff;
        border-color: rgba(188, 33, 37, .45);
        box-shadow: none;
    }
}

body .seo-company-india-input {
    font-weight: 500;
}

body .seo-company-india-submit-arrow {
    width: 52px;
    height: 48px;
    min-width: 52px;
    background: linear-gradient(135deg, #d0262b 0%, var(--hb-red) 55%, var(--hb-red-dark) 100%);
    box-shadow: 0 10px 22px -10px rgba(188, 33, 37, .7);
    transition: transform .2s var(--hb-ease), box-shadow .2s ease, filter .2s ease;
}

body .seo-company-india-submit-arrow:hover {
    transform: translateX(2px) scale(1.04);
    filter: brightness(1.05);
    box-shadow: 0 14px 26px -10px rgba(188, 33, 37, .8);
}

body .seo-company-india-submit-arrow svg {
    transition: transform .2s var(--hb-ease);
}

body .seo-company-india-submit-arrow:hover svg {
    transform: translateX(2px);
}

/* Stats */
body .seo-company-india-stats-row {
    gap: clamp(24px, 4vw, 48px);
    margin-top: 36px;
    padding-top: 28px;
    border-top-color: var(--hb-line);
}

body .seo-company-india-stat-num {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--hb-ink);
}

body .seo-company-india-stat-label {
    margin-top: 6px;
    color: var(--hb-muted);
    letter-spacing: .06em;
}

/* Image column depth (entrance below is transform-only so LCP is not delayed) */
body .seo-company-india-image-col img {
    filter: drop-shadow(0 30px 40px rgba(17, 24, 39, .14));
}

@media (prefers-reduced-motion: no-preference) {
    body .seo-company-india-content-col > * {
        animation: hb-rise .7s var(--hb-ease) both;
    }

    body .seo-company-india-content-col > *:nth-child(2) { animation-delay: .06s; }
    body .seo-company-india-content-col > *:nth-child(3) { animation-delay: .12s; }
    body .seo-company-india-content-col > *:nth-child(4) { animation-delay: .18s; }
    body .seo-company-india-content-col > *:nth-child(5) { animation-delay: .24s; }

    body .seo-company-india-image-col {
        animation: hb-fade .9s var(--hb-ease) .1s both;
    }
}

@keyframes hb-rise {
    from { transform: translateY(12px); }
    to { transform: none; }
}

@keyframes hb-fade {
    from { transform: scale(.985); }
    to { transform: none; }
}

@media (max-width: 991px) {
    body .seo-company-india-section {
        min-height: auto;
        padding: 40px 0 36px;
    }

    body .seo-company-india-content-col {
        text-align: left;
    }
}

@media (max-width: 767px) {
    body .seo-company-india-section {
        padding: 28px 0 28px;
    }

    body .seo-company-india-section::before {
        background-size: 18px 18px;
    }

    body .seo-company-india-headline {
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        line-height: 1.18;
    }

    body .seo-company-india-body-text {
        font-size: .92rem;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    body .seo-company-india-input {
        height: 50px;
    }

    body .seo-company-india-submit-arrow {
        width: 100% !important;
        height: 50px;
    }

    body .seo-company-india-stat-num {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   2. HERO — other page banners (typography + buttons only)
   ========================================================================== */
body :is(.service-page-banner, .inner-banner, .jbseo-hero, .legal-hero) h1 {
    letter-spacing: -.02em;
    line-height: 1.15;
    text-wrap: balance;
}

body :is(.service-page-banner, .inner-banner, .jbseo-hero, .legal-hero, .banner) p {
    line-height: 1.75;
}

body .banner .subfrm {
    border-radius: 999px;
}

body .banner .btnfs {
    transition: transform .2s var(--hb-ease), box-shadow .2s ease, filter .2s ease;
}

body .banner .btnfs:hover {
    transform: translateX(2px) scale(1.04);
    box-shadow: 0 12px 24px -10px rgba(188, 33, 37, .7);
}

/* ==========================================================================
   3. BLOG — WordPress-fed cards (#post-slider slider, #blog-posts-container grid)
   ========================================================================== */
body :is(#post-slider, #blog-posts-container) .blog-card {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--hb-line);
    border-radius: var(--hb-radius);
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 30px -18px rgba(17, 24, 39, .22);
    transform: none;
    transition: transform .35s var(--hb-ease), box-shadow .35s ease, border-color .35s ease;
}

/* Equal-height cards inside the slider */
body #post-slider {
    align-items: stretch;
    padding: 6px 2px 26px;
}

body #post-slider > .blog-card.swiper-slide {
    height: auto;
}

body #blog-posts-container > [class*="col"] {
    display: flex;
    margin-bottom: 24px;
}

body #blog-posts-container > [class*="col"] > .blog-card {
    width: 100%;
}

@media (hover: hover) {
    body :is(#post-slider, #blog-posts-container) .blog-card:hover {
        transform: translateY(-6px);
        border-color: rgba(188, 33, 37, .18);
        box-shadow: 0 2px 4px rgba(17, 24, 39, .04), 0 24px 44px -20px rgba(17, 24, 39, .32);
    }
}

/* Image: fixed 16:9 frame so every card lines up */
body :is(#post-slider, #blog-posts-container) .blog-card .blog-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f6f6f7, #eeeef0);
}

body :is(#post-slider, #blog-posts-container) .blog-card .blog-img > a {
    display: block;
    width: 100%;
    height: 100%;
}

body :is(#post-slider, #blog-posts-container) .blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .6s var(--hb-ease);
}

@media (hover: hover) {
    body :is(#post-slider, #blog-posts-container) .blog-card:hover .blog-img img {
        transform: scale(1.05);
    }
}

/* Date chip */
body :is(#post-slider, #blog-posts-container) .blog-card .blog-img .blog-tag {
    top: 14px;
    left: 14px;
    right: auto;
    bottom: auto;
    min-width: 54px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px -10px rgba(17, 24, 39, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

body :is(#post-slider, #blog-posts-container) .blog-card .blog-img .blog-tag h3 {
    margin: 0;
    color: var(--hb-red);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

body :is(#post-slider, #blog-posts-container) .blog-card .blog-img .blog-tag span {
    display: block;
    margin-top: 3px;
    color: var(--hb-ink);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Body */
body :is(#post-slider, #blog-posts-container) .blog-card .content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    padding: 20px 22px 22px;
}

body :is(#post-slider, #blog-posts-container) .blog-card .content > * {
    margin-top: 0;
    margin-bottom: 0;
}

body :is(#post-slider, #blog-posts-container) .blog-card .content ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    order: -1;
}

body :is(#post-slider, #blog-posts-container) .blog-card .content ul li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--hb-muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
}

body :is(#post-slider, #blog-posts-container) .blog-card .content ul li a {
    color: inherit;
}

body :is(#post-slider, #blog-posts-container) .blog-card .content ul li i {
    top: 0;
    margin: 0;
    color: var(--hb-red);
    font-size: 15px;
}

body :is(#post-slider, #blog-posts-container) .blog-card .blog-title,
body :is(#post-slider, #blog-posts-container) .blog-card .content h3 {
    margin: 0;
    color: var(--hb-ink);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.005em;
    transition: color .2s ease;
}

body :is(#post-slider, #blog-posts-container) .blog-card .content h3 a {
    color: inherit;
}

body :is(#post-slider, #blog-posts-container) .blog-card:hover .blog-title,
body :is(#post-slider, #blog-posts-container) .blog-card:hover .content h3 a {
    color: var(--hb-red);
}

body :is(#post-slider, #blog-posts-container) .blog-card .content p {
    margin: 0;
    color: var(--hb-body);
    font-size: .9rem;
    line-height: 1.65;
}

/* WordPress excerpts arrive wrapped in their own <p>; hide the empty wrappers */
body :is(#post-slider, #blog-posts-container) .blog-card .content p:empty {
    display: none;
}

/* Read More button — sits at the bottom of every card */
body .blog-card .blog-read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto !important;
    padding: 10px 18px;
    border: 1.5px solid rgba(188, 33, 37, .25);
    border-radius: 999px;
    background: var(--hb-red-soft);
    color: var(--hb-red) !important;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s var(--hb-ease);
}

body .blog-card .content .blog-read-more {
    margin-top: auto !important;
}

body .blog-card .blog-read-more svg {
    transition: transform .25s var(--hb-ease);
}

body .blog-card .blog-read-more:hover,
body .blog-card .blog-read-more:focus-visible {
    background: var(--hb-red);
    border-color: var(--hb-red);
    color: #fff !important;
    box-shadow: 0 10px 20px -10px rgba(188, 33, 37, .7);
    outline: none;
}

body .blog-card .blog-read-more:hover svg,
body .blog-card .blog-read-more:focus-visible svg {
    transform: translateX(3px);
}

/* Slider arrows */
body .myPostSlider {
    padding-left: 4px;
    padding-right: 4px;
}

body .myPostSlider .swiper-button-next,
body .myPostSlider .swiper-button-prev {
    width: 44px;
    height: 44px;
    margin-top: -36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--hb-line);
    box-shadow: 0 10px 24px -12px rgba(17, 24, 39, .4);
    color: var(--hb-ink);
    transition: background-color .2s ease, color .2s ease, transform .2s var(--hb-ease);
}

body .myPostSlider .swiper-button-next::after,
body .myPostSlider .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
    color: inherit;
}

body .myPostSlider .swiper-button-next:hover,
body .myPostSlider .swiper-button-prev:hover {
    background: var(--hb-red);
    border-color: var(--hb-red);
    color: #fff;
}

@media (max-width: 767px) {
    body :is(#post-slider, #blog-posts-container) .blog-card .content {
        padding: 18px 18px 20px;
    }

    body :is(#post-slider, #blog-posts-container) .blog-card .blog-title,
    body :is(#post-slider, #blog-posts-container) .blog-card .content h3 {
        font-size: 1.02rem;
    }

    body .myPostSlider .swiper-button-next,
    body .myPostSlider .swiper-button-prev {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .seo-company-india-content-col > *,
    body .seo-company-india-image-col {
        animation: none !important;
    }

    body :is(#post-slider, #blog-posts-container) .blog-card,
    body :is(#post-slider, #blog-posts-container) .blog-card .blog-img img,
    body .blog-card .blog-read-more {
        transition: none;
    }
}
