/*!
 * Implementation of BMA Corporate Identity (CI) styles
 */
.container {
    padding-top: 70px; /* Adjust as needed */
}
/* override bootstrap colors */
:root,
[data-bs-theme=light] {
  --bs-blue: #0071ce;

  --bs-purple: #9218b1;
  --bs-pink: #ec3faa;

  --bs-orange: #fd7e14;
  --bs-yellow: #ffb449;
  --bs-green: #67a33b;
  --bs-teal: #00c08b;

  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #00744b; /* BMA emerald */
  --bs-secondary: #6c757d;
  --bs-success: #67a33b;
  --bs-info: #00c08b;
  --bs-warning: #ffb449;
  --bs-danger: #fd7e14;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-rgb: 108, 117, 125;
  --bs-success-rgb: 25, 135, 84;
  --bs-info-rgb: 13, 202, 240;
  --bs-warning-rgb: 255, 193, 7;
  --bs-danger-rgb: 220, 53, 69;
  --bs-light-rgb: 248, 249, 250;
  --bs-dark-rgb: 33, 37, 41;
  --bs-primary-text-emphasis: #052c65;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis: #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis: #58151c;
  --bs-light-text-emphasis: #495057;
  --bs-dark-text-emphasis: #495057;
  --bs-primary-bg-subtle: #00744b;
  --bs-secondary-bg-subtle: #e2e3e5;
  --bs-success-bg-subtle: #d1e7dd;
  --bs-info-bg-subtle: #cff4fc;
  --bs-warning-bg-subtle: #fff3cd;
  --bs-danger-bg-subtle: #f8d7da;
  --bs-light-bg-subtle: #fcfcfd;
  --bs-dark-bg-subtle: #ced4da;
  --bs-primary-border-subtle: #00744b;
  --bs-secondary-border-subtle: #c4c8cb;
  --bs-success-border-subtle: #a3cfbb;
  --bs-info-border-subtle: #9eeaf9;
  --bs-warning-border-subtle: #ffe69c;
  --bs-danger-border-subtle: #f1aeb5;
  --bs-light-border-subtle: #e9ecef;
  --bs-dark-border-subtle: #adb5bd;
  --bs-white-rgb: 255, 255, 255;
  --bs-black-rgb: 0, 0, 0;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color: #000;
  --bs-emphasis-color-rgb: 0, 0, 0;
  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-secondary-color-rgb: 33, 37, 41;
  --bs-secondary-bg: #e9ecef;
  --bs-secondary-bg-rgb: 233, 236, 239;
  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
  --bs-tertiary-color-rgb: 33, 37, 41;
  --bs-tertiary-bg: #f8f9fa;
  --bs-tertiary-bg-rgb: 248, 249, 250;
  --bs-heading-color: inherit;
  --bs-link-color: #0071ce;
  --bs-link-color-rgb: 13, 110, 253;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #045aa0;
  --bs-link-hover-color-rgb: 10, 88, 202;
  --bs-code-color: #d63384;
  --bs-highlight-color: #212529;
  --bs-highlight-bg: #fff3cd;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-opacity: 0.25;
  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
  --bs-form-valid-color: #198754;
  --bs-form-valid-border-color: #198754;
  --bs-form-invalid-color: #dc3545;
  --bs-form-invalid-border-color: #dc3545;
}

/* fonts: Sao Chingcha, Anuphan, Sarabun */
@font-face {
    font-family: "Sao Chingcha";
    src: url('../fonts/SaoChingcha-Regular.woff2');
}
@font-face {
    font-family: "Sao Chingcha";
    src: url('../fonts/SaoChingcha-Bold.woff2');
    font-weight: bold;
}
/*@font-face {
    font-family: "Sao Chingcha";
    src: url('../fonts/SaoChingcha-Italic.woff2');
    font-weight: italic;
}*/
@font-face {
    font-family: "Anuphan";
    src: url('../fonts/Anuphan-Regular.woff2');
}
@font-face {
    font-family: "Anuphan";
    src: url('../fonts/Anuphan-Bold.woff2');
    font-weight: bold;
}
@font-face {
    font-family: "Sarabun";
    src: url('../fonts/THSarabunNew.woff2');
}
@font-face {
    font-family: "Sarabun";
    src: url('../fonts/THSarabunNew Bold.woff2');
    font-weight: bold;
}
@font-face {
    font-family: "Sarabun";
    src: url('../fonts/THSarabunNew Italic.woff2');
    font-weight: italic;
}

/* Body override */
body {
    background-color: #f8f9fa !important; /* Bootstrap light background */
    font-family: 'Anuphan', sans-serif !important; 
}
/* Navbar override */
.navbar {
    background-color: #00744b !important; /* BMA emerald */
    color: #ffffff !important; /* White text */
    height: 60px !important;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    font-family: 'Sao Chingcha', sans-serif !important;
}

.navbar-brand {
    font-size: 1.5rem !important; /* Larger brand text */
    font-weight: bold !important;
    color: #ffffff !important; /* White text */
}
.navbar-brand img {
    height: 60px; /* Logo height */
    margin-right: 10px; /* Space between logo and text */
}
.nav-link {
    font-size: 1.2rem !important; /* Larger nav item text */
    color: #ffffff !important; /* White text */
}
.navbar-text {
    font-size: 1.2rem !important; /* Larger nav item text */
    color: #ffffff !important; /* White text */
    display: block;
}
.nav-item {
    background-color: #00744b !important;
    border-color: #00744b !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050; /* Ensure it overlays other content */
}

.img-container {
    background-color: #fff;
    padding: auto;
    border-radius: 8px;
    padding: 10px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.bma-ci-green {
    background-color: #00744b !important;
    border-color: #00744b !important;
}