#pre-footer-banners {
    display: flex;
    gap: 16px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

    #pre-footer-banners a {
        display: flex;
        flex: 1;
        background-color: #007ba4;
        color: white;
        text-decoration: none;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 123, 164, 0.15);
        min-height: 80px; /* Much slimmer height */
      
    }

        #pre-footer-banners a:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 123, 164, 0.25);
        }

    #pre-footer-banners > a > div:first-child {
        padding: 0.8rem 1.2rem;
        flex: 6;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #pre-footer-banners h2 {
        margin-bottom: 2px; /* Reduced margin */
        font-size: 1rem; /* Smaller font */
        font-weight: 700;
        line-height: 1.2;
    }

    #pre-footer-banners p {
        margin: 0;
        line-height: 1.3; /* Tighter line height */
        font-size: 0.8rem; /* Smaller font */
    }

    #pre-footer-banners .read-more {
        color: white;
        font-weight: 600;
        margin-top: 4px; /* Reduced margin */
        font-size: 0.75rem; /* Smaller font */
    }

    #pre-footer-banners > a > div:last-child {
        flex: 4;
        background-color: #007ba4;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 120px; /* Limit image width to maintain slim look */
    }

    #pre-footer-banners img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Tablet Styles */
@media (max-width: 1024px) {
    #pre-footer-banners {
        gap: 12px;
        padding: 12px;
    }

        #pre-footer-banners > a > div:first-child {
            padding: 0.7rem 1rem;
        }

        #pre-footer-banners h2 {
            font-size: 0.95rem;
        }

        #pre-footer-banners p {
            font-size: 0.75rem;
        }

        #pre-footer-banners > a > div:last-child {
            max-width: 100px;
        }
}

@media (max-width: 768px) {
    #pre-footer-banners {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

        #pre-footer-banners a {
            flex-direction: row; /* Keep horizontal layout on tablet */
            min-height: 70px;
        }

        #pre-footer-banners > a > div:first-child {
            padding: 0.7rem 1rem;
            flex: none;
            flex-grow: 1;
        }

        #pre-footer-banners > a > div:last-child {
            flex: none;
            max-width: 90px;
            height: auto;
        }
}

/* Mobile Styles */
@media (max-width: 480px) {
    #pre-footer-banners {
        gap: 8px;
        padding: 8px;
    }

        #pre-footer-banners a {
            min-height: 65px;
        }

        #pre-footer-banners > a > div:first-child {
            padding: 0.6rem 0.8rem;
        }

        #pre-footer-banners > a > div:last-child {
            max-width: 80px;
        }

        #pre-footer-banners h2 {
            font-size: 0.9rem;
            margin-bottom: 1px;
        }

        #pre-footer-banners p {
            font-size: 0.7rem;
        }

        #pre-footer-banners .read-more {
            font-size: 0.7rem;
            margin-top: 2px;
        }
}
