/* ============================================================
   CTA Cards — 1275_cta_cards
   Prefix: .atoz-cta-
   ============================================================ */

.atoz-cta-wrap {
    background: linear-gradient(135deg, #dedede 0%, #f3f3f3 100%);
    border-radius: 20px;
    padding: 50px 30px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(10, 77, 140, 0.25);
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.atoz-cta-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: #ffc107;
}

/* ── Section heading ──────────────────────────────────────── */

.atoz-cta-title {
    color: #222;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 14px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.atoz-cta-title-icon {
    width: 32px;
    height: 32px;
    stroke: #ffc107;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.atoz-cta-subtitle {
    color: #222;
    font-size: 17px;
    text-align: center;
    margin: 0 0 36px 0;
    line-height: 1.55;
    font-weight: 400;
}

/* ── Grid ─────────────────────────────────────────────────── */

.atoz-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 1 card — single centered column */
.atoz-cta-grid--1 {
    grid-template-columns: minmax(0, 500px);
    justify-content: center;
}

/* 2 cards — side by side (default 2-col) */
.atoz-cta-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 cards — 2 up top, 3rd centred below */
.atoz-cta-grid--3 {
    grid-template-columns: repeat(2, 1fr);
}
.atoz-cta-grid--3 .atoz-cta-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px); /* matches one column width: (100% - 18px gap) / 2 */
    margin-left: auto;
    margin-right: auto;
}

/* 4 cards — 2x2 */
.atoz-cta-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

/* ── Card ─────────────────────────────────────────────────── */

.atoz-cta-card {
    background: linear-gradient(135deg, #0a4d8c 0%, #1976d2 100%);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: 16px;
    padding: 30px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.atoz-cta-card:hover {
    transform: translateY(-4px);
    border-color: #ffc107;
}
.atoz-cta-icon {
    width: 44px;
    height: 44px;
    stroke: #ffc107;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 8px;
}
.atoz-cta-card h3 {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    margin: 8px 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}
.atoz-cta-card p {
    color: #e3f2fd;
    font-size: 15px;
    margin: 0 0 22px 0;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 400;
}
.atoz-cta-card p a {
    color: #ffd54f;
    text-decoration: underline;
    font-weight: 600;
}

/* ── Button ───────────────────────────────────────────────── */

.atoz-cta-card .button_style_1 {
    background: #000;
    padding: 10px 20px;
    min-width: 200px;
    display: inline-block;
    text-align: center;
    border-radius: 2px;
    position: relative;
    color: #f8cd49;
    font-size: 16px;
    margin-top: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.atoz-cta-card .button_style_1::after {
    background: #f8cd49;
    content: '';
    width: 6px;
    height: 22.2px;
    position: absolute;
    top: 50%;
    transform: translate(100%, -50%);
    border-radius: 2px;
    transition: transform 0.8s ease;
    right: 3px;
}
.atoz-cta-card .button_style_1:hover {
    background: #f8cd49;
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}
.atoz-cta-card .button_style_1:hover::after {
    background: #000;
    transform: translate(-100%, -50%);
    left: 3px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .atoz-cta-wrap     { padding: 40px 22px; margin: 30px 0; }
    .atoz-cta-title    { font-size: 26px; }
    .atoz-cta-subtitle { font-size: 16px; margin-bottom: 28px; }
    .atoz-cta-grid     { gap: 14px; }
}

@media (max-width: 600px) {
    .atoz-cta-wrap { padding: 32px 18px; margin: 22px 0; border-radius: 16px; }
    .atoz-cta-title { font-size: 22px; margin-bottom: 10px; gap: 8px; }
    .atoz-cta-title-icon { width: 26px; height: 26px; }
    .atoz-cta-subtitle { font-size: 14.5px; margin: 0 0 22px 0; }

    /* All grid variants collapse to 1 column on mobile */
    .atoz-cta-grid,
    .atoz-cta-grid--1,
    .atoz-cta-grid--2,
    .atoz-cta-grid--3,
    .atoz-cta-grid--4 {
        grid-template-columns: 1fr;
    }
    /* Remove 3-card centring on mobile */
    .atoz-cta-grid--3 .atoz-cta-card:last-child {
        grid-column: unset;
        width: 100%;
        margin: 0;
    }

    .atoz-cta-card  { padding: 26px 18px; }
    .atoz-cta-icon  { width: 38px; height: 38px; }
    .atoz-cta-card h3 { font-size: 19px; margin: 6px 0 10px 0; }
    .atoz-cta-card p  { font-size: 14.5px; margin-bottom: 16px; }
    .atoz-cta-card .button_style_1 { width: 100%; box-sizing: border-box; }
}

@media (max-width: 380px) {
    .atoz-cta-wrap    { padding: 28px 14px; }
    .atoz-cta-title   { font-size: 20px; }
    .atoz-cta-card    { padding: 22px 16px; }
    .atoz-cta-card h3 { font-size: 18px; }
}
