.label {
    color: #0b1e3a;
    font-weight: bold;
}

.modern {
    padding: 4rem 2rem;
    background: bisque;
    padding-left: 120px;
}

.modern h2 {
    text-align: center;
    font-family: "Cinzel", serif;
    color: #0b1e3a;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    margin-top: 4rem;
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.modern-card:first-child {
    grid-column: span 2;
}

.modern-card:first-child img {
    height: 400px;
}

.modern-card {
    background: #0b1e3a;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: 0.4s ease;
    cursor: pointer;
}

.modern-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(194,167,92,0.2);
    pointer-events: none;
}

.modern-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,30,58,0.85), rgba(11,30,58,0.2));
    z-index: 1;
}

.modern-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.5s ease;
}

.modern-card .text {
    position: absolute;
    bottom: 0;
    padding: 1.5rem;
    z-index: 2;
    color: white;
}

.modern-card h3 {
    color: #C2A75C;
    font-family: "Cinzel", serif;
    margin-bottom: 0.5rem;
}

.modern-card p {
    font-family: "Roboto Slab", serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.modern-card:hover img {
    transform: scale(1.1);
}

.modern-card:hover::before {
    background: linear-gradient(to top, rgba(11,30,58,0.95), rgba(11,30,58,0.1));
}

@media (max-width: 1000px) {
    .modern {
        padding-left: 2rem;
    }

    .modern-grid{
        padding-left: 4rem;
    }
}

@media (max-width: 688px) {
    .modern-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .modern-card {
        grid-column: span 1 !important;
    }

    .modern-card img {
        height: 250px;
    }
    
}