/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* prevents white gaps */
html, body {
    height: 100%;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* =========================
   BODY
========================= */

body {
    color: #333;
    line-height: 1.6;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 25px;
    background: #ffffff;

    border-bottom: 3px solid #d32f2f;

    position: sticky;
    top: 0;
    z-index: 1000;
}

/* LOGO */
.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-section img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 16px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #d32f2f;
}

.nav-links .active {
    color: #d32f2f;
}

/* =========================
   MAIN CONTENT (IMPORTANT FIX)
========================= */

main {
    padding: 40px;
    min-height: calc(100vh - 120px);
    background: #f5f5f5; /* ensures no white gaps */
}

/* =========================
   FOOTER (FIXED NO LINE)
========================= */

footer {
    background: #222;
    color: #fff;
    text-align: center;

    padding: 12px 15px;
    font-size: 13px;

    margin: 0;            /* ❌ removes white gap issue */
    border: none;         /* ❌ removes any line */
    display: block;
}

/* =========================
   GRID SYSTEM
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* =========================
   BUTTONS
========================= */

button, .btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background: #a82424;
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: white;

        position: absolute;
        top: 70px;
        right: 20px;

        width: 200px;
        padding: 10px;

        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    main {
        padding: 20px;
    }
}