/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    color: #333;
}

.mail-portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

.mail-portal-logo {
    max-width: 20%;
    height: auto;
    margin-bottom: 2rem;
    animation: colorShift 5s infinite linear;
    filter: hue-rotate(0deg);
}

@keyframes colorShift {
    0%   { filter: hue-rotate(0deg); }
    50%  { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

.mail-portal-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #212529;
}

.mail-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.mail-service-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mail-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.mail-card-content {
    padding: 2rem;
    text-align: center;
}

.mail-service-logo {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.mail-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #212529;
}

.mail-service-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.mail-service-btn:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.mail-service-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mail-portal-container {
        padding: 2rem 1rem;
    }
    
    .mail-portal-logo {
        max-width: 25%;
    }
    
    .mail-portal-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .mail-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .mail-service-card {
        min-width: 280px;
        max-width: 100%;
    }
    
    .mail-card-content {
        padding: 1.5rem;
    }
    
    .mail-service-logo {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
    
    .mail-card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .mail-portal-container {
        padding: 1.5rem 0.5rem;
    }
    
    .mail-portal-logo {
        max-width: 30%;
    }
    
    .mail-portal-title {
        font-size: 1.75rem;
    }
    
    .mail-card-content {
        padding: 1.25rem;
    }
}

