/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-bg-color: #eff3f6;
  --secondary-bg-color: #ffffff;
  --primary-color: #0F21C7;
  --secondary-color: #050e5d;
  --primary-text-color: #000000;
  --secondary-text-color: #444444;
}

[data-theme="dark"] {
  --primary-bg-color: #000000;
  --secondary-bg-color: #2c2c2c;
  --primary-color: #67C2FF;
  --secondary-color: #707ffd;
  --primary-text-color: #ffffff;
  --secondary-text-color: #bdbdbd;
}

:root {
  scroll-behavior: smooth;
}

body {
  background: var(--primary-bg-color);
  color: var(--primary-text-color);
} 

img{
  max-width: 100%;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px 0px;
  }
}

.box {
  background-color: var(--secondary-bg-color);
  border-color: var(--secondary-bg-color);
  color: var(--primary-text-color);
  padding: 15px;
  border-radius: 10px;
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background:var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color:  var(--secondary-bg-color);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--secondary-color);
  color:  var(--secondary-bg-color);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
/* .dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
} */

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--primary-color);
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb .breadcrumb-item::before {
  color: var(--primary-color);
}

.breadcrumb .active {
  color: var(--secondary-color);
  font-weight: 600;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}
/* 
.logo img {
  max-height: 26px;
  margin-right: 6px;
} */

.logo span {
  font-size: 26px;
  font-weight: 700;
  color:var(--primary-color);
  font-family: "Nunito", sans-serif;
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 70px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--secondary-bg-color);
  padding-left: 20px;
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--primary-color);
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
    background: var(--secondary-bg-color);
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }

  .header-nav{
    margin-left: auto !important;
  }
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color:var(--primary-color);
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: var(--primary-color);
}

.header-nav .nav-profile img {
  max-height: 36px;
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color:var(--secondary-text-color);
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color:var(--secondary-bg-color);;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  background-color: var(--secondary-bg-color);
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

/* @media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
} */

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item .nav-link{
  margin-bottom: 5px;
  cursor: pointer;
}

.sidebar-nav .nav-heading {
  font-size: 14px;
  font-weight: 700;
  color:var(--primary-color);
  padding-left: 36px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  transition: 0.3;
  background:var(--secondary-bg-color);
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-heading i::before {
  padding-bottom: 2px;
}

.sidebar-nav .nav-link i::before {
  padding-bottom: 3px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--primary-color);
}

.sidebar-nav .nav-link.collapsed {
  color: var(--primary-color);
  background:var(--secondary-bg-color);
}

.sidebar-nav .nav-link.collapsed i {
  color: var(--primary-color);
}

.sidebar-nav .nav-link:hover {
  color:  var(--secondary-color);
  background:var(--primary-bg-color);
}

.sidebar-nav .nav-link:hover i {
  color: var(--primary-color);
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}
  
.sidebar-nav .nav-content a {
  display: flex;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color:var(--primary-color);
  transition: 0.3;
  padding: 2px 0 2px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--primary-color);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

.error-404 .btn {
  background: var(--primary-color);
  color:  var(--secondary-bg-color);
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background:  var(--secondary-color);
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 16px;
  transition: all 0.3s;
  background-color: var(--secondary-bg-color);
}

.footer .copyright {
  text-align: center;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 14px;
}

.footer .btn.btn-social {
  margin-right: 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 45px;
  transition: .3s;
  padding-top: 8px;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  font-size: 15px;
  font-weight: normal;
  transition: .3s;
  text-decoration: none;
  color: var(--primary-color);
}

.footer .btn.btn-link:hover{
  color: var(--secondary-color);
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\003E";
  font-weight: 900;
  margin-right: 10px;
}

/*--------------------------------------------------------------
# Search Bar
--------------------------------------------------------------*/
.gsc-control-cse {
  padding: 0px !important; 
}

#___gcse_0{
  width: 300px !important;
}

/* [data-theme="dark"] .gsc-control-cse .gsc-input-box{
  border-color: #000;
  background-color: #2C2C2C;
}

[data-theme="dark"] .gsc-control-cse{
  border-color: #2c2c2c;
  background-color: #2C2C2C;
}

[data-theme="dark"] .gssb_a{
  color: #fff;
  background-color: #2C2C2C;
} */

.gsc-control-cse .gsc-input-box{
  border-color: var(--primary-color);
  background-color: var(--primary-bg-color);
}

[data-theme="dark"] .gsc-control-cse{
  border-color:var(--secondary-bg-color);
  background-color:var(--secondary-bg-color);
}

/* .gsc-search-button-v2 { */
  /* padding: 14px 10px !important; */
/* } */
.gssb_a{
  color: var(--primary-text-color);
  background-color: var(--secondary-bg-color);
}

/*--------------------------------------------------------------
# Scroll Bar
--------------------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 5px;
}
 
::-webkit-scrollbar-thumb {
  background: rgb(150, 168, 150); 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d1adad; 
}

/*--------------------------------------------------------------
# loader
--------------------------------------------------------------*/
.loader {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  /* border: 3px solid var(--secondary-bg-color); */
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  }

  @keyframes rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
  } 
    
/*--------------------------------------------------------------
# Other Components
--------------------------------------------------------------*/
.themeBtn{
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  color: var(--secondary-bg-color);
  font-size: 20px;
  padding: 3px;
  margin-right: 20px;
}

[data-theme="dark"] {
  .accordion-button::after {  
    filter: brightness(2.5);
  }
}

.pri-text {
  color: var(--primary-text-color);
} 

.pri-heading-text {
  color: var(--primary-color);
}

.sec-text{
  color: var(--secondary-text-color);
} 

.quiz-card-box {
  background-color: var(--secondary-bg-color);
  border-color: var(--primary-bg-color);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

@media (max-width:450px) {
  .col-xs-6 {
    width: 50%;
  }
}

/*--------------------------------------------------------------
# Math Components
--------------------------------------------------------------*/
.MJXc-display {
  text-align: start !important;
  overflow-x: auto !important;
  overflow-y:hidden !important; 
}

/*--------------------------------------------------------------
# dark/light btn Components
--------------------------------------------------------------*/
.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bi-moon {color: #f1c40f;}

.bi-sun {color: #f39c12;}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}

/* contact us form */

#error-msg {
  display: none;
}
#send-msg {
  display: none;
}

/* post content */

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table table th,
.wp-block-table table td {
  border: 1px solid #dee2e6;
  padding: 12px;
  text-align: left;
}

.wp-block-table{
   overflow-x: auto;
  -webkit-overflow-scrolling: touch;  
}

.top-card{
  margin-top: -50px;
}

/* youtune banner */
@media (min-width: 769px) {
  .d-mt-30 {
    margin-top:42px;
  }
  .top-card{
    margin-top: -150px;
  }
}

/* ads google */
.adsbygoogle {
  margin:6px;
  background-color: var(--secondary-bg-color);
  background-image: url('https://www.gyanboard.com/assets/img/advertisement.png'); 
  background-position: center; 
  background-size: contain; 
  background-repeat: no-repeat; 
}
