/* ==========================================================================
   Real Adson — CMS components
   Purani style.css ke tokens (--primary, --accent, --radius) hi use hote hain,
   taki naye pages bilkul same theme me dikhein.
   ========================================================================== */

/* ---------------------------------------------------------------- nav dropdown */
.nav__item { position: relative; }

.nav__caret {
    font-size: .7em;
    margin-left: 4px;
    opacity: .7;
    transition: transform var(--tr);
}

.nav__item.has-dropdown:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 232px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(13, 17, 23, .14);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--tr);
    z-index: 60;
}

.nav__item.has-dropdown:hover .nav__dropdown,
.nav__item.has-dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: background var(--tr), color var(--tr);
}

.nav__dropdown a:hover { background: var(--bg-alt); color: var(--primary); }

.nav__link.is-active { color: var(--primary); }

@media (max-width: 992px) {
    .nav__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 14px;
        min-width: 0;
    }
    .nav__caret { display: none; }
}

/* ---------------------------------------------------------------- flash + preview */
.site-flash {
    max-width: 1180px;
    margin: 14px auto 0;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: .93rem;
    font-weight: 500;
    border: 1px solid;
}
.site-flash--success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.site-flash--error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

.preview-bar {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: .9rem;
    font-weight: 600;
}
.preview-bar a { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------- CMS page */
.cms-hero {
    background: linear-gradient(120deg, var(--primary-dk), var(--purple));
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 96px 0 72px;
}
.cms-hero__title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    line-height: 1.1;
    margin: 12px 0 0;
}
.cms-hero__sub { margin-top: 14px; max-width: 640px; font-size: 1.06rem; opacity: .9; }

.cms-crumbs { font-size: .84rem; opacity: .82; display: flex; gap: 8px; flex-wrap: wrap; }
.cms-crumbs a { color: inherit; text-decoration: none; }
.cms-crumbs a:hover { text-decoration: underline; }

.cms-body { padding: 64px 0 24px; }

.cms-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.04rem;
    line-height: 1.78;
    color: #253041;
}
.cms-content h2 { font-family: var(--font-head); font-size: 1.85rem; margin: 40px 0 14px; color: var(--text); }
.cms-content h3 { font-size: 1.32rem; margin: 30px 0 10px; color: var(--text); }
.cms-content p  { margin: 0 0 18px; }
.cms-content ul, .cms-content ol { margin: 0 0 20px; padding-left: 22px; }
.cms-content li { margin-bottom: 9px; }
.cms-content a  { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cms-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 22px 0; }
.cms-content blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.cms-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.cms-content th, .cms-content td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.cms-content th { background: var(--bg-alt); font-weight: 700; }

/* ---------------------------------------------------------------- CTA strip */
.cms-cta { padding: 30px 0 78px; }
.cms-cta__inner {
    background: linear-gradient(120deg, var(--primary), var(--purple));
    color: #fff;
    border-radius: 26px;
    padding: 40px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: var(--csh);
}
.cms-cta__inner h2 { font-family: var(--font-head); font-size: 1.7rem; margin: 0 0 8px; }
.cms-cta__inner p  { margin: 0; opacity: .9; max-width: 520px; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .96rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 107, 0, .35); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------- blog */
.blog-hero {
    background: linear-gradient(120deg, var(--primary-dk), var(--purple));
    color: #fff;
    padding: 92px 0 64px;
    text-align: center;
}
.blog-hero__eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
}
.blog-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 4.2vw, 3rem); margin: 16px 0 10px; }
.blog-hero p  { opacity: .9; max-width: 620px; margin: 0 auto; }

.blog-search { display: flex; gap: 8px; max-width: 460px; margin: 26px auto 0; }
.blog-search input {
    flex: 1;
    padding: 13px 18px;
    border-radius: 999px;
    border: 0;
    font-family: inherit;
    font-size: .95rem;
}
.blog-search button {
    padding: 13px 24px;
    border-radius: 999px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.blog-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 34px auto 0; }
.blog-cat {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tr);
}
.blog-cat span { opacity: .55; margin-left: 4px; }
.blog-cat:hover, .blog-cat.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

.blog-list { padding: 46px 0 80px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--cs);
    display: flex;
    flex-direction: column;
    transition: transform var(--tr), box-shadow var(--tr);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--csh); }
.blog-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
    overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__ph {
    display: grid;
    place-items: center;
    height: 100%;
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--primary);
    background: linear-gradient(135deg, #E8EFFF, #F6F0FF);
}
.blog-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__cat {
    align-self: flex-start;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}
.blog-card h2 { font-size: 1.18rem; line-height: 1.35; margin: 0; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--primary); }
.blog-card p { color: var(--text-muted); font-size: .93rem; margin: 0; flex: 1; }
.blog-card__meta {
    display: flex;
    gap: 14px;
    font-size: .8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* post */
.post__head { background: var(--bg-alt); padding: 70px 0 40px; }
.post__cat {
    display: inline-block;
    margin: 14px 0 6px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}
.post__head h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.8vw, 2.8rem); margin: 6px 0 14px; max-width: 860px; }
.post__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--text-muted); }
.post__cover { margin-top: -26px; }
.post__cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--csh); display: block; }
.post__wrap { padding: 46px 0 60px; }
.post__share {
    max-width: 820px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.post__share span { font-weight: 700; color: var(--text-muted); font-size: .88rem; }
.post__share a {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.post__share a:hover { border-color: var(--primary); color: var(--primary); }
.related__title { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 24px; }

/* ---------------------------------------------------------------- empty / 404 */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.empty-state h3 { font-size: 1.3rem; margin: 0 0 8px; }
.empty-state p { color: var(--text-muted); margin: 0 0 20px; }

.err-hero { padding: 110px 0 120px; text-align: center; }
.err-hero__inner { max-width: 620px; margin: 0 auto; }
.err-code {
    font-family: var(--font-head);
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    margin: 0;
    background: linear-gradient(120deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.err-hero h1 { font-family: var(--font-head); font-size: 1.8rem; margin: 10px 0 12px; }
.err-sub { color: var(--text-muted); margin-bottom: 28px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-actions .btn--ghost { color: var(--primary); }
.err-links { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.err-links a {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: .88rem;
    text-decoration: none;
}
.err-links a:hover { background: var(--primary); color: #fff; }

.ty-check {
    width: 76px; height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 2.2rem;
    color: #fff;
    background: linear-gradient(135deg, #16A34A, #22C55E);
    box-shadow: 0 14px 34px rgba(22, 163, 74, .32);
}

/* ---------------------------------------------------------------- pager */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a {
    min-width: 42px;
    padding: 10px 14px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager a.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager__gap { align-self: center; color: var(--text-muted); }

/* ---------------------------------------------------------------- whatsapp float */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
    z-index: 90;
    transition: transform var(--tr);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------------------------------------------------------------- form states */
.form-msg {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 500;
}
.form-msg--ok  { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-msg--err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.is-invalid { border-color: #EF4444 !important; }
.footer__nl-msg { font-size: .84rem; margin-top: 8px; opacity: .9; }

button[disabled], .is-sending { opacity: .65; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   STICKY TOPBAR + HEADER — scroll par gap nahi aayega
   Pehle topper-bar normal flow me tha aur header `top:52px` par fixed tha,
   isliye scroll karte hi 52px ka khaali gap dikhta tha.
   Ab topper bhi fixed hai; scroll par wo upar slide hota hai aur header
   theek usi waqt uski jagah le leta hai — dono ek saath, seamless.
   ========================================================================== */

body.has-topbar {
    padding-top: 52px;                 /* wahi 52px jo topper flow me leta tha */
}

.topper-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(0);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

body.is-scrolled .topper-bar {
    transform: translateY(-100%);
}

.header {
    top: 52px;
    transition: top .35s cubic-bezier(.4, 0, .2, 1),
                background .3s ease,
                box-shadow .3s ease;
}

body.is-scrolled .header {
    top: 0;
}

@media (max-width: 768px) {
    /* mobile par topper hidden hai, to uski jagah bhi nahi chhodni */
    body.has-topbar { padding-top: 0; }
    .header,
    body.is-scrolled .header { top: 0; }
}

/* ==========================================================================
   TOPBAR — social icons ab left side me, behtar animation ke saath
   ========================================================================== */

.topper-social {
    order: -1;                          /* left side */
    gap: 9px;
}

.topper-contact {
    order: 1;                           /* ab right side */
}

/* staggered entrance — page load par ek-ek karke andar aate hain */
.topper-social .social-3d-icon {
    opacity: 0;
    animation: socialIn .5s cubic-bezier(.34, 1.56, .64, 1) forwards,
               iconFloat 3.4s ease-in-out 1s infinite;
}

.topper-social .social-3d-icon:nth-child(1) { animation-delay: .05s, 1.0s; }
.topper-social .social-3d-icon:nth-child(2) { animation-delay: .15s, 1.4s; }
.topper-social .social-3d-icon:nth-child(3) { animation-delay: .25s, 1.8s; }
.topper-social .social-3d-icon:nth-child(4) { animation-delay: .35s, 2.2s; }

@keyframes socialIn {
    from { opacity: 0; transform: translateY(10px) scale(.7) rotateY(-40deg); }
    to   { opacity: 1; transform: translateY(0) scale(1) rotateY(0); }
}

/* halka sa shine jo icon ke upar se guzarta hai */
.topper-social .social-3d-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
    background-size: 250% 100%;
    background-position: 220% 0;
    pointer-events: none;
}

.topper-social .social-3d-icon:hover::after {
    animation: socialShine .65s ease-out;
}

@keyframes socialShine {
    from { background-position: 220% 0; }
    to   { background-position: -60% 0; }
}

/* hover par lift + brand colour ka glow ring */
.topper-social .social-3d-icon {
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), box-shadow .28s ease;
}

.topper-social .social-3d-icon:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.18) rotateY(16deg) !important;
    opacity: 1;
}

.topper-social .social-3d-icon.yt:hover     { box-shadow: 0 8px 20px rgba(255, 0, 0, .6),   0 0 0 3px rgba(255, 68, 68, .28); }
.topper-social .social-3d-icon.ig:hover     { box-shadow: 0 8px 20px rgba(220, 39, 67, .6), 0 0 0 3px rgba(240, 148, 51, .28); }
.topper-social .social-3d-icon.meta:hover   { box-shadow: 0 8px 20px rgba(24, 119, 242, .6),0 0 0 3px rgba(24, 119, 242, .28); }
.topper-social .social-3d-icon.google:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .35),    0 0 0 3px rgba(66, 133, 244, .3); }

@media (max-width: 992px) {
    .topper-tagline { display: none; }   /* jagah kam ho to tagline hata do */
}

@media (prefers-reduced-motion: reduce) {
    .topper-social .social-3d-icon {
        opacity: 1;
        animation: none;
    }
    .topper-bar, .header { transition: none; }
}

/* ==========================================================================
   PRICING PAGE HERO — H1 block (SEO ke liye zaroori tha)
   ========================================================================== */
.pp-hero {
    background: linear-gradient(120deg, var(--primary-dk) 0%, #10163a 55%, var(--purple) 100%);
    color: #fff;
    padding: 104px 0 62px;
}
.pp-hero .cms-crumbs { margin-bottom: 18px; }
.pp-hero__eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.pp-hero__title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.12;
    margin: 16px 0 14px;
    max-width: 880px;
}
.pp-hero__sub { max-width: 720px; font-size: 1.02rem; opacity: .9; margin: 0 0 22px; }
.pp-hero__points {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px 22px;
    max-width: 820px;
}
.pp-hero__points li {
    position: relative;
    padding-left: 24px;
    font-size: .93rem;
    opacity: .92;
}
.pp-hero__points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6EE7B7;
    font-weight: 700;
}
.pp-hero__links { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.pp-hero__links span { font-size: .82rem; opacity: .65; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.pp-hero__links a {
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--tr), transform var(--tr);
}
.pp-hero__links a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 768px) {
    .pp-hero { padding: 92px 0 48px; }
}

/* ==========================================================================
   BLOG CARD IMAGES — crop ki problem ka fix
   Pehle har image `cover` thi, isliye graphics ke andar ka text kat jata tha.
   Ab har post admin se chun sakti hai: cover (photos) ya contain (graphics).
   ========================================================================== */

.blog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
}

/* photos — poora card bhar do */
.blog-card__media--cover img { object-fit: cover; }

/* graphics/screenshots — poori image dikhe, kuch na kate */
.blog-card__media--contain {
    background: linear-gradient(140deg, #EEF3FF 0%, #F7F2FF 100%);
    padding: 12px;
}
.blog-card__media--contain img { object-fit: contain; }

.blog-card__media img { transition: transform .4s cubic-bezier(.2, .7, .3, 1); }
.blog-card:hover .blog-card__media--cover img { transform: scale(1.05); }
.blog-card:hover .blog-card__media--contain img { transform: scale(1.03); }

/* ==========================================================================
   BLOG LISTING — thoda aur professional
   ========================================================================== */

.blog-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }

.blog-card {
    border-radius: 20px;
    border-color: #E8ECF5;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .05);
}
.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 44px rgba(0, 87, 255, .16);
    border-color: #D6E0FA;
}
.blog-card__body { padding: 24px 24px 26px; gap: 11px; }
.blog-card h2 { font-size: 1.22rem; letter-spacing: -.01em; }
.blog-card__cat {
    background: #EEF3FF;
    color: var(--primary);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .7rem;
    letter-spacing: .07em;
}
.blog-card__meta { align-items: center; }
.blog-card__meta span + span { position: relative; padding-left: 15px; }
.blog-card__meta span + span::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    transform: translateY(-50%);
}

/* category chips — scroll ho sake mobile par */
.blog-cats {
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.blog-cat {
    padding: 10px 20px;
    font-size: .89rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.blog-cat span {
    display: inline-block;
    min-width: 18px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(13, 17, 23, .07);
    font-size: .74rem;
    opacity: 1;
}
.blog-cat.is-active span { background: rgba(255, 255, 255, .25); }

@media (max-width: 700px) {
    .blog-cats {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 4px;
        padding-right: 4px;
        scrollbar-width: none;
    }
    .blog-cats::-webkit-scrollbar { display: none; }
    .blog-cat { flex: 0 0 auto; }
}

/* ==========================================================================
   POST — zig-zag content sections
   ========================================================================== */

.post__cover--contain {
    background: linear-gradient(140deg, #EEF3FF, #F7F2FF);
    border-radius: var(--radius);
    padding: 20px;
}
.post__cover--contain img { box-shadow: none; border-radius: 10px; }

.post-sec {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 46px;
    max-width: 1080px;
    margin: 0 auto 62px;
    padding-top: 8px;
}

.post-sec__media {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(140deg, #EEF3FF 0%, #F7F2FF 100%);
    box-shadow: 0 14px 40px rgba(16, 24, 40, .1);
}
.post-sec__media img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 14px;
}
.post-sec__media figcaption {
    padding: 10px 16px 14px;
    font-size: .82rem;
    color: var(--text-muted);
    text-align: center;
    background: rgba(255, 255, 255, .55);
}

.post-sec__text h2 {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--text);
    position: relative;
    padding-top: 16px;
}
.post-sec__text h2::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}
.post-sec__text p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #253041;
    margin: 0 0 15px;
}
.post-sec__text p:last-child { margin-bottom: 0; }

/* image right (default) */
.post-sec--image-right .post-sec__text  { order: 1; }
.post-sec--image-right .post-sec__media { order: 2; }

/* image left — zig */
.post-sec--image-left .post-sec__media { order: 1; }
.post-sec--image-left .post-sec__text  { order: 2; }

/* full width image upar */
.post-sec--full {
    grid-template-columns: 1fr;
    gap: 26px;
    max-width: 880px;
}
.post-sec--full .post-sec__media { order: 1; }
.post-sec--full .post-sec__text  { order: 2; }
.post-sec--full .post-sec__media img { aspect-ratio: 16 / 9; }

/* sirf text */
.post-sec--text {
    grid-template-columns: 1fr;
    max-width: 820px;
    gap: 0;
}

@media (max-width: 860px) {
    .post-sec,
    .post-sec--image-left,
    .post-sec--image-right {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 46px;
    }
    /* mobile par image hamesha upar */
    .post-sec__media { order: 1 !important; }
    .post-sec__text  { order: 2 !important; }
}

/* ==========================================================================
   BLOG IMAGE SIZING — FIX
   Problem: `.post__cover img` par width:100% tha lekin height ki koi limit nahi.
   Portrait photo (1200x1800) 1180px chaudi hote hi ~1770px lambi ho jati thi.
   Ab har image ka ek fixed frame hai — chhoti ho ya badi, layout nahi tootega.
   ========================================================================== */

.post__cover {
    max-width: 940px;
    margin: -26px auto 0;
}

.post__cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 480px;
    object-fit: cover;
    object-position: center 22%;     /* portrait me chehra upar hota hai */
    border-radius: var(--radius);
    box-shadow: var(--csh);
    display: block;
}

/* graphics / screenshots — poori image dikhe, kuch na kate */
.post__cover--contain {
    background: linear-gradient(140deg, #EEF3FF, #F7F2FF);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--cs);
}
.post__cover--contain img {
    aspect-ratio: 16 / 9;
    max-height: 440px;
    object-fit: contain;
    object-position: center;
    box-shadow: none;
    border-radius: 10px;
}

/* ---------------------------------------------------------------- cards */
.blog-card__media {
    aspect-ratio: 16 / 10;
    max-height: 260px;
}

.blog-card__media--cover img {
    object-fit: cover;
    object-position: center 20%;     /* headshot me sar nahi katega */
}

/* ---------------------------------------------------------------- sections */
.post-sec__media img {
    aspect-ratio: 4 / 3;
    max-height: 380px;
    object-fit: contain;
    width: 100%;
    height: auto;
}

.post-sec--full .post-sec__media img {
    aspect-ratio: 16 / 9;
    max-height: 460px;
}

/* auto sections me content HTML aata hai — usko padhne layak banao */
.post-sec__text ul,
.post-sec__text ol { margin: 0 0 15px; padding-left: 20px; }
.post-sec__text li { margin-bottom: 8px; line-height: 1.75; color: #253041; }
.post-sec__text h3 { font-size: 1.12rem; margin: 20px 0 10px; color: var(--text); }
.post-sec__text a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-sec__text strong { color: var(--text); }
.post-sec__text blockquote {
    margin: 16px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}
/* section ke andar agar aur images hon to wo bhi kabu me rahein */
.post-sec__text img {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 10px;
    margin: 14px 0;
}

/* article body ki images bhi kabhi page se bahar na jayein */
.post__content img,
.cms-content img {
    max-width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    display: block;
    margin: 22px auto;
}

@media (max-width: 860px) {
    .post__cover img,
    .post__cover--contain img { max-height: 300px; }
    .post-sec__media img { max-height: 280px; }
    .blog-card__media { max-height: 210px; }
}

/* ==========================================================================
   ZIG-ZAG SECTIONS — agency style
   Image ek soft circular blob par baithti hai, uske peeche halke dots,
   aur text side par ek number badge + accent line. Bilkul professional
   agency pages jaisa look.
   ========================================================================== */

.post-sec {
    gap: 60px;
    margin-bottom: 84px;
    align-items: center;
}

/* ---------------------------------------------------------------- media */
.post-sec__media {
    position: relative;
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

/* soft circle behind the image */
.post-sec__blob {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(100%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #DCE9FF 0%, #EAF1FF 45%, #F3EEFF 100%);
    z-index: 0;
}

/* dotted texture — corner par */
.post-sec__dots {
    position: absolute;
    width: 92px;
    height: 92px;
    background-image: radial-gradient(var(--primary) 1.6px, transparent 1.6px);
    background-size: 13px 13px;
    opacity: .22;
    z-index: 0;
}
.post-sec--image-right .post-sec__dots { right: 4px; bottom: 4px; }
.post-sec--image-left  .post-sec__dots { left: 4px;  bottom: 4px; }
.post-sec--full        .post-sec__dots { right: 10px; top: 10px; }

.post-sec__media img {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
    max-height: 360px;
    width: 100%;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(0 18px 34px rgba(16, 24, 40, .16));
    border-radius: 14px;
    transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.post-sec:hover .post-sec__media img { transform: translateY(-6px); }

.post-sec__media figcaption {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .8rem;
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .1);
}

/* photos ko circle me achha dikhane ke liye */
.post-sec--photo .post-sec__media img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    max-height: 340px;
    max-width: 340px;
}

/* ---------------------------------------------------------------- text */
.post-sec__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 87, 255, .28);
}

.post-sec__text h2 {
    padding-top: 0;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.22;
    letter-spacing: -.015em;
    margin-bottom: 16px;
}
.post-sec__text h2::before { display: none; }

.post-sec__text p {
    font-size: 1.03rem;
    line-height: 1.85;
    color: #3A4557;
}

/* bullet list — connected dots wali style */
.post-sec__text ul {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}
.post-sec__text ul li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 15px;
    line-height: 1.7;
}
.post-sec__text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2.5px solid var(--primary);
    background: #fff;
}
/* dotted connector between bullets */
.post-sec__text ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: -13px;
    width: 0;
    border-left: 2px dotted #C3D3F5;
}

/* ---------------------------------------------------------------- alternating tint */
.post-sec--image-left .post-sec__blob {
    background: radial-gradient(circle at 68% 30%, #E6F7FF 0%, #EDF3FF 48%, #F6EEFF 100%);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
    .post-sec { gap: 26px; margin-bottom: 54px; }
    .post-sec__media { padding: 14px; }
    .post-sec__blob { width: min(92%, 300px); }
    .post-sec__media img { max-height: 260px; }
    .post-sec--photo .post-sec__media img { max-height: 250px; max-width: 250px; }
    .post-sec__dots { width: 62px; height: 62px; }
    .post-sec__step { width: 36px; height: 36px; font-size: .85rem; margin-bottom: 12px; }
}
