/********** Template CSS **********/
:root {
    --primary: #52ca58;
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** 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-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    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;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    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;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

.booking-section {
    padding: 20px;
    background-color: #f9f9f9;
}

.form-title {
    font-size: 24px;
    color: #003366;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
}

.form-submit {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-submit:hover {
    background-color: #005599;
}

/* Make logo responsive */
.logo-responsive {
    max-width: 150px;
    /* Set a max-width */
    height: auto;
    /* Maintain aspect ratio */
}

@media (max-width: 768px) {
    .logo-responsive {
        max-width: 120px;
        /* Resize logo on smaller screens */
    }
}

@media (max-width: 576px) {
    .logo-responsive {
        max-width: 100px;
        /* Further resize on very small screens */
    }
}

.time-slot-box {
    text-align: center;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.time-slot-box:hover {
    background-color: #f0f0f0;
    border-color: #888;
}

.time-slot-box a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive layout for the modal */
@media (max-width: 768px) {
    .time-slot-box {
        font-size: 14px;
        padding: 8px;
    }
}

.resource-link {
    transition: color 0.3s ease, border-bottom 0.3s ease;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.resource-link:hover {
    color: #FF5733;
    /* Change color on hover */
    border-bottom: 2px solid #003366;
    /* Add underline effect */
}

.fixed-panel {
    width: 250px;
    /* Fixed width for the panel */
    height: 250px;
    /* Fixed height for the panel */
    /* Ensures circular panel */
    overflow: hidden;
    /* Hides overflow from larger images */
    display: flex;
    align-items: center;
    /* Centers image vertically */
    justify-content: center;
    /* Centers image horizontally */
    background-color: #f3f3f3;
    /* Optional: Add a background color */
}

@media (max-width: 768px) {
    .fixed-panel {
        height: 250px;
        /* Reduce height on smaller screens */
    }

    .fixed-panel img {
        object-position: top;
        /* Prevents cropping from the top */
    }
}

/* Sidebar link hover animation */
.sidebar-link {
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 8px 12px;
}

.sidebar-link:hover {
    background-color: #495057;
    transform: translateX(5px);
}

/* Dashboard card hover animation */
.dashboard-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Underline hover effect */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0d6efd;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Dropdown animation */
.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Profile dropdown */
.profile-icon img {
    border: 2px solid #ddd;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-icon img:hover {
    transform: scale(1.05);
    border-color: #0d6efd;
}

/* Dropdown menu styling */
.dropdown-animated .dropdown-item {
    transition: all 0.2s ease-in-out;
}

.dropdown-animated .dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}
/* Fixed Top Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Page area between navbar and footer fills the screen */
.page-wrap{
  min-height: 100vh;                 /* keeps footer below the viewport */
}

/* Adjust this if your top navbar is sticky; 64–72px is typical */
:root{
  --nav-h: 72px;                     /* height of your top navbar */
}

/* Sidebar: steady (sticky), full height until footer, no overlap */
.instructor-sidebar{
  top: var(--nav-h);                 /* starts below navbar if it’s sticky */
  height: calc(100vh - var(--nav-h));
  width: 297px;                      /* nice readable width */
  overflow-y: auto;                  /* scroll inside if menu is long */
  background: #0C2B4B;               /* dark background */
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.08);
}

/* Make sure links are visible and active state pops */
.instructor-sidebar .nav-link{ color:#fff; }
.instructor-sidebar .nav-link:hover{ background: rgba(255,255,255,.08); }
.instructor-sidebar .nav-link.active{
  background:#0C2B4B; 
  color:#fff;
}