/********** Template CSS **********/
:root {
    --primary: #E97821;
    --secondary: #7F7165;
    --light: #FFFDF1;
    --dark: #562F00;
    --white: #FFFFFF;
    --border: rgba(86, 47, 0, .12);
    --shadow: 0 18px 50px rgba(86, 47, 0, .12);
    --radius: 10px;
    --transition: 0.3s ease;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/*** 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: 800;
    transition: var(--transition);
}

.btn.btn-primary {
    color: var(--dark);
}

.btn.btn-primary:hover {
    color: var(--white);
}

.btn.btn-outline-primary {
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn.btn-outline-primary:hover {
    color: var(--white);
    border-color: var(--primary);
}

.btn-square {
    width: 42px;
    height: 42px;
}

.btn-sm-square {
    width: 35px;
    height: 35px;
}

.btn-lg-square {
    width: 50px;
    height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: var(--radius);
}


/*** Navbar ***/
.navbar {
    padding: 16px 0;
    background: var(--light);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(86, 47, 0, .08);
    transition: padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(86, 47, 0, .08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-family: "Baloo 2", cursive;
    font-size: 1.6rem;
    font-weight: 700;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--dark);
    background: var(--primary);
    border-radius: 10px;
    transform: rotate(-5deg);
    box-shadow: 0 8px 20px rgba(86, 47, 0, .12);
}

.nav-link {
    position: relative;
    margin: 0 7px;
    color: var(--dark) !important;
    font-weight: 800;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 3px;
    background: var(--primary);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link:focus-visible::after { 
    transform: scaleX(1); 
}


/*** Hero ***/
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 150px !important;
}

.hero * {
    position: relative;
    z-index: 1;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.hero::before {
    width: 460px;
    height: 460px;
    right: -160px;
    top: 80px;
    background: rgba(233, 120, 33, .25);
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: 30px;
    background: rgba(233, 120, 33, .15);
}

.hero .hero-text h1 {
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    letter-spacing: -0.04em;
    margin: 18px 0;
}

.hero-image {
    position: relative;
    min-height: 570px;
    display: grid;
    place-items: center;
}

.hero-image-wrap {
    position: relative;
    width: min(100%, 570px);
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--white), var(--primary));
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-image-wrap img {
    width: 100%;
    height: 510px;
    object-fit: cover;
    border-radius: var(--radius);
}

.floating-card {
    position: absolute;
    z-index: 2;
    padding: 16px 18px;
    background: var(--light);
    border: 1px solid rgba(86, 47, 0, .1);
    border-radius: var(--radius);
    box-shadow: 0 15px 40px rgba(86, 47, 0, .12);
    animation: float 4s ease-in-out infinite;
}

.floating-card.one { 
    left: -8px; 
    top: 85px; 
}

.floating-card.two { 
    right: -12px; 
    bottom: 95px; 
    animation-delay: -1.5s; 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/*** Section Label ***/
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: .78rem;
    letter-spacing: .08em;
    background: rgba(233, 120, 33, .1);
}


/*** Items ***/
.feature-item,
.course-item,
.price-item,
.testimonial-item,
.contact-item {
    height: 100%;
    box-shadow: 0 12px 35px rgba(86, 47, 0, .06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-item:hover,
.course-item:hover,
.price-item:hover,
.contact-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(86, 47, 0, .12);
}

.feature-item .btn-square {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    background: rgba(233, 120, 33, .25);
}


/*** Parallax CTA ***/
.parallax-cta {
    position: relative;
    min-height: 450px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(233, 120, 33, .65), rgba(86, 47, 0, .8)), url("../img/hero.jpg") center/cover fixed;
}


/*** Pricing ***/
.price-item {
    padding: 30px;
}

.price-item.featured {
    border: 2px solid var(--primary) !important;
    transform: translateY(-10px);
}

.price-item .popular {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    color: var(--dark);
    background: var(--primary);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.price-item .price {
    margin: 18px 0;
    color: var(--primary);
    font-family: "Baloo 2", cursive;
    font-size: 3.2rem;
    font-weight: 800;
}

.price-item .price small { 
    color: var(--secondary); 
    font-family: "Nunito Sans", sans-serif;
    font-weight: normal;
    font-size: .95rem; 
}


/*** Testimonial ***/
.testimonial-item {
    padding: 30px 45px;
}

.testimonial-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(233, 120, 33, .3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    transition: var(--transition);
}

.carousel-control-prev { 
    left: -23px; 
}

.carousel-control-next { 
    right: -23px; 
}


/*** Gallery ***/
.gallery-item {
    position: relative;
    display: block;
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .6s ease;
}

.gallery-item::after {
    content: "\f002";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 1.4rem;
    background: rgba(86, 47, 0, .6);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: saturate(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}


/*** FAQs ***/
.accordion-item {
    overflow: hidden;
    background: var(--white);
}

.accordion-button {
    padding: 22px;
    background: var(--white);
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(233, 120, 33, .15);
}


/*** Contact ***/
.contact-item {
    padding: 30px;
}

.contact-item .btn-lg-square {
    color: var(--dark);
    background: rgba(233, 120, 33, .25);
}


/*** Newsletter ***/
.newsletter {
    background: rgba(233, 120, 33, .25);
}

.newsletter-form {
    display: flex;
    max-width: 650px;
    margin: 28px auto 0;
    padding: 7px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 15px;
    background: transparent;
}


/*** Footer ***/
.footer {
    color: rgba(255, 255, 255, .75);
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

.footer .list-unstyled a {
    color: rgba(255, 255, 255, .75);
    transition: color var(--transition), padding-left var(--transition);
}

.footer .list-unstyled a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright.border-top {
    border-color: rgba(255, 255, 255, .1) !important;
}

.copyright {
    color: rgba(255, 255, 255, .75);
}

.copyright a {
    color: var(--white);
}

.copyright a:hover {
    color: var(--primary);
}