﻿@font-face {
    font-family: Kanit;
    src: url('fonts/Kanit-Regular.ttf');
}

@font-face {
    font-family: Kanit-Light;
    src: url('fonts/Kanit-Light.ttf');
}

@font-face {
    font-family: Kanit-Medium;
    src: url('fonts/Kanit-Medium.ttf');
}

@font-face {
    font-family: Kanit-Bold;
    src: url('fonts/Kanit-Bold.ttf');
}

@font-face {
    font-family: Fontawesome;
    src: url('fontawesome/webfonts/fa-regular-400.ttf');
}

@font-face {
    font-family: Fontawesome-900;
    src: url('fontawesome/webfonts/fa-solid-900.ttf');
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    min-height: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

/*body::after {
    content: '';
    display: block;
    height: 50px;
}*/

body, html {
    font-family: Kanit-Light,Tahoma !important;
    background: #FFFFFF;
    font-size: 16px !important;
    overflow-x: hidden;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    min-height: 64px;
    background-color: #FFFFFF;
    color: #6C757D !important;
    margin-top: 50px;
}

.theme-grayscale {
    filter: grayscale(100%);
}

.theme-sepia {
    filter: sepia(100%);
}

.member-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    min-height: 64px;
    background-color: #FFFFFF;
    color: #6C757D !important;
    margin-top: 50px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* High enough to overlay everything */
}

.nrca-title{
    font-size: 24px !important;
}

.nrca-context{
    font-size: 16px !important;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAw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gMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
}

    .separator::before,
    .separator::after {
        content: '';
        flex: 1;
        border-bottom: 0.5px solid #21252940;
    }

    .separator:not(:empty)::before {
        margin-right: .25em;
    }

    .separator:not(:empty)::after {
        margin-left: .25em;
    }

.nounderline {
    text-decoration: none !important
}

ul.no-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul > li > a:link {
    text-decoration: none;
}

ul > li > a:visited {
    text-decoration: none;
}

ul > li > a:hover {
    text-decoration: none;
}

ul > li > a:active {
    text-decoration: none;
}

.slider-rounded {
    border-radius: 10px;
}

.nrca-headline {
    font-size: 2.5rem;
    background: linear-gradient(to left, #59B9FF, #002CB0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nrca-card-color {
    background: rgb(112,178,255);
    background: linear-gradient(0deg, rgb(112 178 255 / 30%) 0%, rgba(255, 255, 255, 1) 30%);
    cursor: pointer;
}

.nrca-card-color:hover {
    background: rgb(112,178,255);
    background: linear-gradient(0deg, rgb(112 178 255 / 50%) 0%, rgba(255, 255, 255, 1) 50%);
    -webkit-transition: background-color 1s linear;
    -ms-transition: background-color 1s linear;
    transition: background-color 1s linear;
}

.nrca-card-blog-color {
    background: rgb(242,252,254);
    background: linear-gradient(0deg, rgba(242,252,254,1) 20%, rgba(198,241,255,1) 100%);
}

.thumb-post img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 116px;
}

.nrcaAlert-top {
    position: fixed;
    top: 50px;
    z-index: 9999;
}

.text-primary-nrca {
    color: #00269A !important;
}

.nrcaAlert-bottom {
    position: fixed;
    bottom: 50px;
    z-index: 9999;
}

.login-background {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-blue-bg {
    background-color: #0039a6;
    flex: 0 0 40%;
}

.login-white-bg {
    background-color: white;
    flex: 1;
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.login-background2 {
    height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.content-background {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.login-blue-bg2 {
    background-color: #00269A;
    height: 40%;
    width: 100%;
}

.login-blue-bg3 {
    background-color: #E8F1FF;
    height: 25%;
    width: 100%;
}

.login-white-bg2 {
    background-color: white;
    height: 60%;
    width: 100%;
}

.login-white-bg3 {
    height: auto;
    width: 100%;
}

.bootstrap-select > .dropdown-toggle {
    --bs-btn-bg: #ffffff !important;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Black overlay with some transparency */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.member-menu:hover {
    border-radius: 5px;
    color: black;
}
.member-menu.active {
    border-radius: 5px;
    color: white;
}

ul li::marker {
    color: #223F7B; /* Change bullet color */
}

.nrca-nav-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    color: #00269A;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20384%20512%22%3E%3Cpath%20fill%3D%22%236c757d%22%20d%3D%22M342.6%20150.6c12.5-12.5%2012.5-32.8%200-45.3s-32.8-12.5-45.3%200L192%20210.7%2086.6%20105.4c-12.5-12.5-32.8-12.5-45.3%200s-12.5%2032.8%200%2045.3L146.7%20256%2041.4%20361.4c-12.5%2012.5-12.5%2032.8%200%2045.3s32.8%2012.5%2045.3%200L192%20301.3%20297.4%20406.6c12.5%2012.5%2032.8%2012.5%2045.3%200s12.5-32.8%200-45.3L237.3%20256%20342.6%20150.6z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    overflow-anchor: none;
    transition: opacity 200ms ease-in-out, width 200ms ease-in-out;
}
.collapsed .nrca-nav-icon {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22%2300269a%22%20d%3D%22M0%2096C0%2078.3%2014.3%2064%2032%2064l384%200c17.7%200%2032%2014.3%2032%2032s-14.3%2032-32%2032L32%20128C14.3%20128%200%20113.7%200%2096zM0%20256c0-17.7%2014.3-32%2032-32l384%200c17.7%200%2032%2014.3%2032%2032s-14.3%2032-32%2032L32%20288c-17.7%200-32-14.3-32-32zM448%20416c0%2017.7-14.3%2032-32%2032L32%20448c-17.7%200-32-14.3-32-32s14.3-32%2032-32l384%200c17.7%200%2032%2014.3%2032%2032z%22%2F%3E%3C%2Fsvg%3E");
    transition: opacity 200ms ease-in-out, width 200ms ease-in-out;
}

.full-height-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .nrca-nav-icon {
        transition: none;
    }
}
.full-screen-collapse {
    width: 100%;
    height: 100vh;
    /*z-index: 999;*/
}
.full-screen-collapse.show {
    display: block !important;
}

.member-mobile-bg {
    background-color: #F8F9FA !important;
}

.carousel-image {
    height: 100vh; /* Full height */
    object-fit: cover; /* Ensure the image covers the container */
}

.card-image {
    overflow: hidden;
}

.card-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-image a img {
    transform: scale(1.05);
}

/*.content-editor {
    font-size: 18px;
    line-height: 21px;
}

.content-editor img {
    max-width: 100%;
    width: auto !important;
    height: auto !important;
}*/

.content-editor strong{
    color:#00269A;
}

.custom-shadow {
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Change to shadow */
    transition: box-shadow 0.3s ease; /* Smooth transition */
}

.custom-shadow:hover {
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Change to shadow */
}

.accordion-body img {
    width:100%;
    height: auto;
}

.ribbon-navbar {
    position: absolute;
    top: 0px; /* Adjust based on your design */
    left: 0px; /* Adjust based on your design */
    width: 100px; /* Adjust the size of the ribbon */
    height: auto; /* Maintain aspect ratio */
    z-index: 10; /* Ensure it appears above other elements */
    pointer-events: none; /* Prevent it from interfering with clicks on the navbar */
}

.border-dashed{
    border: 1px dashed #dbdfe6 !important;
}

.pointer {
    cursor: pointer;
}

.ql-toolbar {
    border-top-right-radius: 0.4rem;
    border-top-left-radius: 0.4rem;
}

.ql-container {
    border-bottom-right-radius: 0.4rem;
    border-bottom-left-radius: 0.4rem;
}

.ql-editor {
    font-family: 'Kanit-Light', sans-serif;
}

.ql-editor strong {
    color: #00269A;
    font-family: 'Kanit', sans-serif;
}

.ql-editor p {
    font-size: 1.38rem;
}

.ql-snow .ql-editor h1 {
    font-size: 2.5rem;
}

.ql-snow .ql-editor h2 {
    font-size: 2rem;
}

.ql-snow .ql-editor h3 {
    font-size: 1.75rem;
}

.ql-snow .ql-editor h4 {
    font-size: 1.5rem;
}

.ql-snow .ql-editor h5 {
    font-size: 1.25rem;
}

.ql-editor ol li{
    font-size: 1.38rem;
}

.nrca-font-bold{
    font-family: Kanit-Bold !important;
}

.nrca-font-medium{
    font-family: Kanit-Medium !important;
}

/* Image alignment */
.ql-image-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ql-image-align-left {
  display: block;
  float: left;
  margin-right: 1em;
}

.ql-image-align-right {
  display: block;
  float: right;
  margin-left: 1em;
}

/* Iframe alignment */
.ql-iframe-align-left {
  display: block;
  float: left;
  margin-right: 1em;
}

.ql-iframe-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ql-iframe-align-right {
  display: block;
  float: right;
  margin-left: 1em;
}

.ql-snow {
.ql-picker {
  &.ql-size {
    .ql-picker-label,
    .ql-picker-item {
      &::before {
        content: attr(data-value) !important;
      }
    }
  }
}}

.cursor-pointer{
    cursor: pointer;
}

@media (min-width:320px) { /* smartphones, iPhone, portrait 480x320 phones */
    html {
        font-size: 13px;
    }
    .main-body {
        margin-top: 76px;
    }
    .nrca-headline {
        font-size: 1.2rem;
    }

    .carousel-image {
        height: 100%;
    }
    /*.content-editor {
        font-size: 25px;
        line-height: 28px;
    }*/
    .ribbon-navbar {
        width: 60px;
    }
}

@media (min-width:481px) { /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
    html {
        font-size: 13px;
    }
    .main-body {
        margin-top: 76px;
    }
    .carousel-image {
        height: 100%;
    }
    /*.content-editor {
        font-size: 25px;
        line-height: 28px;
    }*/
    .ribbon-navbar {
        width: 60px;
    }
}

@media (min-width:641px) { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    .main-body {
        margin-top: 76px;
    }
    .carousel-image {
        height: 50vh;
    }
    /*.content-editor {
        font-size: 25px;
        line-height: 28px;
    }*/
    .ribbon-navbar {
        width: 70px;
    }
}

@media (min-width:961px) { /* tablet, landscape iPad, lo-res laptops ands desktops */
    .main-body {
        margin-top: 0px;
    }
    .carousel-image {
        height: 70vh;
    }
    /*.content-editor {
        font-size: 20px;
        line-height: 23px;
    }*/
    .ribbon-navbar {
        width: 80px;
    }
}

@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */
    .main-body {
        margin-top: 0px;
    }
    .carousel-image {
        height: 80vh;
    }
    /*.content-editor {
        font-size: 20px;
        line-height: 23px;
    }*/
    .ribbon-navbar {
        width: 100px;
    }
}

@media (min-width:1281px) { /* hi-res laptops and desktops */
    .main-body {
        margin-top: 0px;
    }
    .carousel-image {
        height: 90vh;
    }
    /*.content-editor {
        font-size: 20px;
        line-height: 23px;
    }*/
    .ribbon-navbar {
        width: 100px;
    }
}