/*!
 * CSS SynapseBY Academi - Default v. 2.0
 * 2025 - Adapted for SynapseBY Academi
 * Licensed GPL
 * Based on Bootstrap
 * Colors: Cyan #3DB4E5, Orange #F7941D, Teal #1A8BB3
*/

/* Google Fonts - Comic Neue (playful educational font) */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local('Open Sans Light'), local('OpenSans-Light'), url(fonts/OpenSans-Light.woff2) format('woff2'), url(fonts/OpenSans-Light.woff) format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'), url(fonts/OpenSans.woff2) format('woff2'), url(fonts/OpenSans.woff) format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url(fonts/OpenSans-Semibold.woff2) format('woff2'), url(fonts/OpenSans-Semibold.woff) format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'), url(fonts/OpenSans-Bold.woff2) format('woff2'), url(fonts/OpenSans-Bold.woff) format('woff');
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  position: relative;
}

body {
  margin: 0 0 60px;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  line-height: 1.72222;
  font-size: 15px;
}

body>main footer.footer {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
}

a {
  color: #3DB4E5;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #F7941D;
  text-decoration: none;
}

header {
  background: url("images/bg-header.png") no-repeat center center;
  background-size: cover;
  min-height: 150px;
}

a:focus {
  outline: none;
}

.navbar {
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
}

.navbar {
  background: linear-gradient(135deg, #3DB4E5 0%, #1A8BB3 100%);
  -webkit-box-shadow: 0 4px 15px rgba(61, 180, 229, 0.3);
  box-shadow: 0 4px 15px rgba(61, 180, 229, 0.3);
}

.navbar-inverse {
  background-image: -webkit-linear-gradient(#484e55, #3a3f44 60%, #313539);
  background-image: -o-linear-gradient(#484e55, #3a3f44 60%, #313539);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#484e55), color-stop(60%, #3a3f44), to(#313539));
  background-image: linear-gradient(#484e55, #3a3f44 60%, #313539);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff484e55', endColorstr='#ff313539', GradientType=0);
  -webkit-filter: none;
  filter: none;
  border: 1px solid rgba(0, 0, 0, 0.6);
  text-shadow: none;
}

.nav>li>a {
  padding: 10px 15px;
}

.navbar-nav>li>a {
  font-weight: 600;
  line-height: 25px;
  padding-top: 12.5px;
  padding-bottom: 12.5px;
}

.navbar-collapse {
  overflow: hidden !important;
}

.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>li>a:hover {
  color: #F7941D;
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
  color: #fff;
  background-color: #F7941D;
  border-radius: 20px;
}

.navbar-default .navbar-nav>li>a {
  color: #ffffff;
}

.navbar-default {
  border: none;
}

.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
  background: #1A8BB3;
  color: #ffffff;
}

.nav>li>a:hover,
.nav>li>a:focus {
  background-color: transparent;
}

.navbar-inverse li a {
  line-height: 30px;
  background: none !important;
  font-size: 12px;
  font-weight: normal;
  padding-top: 5px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 5px;
}

.navbar-fixed-top .navbar-collapse {
  min-height: auto;
}

.navbar-inverse .navbar-brand {
  padding: 10px;
  font-size: 14px;
  height: auto;
}

.navbar-form .form-control {
  height: 25px;
  padding: 6px;
}

.navbar-fixed-top {
  min-height: 40px;
}

.navbar-fixed-top .dropdown-menu li a {
  line-height: 20px;
}

.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
  color: #ffffff;
}

.navbar-inverse li a:hover {
  background-image: -webkit-linear-gradient(#020202, #101112 40%, #191b1d) !important;
  background-image: -o-linear-gradient(#020202, #101112 40%, #191b1d) !important;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#020202), color-stop(40%, #101112), to(#191b1d)) !important;
  background-image: linear-gradient(#020202, #101112 40%, #191b1d) !important;
  background-repeat: no-repeat !important;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff020202', endColorstr='#ff191b1d', GradientType=0) !important;
  -webkit-filter: none !important;
  filter: none !important;
  border-left-color: transparent !important;
}

.navbar-inverse .dropdown-menu li a:hover,
.navbar-inverse .dropdown-menu li a:focus {
  background: #3C4147 !important;
  color: #fff;
}

.logo {
  margin: 50px 0;
}

.badge-warning {
  background-color: #F7941D;
}

.breadcrumb {
  padding: 8px 15px;
  margin-bottom: 21px;
  list-style: outside none none;
  background-color: #f8f9fa;
}

.breadcrumb>.active {
  color: #6c757d;
}

.panel-default {
  border-color: #f8f9fa;
}

.panel-default .panel-heading {
  color: #1a2a3a;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

/* Jquery UI */
.ui-accordion .ui-accordion-icons {
  padding-left: 0.2em;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
  background: #f8f9fa;
  border-color: #f8f9fa;
}

/* End Jquery UI */
footer.bgfooter {
  background-color: #1a2a3a;
  border-bottom: 1px solid #1a2a3a;
  -webkit-filter: none;
  filter: none;
  -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

footer.bgfooter {
  color: #ffffff;
}

footer.bgfooter a {
  color: #ffffff;
}

.navbar-default .navbar-brand {
  color: white;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: #1A8BB3;
}

.navbar-default .navbar-toggle {
  border-color: #1A8BB3;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #ffffff;
}

.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:hover {
  background-color: #1A8BB3;
}

.page-header {
  margin: 10px 0 10px;
}

/* SynapseBY Academi Additional Styling */
.btn-primary {
  background-color: #3DB4E5;
  border-color: #1A8BB3;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-weight: 700;
  border-radius: 25px;
  padding: 10px 25px;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1A8BB3;
  border-color: #157a9e;
}

.btn-warning {
  background-color: #F7941D;
  border-color: #F7941D;
  color: #ffffff;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-weight: 700;
  border-radius: 25px;
  padding: 10px 25px;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #e58500;
  border-color: #e58500;
}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) {
  .logo {
    margin: 25px 0;
  }
}

/* Medium-small screens*/
@media (min-width: 480px) and (max-width: 767px) {
  .logo {
    margin: 24px 0;
  }
}

/* Smalls screens */
@media (min-width: 320px) and (max-width: 479px) {
  .logo {
    margin: 10px 0;
  }
}

/* Landscape phones and down */
@media only screen and (min-width: 320px) and (max-width: 480px) {
  .logo {
    margin: 20px 0;
  }
}

/* ============================================
   DYNAMIC ANIMATIONS - SynapseBY Academi
   Modern, Educational, Focus-Friendly
   ============================================ */

/* Global Smooth Transitions */
* {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Links - Subtle color shift with underline animation */
a {
  position: relative;
  transition: color 0.25s ease-in-out;
}

a:not(.btn):not(.navbar-brand)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #F7941D;
  transition: width 0.3s ease-in-out;
}

a:not(.btn):not(.navbar-brand):hover::after {
  width: 100%;
}

/* Navbar Links - Smooth glow effect */
.navbar-default .navbar-nav>li>a {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.navbar-default .navbar-nav>li>a:hover {
  text-shadow: 0 0 8px rgba(247, 148, 29, 0.6);
  transform: translateY(-1px);
}

.navbar-default .navbar-nav>.active>a {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Buttons - Lift and glow on hover */
.btn {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(61, 180, 229, 0.25), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 7px 20px rgba(61, 180, 229, 0.4);
}

.btn-warning:hover {
  box-shadow: 0 7px 20px rgba(247, 148, 29, 0.4);
}

/* Ripple effect on buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Panels & Cards - Subtle lift on hover */
.panel {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.panel-default {
  border-radius: 8px;
  overflow: hidden;
}

.panel-default .panel-heading {
  transition: background-color 0.3s ease;
}

.panel-default:hover .panel-heading {
  background-color: #e8f4f8;
}

/* Dropdown Menus - Slide down animation */
.dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: none;
}

.open>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu>li>a {
  transition: all 0.2s ease;
  padding: 10px 20px;
}

.dropdown-menu>li>a:hover {
  background-color: #e8f4f8;
  padding-left: 25px;
}

/* Form Controls - Focus glow */
.form-control {
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
}

.form-control:focus {
  border-color: #3DB4E5;
  box-shadow: 0 0 0 3px rgba(61, 180, 229, 0.15);
  outline: none;
}

/* Breadcrumb - Subtle animation */
.breadcrumb {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.breadcrumb>li+li:before {
  transition: all 0.2s ease;
}

.breadcrumb>li>a:hover {
  color: #F7941D;
}

/* Tables - Row hover effect */
.table>tbody>tr {
  transition: all 0.2s ease;
}

.table-hover>tbody>tr:hover {
  background-color: rgba(61, 180, 229, 0.05);
  transform: scale(1.002);
}

/* Alerts - Attention animation */
.alert {
  animation: slideInDown 0.4s ease-out;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Logo - Subtle hover effect */
.logo img {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 5px 15px rgba(61, 180, 229, 0.3));
}

/* Icons - Subtle bounce on hover */
.fa,
.glyphicon {
  transition: all 0.3s ease;
}

a:hover .fa,
a:hover .glyphicon,
.btn:hover .fa,
.btn:hover .glyphicon {
  transform: scale(1.15);
}

/* Course cards / Thumbnails */
.thumbnail {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(61, 180, 229, 0.15);
}

/* Progress bars - Animated fill */
.progress {
  border-radius: 10px;
  overflow: hidden;
  background-color: #e8f4f8;
}

.progress-bar {
  transition: width 1s ease-in-out;
  background: linear-gradient(90deg, #3DB4E5, #1A8BB3);
  animation: progressShimmer 2s infinite;
}

/* Badges - Pop effect */
.badge {
  transition: all 0.3s ease;
}

.badge:hover {
  transform: scale(1.1);
}

/* List items - Slide in effect */
.list-group-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.list-group-item:hover {
  border-left-color: #3DB4E5;
  padding-left: 20px;
  background-color: #f8f9fa;
}

/* Footer - Smooth link transitions */
footer.bgfooter a {
  transition: all 0.3s ease;
  position: relative;
}

footer.bgfooter a:hover {
  color: #3DB4E5;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

/* Subtle pulse for active elements */
@keyframes subtlePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

/* Slide in from top */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress bar shimmer */
@keyframes progressShimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: 200px 0;
  }
}

/* Fade in animation for page load */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Content area entrance */
.container,
.container-fluid {
  animation: fadeIn 0.5s ease-out;
}

/* ============================================
   FOCUS STATES - Accessibility
   ============================================ */

/* Clear focus indicators for keyboard navigation */
a:focus,
.btn:focus,
.form-control:focus,
.nav>li>a:focus {
  outline: 2px solid #3DB4E5;
  outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION - Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}