.hero {
    position: relative;
    /* Height matches the new banner size 1500x450 proportional */
    height: 450px;
    max-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Initial state before JS populates */
    background: url('../image/hero_image_1.png') center/cover no-repeat;
    z-index: 0;
    transition: background-image 1s ease-in-out;
}

/* Base Light tracking from JS */
.hero-slider-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero.hovering .hero-slider-bg::before {
    opacity: 1;
}

/* Semi-transparent overlay to ensure text is readable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 43, 91, 0.7) 0%, rgba(0, 43, 91, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-title.fade-in,
.hero-subtitle.fade-in {
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dots navigation */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
    background: transparent;
    border: 2px solid var(--white);
    transform: scale(1.2);
}

.section-container {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--jp-navy);
    border-bottom: 3px solid var(--jp-blue-light);
    display: inline-block;
    padding-bottom: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive adjustments for grids */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    transition: 0.3s;
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
}

.price-tag {
    color: var(--jp-blue-light);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 10px 0;
}

.btn-buy {
    width: 100%;
    padding: 10px;
    background: var(--jp-navy);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
    border-radius: 4px;
    margin-top: auto;
}

.btn-buy:hover {
    background: var(--jp-blue-light);
}

.article-card {
    text-align: left;
}

.article-card h3 {
    font-size: 1.1rem;
    margin: 5px 0 10px;
    color: var(--jp-navy);
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}