/* ===== PAGE STYLES ===== */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #d9ecff 0%, #ffe8d6 100%);
    color: #333;
}

/* Header */
.main-header {
    position: sticky;               /* stays at the top */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;

    background: rgba(255, 255, 255, 0.4);  /* semi-transparent for glass effect */
    backdrop-filter: blur(10px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */

    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);         /* gentle shadow */
    
    z-index: 100; /* stays above content */
}

.logo {
    height: 60px;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.navbar a:hover,
.navbar a.active {
    color: #007bff;
    background-color: rgba(0, 119, 255, 0.1);
}

.sign-btn {
    background: #0077ff;
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff !important;
}

/* ================= HAMBURGER - HIDDEN ON DESKTOP ================= */
.hamburger {
    display: none;          /* Hidden on desktop by default */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    margin-left: auto;      /* Push to right when shown */
}

@media (max-width: 700px) {
    .hamburger {
        display: block;      /* show hamburger */
        margin-left: auto;   /* push to right */
        font-size: 28px;
        cursor: pointer;
    }

    .navbar ul {
        display: none;       /* hide menu initially */
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100%;           /* dropdown below header */
        right: 0;            /* align to right */
        background: rgba(255, 255, 255, 0.82); /* glass effect */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 0 0 12px 12px;
        z-index: 99;
    }

    .navbar ul.show {
        display: flex;       /* show menu when toggled */
    }

    .main-header {
        flex-direction: row;  /* logo left, hamburger right */
        align-items: center;
        padding: 15px 20px;
    }
}

/* ===== SCHOLARSHIP FINDER SECTION ===== */

.scholarship-finder {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.scholarship-finder h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #f97316; /* orange title */
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filters select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.scholarship-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scholarship-card h3 {
    margin: 0;
    color: #4f46e5;
}

.scholarship-card p {
    margin: 0.25rem 0;
}

.scholarship-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.scholarship-card .tag {
    background-color: #f97316;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.scholarship-card a {
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    color: #fff;
    background-color: #4f46e5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.scholarship-card a:hover {
    background-color: #3730a3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: center;
    }
}
/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background-color: #f8f9fa;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid #e0e0e0;
}

footer img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-left p {
    color: #555;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0056b3;
}

.footer-contact p {
    color: #555;
    font-size: 0.9rem;
}
