/********** Template CSS **********/
:root {
    --primary: var(--primaryColor);
    --primary-text: var(--primaryTextColor);
    --secondary: var(--secondaryColor);
    --secondary-text: var(--secondaryTextColor);
    --light: var(--backgroundColor);
    --dark: var(--textColor);
    --light-bg: var(--backgroundColor);
    --component-bg: var(--componentBgColor);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --heading-font: var(--primaryFont);
    --body-font: var(--secondaryFont);
    --footer-bg: var(--footerBg);
    --footer-color: var(--footerColor);
}


  /* Global Styles */
  body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--textColor);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
    font-family: var(--body-font);
}

.bg-primary{
    background-color: var(--primaryColor)!important;
}

.nav-link {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.05rem;
}

.bg-component{
    background-color: var(--component-bg)!important;
}

.btn {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Card Title Styles */
.card-title {
    font-family: var(--heading-font);
    font-weight: 700;
    color: #2b2d42;
    margin-bottom: 0.75rem;
}

/* Footer Text */
.footer {
    font-family: var(--body-font);
    background-color: var(--footer-bg)!important;
    color: var(--footer-color)!important;
}
.footer p, .footer h4, .footer h5, .footer h6, .footer li  {
    color: var(--footer-color)!important;
}

.footer h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Form Elements */
input, select, textarea {
    font-family: var(--body-font) !important;
    font-size: 1rem !important;
}

/* Card Styles */
.card {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background: var(--component-bg);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary);
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: var(--primary);
    filter: brightness(110%);
}

/* Navbar Styles */
.navbar {
    padding: 0 !important;
    flex-direction: column !important;
}

/* Logo Row Styles */
.logo-row {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-logo {
    height: 130px;
    transition: all 0.3s ease;
}

.bg-light{
    background-color: var(--componentBgColor)!important;  
}

/* Menu Row Styles */
.menu-row {
    background: var(--light-bg);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}

.navbar-nav {
    gap: 1.5rem;
    align-items: center;
}

.nav-item.dropdown {
    display: inline-flex !important;
    align-items: center !important;
}

.nav-link.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding-right: 1.5rem !important;
}

.navbar-light .navbar-nav .nav-link {
    font-family: var(--heading-font) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #2b2d42 !important;
    padding: 0.7rem 1rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Remove underline for dropdown toggle */
.nav-link.dropdown-toggle:after {
    display: none !important;
}

/* Custom underline effect */
.navbar-light .navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.navbar-light .navbar-nav .nav-link:hover:before,
.navbar-light .navbar-nav .nav-link.active:before {
    width: 80%;
    opacity: 1;
}

/* Dropdown arrow */
.navbar .dropdown-toggle::after {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
    font-family: "Font Awesome 5 Free" !important;
    content: "\f107" !important;
    border: none !important;
    font-weight: 900 !important;
    font-size: 0.8em !important;
    line-height: 1 !important;
}

.dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: var(--card-shadow) !important;
    padding: 0.5rem 0 !important;
    min-width: 200px !important;
    margin-top: 0.5rem !important;
}

@media (max-width: 991.98px) {
    .navbar-logo {
        height: 60px;
    }

    .menu-row {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--card-shadow);
        margin: 0.5rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 0.8rem 1.2rem !important;
        border-radius: 6px;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        background: rgba(var(--primary-rgb), 0.1);
    }

    .navbar-light .navbar-nav .nav-link:after {
        display: none;
    }

    .nav-link.dropdown-toggle {
        justify-content: space-between !important;
    }
    
    .navbar .dropdown-toggle::after {
        margin-left: auto !important;
    }
}

/* Scroll State */
.navbar.scrolled {
    background: white !important;
    box-shadow: 0 0 15px rgba(0,0,0,0.1) !important;
}

.navbar.scrolled .logo-row {
    height: 0;
    padding: 0;
    opacity: 0;
}

.navbar.scrolled .menu-row {
    background: transparent;
    padding: 1rem 0;
}

.navbar.scrolled .navbar-nav {
    padding: 0;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 70px;
    }

    .logo-row {
        padding: 1rem 0;
    }

    .menu-row {
        padding: 0.5rem 1rem;
    }

    .navbar.scrolled .menu-row {
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 8px;
        box-shadow: var(--card-shadow);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link.dropdown-toggle {
        padding-right: 2rem !important;
    }

    .navbar .dropdown-toggle::after {
        right: 1rem !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-logo {
        height: 60px;
    }

    .menu-row {
        padding: 0.5rem 0;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--card-shadow);
        margin: 0.5rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 0.8rem 1.2rem !important;
        border-radius: 6px;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        background: rgba(var(--primary-rgb), 0.1);
    }

    .navbar-light .navbar-nav .nav-link:after {
        display: none;
    }

    .nav-link.dropdown-toggle {
        justify-content: space-between !important;
    }
    
    .navbar .dropdown-toggle::after {
        margin-left: auto !important;
    }
}

/* Sticky Navbar Animation */
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar.sticky-top.sticky-show {
    top: 0;
}

.sticky-show .navbar-logo {
    height: 60px;
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

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


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: all 0.4s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 45px rgba(0, 0, 0, .15);
}

.service-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-item:hover img {
    transform: scale(1.1) rotate(5deg);
}

.service-item .p-4 {
    padding: 2rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-item h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.25rem;
    color: #2b2d42;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-item:hover h5 {
    color: var(--primary);
}

.service-item p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .service-item {
        margin-bottom: 1rem;
    }
    
    .service-item .p-4 {
        padding: 1.5rem 1rem !important;
    }
    
    .service-item img {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* Animation delay for items */
.wow.fadeInUp:nth-child(2) {
    animation-delay: 0.2s !important;
}
.wow.fadeInUp:nth-child(3) {
    animation-delay: 0.3s !important;
}
.wow.fadeInUp:nth-child(4) {
    animation-delay: 0.4s !important;
}

/*** Categories & Courses ***/
.category img,
.course-item img {
    transition: .5s;
}

.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    /* color: #FFFFFF !important; */
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-pagination-wrapper {
  text-align: center;
  margin: 30px 0;
}

.custom-page-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.custom-page-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.custom-page-btn:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.custom-page-btn.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
  pointer-events: none;
  cursor: default;
}

.sidebar {
  background: linear-gradient(135deg, #ffffff, #f4f7fa);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease-in-out;
}

.sidebar:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.sidebar-widget {
  margin-bottom: 25px;
}

.widget-title {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}


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

.sidebar-widget ul li {
  margin-bottom: 12px;
}

.sidebar-widget ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #555;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
  text-decoration: none;
  background-color: #f0f3f7;
}

.sidebar-widget ul li a:hover {
  background-color: #007bff;
  color: #fff;
  transform: translateX(5px);
}

.recent-posts-widget {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.recent-posts-title {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
  padding-left: 6px;
}

.recent-post-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-thumb a:hover img {
  transform: scale(1.05);
}

.recent-post-content {
  flex: 1;
}

.recent-post-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.recent-post-link {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.recent-post-link:hover {
  color: #007bff;
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

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

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Back to Top Button ***/
.back-to-top {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: black;
    border-color: black;
}

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

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* About Section Styles */
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary);
    border-radius: 20px;
    transform: scale(1.1);
    opacity: 0.2;
    z-index: 1;
}

.about-image-wrapper img {
    border-radius: 20px;
    transform: scale(1.01);
    transition: all 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-content {
    position: relative;
    padding: 2rem;
}

.about-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 5px;
    background: var(--primary);
    border-radius: 5px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    margin-top: 2rem;
    text-align: justify;
}

/* .about-content p:first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
    font-family: var(--heading-font);
} */

@media (max-width: 991.98px) {
    .about-image-wrapper {
        margin-bottom: 2rem;
        min-height: 300px !important;
    }
    
    .about-content {
        padding: 1rem 0;
    }
    
    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* <script>
window.addEventListener('scroll', function() {
    const navbar = document.querySelector('.navbar');
    if (window.scrollY > 50) {
        navbar.classList.add('scrolled');
    } else {
        navbar.classList.remove('scrolled');
    }
});
</script> */