/* =========================================================
   Instagram DM Automation — page CSS
   Font, colors, spacing match whatsapp-business-api.css so
   this page feels like the same product family.
   ========================================================= */

body,
h2,
p {
    font-family: Inter, sans-serif;
}

.hero-title,
h2 {
    font-weight: 700;
}

h2 {
    text-align: center;
}

p {
    font-size: 16px !important;
    font-style: normal;
    font-weight: 400;
    line-height: 1.75;
    color: #23291fcc;
}

/* ===== Hero ===== */
.hero-section {
    padding: 30px 0;
}

.hero-title {

    margin-bottom: 1rem;
}

.hero-text {
    color: #23291fcc;
    font-weight: 400;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
}

.meta-partner {
    font-size: 11px !important;
    color: #111827;
    border: 1px solid #bcbcbc;
    max-width: fit-content;
    padding: 9px;
    border-radius: 8px;
    background: #fdfffe;
    font-weight: 600;
}

.btn-group {
    margin-top: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.api-image,
.api-image-box img {
    max-width: 100%;
    border-radius: 32px;
}

/* ===== Buttons (same pill style as whatsapp-business-api.css .gg-btn) ===== */
.gg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gg-btn-primary {
    background: #034737;
    color: #fff;
}

.gg-btn-primary:hover {
    background: #000000;
    color: #fff;
}

.gg-btn-outline {
    background: #fff;
    color: #0a0a0a;
    border: 1px solid #0a0a0a;
}

.gg-btn-outline:hover {
    background: #f5f5f5;
}

.gg-btn .arrow-icon {
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.2s ease;
}

.gg-btn:hover .arrow-icon {
    transform: translateX(3px);
}

/* ===== Section headings ===== */
.whatsapp-heading {
    text-align: center;
    font-weight: 700;
}

.api-header {
    margin-bottom: 10px;
}

.api-subtext {
    font-size: clamp(16px, 2vw, 18px);
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}

/* ===== Reply to everything — trigger table =====
   Same visual language as .req-table (dark green head, striped rows,
   soft shadow), plus a 3-column layout for Trigger / What it does / Example. */
.req-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(3, 71, 51, 0.08);
}

.req-table thead tr {
    background: #034733;
    color: #ffffff;
}

.req-table thead th {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.req-table thead th:last-child {
    border-right: none;
}

.req-table tbody tr {
    border-bottom: 1px solid #e5f0eb;
    transition: background 0.18s;
}

.req-table tbody tr:last-child {
    border-bottom: none;
}

.req-table tbody tr:nth-child(even) {
    background: #f4faf7;
}

.req-table tbody tr:hover {
    background: #e6f4ee;
}

.req-table tbody td {
    padding: 15px 24px;
    font-size: 14px;
    color: #1a3a2e;
    border-right: 1px solid #e5f0eb;
    vertical-align: middle;
}

.req-table tbody td:last-child {
    border-right: none;
}

.req-table tbody td i {
    color: #034733;
}

/* 2-column requirement tables (if reused) get even halves;
   the 3-column trigger table gets even thirds. */
.req-table:not(.trigger-table) thead th {
    width: 50%;
}

.req-table.trigger-table thead th {
    width: 33.33%;
}

.req-table.trigger-table tbody td:last-child {
    color: #8a5a73;
    font-style: italic;
}

/* Instagram feel sirf trigger table ke liye - brand gradient header,
   pink-tinted stripes/hover, .req-table ka green look baaki jagah same rehta hai */
.req-table.trigger-table {
    box-shadow: 0 2px 20px rgba(214, 41, 118, 0.16);
}

.req-table.trigger-table thead tr {
    background: linear-gradient(90deg, #4f5bd5 0%, #962fbf 28%, #d62976 55%, #fa7e1e 80%, #feda75 100%);
}

.req-table.trigger-table tbody tr {
    border-bottom-color: #f8dbe8;
}

.req-table.trigger-table tbody tr:nth-child(even) {
    background: #fdf2f7;
}

.req-table.trigger-table tbody tr:hover {
    background: #fbe3ee;
}

.req-table.trigger-table tbody td {
    border-right-color: #f8dbe8;
}

.req-table.trigger-table tbody td i {
    color: #d62976;
}

.cta-btnn {
    text-align: center;
}

/* ===== Live in three steps (reuses .steps-section layout) ===== */
.steps-section {
    padding: 60px 0;
    background: #fdfbfb;
}

.left-content {
    position: sticky;
    top: 30%;
}

.left-content h2 {
    margin-bottom: 20px;
}

.left-content p {
    margin-bottom: 20px;
}

.step-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    transition: 0.3s;
}

.step-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.step-numberr {
    width: 40px !important;
    height: 40px !important;
    background: #034737;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-title {
    font-weight: 600;
    font-size: 16px;
}

.step-desc {
    font-size: 14px;
}

/* =========================================================
   What You Can Automate — alternating image / content rows
   ========================================================= */
.automate-section {
    
    background: #fff;
}

.automate-head {
    max-width: 720px;
    margin: 0 auto 50px;
}

.automate-head .whatsapp-heading {
    margin-bottom: 12px;
}

.automate-head .api-subtext {
    margin-bottom: 0;
}

/* Rows use Bootstrap's own .row/.col-lg-6 grid (same as the rest of this page);
   .automate-row/.automate-visual-col/.automate-content-col only add spacing/alignment.
   Left-right alternation is done in the markup with order-lg-1/order-lg-2. */
.automate-list {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.automate-visual-col {
    margin-bottom: 0;
}

/* Mobile: content order-1 (top), image order-2 (bottom) -
   gap jaana chahiye button ke baad, image se pehle (content/button ke beech nahi) */
@media (max-width: 991px) {
    .automate-content-col {
        margin-bottom: 36px;
    }
}

/* --- Visual (the "image" side) ---
   Koi background/gradient nahi - sirf image, apne aap mein. */
.automate-visual {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.automate-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Content (the text side) --- */
.automate-content {
    padding: 8px 0;
}

.automate-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #034737;
    background: #eaf5ef;
    border: 1px solid #cfe9db;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.automate-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.3;
    margin-bottom: 12px;
}

.automate-content p {
    font-size: 16px;
    color: #23291fcc;
    line-height: 1.75;
    margin: 0 0 22px;
}

.automate-cta {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

/* =========================================================
   Instagram DM Automation for Every Business Type — pill grid
   ========================================================= */
.biz-types-section {
    padding: 60px 0 70px;
    background: #fff;
}

.biz-types-section .whatsapp-heading {
    margin-bottom: 36px;
}

.biz-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.biz-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: default;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.biz-pill:hover {
    transform: translateY(-2px);
    border-color: #034737;
    box-shadow: 0 6px 16px rgba(3, 71, 55, 0.1);
}

/* Ek pill ko halka highlight dena ho (jaise reference image mein "Fashion"),
   to us span mein ye class add karni hai. */
.biz-pill--highlight {
    border-color: #cfe354;
    box-shadow: 0 0 0 3px rgba(207, 227, 84, 0.18);
}

.biz-cta {
    margin-top: 36px;
}

/* Instagram gradient button - same gradient as the trigger table header,
   reused here so the CTA ties back to that Instagram feel. */
.gg-btn-instagram {
    background: linear-gradient(90deg, #4f5bd5 0%, #962fbf 28%, #d62976 55%, #fa7e1e 80%, #feda75 100%);
    color: #fff;
}

.gg-btn-instagram:hover {
    background: linear-gradient(90deg, #3e48c2 0%, #7f27a6 28%, #b81f63 55%, #e06d12 80%, #f0c948 100%);
    color: #fff;
}

@media (max-width: 767px) {
    .biz-types-section {
        padding: 50px 0 55px;
    }

    .biz-types-section .whatsapp-heading {
        margin-bottom: 24px;
    }

    .biz-pills {
        gap: 10px;
    }

    .biz-pill {
        padding: 9px 16px;
        font-size: 13.5px;
    }

    .biz-cta {
        margin-top: 28px;
    }
}

/* ===== Final CTA (dark band — flip button colors like whatsapp-business-api.css) ===== */
.cta-section .gg-btn-primary {
    background: #fff;
    color: #034737;
}

.cta-section .gg-btn-primary:hover {
    background: #f1f5f2;
}

.cta-section .gg-btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cta-section .gg-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* Mobile: dono CTA buttons full-width, ek ke neeche ek (side-by-side par text tight pad jaata tha) */
@media (max-width: 575px) {
    .cta-container {
        padding: 32px 20px !important;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px !important;
    }

    .cta-buttons .gg-btn {
        width: 100%;
    }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
    .api-image-box {
        max-width: 580px;
        margin: 0 auto;
    }

    .api-image-box img {
        width: 100%;
        height: auto;
        max-height: 420px;
        object-fit: contain;
        display: block;
        border-radius: 16px;
    }

    .left-content {
        position: static;
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .meta-partner {
        margin-bottom: 20px !important;
        margin-top: 0 !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-text {
        font-size: 1rem;
    }

    .whatsapp-heading {
        font-size: 28px !important;
    }

    .api-image-box img {
        max-height: 320px;
    }

    .req-table thead th,
    .req-table tbody td {
        padding: 12px 16px;
        font-size: 13px;
    }

    .req-table.trigger-table tbody td:last-child {
        font-size: 12.5px;
    }

    .automate-section {
   
    }

    .automate-list {
        gap: 44px;
    }

    .automate-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 567px) {
    .whatsapp-heading {
        font-size: 24px !important;
        line-height: 1.3;
    }
}
