:root {
    --bmp-primary: #0d3b66;
    --bmp-accent: #f4a259;
}

.navbar-brand {
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--bmp-primary);
    border-color: var(--bmp-primary);
}
.btn-primary:hover {
    background-color: #092a49;
    border-color: #092a49;
}

.card-cover {
    height: 260px;
    object-fit: cover;
    background: #e9ecef;
}

.hero {
    background: linear-gradient(135deg, var(--bmp-primary), #145b8f);
    color: #fff;
}

.badge-format {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.star-rating {
    color: var(--bmp-accent);
}

/* Keeps a button clickable above a card's .stretched-link overlay. */
.card-cta {
    position: relative;
    z-index: 2;
}

/* Keeps #-anchor jump targets from hiding under the sticky navbar. */
.scroll-anchor {
    scroll-margin-top: 90px;
}

/* Home-page hero carousel (slides managed in the staff panel). */
.hero-slide {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero-carousel .carousel-item .container {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}
@media (max-width: 576px) {
    .hero-slide { min-height: 340px; }
    .hero-carousel .display-5 { font-size: 1.9rem; }
}

/* News pages (newspaper look). */
.news-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.01em; line-height: 1.1; }
.news-headline { font-family: Georgia, "Times New Roman", serif; }
.news-section-title { letter-spacing: .06em; }
.news-card:hover .news-headline { text-decoration: underline; }
.news-thumb { width: 96px; height: 72px; object-fit: cover; flex-shrink: 0; }
.news-lead-img { width: 100%; max-height: 420px; object-fit: cover; }
.news-home-img { width: 100%; height: 160px; object-fit: cover; }
.news-body { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.7; }
.news-body .ql-align-center { text-align: center; }
.news-body .ql-align-right { text-align: right; }
.news-body .ql-align-justify { text-align: justify; }
.news-body li[data-list="bullet"] { list-style-type: disc; }
.news-body blockquote { border-left: 4px solid #dc3545; padding-left: 1rem; color: #444; font-style: italic; }
.footer-subscribe { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }

/* Industrial & organisational reports page. */
.reports-cta, .reports-hero { background: linear-gradient(135deg, #0d3b66 0%, #145da0 60%, #1b7fc4 100%); }
.reports-hero { color: #fff; }
.report-step { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #0d3b66; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* News: opportunity box (scholarships, jobs, grants) */
.opp-box { border: 2px solid #f59e0b; border-radius: 14px; overflow: hidden; background: #fffbeb; font-family: system-ui, sans-serif; }
.opp-head { background: linear-gradient(110deg, #b45309, #d97706); color: #fff; padding: .7rem 1rem; }
.opp-body { padding: 1rem 1.15rem; color: #1f2937; text-align: left; }
.opp-body ul { padding-left: 1.2rem; }
.opp-body li { margin-bottom: .25rem; }
.opp-url { word-break: break-all; }
@media print { .opp-box { break-inside: avoid; } .opp-apply { display: none; } .opp-url { color: #000 !important; font-size: 8pt; } }
.opp-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.opp-details > div { background: #fff; border: 1px solid #fde68a; border-radius: 8px; padding: .45rem .65rem; }
.opp-details dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #92400e; font-weight: 600; }
.opp-details dd { margin: 0; font-weight: 600; }
.opp-help { background: #ecfdf5; border: 1px dashed #10b981; border-radius: 10px; padding: .75rem .9rem; }
@media print { .opp-help { display: none; } }

.apply-link-box { background: #fffbeb; border: 2px dashed #f59e0b; border-radius: 10px; padding: .75rem .9rem; }
.apply-now-btn { box-shadow: 0 6px 16px -8px #b45309; }
@media print { .apply-now { display: none !important; } }
