/******* Bootstrap Theming ********/
/*!
 * Bootstrap v4.5.3 (https://getbootstrap.com/)
 * Copyright 2011-2020 The Bootstrap Authors
 * Copyright 2011-2020 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */
:root {
  --blue: #007bff;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #e83e8c;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #28a745;
  --teal: #20c997;
  --cyan: #17a2b8;
  --white: #fff;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --primary: #2878EB;
  --secondary: #F14D5D;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #ECF4FF;
  --dark: #120F2D;
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --font-family-sans-serif: "Open Sans", sans-serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Base Body Styles */
body {
    font-family: 'Open Sans', sans-serif; /* Using Open Sans for general body text */
    line-height: 1.6;
    color: #6B6A75; /* Default text color */
    background-color: #FFFFFF; /* Default body background */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensure consistent box model */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif; /* Using Jost for headings */
    color: var(--dark); /* Dark color for headings */
    margin-bottom: 15px;
}

h1, .font-weight-bold {
    font-weight: 700 !important;
}

h3, h4, .font-weight-semi-bold {
    font-weight: 600 !important;
}

h5, h6, .font-weight-medium {
    font-weight: 500 !important;
}

/* Buttons */
.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    transition: .5s;
    border-radius: 0.25rem; /* Default Bootstrap border-radius */
}

.btn-square {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar */
.navbar .nav-item .nav-link {
    padding: 30px 15px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar .nav-item .nav-link {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 991.98px) {
    .navbar .nav-item .nav-link {
        padding: 8px 0;
    }
}

.navbar .dropdown-menu {
    border-top: 3px solid var(--primary);
    border-radius: 0;
}

/* Jumbotron (Header) */
.jumbotron.overlay-bottom::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(18, 15, 45, .8);
    z-index: -1;
}

/* Section Title */
.section-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #EEEEEE;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 25px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
}

.section-title.text-center::after {
    left: 50%;
    margin-left: -12.5px;
}

/* Feature Section */
.btn-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 80px;
}

/* Courses Carousel */
.courses-carousel .owl-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.courses-item {
    position: relative;
    margin: 0 15px;
}

.courses-item .courses-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(18, 15, 45, .8);
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-text {
    opacity: 1;
}

.courses-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 60px;
    top: calc(50% - 30px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.courses-carousel .owl-nav .owl-prev,
.courses-carousel .owl-nav .owl-next {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 22px;
    transition: .5s;
}

.courses-carousel .owl-nav .owl-prev:hover,
.courses-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

/* Team Carousel */
.team-carousel .owl-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-carousel .owl-nav,
.related-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 60px;
  top: calc(50% - 30px);
  left: 0;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next,
.related-carousel .owl-nav .owl-prev,
.related-carousel .owl-nav .owl-next {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: var(--primary);
  font-size: 22px;
  transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover,
.related-carousel .owl-nav .owl-prev:hover,
.related-carousel .owl-nav .owl-next:hover {
  background: var(--secondary);
}

/* Testimonial Carousel */
.testimonial-carousel .owl-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-carousel .owl-nav {
  position: absolute;
  width: 120px;
  height: 60px;
  top: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: var(--primary);
  font-size: 22px;
  transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* Custom Background Image */
.bg-image {
    background: linear-gradient(rgba(18, 15, 45, .8), rgba(18, 15, 45, .8)), url(../img/bg-image.jpg) center center no-repeat;
    background-size: cover;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .jumbotron {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    .jumbotron h1.display-1 {
        font-size: 3rem;
    }
    .section-title h1.display-4 {
        font-size: 2rem;
    }
    .navbar-collapse {
        text-align: center;
    }
    .navbar .nav-item .nav-link {
        padding: 10px 0;
    }
    .navbar .btn {
        margin-top: 15px;
    }
}

@media (max-width: 575.98px) {
    .jumbotron h1.display-1 {
        font-size: 2.5rem;
    }
    .section-title h1.display-4 {
        font-size: 1.8rem;
    }
    .btn-icon {
        width: 60px;
        height: 60px;
    }
    .btn-icon i {
        font-size: 1.5rem !important;
    }
}
