﻿.medical-banner {
    background-color: #0a4a6e;
    color: white;
    padding: 25px;
    border-radius: 10px;
    font-family: 'Arial', 'DejaVu Sans', sans-serif;
    max-width: 1200px;
    margin: 70px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.banner-text {
    flex: 1;
    padding: 10px;
}

    .banner-text h1 {
        font-size: 1.8em;
        margin: 0;
        line-height: 1.2;
    }

    .banner-text p {
        font-size: 0.9em;
        margin: 8px 0 15px;
        opacity: 0.9;
    }

.cta-button {
    background-color: #e0f2fe;
    color: #0a4a6e;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.calculators-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px;
}

/* Desktop-only elements */
.calculator-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .medical-banner {
        flex-direction: column;
        text-align: center;
        padding: 15px; /* Reduced mobile padding */
        margin: 80px 20px 0px 20px;
        
    }

    .banner-text h1 {
        font-size: 1.5em; /* Smaller heading */
        margin-top: 5px;
    }

    .banner-text p {
        font-size: 0.8em; /* Smaller text */
        margin: 5px 0 10px;
    }

    .cta-button {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .new-badge {
        position: static;
        margin: 0 auto 8px;
        font-size: 0.6em;
        padding: 3px 6px;
    }

    .calculators-grid {
        display: none;
    }
}
