/* Modern UI Banner Section */
.latest-banner-section {
    padding: 80px 0;
    background-color: transparent;
    perspective: 1000px;
}

.latest-banner-content {
    /* Base background color is set inline via PHP */
    border-radius: 24px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    min-height: 420px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.latest-banner-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

/* Subtle texture overlay */
.latest-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Glow Effect Container */
.banner-glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 1;
    pointer-events: none;
}

.banner-text {
    flex: 1;
    padding: 40px 0;
    z-index: 2;
    max-width: 550px;
    position: relative;
}

.banner-title {
    font-weight: 700;
    /* Color set inline */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.title-line-1 {
    font-size: 30px;
    display: inline-block;
}

.title-line-2 {
    font-size: 25px;
    display: inline-block;
    margin-top: 5px;
}

.banner-discount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
}

.discount-label {
    font-size: 16px;
    font-weight: 500;
    /* Color set inline with opacity */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: inline-block;
}

.discount-value {
    font-size: 18px;
    font-weight: 400;
    /* Color set inline */
    line-height: 1.5;
}

/* Modern Button Style */
.banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6; /* Blue button */
    border: 1px solid #3b82f6;
    color: #ffffff !important; /* Force white text */
    font-size: 14px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px; /* Pill shape */
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.banner-btn:hover {
    background: #2563eb; /* Darker blue on hover */
    border-color: #2563eb;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

.banner-btn:hover::before {
    left: 100%;
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 2;
}

.banner-image img {
    max-width: 100%;
    max-height: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Dark Mode - Inherits styles naturally, but ensure wrapper is transparent */
html.theme-dark .latest-banner-section {
    background-color: transparent;
}

html.theme-dark .latest-banner-content {
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 991px) {
    .latest-banner-content {
        padding: 0 40px;
        min-height: 380px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .latest-banner-content {
        flex-direction: column;
        padding: 40px 30px;
        text-align: left; /* Professional alignment */
        min-height: auto;
        justify-content: center;
        align-items: flex-start;
    }
    
    .banner-text {
        margin-bottom: 30px;
        padding: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align left */
    }
    
    .banner-title {
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .title-line-1 {
        font-size: 24px;
    }

    .title-line-2 {
        font-size: 20px;
    }
    
    .banner-discount {
        align-items: flex-start; /* Align left */
        margin-bottom: 24px;
        text-align: left;
    }
    
    .banner-image {
        justify-content: center;
        width: 100%;
        margin-top: 20px;
    }
    
    .banner-image img {
        max-width: 80%;
        max-height: 200px;
    }
    
    .banner-btn {
        width: auto; /* Don't force full width, looks more pro */
        padding: 12px 30px;
        font-size: 13px;
    }
}