/* ============================================
   VISION, MISSION, VALUES CARDS
   Add this to page-content.css
   ============================================ */

.vmv-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.vmv-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid transparent;
}

.vmv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #F19138;
}

/* Card Image Section */
.vmv-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.vmv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vmv-card:hover .vmv-card-image img {
    transform: scale(1.1);
}

/* Card Icon Badge */
.vmv-card-icon {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F19138 0%, #ff6b2c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(224, 83, 12, 0.4);
    z-index: 2;
    transition: all 0.4s ease;
}

.vmv-card:hover .vmv-card-icon {
    transform: translateX(-50%) scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(224, 83, 12, 0.5);
}

/* Card Content Section */
.vmv-card-content {
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
}

.vmv-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2F4F4F;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.vmv-card-text {
    font-size: 1rem;
    color: #5a6c7d;
    line-height: 1.7;
    margin: 0;
    text-align: justify;   /* This aligns both left and right */
    text-justify: inter-word; /* Optional: improves spacing */
}

/* ============================================
   TABLET RESPONSIVE (768px - 991px)
   ============================================ */

@media (max-width: 991.98px) {
    .vmv-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .vmv-card-image {
        height: 200px;
    }

    .vmv-card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: -27px;
    }

    .vmv-card-content {
        padding: 2.25rem 1.5rem 1.75rem;
    }

    .vmv-card-title {
        font-size: 1.35rem;
    }

    .vmv-card-text {
        font-size: 0.95rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE (Below 768px)
   ============================================ */

@media (max-width: 767.98px) {
    .vmv-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }

    .vmv-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .vmv-card-image {
        height: 200px;
    }

    .vmv-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: -25px;
    }

    .vmv-card:hover .vmv-card-icon {
        transform: translateX(-50%) scale(1.1) rotate(10deg);
    }

    .vmv-card-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .vmv-card-title {
        font-size: 1.25rem;
    }

    .vmv-card-text {
        font-size: 0.95rem;
    }

    .vmv-card:hover {
        transform: translateY(-5px);
    }
}

/* ============================================
   SMALL MOBILE (Below 576px)
   ============================================ */

@media (max-width: 575.98px) {
    .vmv-cards-container {
        gap: 1.75rem;
    }

    .vmv-card-image {
        height: 180px;
    }

    .vmv-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: -24px;
    }

    .vmv-card-content {
        padding: 1.75rem 1.25rem 1.5rem;
    }

    .vmv-card-title {
        font-size: 1.2rem;
    }

    .vmv-card-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* ============================================
   LARGE SCREENS (1400px+)
   ============================================ */

@media (min-width: 1400px) {
    .vmv-cards-container {
        gap: 2.5rem;
    }

    .vmv-card-image {
        height: 220px;
    }

    .vmv-card-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        bottom: -35px;
    }

    .vmv-card-content {
        padding: 3rem 2rem 2.25rem;
    }

    .vmv-card-title {
        font-size: 1.65rem;
    }

    .vmv-card-text {
        font-size: 1.05rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .vmv-card,
    .vmv-card-image img,
    .vmv-card-icon {
        transition: none;
    }

    .vmv-card:hover,
    .vmv-card:hover .vmv-card-image img,
    .vmv-card:hover .vmv-card-icon {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .vmv-card {
        border: 2px solid #2F4F4F;
    }

    .vmv-card-title {
        color: #000000;
    }

    .vmv-card-text {
        color: #333333;
    }
}

/* Print styles */
@media print {
    .vmv-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        page-break-inside: avoid;
    }

    .vmv-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .vmv-card-image {
        height: 150px;
    }

    .vmv-card-icon {
        display: none;
    }
}