/* MMD Color Scheme */
:root {
    --nbc-blue: #4F6FD9;        /* primary medium blue */
    --nbc-dark-blue: #243A8F;   /* deep blue for header/nav/text */
    --nbc-gold: #FFC857;        /* yellow accent */
    --nbc-red: #FF6B6B;         /* optional accent, rarely used */
    --nbc-light-gray: #EAF4FF;  /* pale blue background */
    --nbc-dark-gray: #1F2937;   /* main text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Hanuman", "Battambang", "Khmer OS", Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--nbc-light-gray);
    color: var(--nbc-dark-gray);
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--nbc-dark-blue), var(--nbc-blue));
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

/* make header stay on top when scrolling */
    position: sticky;
    top: 0;
    z-index: 9999;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--nbc-gold);
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Navigation */
.header-bottom {
    background: white;
}

.nav-container {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 0;
    position: relative;
}

nav ul li a {
    color: var(--nbc-dark-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
}

nav ul li a:hover {
    background-color: rgba(0, 102, 179, 0.08);
}

nav ul li.active a {
    background-color: var(--nbc-gold);
    color: var(--nbc-dark-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--nbc-dark-blue), var(--nbc-blue)), url() no-repeat center center/cover;
    color: white;
    padding: 1rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto  0rem;
}

/* Page Hero (for subpages) */
.page-hero {
    background: linear-gradient(to right, var(--nbc-dark-blue), var(--nbc-blue));
    color: white;
    padding: 3rem 0;
}

.page-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    max-width: 700px;
}

.breadcrumb {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--nbc-gold);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 0.35rem;
}

/* === Interest Rate Corridor strip (BoE-style) === */
.rate-corridor {
    background: linear-gradient(to right, var(--nbc-dark-blue), var(--nbc-blue)), url() no-repeat center center/cover;        /* turquoise like BoE */
    padding: 0rem 0rem 2rem;
}

/* Remove shared background — each block will have its own card */
.rate-corridor-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem; /* spacing between the 3 cards */
}

/* Base card style */
.rate-block {
    padding: 1.8rem 1rem;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Typography */
.rate-value {
    font-size: 2.2rem;
    font-weight: 700;
}

.rate-label {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.rate-meta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

/* Custom colors for each card */
.rate-floor {
    background: #A7C7FF;
    color: rgb(0, 0, 0)
}

.rate-policy {
    background: #4F6FD9; /* Yellow */
    color: #ffffff;       /* dark text on yellow */
}

.rate-ceiling {
    background: #1F2D66; /* Deep blue */
}

/* individual blocks */
.rate-block {
    padding: 1.6rem 1rem;
}

.rate-block + .rate-block {
    border-left: 1px solid rgba(0, 0, 0, 0.35);  /* vertical divider */
}

/* slightly highlight the middle (policy) block if you like */
.rate-block--policy {
    background: rgba(255, 255, 255, 0.12);
}

/* typography */
.rate-value {
    font-size: 2.2rem;
    font-weight: 700;
}

.rate-label {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.rate-meta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

/* responsive: stack on small screens */
@media (max-width: 768px) {
    .rate-corridor-inner {
        grid-template-columns: 1fr;
    }

    .rate-block + .rate-block {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.35);
    }
}


/* Buttons */
.btn {
    display: inline-block;
    background: var(--nbc-gold);
    color: var(--nbc-dark-blue);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e0b83d;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--nbc-gold);
    color: white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--nbc-gold);
    color: var(--nbc-dark-blue);
}

/* Sections */
.section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--nbc-dark-blue);
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--nbc-gold);
    margin: 10px auto;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--nbc-gold);
    padding: 2.2rem;
    margin-bottom: 1rem; /* space between rows of cards */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--nbc-dark-blue);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--nbc-dark-blue);
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cards:has(> .card:only-child) {
    max-width: 380px;          /* ~width of one card in the 3-card layout */
    margin-inline: left;       /* center the block */
}

.cards:has(> .card:only-child) .card {
    margin-bottom: 0;
}

.cards.cards--single {
    max-width: 380px;      /* adjust as you like */
    margin-inline: left;   /* center the single card block */
}

/* Announcements */
/* Announcements: detailed PDF blocks inspired by BoE */

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.announcement-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.75rem;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item h3 {
    margin-bottom: 0.25rem;
}

.announcement-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* blue underlined PDF link style */
.ann-doc-link {
    color: #003078;
    text-decoration: underline;
    font-weight: 500;
}

.ann-doc-link:hover {
    text-decoration: none;
}

/* main highlighted PDF box */
.ann-doc-main {
    display: flex;
    align-items: stretch;
    margin: 1rem 0 1.25rem;
    background: #d9b24c;          /* warm gold */
    color: #000;
    padding: 0.9rem 1.1rem;
    max-width: 420px;
}

.ann-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.6rem;
}

.ann-doc-body {
    flex: 100;
}

.ann-doc-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}

.ann-doc-title {
    display: inline-block;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.ann-doc-title:hover {
    text-decoration: underline;
}

.ann-doc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    font-size: 1.2rem;
}

/* list of extra PDFs under the main box */
.ann-doc-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem 0;
}

.ann-doc-list li {
    margin-bottom: 0.35rem;
}

.ann-doc-list a {
    color: #003078;
    text-decoration: underline;
}

.ann-doc-list a:hover {
    text-decoration: none;
}


/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid var(--nbc-blue);
}

.faq-question {
    padding: 1.5rem;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--nbc-dark-blue);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}

/* Footer */
footer {
    background: var(--nbc-dark-blue);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--nbc-gold);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--nbc-gold);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}



/* "On this page" navigation box*/
.on-this-page {
    background: #ffffff;          /* light grey box */
    border: 1px solid #e0e0e0;    /* subtle frame */
    border-radius: 0;             /* square corners like BoE */
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.on-this-page-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000000;
}

.on-this-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;                    /* space between items */
}

.on-this-page-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    text-decoration: none;
    color: #000000;               /* dark navy-ish, similar to BoE */
    font-weight: 500;
    cursor: pointer;
}

.on-this-page-arrow {
    /* small downward chevron, vertically centred */
    width: 0.5rem;
    flex-shrink: 0;
    margin-top: 0rem;
}

.on-this-page-arrow::before {
    content: ">";                 /* down arrow symbol */
    font-size: 1rem;
}

.on-this-page-text {
    text-decoration: underline;
    line-height: 1.4;
}

.on-this-page-item:hover .on-this-page-text {
    text-decoration: none;
}

/* Stack links nicely on small screens */
@media (max-width: 768px) {
    .on-this-page-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}
/* Monetary instruments dropdown list */
.tool-list {
    max-width: 900px;
    margin: 0 auto;
}

.tool-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--nbc-blue);
    overflow: hidden;
}

.tool-summary {
    list-style: none;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-summary::-webkit-details-marker {
    display: none; /* hide default marker */
}

.tool-summary-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tool-name {
    font-weight: 700;
    color: var(--nbc-dark-blue);
}

.tool-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
}

.tool-toggle {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Change + to – when open */
.tool-item[open] .tool-toggle {
    content: "-";
}

.tool-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.tool-key-info {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 0.5rem 1.5rem;
}

.tool-key-info dt {
    font-weight: 600;
    color: var(--nbc-dark-blue);
}

.tool-key-info dd {
    margin: 0;
    color: #555;
}

@media (max-width: 768px) {
    .tool-key-info {
        grid-template-columns: 1fr;
    }
}

/* Fix alignment of bullet lists inside Key Information table */
.tool-key-table td ul {
    margin: 0;              /* remove extra top/bottom spacing */
    padding-left: 0rem;   /* minimal indent to show bullets cleanly */
    list-style-position: inside;  /* aligns bullets with text block */
}

.tool-key-table td ul li {
    margin: 0.2rem 0;       /* compact bullets */
    padding: 0;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: #ffffff; 
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    color: #1c54a5; 
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease-in-out;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.25);
}
/* Key information table – BoE-style inspired */
.tool-key-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--nbc-dark-blue);
}

/* basic table layout */
.tool-key-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #ffffff;
}

/* rows have very light separators */
.tool-key-table th,
.tool-key-table td {
    padding: 0.6rem 0.9rem;
    border-top: 1px solid #e3e3e3;   /* tiny border between components */
}

/* first row gets a top border too */
.tool-key-table tr:first-child th,
.tool-key-table tr:first-child td {
    border-top: 1px solid #dcdcdc;
}

/* label column */
.tool-key-table th {
    width: 170px;
    text-align: left;
    font-weight: 600;
    color: var(--nbc-dark-blue);
    background: #f7f7f7;
    vertical-align: top;
}

/* value column */
.tool-key-table td {
    color: #555;
}

/* hover effect – lighter background when pointing at row */
.tool-key-table tr:hover th,
.tool-key-table tr:hover td {
    background: #f3f3f3;    /* subtle lighter colour on hover */
}
