/* ============================= */
/* NEWS SECTION */
/* ============================= */
.news-page-container {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}
.news-section {
    padding: 50px 0;
}

/* ============================= */
/* CARD */
/* ============================= */

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ============================= */
/* IMAGE */
/* ============================= */

.news-img-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.news-img-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top; /* ✅ Important */
    transition: transform 0.4s ease;
}

/* Hover zoom only */
.news-img-container:hover img {
    transform: scale(1.08);
}

/* ============================= */
/* FULLSCREEN OVERLAY */
/* ============================= */

#imageOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#imageOverlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

#imageOverlay .close-overlay {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

/* ============================= */
/* CONTENT */
/* ============================= */

.news-content {
    padding: 20px;
}

.news-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.news-title a {
    color: black;
    text-decoration: underline;
}

.news-title a:hover {
    color: #007bff;
}

.news-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

/* Carousal */

/* ============================= */
/* NEWS SLIDER */
/* ============================= */

.news-carousel-section {
    padding: 40px 0px;
    overflow: hidden;
    background: #f8f9fa;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scrollRight 45s linear infinite;
}

/* STOP on hover */
.slider-wrapper:hover .slider-track {
    animation-play-state: paused;
}

.slider-card {
    width: 250px;
    margin-right: 20px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.slider-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

/* Zoom effect */
.slider-card:hover img {
    transform: scale(1.1);
}

/* RIGHT SIDE SCROLL */
@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.carousel-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    border: 2px solid #00c6ff;
    background: transparent;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.7);
}

.plan-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.plan-switch {
    position: relative;
    display: flex;
    gap: 8px;
    background: #f3f5f7;
    padding: 6px;
    border-radius: 50px;
}

.switch-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    z-index: 2;
}

.switch-btn.active {
    color: #fff;
}

.plan-arrow {
    position: absolute;
    height: 100%;
    width: 120px;
    background: #0d6efd;
    border-radius: 30px;
    left: 0;
    top: 0;
    transition: all 0.35s ease;
    z-index: 1;
}
