/*
Template Name: HTML Education Template
Author: yaminncco

Colors:
	Body 		: #798696
	Headers 	: #374050
	Primary 	: #FF6700
	Grey 		: #EBEBEB

Fonts: Lato & Montserrat

Table OF Contents
------------------------------------
1 > General
2 > Logo
3 > Navigation
4 > Hero Area
5 > About & Why Us (Feature)
6 > Courses
7 > Footer
8 > Contact Page
9 > Blog Page
10 > Blog Page Sidebar
11 > Single Post Page
12 > Responsive
13 > Preloader
------------------------------------*/

/*------------------------------------*\
	General
\*------------------------------------*/
/* --- typography --- */
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #798696;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #374050;
}

h1 {
    font-size: 38px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

a {
    font-family: Arial, sans-serif;
    color: #374050;
    font-weight: 700;
}

a:hover,
a:focus {
    text-decoration: none;
    outline: none;
    color: #374050;
    opacity: 0.9;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none
}

.white-text {
    color: #FFF;
}

blockquote {
    position: relative;
    margin: 20px 0px;
    padding: 20px 20px 20px 60px;
    border-left: none;
    color: #374050;
}

blockquote:before {
    content: "\f10d";
    font-family: fontAwesome;
    position: absolute;
    left: 0;
    top: 0;
    color: #FF6700;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #EBEBEB;
}


/* --- Section --- */
.section {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-hr {
    margin-top: 80px;
    margin-bottom: 80px;
    border-color: #EBEBEB;
}

.section-header {
    margin-bottom: 40px;
}

/* --- Background Image --- */
.bg-image {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-position: center;
    background-size: cover;
}

.bg-image.bg-parallax {
    /* ---background-attachment: fixed; **/
}

.bg-image.overlay:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#374050), to(#798696));
    background-image: linear-gradient(to bottom, #374050 0%, #798696 100%);
    opacity: 0.4;
}

/* --- Buttons --- */
.main-button {
    position: relative;
    display: inline-block;
    padding: 10px 30px;
    background-color: #FF6700;
    border: 2px solid transparent;
    border-radius: 40px;
    color: #FFF;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.main-button:hover,
.main-button:focus {
    background-color: #fff;
    border: 2px solid #FF6700;
    color: #FF6700;
}

.main-button.icon-button:hover,
.main-button.icon-button:focus {
    padding-right: 45px;
}

.main-button.icon-button:after {
    content: "\f178";
    font-family: FontAwesome;
    position: absolute;
    width: 30px;
    right: 15px;
    text-align: center;
    opacity: 0;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.main-button.icon-button:hover:after,
.main-button.icon-button:focus:after {
    opacity: 1;
}

/* --  Input  -- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="tel"],
textarea {
    height: 40px;
    width: 100%;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    background: transparent;
    padding-left: 15px;
    padding-right: 15px;
    -webkit-transition: 0.2s border-color;
    transition: 0.2s border-color;
}

textarea {
    padding: 10px 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #FF6700;
}

/*------------------------------------*\
	Logo
\*------------------------------------*/
.navbar-brand {
    padding: 0;
}

.navbar-brand .logo {
    margin-top: 5px;
    display: inline-block;
}

.navbar-brand .logo>img {
    max-height: 40px;
}

@media only screen and (max-width: 767px) {
    .navbar-brand {
        margin-left: 15px;
    }
}

/*------------------------------------*\
	Navigation
\*------------------------------------*/
#header {
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid rgba(235, 235, 235, 0.25);
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

#header.transparent-nav {
    position: absolute;
    background-color: transparent;
}

#header.transparent-nav .main-menu li a {
    color: #FFF;
}

.main-menu li a {
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.main-menu li a:hover,
.main-menu li a:focus {
    background-color: transparent;
}

.main-menu li a:after {
    content: "";
    display: block;
    height: 2px;
    background-color: #FF6700;
    width: 100%;
    -webkit-transform: translateY(5px);
    -ms-transform: translateY(5px);
    transform: translateY(5px);
    opacity: 0;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.main-menu li a:hover:after,
.main-menu li a:focus:after {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    opacity: 1;
}

.main-menu li a .fa {
    display: inline-block;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-menu li a .fa:before {
    text-rendering: optimizeLegibility;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: 400;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    #nav {
        height: 52px;
    }
}

/* -- Mobile Nav -- */
@media only screen and (max-width: 767px) {
    #nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 0%;
        max-width: 320px;
        height: 100vh;
        background: #FFF;
        -webkit-box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
        box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        padding-bottom: 40px;
        -webkit-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
        -webkit-transition: 0.4s all cubic-bezier(.77, 0, .18, 1);
        transition: 0.4s all cubic-bezier(.77, 0, .18, 1);
        z-index: 9;
    }

    #header.nav-collapse #nav {
        width: 100%;
        -webkit-transform: translateX(0%);
        -ms-transform: translateX(0%);
        transform: translateX(0%);
    }

    .main-menu {
        margin: 0;
    }

    .main-menu li a {
        color: #374050 !important;
        display: inline-block;
        margin-left: 20px;
    }
}

/* -- Mobile Toggle Btn -- */
.navbar-toggle {
    position: fixed;
    right: 50px;
    padding: 0;
    height: 38px;
    width: 38px;
    margin-top: 7px;
    z-index: 99;
}

.navbar-toggle>span {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-transition: 0.2s background;
    transition: 0.2s background;
}

.navbar-toggle>span:before,
.navbar-toggle>span:after {
    content: '';
    position: absolute;
    left: 0;
    -webkit-transition: 0.2s -webkit-transform;
    transition: 0.2s -webkit-transform;
    transition: 0.2s transform;
    transition: 0.2s transform, 0.2s -webkit-transform;
}

.navbar-toggle>span,
.navbar-toggle>span:before,
.navbar-toggle>span:after {
    height: 2px;
    width: 25px;
    background-color: #374050;
}

.navbar-toggle>span:before {
    top: -10px;
}

.navbar-toggle>span:after {
    top: 10px;
}

#header.nav-collapse .navbar-toggle>span {
    background: transparent;
}

#header.nav-collapse .navbar-toggle>span:before {
    -webkit-transform: translateY(10px) rotate(45deg);
    -ms-transform: translateY(10px) rotate(45deg);
    transform: translateY(10px) rotate(45deg);
}

#header.nav-collapse .navbar-toggle>span:after {
    -webkit-transform: translateY(-10px) rotate(-45deg);
    -ms-transform: translateY(-10px) rotate(-45deg);
    transform: translateY(-10px) rotate(-45deg);
}

/*------------------------------------*\
	Hero Area
\*------------------------------------*/
.hero-area {
    position: relative;
    padding-top: 120px;
    padding-bottom: 120px;
    margin-top: 145px;
}

#home.hero-area {
    height: calc(100vh - 80px);
    padding-top: 0px;
    padding-bottom: 0px;
}

.home-wrapper {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 0;
    right: 0;
}

/* -- Breadcrumb -- */
.hero-area-tree li {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-area-tree li>a {
    color: rgba(255, 255, 255, 0.8);
}

.hero-area-tree li+li:before {
    content: "/";
    display: inline-block;
    margin: 0px 5px;
    color: rgba(235, 235, 235, 0.25);
}

/*------------------------------------*\
	About & Why Us (Feature)
\*------------------------------------*/
/* -- Feature -- */
.feature {
    position: relative;
}

.feature+.feature {
    margin-top: 40px;
}

.feature .feature-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    font-size: 30px;
    border: 1px solid #EBEBEB;
    color: #FF6700;
}

.feature-content {
    padding-left: 100px;
}

/* -- About Img -- */
.about-img {
    margin-top: 40px;
}

.about-img>img {
    width: 100%;
}

/* -- About Video -- */
.about-video {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.about-video>img {
    width: 100%;
}

.about-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    font-size: 24.027px;
    z-index: 10;
    -webkit-animation: 2s play-animation infinite;
    animation: 2s play-animation infinite;
    -webkit-transition: 0.2s color;
    transition: 0.2s color;
}

.about-video:hover .play-icon {
    color: #FF6700;
}

@-webkit-keyframes play-animation {
    from {
        -webkit-box-shadow: 0px 0px 0px 0px #FFF;
        box-shadow: 0px 0px 0px 0px #FFF;
    }

    to {
        -webkit-box-shadow: 0px 0px 0px 10px transparent;
        box-shadow: 0px 0px 0px 10px transparent;
    }
}

@keyframes play-animation {
    from {
        -webkit-box-shadow: 0px 0px 0px 0px #FFF;
        box-shadow: 0px 0px 0px 0px #FFF;
    }

    to {
        -webkit-box-shadow: 0px 0px 0px 10px transparent;
        box-shadow: 0px 0px 0px 10px transparent;
    }
}

.about-video:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: #FF6700;
    opacity: 0.7;
}

/*------------------------------------*\
	Courses
\*------------------------------------*/
.course {
    margin-top: 20px;
    margin-bottom: 20px;
}

.course .course-img {
    position: relative;
    display: block;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.course .course-img>img {
    width: 100%;
}

.course-img:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: #FF6700;
    opacity: 0;
    -webkit-transition: 0.2s opacity;
    transition: 0.2s opacity;
}

.course .course-img:hover:after {
    opacity: 0.7;
}

.course .course-img .course-link-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, calc(-50% - 15px));
    -ms-transform: translate(-50%, calc(-50% - 15px));
    transform: translate(-50%, calc(-50% - 15px));
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
    opacity: 0;
    z-index: 10;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.course .course-img:hover .course-link-icon {
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 1;
}

.course .course-title {
    display: block;
    height: 42px;
}

.course .course-details {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #EBEBEB;
}

.course .course-details .course-price {
    float: right;
}

.course .course-details .course-price.course-free {
    color: green;
}

.course .course-details .course-price.course-premium {
    color: #FF6700;
}

#courses .center-btn {
    text-align: center;
    margin-top: 40px;
}

/*------------------------------------*\
	Footer
\*------------------------------------*/
/* -- Footer Nav -- */
.navbar-footer {
    margin-bottom: 0;
}
.footer-nav {
    text-align: right;
    padding: 20px 0px;
}

.footer-nav li {
    display: inline-block;
    margin-left: 15px
}

.footer-nav li a {
    display: block;
    text-transform: uppercase;
    -webkit-transition: 0.2s color;
    transition: 0.2s color;
}

.footer-nav li a:hover,
.footer-nav li a:focus {
    color: #FF6700;
}

.footer-nav li a:after {
    content: "";
    display: block;
    height: 2px;
    background-color: #FF6700;
    width: 100%;
    -webkit-transform: translateY(5px);
    -ms-transform: translateY(5px);
    transform: translateY(5px);
    opacity: 0;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.footer-nav li a:hover:after,
.footer-nav li a:focus:after {
    -webkit-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
    opacity: 1;
}

footer {
    background-color: rgb(18, 118, 179);
    color: #ecf0f1;
    padding: 20px 0 10px !important;
    margin-top: 0;
    position: relative;
}

footer .ladi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    background-image: url(https://w.ladicdn.com/s700x1000/5aaa573d48c6ce52298f7f11/z4155151445299_b29a64e71c9e3bf71afade04cf63f869-20230315085858--__ho.jpg);
    opacity: .08;
    background-size: cover;
    background-origin: content-box;
    background-position: 50% 0;
    background-repeat: repeat;
    background-attachment: scroll;
}



/* -- Footer Logo -- */
footer .footer-logo {
    margin-bottom: 25px;
}
footer .footer-logo .logo>img {
    max-height: 45px;
}

footer .company-header {
    padding: 0 0 5px;
    margin-bottom: 25px;
}
footer .company-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}
footer .company-id {
    font-size: 14px;
}
footer .section-title {
    font-size: 18px;
    font-weight: bold;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: white;
}
footer .contact-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 20px;
}
footer .contact-item {
    margin-bottom: 10px;
}
footer .address-section {
    margin-bottom: 30px;
}
footer .address-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #3498db;
}
footer .office-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
}
footer .hotline {
    color: white;
}
footer .incomplete {
    color: #95a5a6;
    font-style: italic;
}

/* -- Footer Social -- */
.footer-social {
    text-align: right;
}

.footer-social li {
    display: inline-block;
    margin-left: 10px;
}

.footer-social li a {
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    color: #FFF;
    background-color: #EBEBEB;
    -webkit-transition: 0.2s opacity;
    transition: 0.2s opacity;
}

.footer-social li a svg {
    transform: unset !important;
}

/* 3-column layout for larger screens */
@media (min-width: 768px) {
    .footer-columns {
        display: flex;
        flex-wrap: wrap;
    }
    .footer-column {
        flex: 1;
        min-width: 250px;
        padding: 0 15px;
    }
    .footer-column:first-child {
        padding-left: 0;
    }
    .footer-column:nth-child(2) {
        padding-top: 45px;
    }
    .footer-column:last-child {
        padding-right: 0;
    }
}

/*------------------------------------*\
	Contact Page
\*------------------------------------*/
/* -- Contact Form -- */
.contact-form:after {
    content: "";
    display: block;
    clear: both;
}

.contact-form .input {
    margin-bottom: 20px;
}

.contact-form textarea.input {
    height: 200px;
}

/* -- Contact Information -- */
.contact-details li {
    margin-bottom: 20px;
}

.contact-details li i {
    color: #FF6700;
    margin-right: 15px;
    border: 1px solid #EBEBEB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

/* -- Contact Map -- */
#contact-map {
    height: 260px;
    border-radius: 4px;
}

/*------------------------------------*\
	Blog Page
\*------------------------------------*/
/* -- Single Blog -- */
.single-blog {
    margin-bottom: 40px;
}

.single-blog .blog-img>a {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.single-blog .blog-img img {
    width: 100%;
}

.single-blog .blog-img>a:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: #FF6700;
    opacity: 0;
    -webkit-transition: 0.2s opacity;
    transition: 0.2s opacity;
}

.single-blog .blog-img>a:hover:after {
    opacity: 0.7;
}

.single-blog .blog-meta {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #EBEBEB;
}

.single-blog .blog-meta .blog-meta-author>a {
    color: #FF6700;
}

.single-blog .blog-meta .blog-meta-comments {
    margin-left: 10px;
}

.single-blog .blog-meta .blog-meta-comments>a {
    color: #798696;
}

/* -- Pagination -- */
.post-pagination {
    margin-top: 40px;
    text-align: center;
}

.post-pagination .pages {
    display: inline-block;
}

.post-pagination .pages li {
    display: inline-block;
}

.post-pagination .pages li+li {
    margin-left: 10px;
}

.post-pagination .pages li {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #EBEBEB;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.post-pagination .pages li a {
    display: block;
    -webkit-transition: 0.2s color;
    transition: 0.2s color;
}

.post-pagination .pages li:hover,
.post-pagination .pages li.active {
    background-color: #FF6700;
    color: #FFF;
}

.post-pagination .pages li:hover a {
    color: #FFF;
}

.pagination-back,
.pagination-next {
    display: block;
    text-align: center;
    border-radius: 40px;
    background-color: #EBEBEB;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
    height: 40px;
    padding: 0px 30px;
    line-height: 40px;
}

.pagination-next:hover,
.pagination-back:hover {
    color: #FFF;
    background-color: #FF6700;
}

.pagination-next:after {
    content: "\f178";
    font-family: FontAwesome;
    margin-left: 15px;
}

.pagination-back:before {
    content: "\f177";
    font-family: FontAwesome;
    margin-right: 15px;
}

/*------------------------------------*\
	Blog Page Sidebar
\*------------------------------------*/
.widget+.widget {
    margin-top: 40px;
}

/*-- Search --*/
.widget.search-widget {
    position: relative
}

.widget.search-widget .input {
    padding-right: 60px;
}

.widget.search-widget button {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background-color: transparent;
    border: none;
}

.widget.search-widget .input:focus+button {
    color: #FF6700;
}

/*-- Category --*/
.category-widget .category {
    display: block;
    text-transform: uppercase;
    padding-top: 10px;
    padding-bottom: 10px;
}

.category-widget .category+.category {
    border-top: 1px solid #EBEBEB;
}

.category-widget .category:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #FF6700;
    margin-right: 10px;
}

.category-widget .category span {
    font-size: 14px;
    margin-left: 10px;
    color: #798696;
}

/*-- Sidebar Posts --*/
.single-post:after {
    content: "";
    display: block;
    clear: both;
}

.single-post+.single-post {
    margin-top: 20px;
}

.single-post .single-post-img {
    position: relative;
    width: 30%;
    display: block;
    float: left;
    margin-right: 10px;
    margin-top: 3px;
    border-radius: 4px;
    overflow: hidden;
}

.single-post .single-post-img img {
    width: 100%;
}

.single-post-img:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: #FF6700;
    opacity: 0;
    -webkit-transition: 0.2s opacity;
    transition: 0.2s opacity;
}

.single-post-img:hover:after {
    opacity: 0.7;
}

/*-- Tags --*/
.tags-widget .tag {
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    margin-right: 0px;
    margin-top: 5px;
    padding: 5px 15px;
    border-radius: 40px;
    border: 1px solid #EBEBEB;
    color: #798696;
    -webkit-transition: 0.2s all;
    transition: 0.2s all;
}

.tags-widget .tag:hover {
    background-color: #FF6700;
    border-color: #FF6700;
    color: #FFF;
}

/*------------------------------------*\
	Single Post Page
\*------------------------------------*/
/* --- Blog Post Meta --- */
.blog-post-meta {
    margin-top: 40px;
}

.blog-post-meta li {
    display: inline-block;
}

.blog-post-meta li+li {
    margin-left: 15px;
}

.blog-post-meta li,
.blog-post-meta li>a {
    color: rgba(255, 255, 255, 0.8);
}

.blog-post-meta .blog-meta-author>a {
    color: #FF6700;
}

/* --- Blog Share --- */
.blog-share {
    border-top: 1px solid #EBEBEB;
    padding-top: 10px;
    margin-top: 40px;
}

.blog-share>h4 {
    display: inline-block;
    margin: 0;
}

.blog-share a {
    display: inline-block;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #FFF;
    background-color: #EBEBEB;
    border-radius: 50%;
    -webkit-transition: 0.2s opacity;
    transition: 0.2s opacity;
}

.blog-share a.facebook {
    background-color: #3b5998;
}

.blog-share a.twitter {
    background-color: #55acee;
}

.blog-share a.google-plus {
    background-color: #dd4b39;
}

/* --- Blog Comments --- */
.blog-comments {
    margin-top: 40px;
}

.blog-comments .media {
    margin-top: 20px;
    margin-bottom: 20px;
}

.blog-comments .media .media {
    margin-left: 20px;
}

.blog-comments .media .media:nth-last-child(1) {
    margin-bottom: 0px;
}

.blog-comments .media .media-body {
    padding: 20px;
    background-color: #EBEBEB;
    border-radius: 0px 4px 4px;
}

.blog-comments .media .media-left:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    border-style: solid;
    border-width: 0px 15px 15px;
    border-color: transparent #EBEBEB transparent transparent;
}

.blog-comments .media-left {
    position: relative;
    padding-right: 20px;
}

.blog-comments .media-left img {
    width: 80px;
    height: 80px;
    background-color: #EBEBEB;
    border-radius: 50%;
}

.blog-comments .media .date-reply {
    font-size: 12px;
    text-transform: uppercase;
    color: #374050;
}

.blog-comments .media .date-reply .reply {
    margin-left: 15px;
}

/* --- Blog Reply Form --- */
.blog-reply-form {
    margin-top: 40px;
}

.blog-reply-form .input {
    margin-bottom: 20px;
}

.blog-reply-form .input.name-input,
.blog-reply-form .input.email-input {
    width: calc(50% - 10px);
    float: left;
}

.blog-reply-form .input.email-input {
    margin-left: 20px;
}

.blog-reply-form textarea {
    height: 90px;
}

/*------------------------------------*\
	Responsive
\*------------------------------------*/
@media only screen and (max-width: 991px) {
    .section-header h2 {
        font-size: 24px;
    }

    /*-- Why us --*/
    #why-us .feature {
        margin-top: 40px;
    }

    .about-video {
        margin-top: 40px;
    }

    /*-- Call to action --*/
    #cta {
        text-align: center;
    }

    /*-- Footer --*/
    .footer-logo {
        text-align: center;
    }

    .footer-nav {
        text-align: center;
    }

    .footer-nav li {
        margin-top: 10px;
    }

    .footer-social {
        text-align: center;
    }

    .footer-social li {
        margin-top: 10px;
    }

    .footer-copyright {
        text-align: center;
        line-height: inherit;
        margin-top: 20px;
    }

    /*-- Contact page --*/
    .contact-form {
        margin-bottom: 40px;
    }

    .contact-form button {
        float: none !important;
    }

    /*-- Blog page --*/
    #main {
        margin-bottom: 80px;
    }
}

@media only screen and (max-width: 767px) {
    .hero-area {
        margin-top: 50px;
    }


    /*-- Hero area --*/
    .hero-area h1 {
        font-size: 30px;
    }

    /* -- Breadcrumb -- */
    .hero-area-tree li {
        font-size: 12px;
    }

    /*-- Pagination --*/
    .post-pagination .pages {
        display: none;
    }
}

@media only screen and (max-width: 480px) {

    /*-- Courses --*/
    #courses-wrapper [class*='col-xs'] {
        width: 100%;
    }

    /*-- Blog Comments --*/
    .blog-comments .media .media {
        margin-left: 0px;
    }

    /*-- Blog Reply Form --*/
    .blog-reply-form .input.name-input,
    .blog-reply-form .input.email-input {
        width: 100%;
        float: none;
    }

    .blog-reply-form .input.email-input {
        margin-left: 0px;
    }
}

/*------------------------------------*\
	Preloader
\*------------------------------------*/
#preloader {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #FFF;
    z-index: 9999;
}

#preloader .preloader {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#preloader .preloader:after {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border: 1px solid #EBEBEB;
    border-top: 1px solid #FF6700;
    border-radius: 50%;
    -webkit-animation: 1s preloader linear infinite;
    animation: 1s preloader linear infinite;
}

@-webkit-keyframes preloader {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes preloader {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.news-image {
    max-width: 100%;
}
@media only screen and (max-width: 767px) {
    .news-image {
        height: auto !important;
    }
}
.text-uppercase {
	text-transform: uppercase;
}

/* header */
.navbar-default .navbar-nav>li>a,
.dropdown-menu>li>a {
    color: #23446d;
    font-weight: 700;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
/* -- btn-language-toggle -- */
.btn-language-toggle {
    position: fixed;
    right: 5px;
    top: -5px;
}
.btn-language-toggle .dropdown-menu {
    top: 125%;
    z-index: 999;
}
.btn-language img {
    height: 24px;
}
.btn-language .cur-default,
.btn-language span,
.btn-language i.fa{
    display: none;
}
@media (min-width: 768px) {
    .sec-language {
        width: 100vw;
        height: 50px;
        margin-left: calc((100% - 100vw) / 2);
        background-color: rgb(27, 135, 201);
    }

    .btn-language-toggle {
        z-index: 998;
        right: calc((100vw - 750px) / 2);
    }

    .btn-language .cur-default,
    .btn-language span,
    .btn-language i.fa{
        display: inline;
    }

    .btn-language span{
        vertical-align: middle;
        font-size: 16px;
        font-weight: 600;
        margin-left: 5px;
        margin-right: 5px;
    }

    .btn-language i.fa{
        margin-right: 15px;
    }

    .btn-language-toggle .dropdown-menu{
        width: 100%;
    }
}
@media (min-width: 992px) {
    .btn-language-toggle {
        right: calc((100vw - 970px) / 2);
    }
}
@media (min-width: 1200px) {
    .btn-language-toggle {
        right: calc((100vw - 1170px) / 2);
    }
}
.btn-language {
    top:12px;
}
.btn-language img {
    transition: transform 0.3s ease;
}

.btn-group:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
}
@media (min-width: 768px){
    .main-menu li .dropdown-menu {
        top:100px;
        display: block;
        min-width: max-content;
        opacity: 0;
        visibility: hidden;
        transition: all ease .3s;
    }

    .main-menu li:hover .dropdown-menu{
        top:100%;
        opacity: 1;
        visibility: visible;
    }

    .main-menu li .dropdown-menu>li:not(:last-child)>a{
        border-bottom: 1px solid #f3f3f3;
    }

    .main-menu li .dropdown-menu a:hover:after,
    .main-menu li .dropdown-menu a:focus:after{
        opacity:0
    }

    .main-menu li .dropdown-menu a:hover{
        color:#0298d1;
    }
}

.sec-header-plus {
    display: none;
}
@media (min-width: 768px) {
    .sec-header-plus {
        display: flex;
        align-items: flex-start;
        height: 42px;
        float: right;
    }

    .sec-header-plus .from-search{
        display: flex;
        align-items: flex-start;
    }

    .sec-header-plus .from-search .input-group {
        max-width: 350px;
        border-radius: 25px;
        overflow: hidden;
        border: 2px solid #1e88e5; /* xanh đậm hơn tí */
    }

    .sec-header-plus .from-search .input-group .form-control {
        height: 30px;
        border: none;
        box-shadow: none;
        border-radius: 25px 0 0 25px;
        padding: 8px 15px;
        font-style: italic;
    }

    .sec-header-plus .from-search .input-group .form-control::placeholder {
        color: #888;
        font-style: italic;
    }

    .sec-header-plus .from-search .input-group .input-group-addon {
        background-color: #1e88e5;
        border: none;
        color: #fff;
        border-radius: 0 25px 25px 0;
    }

    .sec-header-plus .from-search .btn {
        height: 34px;
        background-color: #e3f2fd;
        color: #1e88e5;
        border: none;
        font-weight: bold;
        border-radius: 25px;
        margin-left: 5px;
        padding: 8px 18px;
    }

    .sec-header-plus .from-search .btn:hover {
        background-color: #bbdefb;
    }

    .sec-header-plus .btn-advise {
        color: #fff;
        background-color: rgb(27, 135, 201);
        margin-left: 35px;
    }

    .sec-header-plus .btn-advise:hover {
        background-color:#0298d1;
    }
}

/* fix row-col khác chiều cao */
.row.d-flex {
    display: flex;
    flex-wrap: wrap;
}
.row.d-flex > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

/* box tin cùng mục, box tin mới nhất - hiển thị tối đa 2 dòng text - kết thúc bằng dấu ... nếu quá dài */
.line-clamp {
    display           : -webkit-box;
    -webkit-line-clamp: 2; /* Chỉ hiển thị 2 dòng */
    -webkit-box-orient: vertical;
    overflow          : hidden;
    text-overflow     : ellipsis;
    white-space       : normal;
    word-break        : break-word; /* Đảm bảo từ dài có thể xuống dòng */
    line-height       : 1.5em; /* Độ cao dòng hợp lý */
    max-height        : calc(1.5em * 2 + 0.1em); /* Đảm bảo không bị cắt nét chữ */
    padding-bottom    : 0.2em; /* Tạo khoảng trống nhỏ để tránh mất nét */
}
.line-clamp-3 {
    -webkit-line-clamp: 3;
}
.line-clamp-4 {
    -webkit-line-clamp: 4;
}
/* Hỗ trợ Firefox */
@supports not (-webkit-line-clamp: 2) {
    .line-clamp {
        display      : block;
        display      : -moz-box; /* Firefox cũ */
        overflow     : hidden;
        text-overflow: ellipsis;
        line-height  : 1.5em; /* Độ cao mỗi dòng */
        max-height   : 3em; /* 2 dòng × 1.5em */
        white-space  : normal;
    }
    .line-clamp-3 {
        max-height   : 4.5em;
    }
    .line-clamp-4 {
        max-height   : 6em;
    }
}


/* menu dọc */
    #vertical_menu .sidebar-menu * {
        color: rgb(27, 135, 201);
        font-weight: 700;
    }

    #vertical_menu h3 {
        font-weight: 700;
        color: #23446d;
        text-transform: uppercase;
        padding: 8px 0;
        border-bottom: 2px solid #23446d;
        margin-bottom: 5px;
    }

    /* Căn chỉnh menu */
    #vertical_menu .sidebar-menu {
        width: 100%;
    }

    #vertical_menu .sidebar-menu .list-group-item:first-of-type {
        border-top: none;
    }

    #vertical_menu .sidebar-menu .list-group-item {
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        cursor: pointer;
        position: relative;
    }

    /* Icon toggle */
    #vertical_menu .toggle-icon {
        position: absolute;
        right: 10px;
        top: 12px;
        font-size: 14px;
        cursor: pointer;
    }

    /* Menu cấp 2 ẩn mặc định */
    #vertical_menu .submenu {
        display: none;
        background: #f2f9ff;
    }

    /* Hiện menu cấp 2 khi hover cấp 1 */
    #vertical_menu .list-group-item.hovered > .submenu {
        display: block;
    }

    /* Khi mở bằng collapse (click icon) */
    #vertical_menu .submenu.in {
        display: block;
    }

    /* Style item cấp 2 */
    #vertical_menu .submenu .list-group-item {
        background: #f2f9ff;
        padding-left: 30px;
        font-size: 14px;
        font-weight: 400;
        border: none;
    }

    #vertical_menu .submenu .list-group-item:hover {
        background: #d9edff;
        font-weight: 700;
    }

    /* chỉ hiển thị trên màn hình > 992 */
    #vertical_menu {
        display:none;
    }
    @media (min-width: 992px) {
        #vertical_menu {
            z-index: 98;
            display:block;
        }
    }
/* menu dọc -> end */

/* trang bài viết */
.blog-post ul,
.blog-post ol,
.blog-post li {
    list-style: revert; /* trả về mặc định: ul=disc, ol=decimal */
}

/* nếu trước đó có reset padding, thêm vào để hiện bullet đúng vị trí */
.blog-post ul,
.blog-post ol {
    padding-left: 3.25rem;
}

.blog-post p {
    text-align: justify;
}
/* trang bài viết -> end */

/* trang tìm kiếm */
    /* trang tìm kiếm - kết quả tìm kiếm danh mục */
    /* Căn chỉnh menu */
    #search_cate .sidebar-menu {
        width: 100%;
    }

    #search_cate .sidebar-menu .list-group-item:first-of-type {
        border-top: none;
    }

    #search_cate .sidebar-menu .list-group-item {
        padding-left: 0;
        padding-right: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        cursor: pointer;
        position: relative;
    }

    /* Menu cấp 2 hiện mặc định */
    #search_cate .submenu {
        display: block;
        background: #f2f9ff;
    }

    /* Style item cấp 2 */
    #search_cate .submenu .list-group-item {
        background: #f2f9ff;
        padding-left: 30px;
        font-size: 14px;
        font-weight: 400;
        border: none;
    }

    #search_cate .submenu .list-group-item:hover {
        background: #d9edff;
        font-weight: 700;
    }
    /* trang tìm kiếm - kết quả tìm kiếm danh mục -> end */
/* trang tìm kiếm -> end */