/* ðŸ”µ Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom right, #6b586e, #4f78b9);
    padding: 5px;
}

/* ðŸ”µ Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #343a40;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo a {
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.menu li a:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ðŸ”µ Page Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    border: 2.5px solid #fff;
    background: linear-gradient(to bottom right,  #292834, #0e212b);
    border-radius: 15px;
    box-shadow: 7 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ðŸ”µ Page Title */
.container h2 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 20px;
    color: #675877;
}

/* ðŸ”µ News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    border: 2px solid #414141;
    border-radius: 4.7px;
    box-shadow: 0 0 24px rgba(0, 7, 0, 0.9);
}

/* 🔥 News Card Hover Glow Effect */
.news-card {
    z-index:4;
    background: linear-gradient(to bottom right, #4e233b, #3e516e);
    border: 4px solid #fafafa;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-color: #fff;
    text-color: #fff;
    position: relative;
    cursor: pointer;
}


.news-card p {
    color: yellow;
}




/* Hover Effect with Reddish-Blue-Violet Glow */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5),   /* Red Glow */
                0 0 40px rgba(0, 0, 255, 0.5),   /* Blue Glow */
                0 0 60px rgba(138, 43, 226, 0.5); /* Violet Glow */
}

/* Optional: Adding an Inner Glow for Depth */
.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15), rgba(0, 0, 255, 0.15), rgba(138, 43, 226, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

/* Glow Effect Becomes Visible on Hover */
.news-card:hover::before {
    opacity: 1;
}


.news-card a {
    text-decoration: none;
    color: inherit;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.news-content {
    padding: 15px;
    flex-grow: 1;
    z-index: 2;
}

.news-content h3 {
    font-size: 1.35rem;
    margin-top:2.5px;
    margin-bottom: 2px;
    color: #f3f3f3;
    z-index: 1;
}


.news-content h3:hover {
    font-size: 1.1rem;
    margin-bottom: 0px;
    color: #fff;
    background-color: none;
    padding-top: 4px;
    padding-bottom: 4px;
    border:none;
    border-radius: 9px;
    z-index: 1;
}

.glow-btn {
    display: inline-block;
    padding: 7px 7px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease-in-out;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    outline: none;
    overflow: hidden;
}

.glow-btn:hover,
.glow-btn:focus {
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.8),
                0 0 50px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
    color: #fff;
    background: linear-gradient(70deg, yellow, red);
    flex-grow:1;
    border: 2px solid black;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    color: #fff;
    background: radial-gradient(circle, rgba(255, 40, 255, 0.4), rgba(200, 255, 255, 0.1));
    transition: all 0.9s ease-in-out;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: 0;
}

.glow-btn:hover::before {
    color: red;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
}



.news-content p {
    font-size: 0.9rem;
    color: #a4aebd;
}

/* ðŸ”µ Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .news-card img {
        height: 160px;
    }
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 10px;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .news-card img {
        height: 140px;
    }

    .news-content h3 {
        font-size: 1rem;
    }

    .news-content p {
        font-size: 0.85rem;
        color: #a4aebd;
    }
}
