/********** Template CSS **********/
:root {
    --primary: #06BBCC;
    --light: #F0FBFC;
    --dark: #181d38;
}

.navi-btn{
    background-color:#06BBCC;
}

.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;
}


/*** 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;    
}


#main_side div:first-child h1 {
    font-size: 3em;
    width: 85%;    
}
#main_side div:first-child h3 {
    font-size: 1.15em;
    width: 92%;
    font-weight: 500;
    padding: 1.6em 0;
    color: #939393;    
}

#main_side img {
    width: 500px;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 100%;
}
#search_course {
    width: 100%;
    padding: 1em 1.5em;
    border: 1px solid #ccc;
}
#benefit {  
    display: flex;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
}

#benefit div {
    flex: 1;
    padding: 10px;
    margin: 10px; /* Margin for row layout */
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

#main_side #benefit div:first-child,
#main_side #benefit div:nth-child(3){
    font-size: 2em;
    font-weight: bold;    
}

#main_side #benefit div:nth-child(2),
#main_side #benefit div:last-child {
    font-size: 0.95em;
    color: #6c6c6c;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;    
}
#main_side #benefit div:last-child {    
    padding: 1em;
}

/* Responsive styles */
@media (max-width: 768px) {
    #benefit {
       
        padding: 10px;
    }

    #benefit div {
        width: 100%;
        text-align: center;
        margin: 5px 0; /* Reduce margin for column layout */
    }
    #main_side #benefit div:first-child,
    #main_side #benefit div:nth-child(3){
        padding:0;
    }

    #main_side #benefit div:nth-child(2),
    #main_side #benefit div:last-child {
        padding:0;
    }
}


@media (min-width:641px) and (max-width: 990px) {
    #main_side {
        width: 100%;
    }
    #main_side div:first-child h1 {
        width: 100%;    
    }

    #main_side img {
        margin: 0 auto; 
        width: 80%;
    }
    #main_side div:first-child h1,
    #main_side div:first-child h3 {
        text-align: center;
    }
    #main_side div:first-child div:nth-child(4) {
        padding-bottom:2.5em;
    }
    #main_side div:last-child img{
        width:82%;
    }
    .search-container {
        position: relative;
        width:100%;
    }
    #search_course {
        width: 70%;
        padding: 1em 1.5em;
        border: 1px solid #ccc;
    }
    .search-button {
        position: absolute;
        top: 50%;
        right: 16%;
        transform: translateY(-50%); 
        background: transparent;
        border: none;
        cursor: pointer;
        padding:0.6em 0.8em;
        background-color:#0068d8;
        color:#fff;
        transition:.2s ease;
    }
}
@media (min-width:421px) and (max-width: 640px) {
    #main_side {
        flex-direction: column;
        text-align: center;
    }
    #main_side img {
        margin: 20px auto; /* Center the image horizontally */
        width: 80%; /* You can adjust this width as needed */
    }
    #main_side div:first-child h1,
    #main_side div:first-child h3 {
        text-align: center;
    }
    #main_side div:first-child h1{
        font-size:2.3em;  
        padding-top:1em;
        width:100%;
    }
    #main_side #benefit{
        justify-content: center;
        width: 100%;
    }
    #main_side #benefit div {
        width: calc(50% - 1em);        
    }    
    #main_side div:first-child div:nth-child(4) {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center; 
    }
    #main_side div:first-child div:nth-child(4) button {
        margin: 0 auto;
    }
    #main_side div:first-child div:nth-child(4) a {
        padding-top: 1em;
        margin: 0 auto;
        display: flex;
        align-items: center;
        padding-bottom:1.5em;
        padding-right:10%;
    }
    #main_side div:first-child div:nth-child(4) a i {
        border: none;
        padding: 0.8em;
        border-radius: 50%;
        background-color: #0068d8;
        color: #fff;
        margin-right: 0.5em;
    } 
    #main_side div:first-child div:nth-child(4) a h4 {
        font-size: 0.93em;
    }
    #main_side div:last-child img{
        width:82%;
    }
}
@media screen and (max-width:420px){
    #main_side {
        flex-direction: column;
        text-align: center;
    }
    #main_side img {
        margin: 20px auto; /* Center the image horizontally */
        width: 80%; /* You can adjust this width as needed */
    }
    #main_side div:first-child h1,
    #main_side div:first-child h3 {
        text-align: center;
    }
    #main_side div:first-child h1{
        font-size:2.1em;  
        padding-top:1em;
        width:100%;
    }
    #main_side div:first-child h3{
        font-size:1em;
    }
    #main_side #benefit{
        justify-content: center;
        width: 100%;
    }
    #main_side #benefit div {
        width: 100%;
    }
    #main_side div:first-child div:nth-child(4) {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center; 
    }
    #main_side div:first-child div:nth-child(4) button {
        margin: 0 auto;
    }
    #main_side div:first-child div:nth-child(4) a {
        padding-top: 1em;
        margin: 0 auto;
        display: flex;
        align-items: center;
        padding-bottom:1.8em;
        padding-right:15%;
    }
    #main_side div:first-child div:nth-child(4) a i {
        border: none;
        padding: 0.8em;
        border-radius: 50%;
        background-color: #0068d8;
        color: #fff;
        margin-right: 0.5em;
    } 
    #main_side div:first-child div:nth-child(4) a h4 {
        font-size: 0.93em;
    }
    #main_side div:last-child img{
        width:82%;
    }
}

/*** 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;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

#rg-btn{
    border-radius:0;
    background-color:#06BBCC;
    border:1px solid #06BBCC;
    margin-right:0.5em;
}
#log-btn{
    border-radius:0;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
    #rg-btn{
        background-color:rgba(0,0,0,0); 
        color:#1e1d1d;        
        display:block;
        border:none;
        text-align:left;
        margin:0 !important;
        padding:0 !important; 
        margin-left:1.33em !important;   
        margin-top:-1.1em !important;
        width:30%;
        height:auto;    
        font-size:1.15em;
        font-weight:500;   
    }
    #log-btn{
        background-color:rgba(0,0,0,0); 
        color:#1e1d1d;        
        display:block;
        text-align:left;
        border:none;
        margin:0 !important;
        padding:0 !important; 
        margin-left:1.33em !important;   
        margin-top:0.6em !important;
        width:30%;
        height:auto;    
        font-size:1.15em;     
        font-weight:500;  
        padding-bottom:1em !important; 
    }
    #logout-btn{
        background-color:rgba(0,0,0,0) !important; 
        color:#1e1d1d !important;        
        display:block !important;
        text-align:left !important;
        border:none !important;
        margin:0 !important;
        padding:0 !important; 
        margin-left:1.35em !important;   
        margin-top:-1.1em !important;
        width:30%;
        height:auto;    
        font-size:1.15em !important;     
        font-weight:500;  
        padding-bottom:1em !important; 
    }
}

.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: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/carousel-1.jpg);
    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: var(--light);
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Categories & Courses ***/
.category img {
    transition: .5s;
}

.category a:hover img {
    transform: scale(1.1);
}


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

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



