/* Basic styling for the business studies notes website */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: #f7f9fc;
    color: #333;
}

header {
    background-color: #004d99;
    background-image: url('images/logo_real.jpg');
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: auto 60px;
    color: #fff;
    padding: 20px 10px 20px 90px;
    text-align: left;
    display: flex;
    align-items: center;
}

nav {
    background: #e6f0ff;
    padding: 10px;
    border-bottom: 1px solid #ccddee;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

/* top-level navigation items */
nav ul li {
    margin-right: 15px;
    position: relative;
}

nav ul li a {
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* dropdown menu styling */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #e6f0ff;
    border: 1px solid #ccddee;
    padding: 10px;
    list-style: none;
    margin: 0;
    z-index: 1000;
    min-width: 140px;
}

nav ul li:hover > ul {
    display: block;
}

nav ul li ul li {
    margin: 0;
}

/* button styling */
.btn {
    display: inline-block;
    background: #004d99;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background: #003366;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 20px;
}

h2 {
    color: #004d99;
    margin-top: 0;
}

footer {
    background: #004d99;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin-bottom: 8px;
    }
    footer {
        position: relative;
    }
}
header h1 {
    margin-left: auto;
    margin-right: 20px;
    text-align: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2rem;
}

/* Chapter bottom navigation buttons */
.chapter-bottom-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #ccddee;
    margin-top: 34px;
    padding-top: 18px;
    padding-bottom: 70px;
}
.chapter-bottom-nav .prev-link { justify-self: start; }
.chapter-bottom-nav .all-link { justify-self: center; }
.chapter-bottom-nav .next-link { justify-self: end; }
.chapter-nav-button {
    display: inline-block;
    background: #ffffff;
    color: #004d99;
    border: 1px solid #b9d0ec;
    border-radius: 7px;
    padding: 9px 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.chapter-nav-button:hover {
    background: #e6f0ff;
    text-decoration: none;
}
.chapter-nav-spacer {
    display: block;
    min-width: 1px;
    min-height: 1px;
}
@media (max-width: 600px) {
    .chapter-bottom-nav {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 30px;
    }
    .chapter-bottom-nav .prev-link,
    .chapter-bottom-nav .all-link,
    .chapter-bottom-nav .next-link,
    .chapter-nav-spacer {
        justify-self: center;
    }
}

/* Top breadcrumbs, chapter navigation and SEO/accessibility helpers */
html { scroll-behavior: smooth; }
.skip-target { display:block; position:relative; top:-14px; visibility:hidden; height:0; }
.breadcrumb-nav {
    max-width: 1100px;
    margin: 14px auto 0;
    padding: 0 16px;
    font-size: 0.95rem;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    margin: 0;
    background: #f7fbff;
    border: 1px solid #cfe0f5;
    border-radius: 9px;
}
.breadcrumb-list li { color: #334155; }
.breadcrumb-list li + li::before {
    content: "›";
    margin-right: 6px;
    color: #64748b;
    font-weight: 700;
}
.breadcrumb-list a {
    color: #004d99;
    font-weight: 700;
    text-decoration: none;
}
.breadcrumb-list a:hover { text-decoration: underline; }
.chapter-top-nav {
    max-width: 1100px;
    margin: 12px auto 18px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}
.chapter-top-nav .prev-link { justify-self: start; }
.chapter-top-nav .all-link { justify-self: center; }
.chapter-top-nav .next-link { justify-self: end; }
.chapter-top-nav .chapter-nav-button {
    background: #eef6ff;
    border-color: #b9d0ec;
}
.chapter-top-nav .chapter-nav-button:hover { background: #dbeeff; }
@media (max-width: 600px) {
    .chapter-top-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .chapter-top-nav .prev-link,
    .chapter-top-nav .all-link,
    .chapter-top-nav .next-link {
        justify-self: center;
        width: 100%;
        box-sizing: border-box;
    }
    .breadcrumb-list { font-size: 0.9rem; }
}

/* Global navigation update: subjects, about, contact, Edvora Pathways */
.global-site-nav {
    background: #e6f0ff;
    border-bottom: 1px solid #ccddee;
    padding: 0 10px;
    position: relative;
    z-index: 1500;
}
.global-site-nav .site-nav-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.global-site-nav .site-nav-list > li {
    margin: 0;
    position: relative;
}
.global-site-nav a {
    display: block;
    color: #004d99;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 14px;
    border-radius: 7px;
}
.global-site-nav a:hover,
.global-site-nav a:focus {
    background: #ffffff;
    text-decoration: none;
    outline: none;
}
.global-site-nav .subject-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #ccddee;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    border-radius: 8px;
    padding: 6px;
    z-index: 2000;
}
.global-site-nav .subject-menu li {
    list-style: none;
    margin: 0;
}
.global-site-nav .subject-menu a {
    padding: 10px 12px;
    border-radius: 6px;
}
.global-site-nav .subjects-dropdown:hover .subject-menu,
.global-site-nav .subjects-dropdown:focus-within .subject-menu {
    display: block;
}
.site-badge-link {
    background: #004d99;
    color: #fff !important;
    margin-left: 4px;
}
.site-badge-link:hover,
.site-badge-link:focus {
    background: #003366 !important;
}
.creator-card {
    background: #eef6ff;
    border: 1px solid #c9def5;
    border-left: 5px solid #004d99;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
.edvora-hero {
    background: linear-gradient(135deg, #eef6ff, #ffffff);
    border: 1px solid #c9def5;
    border-left: 5px solid #004d99;
    border-radius: 12px;
    padding: 20px;
    margin: 18px 0;
}
.edvora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.edvora-card {
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.edvora-card .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}
.edvora-steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}
.edvora-steps li {
    counter-increment: step;
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 10px;
    padding: 12px 14px 12px 48px;
    margin: 10px 0;
    position: relative;
}
.edvora-steps li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #004d99;
    color: #fff;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}
@media (max-width: 700px) {
    .global-site-nav .site-nav-list {
        display: block;
    }
    .global-site-nav .site-nav-list > li {
        display: block;
    }
    .global-site-nav .subject-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 4px 14px;
    }
    .site-badge-link {
        margin-left: 0;
    }
}

/* Shared student-friendly cards, tables and coloured bullets */
.clear-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: #fff;
}
.clear-table th,
.clear-table td {
    border: 1px solid #ccddee;
    padding: 10px;
    vertical-align: top;
}
.clear-table th {
    background: #e6f0ff;
    color: #003366;
}
.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}
.bullet-list li {
    position: relative;
    padding-left: 28px;
    margin: 10px 0;
}
.bullet-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff6b35;
    font-size: 1.05rem;
}
.bullet-list li.blue::before { color: #004d99; }
.bullet-list li.green::before { color: #2e8b57; }
.bullet-list li.purple::before { color: #7a3db8; }
.bullet-list li.red::before { color: #cc3333; }
.bullet-list li.gold::before { color: #cc8a00; }



/* Updated global navigation, footer, contact and donation sections */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    flex: 1 0 auto;
}
.global-site-nav .site-nav-list {
    justify-content: center;
}
.global-site-nav .donate-nav-link {
    background: #fffbeb;
    color: #92400e !important;
    border: 1px solid #facc15;
}
.global-site-nav .donate-nav-link:hover,
.global-site-nav .donate-nav-link:focus {
    background: #fef3c7 !important;
}
footer,
.site-footer {
    position: static !important;
    width: auto !important;
    bottom: auto !important;
    background: #07131f;
    color: #dbe7f3;
    text-align: left;
    padding: 0;
    margin-top: 40px;
    flex-shrink: 0;
}
.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 24px;
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .8fr));
    gap: 26px;
}
.site-footer-brand img {
    max-width: 165px;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
}
.site-footer-brand p,
.site-footer small {
    color: #9fb1c3;
}
.site-footer h3 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 10px;
}
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer li {
    margin: 7px 0;
}
.site-footer a {
    color: #bdd7f1;
    text-decoration: none;
    font-weight: 600;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.contact-form,
.donation-form,
.support-card {
    background: #ffffff;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin: 18px 0;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-field label {
    font-weight: bold;
    color: #003366;
}
.form-field input,
.form-field select,
.form-field textarea {
    border: 1px solid #b9d0ec;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fbfdff;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note {
    background: #eef6ff;
    border-left: 5px solid #004d99;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
}
.warning-note {
    background: #fff7e6;
    border-left: 5px solid #cc8a00;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 12px 0;
}
.donate-hero {
    background: linear-gradient(135deg, #eef6ff, #ffffff 60%, #fff7e6);
    border: 1px solid #c9def5;
    border-left: 6px solid #004d99;
    border-radius: 14px;
    padding: 22px;
    margin: 18px 0;
}
.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 18px 0;
}
.donate-card {
    background: #fff;
    border: 1px solid #d7e5f4;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.donate-card .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}
.bank-details {
    background: #f8fafc;
    border: 1px solid #d7e5f4;
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}
.bank-details table {
    width: 100%;
    border-collapse: collapse;
}
.bank-details td {
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 6px;
    vertical-align: top;
}
.bank-details tr:last-child td { border-bottom: 0; }
.bank-details td:first-child {
    font-weight: bold;
    color: #003366;
    width: 34%;
}
.footer-donate-button,
.donate-button {
    display: inline-block;
    background: #004d99;
    color: #ffffff !important;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: bold;
    border: 0;
    cursor: pointer;
}
.donate-button:hover,
.footer-donate-button:hover {
    background: #003366;
}
@media (max-width: 800px) {
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer-inner { grid-template-columns: 1fr; }
    .site-footer-bottom { display: block; }
}


/* Practice navigation link */
.global-site-nav .practice-nav-link {
    background: #eef6ff;
    color: #004d99 !important;
    border: 1px solid #b9d0ec;
}
.global-site-nav .practice-nav-link:hover,
.global-site-nav .practice-nav-link:focus {
    background: #ffffff !important;
}


/* Practice Zone activity cards */
.practice-library { align-items: stretch; }
.practice-activity-card { min-height: 260px; }
.practice-activity-card .activity-icon { line-height: 1; }

/* PayPal-only donation page refinement */
.paypal-only-donate { max-width: 760px; margin: 28px auto; }
.paypal-main-card { text-align: center; }
.paypal-email { font-size: 1.25rem; color: #004d99; }


/* === Cross-browser footer + mobile menu fixes (2026-09-05) === */
.global-site-nav {
    background: #e6f0ff !important;
    border-bottom: 1px solid #ccddee !important;
}
.global-site-nav .mobile-menu-toggle {
    display: none;
    width: 100%;
    border: 1px solid #b9d0ec;
    background: #ffffff;
    color: #004d99;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.global-site-nav .mobile-menu-toggle:hover,
.global-site-nav .mobile-menu-toggle:focus {
    background: #f7fbff;
    outline: 2px solid rgba(0,77,153,.18);
    outline-offset: 2px;
}
.global-site-nav .subjects-dropdown > a::after {
    content: "";
}
.global-site-nav .subjects-dropdown.subject-open > .subject-menu {
    display: block;
}

.site-footer,
footer.site-footer {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    background: #07131f !important;
    color: #dbe7f3 !important;
    text-align: left !important;
    padding: 0 !important;
    margin-top: 40px !important;
    flex-shrink: 0 !important;
    overflow: hidden;
}
.site-footer,
.site-footer * {
    box-sizing: border-box;
}
.site-footer-inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 34px 20px 24px !important;
    display: grid !important;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, .8fr)) !important;
    gap: 26px !important;
    align-items: start !important;
}
.site-footer-brand img {
    display: block !important;
    max-width: 165px !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    margin: 0 0 14px !important;
}
.site-footer-brand p,
.site-footer small {
    color: #9fb1c3 !important;
    margin-top: 0;
}
.site-footer h3 {
    color: #ffffff !important;
    font-size: 1rem !important;
    margin: 0 0 10px !important;
}
.site-footer ul,
.site-footer ol {
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.site-footer li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 7px 0 !important;
    padding: 0 !important;
}
.site-footer li::marker {
    content: "" !important;
    font-size: 0 !important;
}
.site-footer a {
    color: #bdd7f1 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 14px 20px 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}
.site-footer-bottom small {
    display: block;
}

@media (max-width: 800px) {
    .global-site-nav {
        padding: 8px 10px !important;
    }
    .global-site-nav .mobile-menu-toggle {
        display: block !important;
    }
    .global-site-nav .site-nav-list {
        display: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        padding: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    .global-site-nav.nav-open .site-nav-list {
        display: flex !important;
    }
    .global-site-nav .site-nav-list > li {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }
    .global-site-nav a {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        border-radius: 9px !important;
        padding: 12px 14px !important;
    }
    .global-site-nav .subject-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 4px 0 4px 0 !important;
        padding: 4px 0 4px 18px !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
    }
    .global-site-nav .subjects-dropdown.subject-open > .subject-menu,
    .global-site-nav .subjects-dropdown:focus-within > .subject-menu {
        display: block !important;
    }
    .global-site-nav .subject-menu a {
        background: #f7fbff !important;
        border: 1px solid #d8e8fa !important;
        margin: 4px 0 !important;
    }
    .site-badge-link,
    .global-site-nav .practice-nav-link,
    .global-site-nav .donate-nav-link {
        margin-left: 0 !important;
    }
    .site-footer-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 22px !important;
    }
}
@media (max-width: 560px) {
    .site-footer-inner {
        grid-template-columns: 1fr !important;
        text-align: left !important;
        padding: 30px 18px 20px !important;
    }
    .site-footer-bottom {
        display: block !important;
        text-align: left !important;
        padding: 14px 18px 22px !important;
    }
    .site-footer-bottom small + small {
        margin-top: 6px !important;
    }
}
