/* ================= HERO ================= */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 80px;
    background:#599dd8;
    color: white;
    flex-wrap: wrap;
}

.hero-content {
    width: 50%;
}

.hero-content h1 {
    font-size: 45px;
}

/* Floating image animations */
.hero-images img {
    width: 32%;
    border-radius: 10px;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

/* ================= SERVICES ================= */
.services {
    padding: 60px 80px;
    text-align: center;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.service-box {
    width: 30%;
    background: white;
    padding: 25px;
    border-radius: 12px;
    animation: cardFloat 3s infinite;
}

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

@media (max-width: 900px) {

    .hero-content, .hero-images, .service-box {
        width: 100%;
        text-align: center;
    }

    .service-container {
        flex-direction: column;
    }
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0077ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease;
}

/* Hover effect */
.btn:hover {
    background: #005fcc;
}

/* --------------------------------------------------
   Mobile Responsive (Max width 480px)
-------------------------------------------------- */
@media (max-width: 480px) {
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 6px;
    }
}

/* --------------------------------------------------
   Tablet Responsive (481px to 768px)
-------------------------------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
    .btn {
        width: auto;
        padding: 16px 30px;
        font-size: 17px;
    }
}

/* --------------------------------------------------
   Desktop Responsive (Above 768px)
-------------------------------------------------- */
@media (min-width: 769px) {
    .btn {
        padding: 14px 35px;
        font-size: 18px;
    }
}








/* Background Section */
.news-area {
    padding: 70px 0;
    background: url("img/news-bg.jpg") no-repeat center/cover;
    position: relative;
}

/* Dark overlay on background */
.news-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.news-title {
    position: relative;
    color: #fff;
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

/* Card Container */
.news-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 40px;
}

/* Card Style */
.news-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.4s;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255,255,255,0.5);
}

/* Card Image */
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Card Text */
.news-text {
    padding: 20px;
}

.news-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1b2b52;
}

.news-text p {
    font-size: 14px;
    color: #444;
}

/* ******************************* */
/* RESPONSIVE MEDIA QUERIES        */
/* ******************************* */

/* Tablet View */
@media (max-width: 992px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .news-title {
        font-size: 30px;
    }
}

/* Mobile View */
@media (max-width: 600px) {
    .news-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .news-title {
        font-size: 26px;
    }

    .news-card img {
        height: 160px;
    }
}
