/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1f1f1f;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
}

nav a {
    margin-left: 22px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #007BFF;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 6px;
    transition: all 0.25s ease;
    font-size: 14px;
}

/* PRIMARY CTA */
.primary {
    background: #ffffff;
    color: #1e3a8a;
    border: 2px solid transparent;
}

.primary:hover {
    transform: translateY(-2px);
    background: #eaf2ff;
}

/* SECONDARY CTA */
.secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.secondary:hover {
    background: #ffffff;
    color: #1e3a8a;
}

/* ================= SECTIONS ================= */
.section {
    padding: 90px 0;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.section p {
    max-width: 750px;
    margin: auto;
    color: #555;
    font-size: 16px;
}

/* LIGHT SECTION */
.light {
    background: #f7f9fc;
}

/* ================= GRID ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

/* ================= CARD ================= */
.card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    border: 1px solid #eee;
    transition: all 0.25s ease;
    text-align: center;
}

.card h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1e3a8a;
}

.card h3 {
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ================= CTA SECTION ================= */
.cta {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta h2 {
    font-size: 34px;
    margin-bottom: 25px;
}

/* ================= FOOTER ================= */
.footer {
    background: #0f172a;
    color: #aaa;
    text-align: center;
    padding: 25px 0;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .hero {
        padding: 90px 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    nav {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 24px;
    }

    .btn {
        width: 90%;
        display: block;
        margin: 10px auto;
    }
}

/* ================= FINAL FIX: SECONDARY BUTTON VISIBILITY ================= */

/* Force visibility in ALL normal sections (white/light background) */
.section .btn.secondary {
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
    background: transparent !important;
}

/* Hover effect */
.section .btn.secondary:hover {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

/* Ensure it's never hidden */
.section .btn.secondary {
    opacity: 1 !important;
    visibility: visible !important;
}


/* ================= MATCH AFFILIATE BUTTON STYLE ================= */

#affiliates .btn.primary {
    background: transparent !important;
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
    transition: all 0.25s ease;
}

/* Hover SAME as advertiser */
#affiliates .btn.primary:hover {
    background: #1e3a8a !important;
    color: #ffffff !important;
}


/* ================= STICKY CTA ================= */

.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eee;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 9999;
}

/* Make BOTH buttons identical */
.sticky-cta .btn {
    margin: 0;
    font-size: 13px;
    padding: 10px 18px;

    /* FORCE SAME STYLE */
    background: transparent !important;
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
}

/* SAME hover for both */
.sticky-cta .btn:hover {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .sticky-cta {
        flex-direction: column;
        align-items: center;
    }

    .sticky-cta .btn {
        width: 90%;
    }
}

/* Prevent content from hiding behind sticky bar */
body {
    padding-bottom: 70px;
}


/* ================= HERO BUTTON UNIFIED STYLE ================= */

/* Make BOTH hero buttons look identical (for comparison/testing) */
.hero .btn.primary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* Hover effect (same as secondary) */
.hero .btn.primary:hover {
    background: #ffffff !important;
    color: #1e3a8a !important;
}