@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');

:root {
    --primary: #336233;
    --light: #fff;
    --secondary: #2d5429;
}

/* Override Bootstrap buttons to use brand colors */
.btn-warning {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
}

.btn-outline-warning {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Override Bootstrap primary colors with brand colors */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

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

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

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

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

.alert-primary {
    background-color: rgba(51, 98, 51, 0.1) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-warning:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Reduce spacing on pages */
.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/****************
#Custom CSS
******************/
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rubik', sans-serif;
}

a {
    text-decoration: none !important;
}



header {
    position: absolute;
    z-index: 99999;
    width: 100%;
}

footer {
    background-color: #336233;
}

.bg-blue {
    background-color: var(--primary);
}

a.text-black,
.text-primary {
    color: rgb(53, 46, 3) !important;

}

header .nav-item .nav-link {
    font-size: 14px;
    color: var(--light);
    font-weight: 600;
    margin-left: 20px;
}

.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Hero sections on other pages (not home) need more top padding */
body:not(.home-page) .hero-section {
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Carousel heroes on other pages (not home) */
body:not(.home-page) .hero {
    margin-top: 0;
    padding-top: 2rem;
}

/* Ensure carousel hero content is not hidden behind nav */
.hero .carousel-container {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.hero .carousel-content-container h2,
.hero .carousel-content-container h1 {
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Static hero sections */
.hero-section {
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Ensure hero content is not hidden behind fixed header */
.hero-section .container {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* Add extra padding for hero headings to avoid nav overlap */
.hero-section h1,
.hero-section h2,
.hero-section .display-4,
.hero-section .display-5 {
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Specific padding for hero section content */
.hero-section .row {
    padding-top: 1rem;
}

/* Home page hero should not have extra margin */
.home-page .hero {
    margin-top: 0;
    padding-top: 0;
}

/* Additional spacing for content after heroes */
.hero + section,
.hero-section + section {
    margin-top: 2rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    body:not(.home-page) .hero-section {
        margin-top: 0;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    body:not(.home-page) .hero {
        margin-top: 0;
        padding-top: 1.5rem;
    }

    .hero-section {
        margin-top: 0;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        height: 50vh !important;
    }

    .hero-section .container {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }

    /* Mobile hero headings spacing */
    .hero-section h1,
    .hero-section h2,
    .hero-section .display-4,
    .hero-section .display-5 {
        margin-top: 1.5rem;
        padding-top: 0.5rem;
    }

    .hero-section .row {
        padding-top: 0.5rem;
    }
}

/* Enhanced carousel background container */
.hero .carousel-background {
    position: relative;
    overflow: hidden;
    height: 100vh;
    transform-origin: center center;
}

/* Smooth transition between slides */
.hero .carousel-item {
    transition: transform 0.8s ease-in-out;
}

.hero .carousel-background img {
    height: 100vh;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    animation: zoomTest 3s ease-in-out infinite;
    transition: transform 0.5s ease;
    transform-origin: center center;
}

/* Zoom animation keyframes */
@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Test animation - more visible for debugging */
@keyframes zoomTest {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Pause animation on hover for better UX */
.hero .carousel-item:hover .carousel-background img {
    animation-play-state: paused;
}

/* Different animation timing for each slide */
.hero .carousel-item:nth-child(1) .carousel-background img {
    animation: zoomIn 6s ease-in-out infinite alternate;
    animation-delay: 0s;
}

.hero .carousel-item:nth-child(2) .carousel-background img {
    animation: zoomIn 8s ease-in-out infinite alternate;
    animation-delay: -1s;
}

.hero .carousel-item::before {
    content: '';
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    animation: overlayPulse 15s ease-in-out infinite alternate;
}

/* Subtle overlay animation */
@keyframes overlayPulse {
    0% {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    }
    100% {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    }
}

.hero .carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.hero .carousel-content-container {
    pointer-events: all;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.carousel-content-container {
    max-width: 900px;
    padding: 20px;
}

.carousel-container h2 {
    color: var(--light);
    font-family: 'Abril Fatface', cursive;
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-container p {
    color: var(--light);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.3s forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-container .buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s ease;
    margin: 0 10px;
}

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

.buttons .btn-success:hover {
    background-color: transparent;
    border-color: var(--light);
}

.buttons .btn-secondary {
    background-color: transparent;
    border-color: var(--light);
    color: var(--light);
}

.buttons .btn-secondary:hover {
    background-color: var(--light);
    color: var(--primary);
}

.buttons .button-1 {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: capitalize;
    display: inline-block;
    padding: 12px 30px;
    line-height: 1px;
    margin: 10px 10px;
    color: var(--light);
    border: 1px solid var(--light);
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

.buttons .button-2 {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: capitalize;
    display: inline-block;
    padding: 12px 30px;
    line-height: 1px;
    margin: 10px 10px;
    color: var(--light);
    border: 1px solid var(--light);
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

@media (max-width: 768px) {
    .carousel-container h2 {
        font-size: 40px;
    }

    .carousel-container p {
        font-size: 16px;
    }

    .buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 5px;
    }

    #testimony {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .carousel-container h2 {
        font-size: 32px;
    }

    .feature .main-feature-box {
        padding: 25px 20px;
    }
}

.feature .main-feature-box {
    margin-bottom: 30px;
    background-color: var(--light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 35px 25px;
    z-index: 1;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
}

.feature .main-feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature .main-feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), #4a8f47);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.feature .main-feature-box:hover::before {
    opacity: 1;
}

.feature .main-feature-box:hover * {
    color: var(--light);
}

.feature .main-feature-box .icon {
    margin-bottom: 25px;
    text-align: center;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    transition: all 0.4s ease;
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(51, 98, 51, 0.3);
}

.feature .main-feature-box:hover .icon {
    background-color: var(--light);
    color: var(--primary);
}

.feature .main-feature-box h3 {
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 15px;
    position: relative;
    transition: all 0.4s ease;
}

.feature .main-feature-box p {
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.4s ease;
}

.about {
    position: relative;
}

.about span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 17px;
}

.about h2 {
    font-family: '' Abril Fatface',cursive';
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
}

.about p {
    font-size: 14px;
    text-align: justify;
}

.buttons .button-3 {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: capitalize;
    display: inline-block;
    padding: 15px;
    line-height: 1px;
    margin: 10px 10px;
    color: var(--light);
    background-color: var(--primary);
    border: 1px solid var(--light);
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

.courses .single-courses {
    margin-bottom: 30px;
    position: relative;
    padding: 40px 30px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
}

.courses .single-courses .icon {
    height: 75px;
    margin-bottom: 21px;
    line-height: 75px;
}

.courses .single-courses h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.courses .single-courses p {
    font-size: 14px;
    text-align: justify;
}

.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonials h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

#testimony {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    margin-bottom: 30px;
}

#testimony:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

#testimony .bi-quote {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
    color: var(--primary);
}

#testimony p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

#testimony .rating {
    margin-bottom: 20px;
}

#testimony .rating i {
    color: #ffc107;
    font-size: 18px;
    margin: 0 2px;
}

#testimony .image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

#testimony .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#testimony h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.team .member h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.team .member p {
    font-size: 14px;
    text-align: justify;
}

.team .row {
    display: flex;
    justify-content: space-evenly;
}

.choose .choose-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 10px;
}

.choose .choose-item {
    padding: 10px;
}

.choose .choose-item p {
    font-size: 14px;
    text-align: justify;
}

/* Add a class for the fade-in animation */
.fade-in {
    animation: fadeIn 5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}