/* ============================================================
   V2 Card Grid Block — Reusable Card Grid
   Covers: Agentic Solutions, Where We Help, What Makes V2,
   Emerging AI, Enterprise Use Cases, Insights
   ============================================================ */


/* ═══════════════════════════════════════════════════════════
   1. BASE SECTION
   ═══════════════════════════════════════════════════════════ */
.v2-cg-section {
    padding: 50px 0;
    transition: background 0.3s ease;
    position: relative;
}

/* Background Image with Optional Overlay */
.v2-cg-section[style*="background-image"] {
    position: relative;
    isolation: isolate;
    background-attachment: fixed;
}

.v2-cg-section[style*="--section-color"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--section-color);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

/* Section Backgrounds */
.v2-cg-bg-white       { background-color: #ffffff; }
.v2-cg-bg-light-gray  { background-color: #f8fafc; }
.v2-cg-bg-dark        { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); }

/* Section Text — Light variant (for dark backgrounds) */
.v2-cg-text-light .v2-cg-title {
    color: #ffffff;
}

.v2-cg-text-light .v2-cg-description,
.v2-cg-text-light .v2-cg-description p {
    color: rgba(255, 255, 255, 0.8);
}

.v2-cg-text-light .v2-cg-card-title {
    color: #ffffff;
}

.v2-cg-text-light .v2-cg-card-desc,
.v2-cg-text-light .v2-cg-card-desc p {
    color: rgba(255, 255, 255, 0.85);
}


.v2-cg-bg-dark .v2-cg-card .v2-cg-card-title {
 color: var(--primary-color);
}

.v2-cg-bg-dark .v2-cg-card .v2-cg-card-desc p {
    color: #494949;
}

/* ═══════════════════════════════════════════════════════════
   2. HEADER — Title, Description, Decorative Line
   ═══════════════════════════════════════════════════════════ */
.v2-cg-header {
    text-align: center;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
}

/* Highlighted title (small accent text above main title) */
.v2-cg-highlighted-title {
    background: linear-gradient(135deg, #F05A24 0%, #ff7043 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 16px;
}

.v2-cg-text-light .v2-cg-highlighted-title {
    color: #f8b784;
}

.v2-cg-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 14px;
    line-height: 1.2;
    font-family: var(--heading-font);
}

/* Decorative accent line (orange bar under title) */
.v2-cg-decor-line {
    display: block;
    width: 35px;
    height: 6px;
    background-color: var(--secondary-clr, #ea580c);
    margin: 0 auto 20px;
    border-radius: 6px;
}

.v2-cg-description {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    max-width: 820px;
    margin: 0 auto;
}

.v2-cg-description p {
    margin: 0 0 10px;
}

.v2-cg-description p:last-child {
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════════════
   3. GRID — Columns with data-attribute responsive overrides
   ═══════════════════════════════════════════════════════════ */
.v2-cg-grid {
    display: grid;
    gap: var(--cg-grid-gap, 24px);
    margin-bottom: 30px;
}

/* Desktop column variants (set via ACF) */
.v2-cg-cols-1 .v2-cg-grid { grid-template-columns: 1fr; }
.v2-cg-cols-2 .v2-cg-grid { grid-template-columns: repeat(2, 1fr); }
.v2-cg-cols-3 .v2-cg-grid { grid-template-columns: repeat(3, 1fr); }
.v2-cg-cols-4 .v2-cg-grid { grid-template-columns: repeat(4, 1fr); }

/* Equal Height — stretches all cards in each row */
.v2-cg-equal-height .v2-cg-card {
    height: 100%;
}

.v2-cg-equal-height .v2-cg-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.v2-cg-equal-height .v2-cg-card-desc {
    flex: 1;
}

/* Last row grid fix — no orphan stretching */
.v2-cg-grid > .v2-cg-card:last-child {
    max-width: 100%;
}


/* ═══════════════════════════════════════════════════════════
   4. CARD BASE
   ═══════════════════════════════════════════════════════════ */
.v2-cg-card {
    background: var(--cg-card-bg, #ffffff);
    border-radius: var(--cg-card-radius, 12px);
    padding: var(--cg-card-padding, 30px 26px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* ═══════════════════════════════════════════════════════════
   5. CARD STYLE PRESETS
   ═══════════════════════════════════════════════════════════ */

/* Default — white bg + subtle shadow
   Used for: Agentic Solutions, Where We Help */
.v2-cg-style-default .v2-cg-card {
    box-shadow: var(--cg-card-shadow, 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.06));
}

/* Shadow — elevated / modern
   Used for: Enterprise Use Cases */
.v2-cg-style-shadow .v2-cg-card {
    box-shadow: var(--cg-card-shadow, 0 4px 24px rgba(0, 0, 0, 0.08));
}

/* Border — solid border, no shadow
   Used for: Emerging AI Capabilities */
.v2-cg-style-border .v2-cg-card {
    border: 1px solid var(--cg-card-border-color, #e2e8f0);
    box-shadow: none;
}

/* Minimal — transparent, clean
   Used for: Insights section (card content only, no wrapping) */
.v2-cg-style-minimal .v2-cg-card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: var(--cg-card-padding, 16px 0);
}


/* ═══════════════════════════════════════════════════════════
   6. TOP / LEFT BORDER ACCENTS
   ═══════════════════════════════════════════════════════════ */

/* Top border accent
   Used for: What Makes V2Solutions */
.v2-cg-top-border .v2-cg-card {
    border-top: 5px solid var(--cg-top-border-color, #ea580c);
}

/* Left border accent
   Used for: Emerging AI Capabilities */
.v2-cg-left-border .v2-cg-card {
    border-left: 4px solid var(--cg-left-border-color, #1e3a5f);
}

/* Combined top + left (if both enabled) — top takes precedence visually */
.v2-cg-top-border.v2-cg-left-border .v2-cg-card {
    border-top: 3px solid var(--cg-top-border-color, #ea580c);
    border-left: 4px solid var(--cg-left-border-color, #1e3a5f);
}


/* ═══════════════════════════════════════════════════════════
   7. HOVER EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* None — no hover */
.v2-cg-hover-none .v2-cg-card:hover {
    transform: none;
}

/* Lift Up — card raises with deeper shadow */
.v2-cg-hover-lift .v2-cg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* Shadow Grow — shadow deepens without movement */
.v2-cg-hover-shadow .v2-cg-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

/* Border Color Change — border becomes accent color */
.v2-cg-hover-border-color .v2-cg-card:hover {
    border-color: var(--secondary-clr, #ea580c);
}

/* Background Color Change — subtle bg shift with custom or default color */
.v2-cg-hover-bg-color .v2-cg-card:hover {
    background-color: var(--cg-hover-bg-color, #f2f2f2);
}

/* Dark bg section hover */
.v2-cg-text-light.v2-cg-hover-bg-color .v2-cg-card:hover {
    background-color: var(--cg-hover-bg-color, rgba(255, 255, 255, 0.08));
}

/* Animated Border — two orange bars on octagon icon, triggered on card hover */
.v2-cg-hover-animated-border .v2-cg-icon-octagon {
    position: relative;
}

.v2-cg-hover-animated-border .v2-cg-icon-octagon::before, .v2-cg-hover-animated-border .v2-cg-icon-octagon::after {
    content: '';
    position: absolute;
    left: 28px;
    width: 6px;
    background: #ea580c;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.v2-cg-card:hover .v2-cg-icon-octagon {
    padding-top: 20px;
}

.v2-cg-hover-animated-border .v2-cg-icon-octagon::before {
    top: -10px;
    height: 15px;
    transform-origin: top;
}

.v2-cg-hover-animated-border .v2-cg-icon-octagon::after {
    bottom: -29px;
    height: 15px;
    transform-origin: bottom;
}

.v2-cg-hover-animated-border .v2-cg-card:hover .v2-cg-icon-octagon::before,
.v2-cg-hover-animated-border .v2-cg-card:hover .v2-cg-icon-octagon::after {
    transform: scaleY(1);
}

.v2-cg-hover-animated-border .v2-cg-card:hover .v2-cg-icon-octagon::after {
    transition-delay: 0.1s;
}

/* Background color on hover for animated-border cards */
.v2-cg-hover-animated-border .v2-cg-card:hover {
    background-color: #ffffff;
}

.v2-cg-hover-animated-border .v2-cg-card {
    border-radius: 0;
}

/* Dark bg section variant */
.v2-cg-text-light.v2-cg-hover-animated-border .v2-cg-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0;
}


/* ═══════════════════════════════════════════════════════════
   8. ICON POSITION VARIANTS
   ═══════════════════════════════════════════════════════════ */

/* Icon on Top (stacked) — default
   Used for: Agentic Solutions, What Makes V2, Enterprise Use Cases */
.v2-cg-icon-top .v2-cg-card {
    display: flex;
    flex-direction: column;
}

.v2-cg-icon-top .v2-cg-card-icon {
    margin-bottom: 18px;
}

/* Icon Inline (row layout)
   Used for: Where We Help, Emerging AI */
.v2-cg-icon-inline .v2-cg-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
}

.v2-cg-icon-inline .v2-cg-card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.v2-cg-icon-inline .v2-cg-card-body {
    flex: 1;
    min-width: 0;
}


/* ═══════════════════════════════════════════════════════════
   9. CARD ICON — Sizes, shapes, and color variants
   ═══════════════════════════════════════════════════════════ */
.v2-cg-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.v2-cg-card-icon i {
    font-size: 20px;
    line-height: 1;
}

/* Image icons */

.v2-cg-icon-image {
    background: rgba(37, 99, 235, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.v2-cg-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* Icon without background */
.v2-cg-icon-no-bg {
    background: transparent !important;
    padding: 0;
    width: auto;
    height: auto;
    border-radius: 0;
}

.v2-cg-icon-no-bg img {
    width: auto;
    height: auto;
}

/* ── Icon Color Variants ─────────────────────────────────── */
.v2-cg-icon-blue {
    background: rgba(37, 99, 235, 0.1);
}
.v2-cg-icon-blue i {
    color: #2563eb;
}

.v2-cg-icon-purple {
    background: rgba(109, 40, 217, 0.1);
}
.v2-cg-icon-purple i {
    color: #6d28d9;
}

.v2-cg-icon-orange {
    background: rgba(234, 88, 12, 0.1);
}
.v2-cg-icon-orange i {
    color: #ea580c;
}

.v2-cg-icon-red {
    background: rgba(220, 38, 38, 0.1);
}
.v2-cg-icon-red i {
    color: #dc2626;
}

.v2-cg-icon-green i {
    color: #008503;
    font-size: 30px;
}

.v2-cg-icon-teal {
    background: rgba(13, 148, 136, 0.1);
}
.v2-cg-icon-teal i {
    color: #0d9488;
}

.v2-cg-icon-navy i {
    color: #1e3a5f;
    font-size: 30px;
}

/* Custom color variant - uses inline styles from PHP */
.v2-cg-icon-custom {
    background: rgba(37, 99, 235, 0.1); /* Fallback, overridden by inline styles */
}

.v2-cg-icon-custom i {
    color: #2563eb; /* Fallback, overridden by inline styles */
}

/* Dark bg icon adjustments */
.v2-cg-text-light .v2-cg-icon-blue   { background: rgba(96, 165, 250, 0.18); }
.v2-cg-text-light .v2-cg-icon-purple { background: rgba(167, 139, 250, 0.18); }
.v2-cg-text-light .v2-cg-icon-orange { background: rgba(251, 146, 60, 0.18); }
.v2-cg-text-light .v2-cg-icon-red    { background: rgba(248, 113, 113, 0.18); }
.v2-cg-text-light .v2-cg-icon-green  { background: rgba(74, 222, 128, 0.18); }
.v2-cg-text-light .v2-cg-icon-teal   { background: rgba(45, 212, 191, 0.18); }
.v2-cg-text-light .v2-cg-icon-navy   { background: rgba(148, 163, 184, 0.18); }

.v2-cg-text-light .v2-cg-icon-blue i   { color: #60a5fa; }
.v2-cg-text-light .v2-cg-icon-purple i { color: #a78bfa; }
.v2-cg-text-light .v2-cg-icon-orange i { color: #fb923c; }
.v2-cg-text-light .v2-cg-icon-red i    { color: #f87171; }
.v2-cg-text-light .v2-cg-icon-green i  { color: #4ade80; }
.v2-cg-text-light .v2-cg-icon-teal i   { color: #2dd4bf; }
.v2-cg-text-light .v2-cg-icon-navy i   { color: #94a3b8; }

/* ── Octagon Icon Shape ─────────────────────────────────── */
.v2-cg-icon-octagon {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: none;
    transition: 0.5s ease-in-out;
}

.v2-cg-icon-octagon i {
    width: 60px;
    height: 60px;
    background: #0b3d5c;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
}

/* Inner white shape to create outlined octagon border */
.v2-cg-icon-octagon i::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #ffffff;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    z-index: 0;
}

.v2-cg-icon-octagon i::before {
    position: relative;
    z-index: 1;
}

/* Octagon with icon color variants as the border color */
.v2-cg-icon-octagon.v2-cg-icon-blue i    { background: #2563eb; }
.v2-cg-icon-octagon.v2-cg-icon-purple i  { background: #6d28d9; }
.v2-cg-icon-octagon.v2-cg-icon-orange i  { background: #ea580c; }
.v2-cg-icon-octagon.v2-cg-icon-red i     { background: #dc2626; }
.v2-cg-icon-octagon.v2-cg-icon-green i   { background: #008503; }
.v2-cg-icon-octagon.v2-cg-icon-teal i    { background: #0d9488; }
.v2-cg-icon-octagon.v2-cg-icon-navy i    { background: #1e3a5f; }

.v2-cg-icon-octagon.v2-cg-icon-image {
    width: 60px;
    height: 60px;
    padding: 3px;
}

.v2-cg-icon-octagon.v2-cg-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    clip-path: polygon(
        25% 0%, 75% 0%, 100% 25%, 100% 75%,
        75% 100%, 25% 100%, 0% 75%, 0% 25%
    );
}


/* ═══════════════════════════════════════════════════════════
   10. CARD CONTENT — Title, Description, Lists
   ═══════════════════════════════════════════════════════════ */
.v2-cg-card-body {
    display: flex;
    flex-direction: column;
}

.v2-cg-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 20px;
    line-height: 1.3;
    font-family: var(--heading-font);
}

.v2-cg-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    font-weight: 400;
}

.v2-cg-card-desc p {
    margin: 0 0 8px;
}

.v2-cg-card-desc p:last-child {
    margin-bottom: 0;
}

.v2-cg-card-desc strong {
    font-weight: 500;
    color: #494949;
}

.v2-cg-text-light .v2-cg-card-desc strong {
    color: #ffffff;
}

/* List styles inside card descriptions */
.v2-cg-card-desc ul,
.v2-cg-card-desc ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.v2-cg-card-desc ul {
    list-style: disc;
}

.v2-cg-card-desc li {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.6;
    padding: 2px 0;
}


/* ═══════════════════════════════════════════════════════════
   11. CARD TEXT ALIGNMENT
   ═══════════════════════════════════════════════════════════ */

/* Center text alignment for cards */
.v2-cg-text-center .v2-cg-card {
    text-align: center;
}

.v2-cg-text-center .v2-cg-card-icon {
    margin-left: auto;
    margin-right: auto;
}

/* When icon is inline + center text, switch to column layout */
.v2-cg-text-center.v2-cg-icon-inline .v2-cg-card {
    flex-direction: column;
    align-items: center;
}

.v2-cg-text-center.v2-cg-icon-inline .v2-cg-card-icon {
    margin-bottom: 18px;
}

.v2-cg-text-center.v2-cg-icon-inline .v2-cg-card-body {
    text-align: center;
}



/* ═══════════════════════════════════════════════════════════
   13. ALIGNMENT / CONTAINER OVERRIDES
   ═══════════════════════════════════════════════════════════ */
.v2-cg-section.alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.v2-cg-section.alignfull .container {
    max-width: 1400px;
    padding: 0 40px;
    margin: 0 auto;
}

.v2-cg-section.alignwide {
    max-width: 1200px;
}

.enterprise-ai-usage .v2-cg-card-icon {
    width: 55px;
    height: 55px;
    background: #0b3d5c;
    clip-path: polygon(
    25% 5%, 
    75% 5%, 
    100% 50%, 
    75% 95%, 
    25% 95%, 
    0% 50%
  );
    display: flex;
    align-items: center;
    justify-content: center;
}

.enterprise-ai-usage .v2-cg-card-icon i {
    width: 50px;
    height: 50px;
    background: #fff;
    clip-path: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
/* ═══════════════════════════════════════════════════════════
   14. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   14a. Large Desktop (max 1440px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 1440px) {
    .v2-cg-section.alignfull .container {
        max-width: 1200px;
    }
}

/* ──────────────────────────────────────────────────────────
   14b. Desktop / Small Laptop (max 1199px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 1199px) {
    .v2-cg-section {
        padding: 60px 0;
    }

    .v2-cg-title {
        font-size: 42px;
    }

    .v2-cg-header {
        margin-bottom: 40px;
    }

    .v2-cg-section.alignfull .container {
        max-width: 960px;
        padding: 0 30px;
    }

    /* 4-col → 3-col fallback on smaller desktops */
    .v2-cg-cols-4 .v2-cg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ──────────────────────────────────────────────────────────
   14c. Tablet Landscape (max 1024px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .v2-cg-section {
        padding: 50px 0;
    }

    .v2-cg-title {
        font-size: 38px;
    }

    .v2-cg-description {
        font-size: 17px;
    }

    .v2-cg-header {
        margin-bottom: 36px;
    }

    /* Tablet column overrides via data attribute */
    .v2-cg-section[data-cols-tablet="1"] .v2-cg-grid { grid-template-columns: 1fr; }
    .v2-cg-section[data-cols-tablet="2"] .v2-cg-grid { grid-template-columns: repeat(2, 1fr); }
    .v2-cg-section[data-cols-tablet="3"] .v2-cg-grid { grid-template-columns: repeat(3, 1fr); }

    .v2-cg-card {
        padding: var(--cg-card-padding, 26px 22px);
    }

    .v2-cg-card-title {
        font-size: 20px;
    }

    .v2-cg-card-desc {
        font-size: 15px;
    }

    .v2-cg-section.alignfull .container {
        padding: 0 30px;
    }

    /* Inline icons — slightly smaller gap */
    .v2-cg-icon-inline .v2-cg-card {
        gap: 14px;
    }
}

/* ──────────────────────────────────────────────────────────
   14d. Tablet Portrait (max 768px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    .v2-cg-section {
        padding: 45px 0;
    }

    .v2-cg-title {
        font-size: 34px;
    }

    .v2-cg-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .v2-cg-header {
        margin-bottom: 32px;
    }

    /* Fallback all grids to 2 columns unless overridden */
    .v2-cg-cols-3 .v2-cg-grid,
    .v2-cg-cols-4 .v2-cg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-cg-grid {
        gap: var(--cg-grid-gap, 20px);
    }

    .v2-cg-card {
        padding: var(--cg-card-padding, 24px 20px);
    }

    .v2-cg-card-icon i {
        font-size: 18px;
    }

    .v2-cg-card-icon img {
        width: 44px;
        height: 44px;
    }

    .v2-cg-icon-image img {
        width: 46px;
        height: 46px;
    }

}

/* ──────────────────────────────────────────────────────────
   14e. Mobile (max 767px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 767px) {
    .v2-cg-section {
        padding: 40px 0;
    }

    .v2-cg-title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .v2-cg-description {
        font-size: 15px;
    }

    .v2-cg-decor-line {
        width: 35px;
        margin-bottom: 16px;
    }

    .v2-cg-header {
        margin-bottom: 28px;
    }

    /* Mobile column overrides via data attribute */
    .v2-cg-section[data-cols-mobile="1"] .v2-cg-grid { grid-template-columns: 1fr; }
    .v2-cg-section[data-cols-mobile="2"] .v2-cg-grid { grid-template-columns: repeat(2, 1fr); }

    .v2-cg-grid {
        gap: 16px;
        margin-bottom: 24px;
    }

    .v2-cg-card {
        padding: var(--cg-card-padding, 22px 18px);
    }

    .v2-cg-card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .v2-cg-card-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .v2-cg-card-desc li {
        font-size: 13px;
    }

    .v2-cg-card-icon i {
        font-size: 16px;
    }

    .v2-cg-card-icon img {
        width: 40px;
        height: 40px;
    }

    .v2-cg-icon-image img {
        width: 42px;
        height: 42px;
    }

    .v2-cg-icon-top .v2-cg-card-icon {
        margin-bottom: 14px;
    }

    /* Inline icon layout — stack on mobile single column */
    .v2-cg-section[data-cols-mobile="1"] .v2-cg-icon-inline .v2-cg-card {
        flex-direction: row;
        gap: 14px;
    }

    .v2-cg-section.alignfull .container {
        padding: 0 16px;
    }

    /* Reduce hover lift distance on mobile */
    .v2-cg-hover-lift .v2-cg-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }
}

/* ──────────────────────────────────────────────────────────
   14f. Small Mobile (max 480px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 480px) {
    .v2-cg-section {
        padding: 32px 0;
    }

    .v2-cg-title {
        font-size: 26px;
    }

    .v2-cg-description {
        font-size: 14px;
    }

    .v2-cg-header {
        margin-bottom: 24px;
    }

    .v2-cg-card {
        padding: var(--cg-card-padding, 20px 16px);
    }

    .v2-cg-card-title {
        font-size: 17px;
    }

    .v2-cg-card-desc {
        font-size: 13px;
    }

    /* Force single column on very small screens */
    .v2-cg-section[data-cols-mobile="2"] .v2-cg-grid {
        grid-template-columns: 1fr;
    }

    /* Icon inline — keep row layout but tighten */
    .v2-cg-icon-inline .v2-cg-card {
        gap: 12px;
    }

    .v2-cg-card-icon {
        width: 36px;
        height: 36px;
    }

    .v2-cg-hover-animated-border .v2-cg-icon-octagon {
       width: 60px;
       height: 60px;
    }

    .v2-cg-card-icon i {
        font-size: 14px;
    }

    .v2-cg-card-icon img {
        width: 36px;
        height: 36px;
    }

    .v2-cg-section.alignfull .container {
        padding: 0 12px;
    }
}

/* ──────────────────────────────────────────────────────────
   14g. Extra Small (max 360px)
   ────────────────────────────────────────────────────────── */
@media screen and (max-width: 360px) {
    .v2-cg-title {
        font-size: 23px;
    }

    .v2-cg-card {
        padding: var(--cg-card-padding, 18px 14px);
    }

    .v2-cg-card-title {
        font-size: 16px;
    }

    .v2-cg-card-desc {
        font-size: 13px;
        line-height: 1.5;
    }

}
