/* ===== GLOBAL FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg,#eef5ff,#ffffff);
    color: #333;
}

/* ===== HEADER & NAVBAR ===== */
header, footer {
    background: linear-gradient(90deg,#003366,#0059b3);
    color: white;
    padding: 10px 20px;
    text-align: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

header nav ul li {
    margin: 0 12px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* ✨ MODERN NAV HOVER (replaces yellow) */
header nav ul li a:hover {
    background: linear-gradient(90deg,#00c6ff,#0072ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,114,255,0.35);
    color: white;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* ===== BACK BUTTON ===== */
button.back-btn {
    background: linear-gradient(90deg,#0072ff,#00c6ff);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    margin: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

button.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,114,255,0.35);
}

/* ===== SECTION CARDS ===== */
.section, .section_p {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    border: 1px solid #d0e3ff;
    max-width: 900px;
    transition: all 0.35s ease;
}

/* ✨ REMOVE OLD YELLOW HOVER */
.section:hover,
.section_p:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,91,187,0.18);
    border-color: #007bff;
    background: #eaf3ff;
}

/* ===== GRID LAYOUT ===== */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ===== GRID CARDS ===== */
.grid-item {
    background: white;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    width: calc(30% - 20px);
    text-align: center;
    border: 1px solid #d0e3ff;
    transition: all 0.35s ease;
}

.grid-item img {
    max-width: 100%;
    border-radius: 10px;
}

/* ✨ MODERN CARD HOVER */
.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,91,187,0.18);
    border-color: #007bff;
    background: #eaf3ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .grid-item {
        width: calc(45% - 20px);
    }
}

@media (max-width: 480px) {
    header nav ul {
        flex-direction: column;
    }
    .grid-item {
        width: calc(100% - 20px);
    }
}
