.modern-banner {
    padding: 40px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.banner-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
}

.banner-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.banner-card:hover {
    transform: translateY(-8px);
    text-decoration: none;
    box-shadow: 
        0 20px 64px rgba(0, 0, 0, 0.2),
        0 8px 32px rgba(31, 165, 253, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Hero Card Link Styles */
.hero-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hero-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.hero-card-link:focus {
    outline: 2px solid rgba(31, 165, 253, 0.5);
    outline-offset: 4px;
}

/* Ensure shop-button doesn't act as a link when inside hero-card-link */
.hero-card-link .shop-button {
    pointer-events: none;
    cursor: pointer;
}

/* Hero Card */
.hero-card {
    grid-column: 1;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, 
        rgba(31, 31, 31, 0.85) 0%, 
        rgba(15, 15, 15, 0.9) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
}

/* Background image class */
.hero-card-bg {
    background-image: url('/static/home/images/banner2_big.jpg');
}

/* Add overlay for better text readability */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(9, 16, 26, 0.3) 0%, 
        rgba(9, 16, 72, 0.3) 100%);
    z-index: 1;
}

/* Ensure content appears above overlay */
.hero-card > * {
    position: relative;
    z-index: 2;
}

.hero-card {
    padding: 50px;
}
.card-content-hero{
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1 / 3;
}
.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0px;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
}

.shop-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg,
            #1fa5fd 0%,
            #0dcaf0 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 16px 28px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.shop-button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.button-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.button-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.shop-button i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Blog Card */
.blog-card {
    grid-column: 2 / 4;
    grid-row: 1;
    background: rgb(0, 17, 101);
    background: radial-gradient(circle,
            rgba(0, 17, 101, 1) 0%,
            rgba(0, 17, 27, 1) 100%);
    color: #ffffff;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.card-content h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.card-content .circle-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(31, 165, 253, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-content .circle-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(31, 165, 253, 0.3));
}

.banner-card:hover .circle-icon {
    background: rgba(31, 165, 253, 0.15);
    transform: scale(1.05);
}

.card-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    max-width: 28ch;
}

/* About Card */
.about-card {
    grid-column: 2;
    grid-row: 2;
    background: rgb(0, 17, 157);
    background: radial-gradient(circle,
            rgba(0, 17, 157, 1) 0%,
            rgba(0, 17, 65, 1) 100%);
    color: white;
    border-radius: 32px;
    padding: 25px;
}

.about-card .card-content h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    font-weight: 600;
    color: white;
    margin-top: 0;
    line-height: 1.2;
    margin-bottom: 8px;
}

.about-card .card-content .circle-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.about-card .card-content .circle-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.about-card:hover .circle-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.about-card .card-content p {
    font-size: 0.8rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 22ch;
}

/* Contact Card */
.contact-card {
    grid-column: 3;
    grid-row: 2;
    background: rgb(0, 17, 214);
    background: radial-gradient(circle,
            rgba(0, 17, 214, 1) 0%,
            rgba(0, 17, 96, 1) 100%);
    color: white;
    border-radius: 32px;
    padding: 25px;
}

.contact-card .card-content h3 {
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 600;
    color: white;
    margin-top: 0;
    line-height: 1.2;
    margin-bottom: 8px;
}

.contact-card .card-content .circle-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.contact-card .card-content .circle-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.contact-card:hover .circle-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.contact-card .card-content p {
    font-size: 0.75rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 20ch;
}

.per-card__arrow{
    display: flex;
    padding: 5px;
    justify-content: end;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: 1.8fr 1fr 1fr;
        gap: 16px;
        min-height: 450px;
    }
    
    .banner-card {
        padding: 24px;
    }
    
    .blog-card {
        grid-column: 2 / 4;
    }
}

@media (max-width: 768px) {
    .modern-banner {
        padding: 50px 0 30px 0;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 16px;
        min-height: auto;
    }
    
    .banner-card {
        padding: 24px;
        border-radius: 24px;
    }
    
    .hero-card {
        grid-column: 1;
        grid-row: 1;
        min-height: 400px;
    }
    
    .blog-card {
        grid-column: 1;
        grid-row: 2;
    }
    
    .about-card {
        grid-column: 1;
        grid-row: 3;
        min-height: 200px;
    }
    
    .contact-card {
        grid-column: 1;
        grid-row: 4;
        min-height: 200px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 24px;
    }
    
    .shop-button {
        padding: 14px 24px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .banner-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
}
