/* 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: static !important;
    bottom: auto !important;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin-bottom: 8px;
    }
    footer {
        position: relative;
    }
}
/* Floating WhatsApp contact button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    cursor: pointer;
}

header h1 {
    margin-left: auto;
    margin-right: 20px;
    text-align: right;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2rem;
}

/* Breadcrumb navigation */
.breadcrumbs {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px 0;
    background: transparent;
    border: 0;
    color: #5c6670;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: #004d99;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #8a96a3;
    font-weight: bold;
}

/* Previous / contents / next chapter navigation */
.chapter-pagination {
    margin: 42px 0 12px;
    padding: 18px 0 0;
    border: 0;
    border-top: 1px solid #d8e2ec;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.chapter-pagination .page-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #b9cde2;
    border-radius: 7px;
    background: #ffffff;
    color: #004d99;
    text-decoration: none;
    font-weight: 700;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chapter-pagination .page-link:hover {
    background: #eaf3ff;
    border-color: #7fa8cf;
}

.chapter-pagination .previous {
    justify-self: start;
}

.chapter-pagination .contents {
    justify-self: center;
}

.chapter-pagination .next {
    justify-self: end;
}

/* Keep a comfortable visual gap between page content and copyright footer. */
footer {
    position: static !important;
    bottom: auto !important;
    margin-top: 48px;
    box-sizing: border-box;
    clear: both;
}

@media (max-width: 600px) {
    .breadcrumbs {
        padding-top: 12px;
        font-size: 0.9rem;
    }

    .chapter-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .chapter-pagination .contents {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        justify-content: center;
    }

    .chapter-pagination .previous,
    .chapter-pagination .next {
        justify-self: stretch;
        justify-content: center;
        text-align: center;
    }

    footer {
        margin-top: 36px;
    }
}
.chapter-pagination .page-link.disabled {
    opacity: 0.48;
    cursor: default;
    background: #f4f6f8;
    border-color: #d6dee6;
    color: #66727e;
}

