/* 
* Alfaaz Modern Styles 
* Mobile First Approach
* Theme: Restored to Deep Blue Brand Colors
*/

:root {
    /* Color Palette - Restored to original brand colors */
    --primary-blue: #004c70;
    --primary-dark: #00334d;
    --primary-light: #4DA7CA;
    --bg-cream: #f4f7f9;
    --bg-white: #FFFFFF;
    --text-dark: #2D3436;
    --text-muted: #636E72;
    --text-light: #F0F0F0;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Modern Card Style (Glassmorphism as per live site) */
.modern-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.modern-card img {
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    max-height: 160px;
    object-fit: contain;
    width: 100%;
    background: #fff;
    /* White background for icons as seen on live */
}

.modern-card h2 {
    font-size: 1.6rem;
    color: #fff !important;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.modern-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.modern-card-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: #FFFFFF;
    color: #004c70 !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none !important;
}

.modern-card-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #004c70 !important;
}

/* Tablet & Desktop Overrides */
@media (min-width: 768px) {
    .modern-card {
        padding: var(--spacing-xl);
    }

    .modern-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}

.d-flex-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}