section#content article.why_us_article > :not(script) {
    width: min(100%, 1024px);
    margin-left: auto;
    margin-right: auto;
}

section#content article.why_us_article h1 {
    margin-bottom: 20px;
}

section#why_us_boxes {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

section#why_us_boxes .modern-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

section#why_us_boxes .modern-card-media {
    background: #f5f7fb;
}

section#why_us_boxes .modern-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

section#why_us_boxes .modern-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 24px;
    flex: 1 1 auto;
}

section#why_us_boxes .modern-card-body h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--primary-color);
    font-weight: 700;
}

section#why_us_boxes .modern-card-copy {
    color: #2f3640;
    font-size: 0.96rem;
    line-height: 1.7;
}

section#why_us_boxes .modern-card-copy > :first-child {
    margin-top: 0;
}

section#why_us_boxes .modern-card-copy p,
section#why_us_boxes .modern-card-copy li {
    margin-top: 0;
}

section#why_us_boxes img.phone-logo {
    display: none;
}

@media (max-width: 767px) {
    section#content article.why_us_article h1 {
        margin-left: 10px;
        width: calc(100% - 20px);
    }

    section#why_us_boxes {
        gap: 18px;
    }

    section#why_us_boxes .modern-card-body {
        padding: 16px 18px 20px;
    }

    section#why_us_boxes .modern-card-body h2 {
        font-size: 1.05rem;
    }

    section#why_us_boxes .modern-card-copy {
        font-size: 0.93rem;
    }

    section#why_us_boxes img.phone-logo {
        display: block;
    }

    section#why_us_boxes img.desktop-logo {
        display: none;
    }
}

@media (min-width: 768px) {
    section#why_us_boxes {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    section#why_us_boxes .modern-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
        border-color: rgba(0, 0, 0, 0.1);
    }

    section#why_us_boxes .modern-card:hover .modern-card-media img {
        transform: scale(1.035);
    }
}

/* Services Overview Styles (same as services.php) */
.services-overview {
    padding: 60px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin: 0 0 16px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #1a3fa4);
    border-radius: 2px;
    margin: 0 auto;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    text-align: center;
}

/* Why Us Hero */
.why-us-hero {
    position: relative;
    padding: 100px 24px 80px;
    background: linear-gradient(135deg, #001760 0%, #0a2a8a 100%);
    overflow: hidden;
}

.why-us-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 0%, transparent 50%);
}

.why-us-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.why-us-hero-content .section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.why-us-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.2;
}

.why-us-hero-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Stats Section */
.why-us-stats {
    padding: 60px 24px;
    background: #ffffff;
    border-bottom: 1px solid #eef2f7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 32px 24px;
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* Why Us Cards Section */
.why-us-cards-section {
    padding: 0 24px 80px;
}

.why-us-grid {
    display: grid;
    /* make outer boxes smaller and increase spacing between them */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}

@media (min-width: 1025px) {
    .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (min-width: 1400px) {
    .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.why-us-card-modern {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px -6px rgba(0, 23, 96, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(14px);
    animation: cardFadeIn 0.45s ease-out forwards;
}

.why-us-card-modern:nth-child(1) { animation-delay: 0.1s; }
.why-us-card-modern:nth-child(2) { animation-delay: 0.2s; }
.why-us-card-modern:nth-child(3) { animation-delay: 0.3s; }
.why-us-card-modern:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.why-us-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 32px -8px rgba(0, 23, 96, 0.12);
    border-color: transparent;
}

.why-us-card-visual {
    position: relative;
    padding: 0;
    /* smaller visual area to reduce overall card size */
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-bg {
    position: absolute;
    inset: 0;
}

.visual-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.visual-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-content img.phone-logo {
    display: none;
}

.card-decoration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.why-us-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color, var(--primary-color));
    border-radius: 10px;
    color: #ffffff;
}

.card-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(0, 23, 96, 0.15);
}

.why-us-card-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 12px;
    line-height: 1.3;
}

.card-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.card-description p {
    margin: 0 0 12px;
}

.card-description p:last-child {
    margin-bottom: 0;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.feature-tag svg {
    color: var(--accent-color, var(--primary-color));
}

/* CTA Section */
.why-us-cta {
    padding: 60px 24px 80px;
    background: #ffffff;
}

.cta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, var(--primary-color), #1a3fa4);
    border-radius: 24px;
    gap: 32px;
}

.cta-text h2 {
    font-size: 1.75rem;
    color: #ffffff;
    margin: 0 0 12px;
}

.cta-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.btn-secondary {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 767px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .cta-text p {
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .why-us-hero {
        padding: 80px 16px 60px;
    }

    .why-us-stats {
        padding: 40px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .why-us-cards-section {
        padding: 48px 16px;
    }

    .why-us-card-visual {
        padding: 0;
        min-height: 200px;
    }

    .visual-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .visual-content img.phone-logo {
        display: block;
    }

    .visual-content img.desktop-logo {
        display: none;
    }

    .why-us-card-content {
        padding: 24px;
    }

    .cta-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}