/* =========================
   GLOBAL FONT (Poppins)
========================= */

:root {
    --primary: #1d3557;
    --primary-light: #457b9d;
    --accent: #e63946;
    --text: #1a1a1a;
    --muted: #aab8c5;

    --header-height: 82px;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f8;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

.main > *:first-child {
    margin-top: 0 !important;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= TYPOGRAPHY ================= */
h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

p {
    font-size: 17px;
    color: #333;
}

.lead {
    font-size: 20px;
    line-height: 1.8;
    color: #2c2c2c;
    max-width: 900px;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    z-index: 3000;
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 30px;
}

/* LOGO */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 56px;
}

/* ================= NAV ================= */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    width: 100%;
    max-width: 700px;
    justify-content: space-between;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.25s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ================= ACTIONS ================= */
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
}

.btn.outline {
    background: var(--primary-light);
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
}

/* ================= HAMBURGER ================= */
#hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: var(--primary);
    z-index: 5000;
    padding: 20px;

    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 12px 0;
    font-weight: 600;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #fff;
}

.mobile-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ================= OVERLAY ================= */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 4000;
}

#overlay.show {
    display: block;
}

/* ================= MAIN ================= */
/****moved to body   **/
/* ================= FOOTER (FIXED PROPERLY) ================= */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 0 30px;
}

.footer .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Optional divider styling (if used in HTML) */
.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 30px 0;
}

/* FOOTER STRIP */
.partner-strip {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

/* FOOTER GRID (THIS WAS BREAKING BEFORE) */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-grid h4 {
    margin-bottom: 18px;
    font-size: 16px;
    color: #fff;
}

.footer-grid a,
.footer-grid p {
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-size: 14.5px;
}

.footer-grid a:hover {
    color: var(--accent);
}

/* SOCIAL */
.social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social a {
    color: var(--muted);
    font-size: 14.5px;
    transition: 0.2s;
}

.social a:hover {
    color: var(--accent);
}

/* NEWSLETTER */
.newsletter input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
}

.newsletter button {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* FOOTER BOTTOM */
.footer-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-top: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .nav,
    .actions .btn {
        display: none;
    }

    #hamburger {
        display: block;
    }

    .logo img {
        height: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= DESKTOP SAFETY ================= */
@media (min-width: 769px) {
    .mobile-menu,
    #overlay {
        display: none !important;
    }
}

/* ================= USER DROPDOWN ================= */
.dropdown {
    position: relative;
}

#userBtn {
    background: var(--primary-light);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#userBtn:hover {
    background: var(--accent);
}

/* Dropdown box */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 115%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    overflow: hidden;
    padding: 10px;
}

.dropdown-menu.show {
    display: block;
}

/* Dropdown items styled like buttons */
.dropdown-menu a,
.dropdown-menu form button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

/* Dashboard button (blue style) */
.dropdown-menu a {
    background: #f1f5f9;
    color: #1e293b;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: #fff;
}

/* Logout button (red style) */
.dropdown-menu form button {
    background: #fee2e2;
    color: #991b1b;
}

.dropdown-menu form button:hover {
    background: var(--accent);
    color: #fff;
}

.dropdown-menu form {
    margin: 0;
}

