:root {
    --primary: #0056b3;
    --secondary: #28a745;
    --dark: #333;
    --light: #f8f9fa;
    --cta: #ffc107;
}
/* Logo Sizing Fix */
.logo img {
    height: 60px; /* Constrains height to standard nav size */
    width: auto;  /* Maintains aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

/* Ensure the nav adjusts for the logo */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .logo img {
        height: 45px; /* Slightly smaller for mobile screens */
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--dark); }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Header & Nav */
header { background: #fff; padding: 1rem 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; }

/* Hero Sections */
.hero { background: linear-gradient(rgba(0,86,179,0.8), rgba(0,86,179,0.8)), url('images/hero.jpeg'); 
        color: #fff; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; margin-top: 1rem; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-cta { background: var(--cta); color: #000; font-size: 1.5rem; padding: 20px 40px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.2s; }
.btn-cta:hover { transform: scale(1.05); }

/* Grid Layouts */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 40px 0; }
.card, .review-card { padding: 30px; border: 1px solid #ddd; border-radius: 10px; text-align: center; background: #fff; }
.section-title { text-align: center; margin-top: 50px; font-size: 2rem; }

/* Affiliate Page */
.affiliate-hero { text-align: center; padding: 60px 0; background: #f0f4f8; }
.hero-img { width: 100%; border-radius: 15px; margin-bottom: 30px; }

/* Footer */
footer { background: #222; color: #fff; padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-bottom { border-top: 1px solid #444; padding-top: 20px; font-size: 0.85rem; text-align: center; }
.disclaimer { font-style: italic; color: #aaa; margin: 10px 0; }
footer ul { list-style: none; }
footer a { color: #ccc; text-decoration: none; }

/* Mobile Menu */
.hamburger { display: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--dark); margin: 5px; }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 70px; left: 0; background: #fff; padding: 20px; box-shadow: 0 5px 5px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .hamburger { display: block; }
    .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
    /* This ensures the menu displays when the 'active' class is added via JS */
    .nav-links.active {
        display: flex !important;
        /* If you used 'right: -100%' in your previous code, use the line below instead: */
        /* right: 0 !important; */
    }
}