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

body {
    background-color: #f8fafb;
    color: #1a202c;
  /* Prevents side-scrolling if things break */
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.873);
}

.logo {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    color: #000000;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 10px;
    font-weight: bold;
}

.icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icons {
    width: 12px;
    height: 12px;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #111;
    color: white;
    width: 100%;
    padding: 20px 30px;
    flex-shrink: 0; 
    margin-top: auto; 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.footer-left a, .footer-center, .footer-right {
    font-size: 11px;
    color: #bbb;
    text-decoration: none;
}

html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main-container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-center a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}


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

/* Tablets and small laptops (1024px and below) */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 8px;
    }

    .logo {
        font-size: 20px;
    }
}

/* Mobile phones (768px and below) - Horizontal Footer Kept */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .icons {
        gap: 10px;
    }

    .nav-icons {
        width: 12px;
        height: 12px;
    }

    /* Keeps footer horizontal, adjusts padding and font-size to prevent wrapping */
    .footer {
        padding: 15px 10px;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-left a, 
    .footer-center, 
    .footer-right {
        font-size: 9px; /* Scaled down slightly to fit side-by-side on smaller screens */
    }
}

/* Very small screens (400px and below) */
@media screen and (max-width: 400px) {
    .navbar {
        padding: 8px 10px;
    }

    .logo {
        font-size: 14px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 9px;
    }

    .icons {
        gap: 8px;
    }

    /* Ultra-small horizontal adjustments */
    .footer {
        padding: 12px 8px;
    }

    .footer-left a, 
    .footer-center, 
    .footer-right {
        font-size: 5px; /* Compact size to ensure horizontal alignment without breaking */
        gap: 10px;
    }
}