/* Theme Override CSS - Include this file in the home-2.html head section */

/* CSS Variables for Green Theme */
:root {
    --theme-primary: #347d1a;
    --theme-primary-dark: #2a6b15;
    --theme-primary-darker: #1a4f0a;
    --theme-primary-light: rgba(52, 125, 26, 0.1);
    --theme-primary-medium: rgba(52, 125, 26, 0.8);
}

/* Override any remaining blue colors with green theme */
.th-btn, .th-btn:hover {
    background-color: #347d1a !important;
    border-color: #347d1a !important;
}

.th-btn.style2:hover {
    background-color: #347d1a !important;
}

/* Fix for style4 buttons - Course Exam and Start Course buttons */
.th-btn.style4 {
    background-color: var(--theme-primary) !important;
    color: white !important;
    border-color: var(--theme-primary) !important;
}

.th-btn.style4:hover {
    background-color: var(--theme-primary-dark) !important;
    color: white !important;
    border-color: var(--theme-primary-dark) !important;
}

/* Primary Color Overrides */
.btn-primary,
.btn,
.btn-submit {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
.btn:hover,
.btn-submit:hover {
    background-color: var(--theme-primary-dark) !important;
    border-color: var(--theme-primary-dark) !important;
    transform: translateY(-2px) !important;
}

/* Header and Navigation */
.th-header .main-menu > ul > li > a:hover,
.th-header .main-menu > ul > li.current-menu-item > a,
.th-header .main-menu > ul > li.current-menu-ancestor > a {
    color: var(--theme-primary) !important;
}

/* Counter and progress elements */
.counter-card, .skill-bar .progress {
    color: #347d1a !important;
}

/* Links and hover states */
a:hover, .menu-item:hover {
    color: #347d1a !important;
}

/* Icons and Decorative Elements */
.icon-btn,
.play-btn,
.th-icon {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.icon-btn:hover,
.play-btn:hover {
    background-color: var(--theme-primary-dark) !important;
}

/* Background overlays and gradients */
.hero-bg-overlay {
    background: linear-gradient(45deg, rgba(52, 125, 26, 0.8), rgba(42, 107, 21, 0.9)) !important;
}

/* Course cards and feature boxes */
.course-card:hover, .feature-box:hover {
    border-color: #347d1a !important;
}

/* Course Cards and Content */
.course-style1 .course-content .course-meta a:hover,
.course-style2 .course-content .course-meta a:hover {
    color: var(--theme-primary) !important;
}

/* CTA sections */
.cta-area {
    background: linear-gradient(135deg, #347d1a, #2a6b15) !important;
}

/* Footer links */
.footer-wrapper a:hover {
    color: #347d1a !important;
}

/* Form Elements */
.form-control:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.2rem var(--theme-primary-light) !important;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    border-color: #347d1a !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 125, 26, 0.25) !important;
}

/* Progress bars and loading elements */
.progress-bar, .loading-bar {
    background-color: #347d1a !important;
}

/* Icon backgrounds */
.icon-box, .icon-circle {
    background-color: rgba(52, 125, 26, 0.1) !important;
}

/* Testimonial elements */
.testimonial-quote {
    border-left-color: #347d1a !important;
}

/* Badge and tag elements */
.badge-primary, .tag-primary {
    background-color: #347d1a !important;
}

/* Navigation active states */
.main-menu li.current-menu-item > a,
.main-menu li.current-menu-ancestor > a {
    color: #347d1a !important;
}

/* Social media buttons */
.th-social a:hover {
    background-color: #347d1a !important;
    border-color: #347d1a !important;
}

/* Footer specific enhancements - STRONGEST OVERRIDE */
.footer-wrapper,
.footer-wrapper.footer-layout-default,
footer.footer-wrapper,
footer.footer-wrapper.footer-layout-default {
    background: linear-gradient(135deg, 
        #1a4f0a 0%, 
        #347d1a 50%, 
        #2a6b15 100%) !important;
    background-color: #347d1a !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

/* Override any existing footer background images */
.footer-wrapper[data-bg-src],
.footer-wrapper.footer-layout-default[data-bg-src],
footer[data-bg-src] {
    background: linear-gradient(135deg, 
        #1a4f0a 0%, 
        #347d1a 50%, 
        #2a6b15 100%) !important;
    background-color: #347d1a !important;
    background-image: none !important;
}

/* Additional footer background overrides */
.footer-wrapper,
.footer-wrapper::after,
.footer-wrapper::before {
    background: linear-gradient(135deg, 
        #1a4f0a 0%, 
        #347d1a 50%, 
        #2a6b15 100%) !important;
    background-color: #347d1a !important;
    background-image: none !important;
}

/* Override inline styles and data-bg-src */
footer[style*="background"],
.footer-wrapper[style*="background"] {
    background: linear-gradient(135deg, 
        #1a4f0a 0%, 
        #347d1a 50%, 
        #2a6b15 100%) !important;
    background-color: #347d1a !important;
}

.footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: footerFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes footerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Hide or replace old footer background shapes with CSS alternatives */
.footer-shape1, .footer-shape2 {
    opacity: 0.6;
    filter: hue-rotate(180deg) saturate(1.5) brightness(1.2);
}

/* Footer widget titles styling */
.footer-widget .widget_title {
    color: #ffffff !important;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.footer-widget .widget_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.7));
}

/* Footer content positioning */
.footer-wrapper .widget-area {
    position: relative;
    z-index: 2;
}

/* Footer links styling */
.footer-widget a {
    color: #e8f4e8 !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.footer-widget a:hover {
    color: #ffffff !important;
    padding-left: 5px;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* Footer text improvements */
.footer-widget .about-text {
    color: #e8f4e8 !important;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Footer contact and widget content */
.footer-widget p {
    color: #e8f4e8 !important;
    position: relative;
    z-index: 2;
}

.footer-widget .contact-feature h6 {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
}

.footer-widget .contact-feature p {
    color: #e8f4e8 !important;
}

/* Copyright section enhancement */
.copyright-wrap {
    background: rgba(26, 79, 10, 0.9) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

.copyright-wrap p {
    color: #e8f4e8 !important;
}

/* Force footer theme with highest specificity */
body .footer-wrapper,
html body .footer-wrapper,
html body footer.footer-wrapper {
    background: linear-gradient(135deg, #1a4f0a 0%, #347d1a 50%, #2a6b15 100%) !important;
    background-color: #347d1a !important;
    background-image: none !important;
}

/* Ultra-high specificity footer override */
html body .footer-wrapper.footer-layout-default[data-bg-src],
html body footer.footer-wrapper.footer-layout-default[data-bg-src],
.footer-wrapper.footer-layout-default[data-bg-src="assets/img/bg/footer-bg.png"] {
    background: linear-gradient(135deg, #1a4f0a 0%, #347d1a 50%, #2a6b15 100%) !important;
    background-color: #347d1a !important;
    background-image: none !important;
}

/* Ensure widget area has proper background */
.footer-wrapper .widget-area {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

/* Footer animations and decorative elements */
.footer-shape1 {
    animation: float 6s ease-in-out infinite;
}

.footer-shape2 {
    animation: floatReverse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(15px) rotate(5deg);
    }
}

/* Responsive footer shapes */
@media (max-width: 768px) {
    .footer-shape1, .footer-shape2 {
        display: none;
    }
}

/* ===== ANIMATED ICONS AND SHAPES OVERRIDE ===== */

/* Hero Section Animated Shapes */
.hero-shape img {
    filter: hue-rotate(180deg) saturate(1.3) brightness(1.1) !important;
}

/* Replace hero shapes with CSS alternatives */
.hero-shape.shape1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #347d1a, #2a6b15);
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse 3s ease-in-out infinite;
}

.hero-shape.shape2.jump::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: rgba(52, 125, 26, 0.6);
    border-radius: 50%;
    animation: jump 2s ease-in-out infinite;
}

.hero-shape.shape3::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 20px;
    background: linear-gradient(90deg, #347d1a, transparent);
    border-radius: 25px;
    opacity: 0.7;
}

.hero-shape.shape4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background: #2a6b15;
    transform: rotate(45deg);
    opacity: 0.6;
}

.hero-shape.shape5.jump::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #347d1a, #1a4f0a);
    border-radius: 50%;
    animation: jump 2.5s ease-in-out infinite;
}

/* Hide original hero shape images */
.hero-shape img {
    opacity: 0;
}

/* About Section Animated Shapes */
.shape-mockup.jump img {
    filter: hue-rotate(180deg) saturate(1.4) brightness(1.2) !important;
    opacity: 0.8 !important;
}

/* Team Section Animated Shapes */
.team2-bg-shape1 img,
.team2-bg-shape2 img,
.team2-bg-shape3 img,
.team2-bg-shape4 img,
.team2-bg-shape5 img {
    filter: hue-rotate(180deg) saturate(1.5) brightness(1.3) !important;
    opacity: 0.7 !important;
}

/* CTA Section Animated Shapes */
.cta4-shape1 img,
.cta4-shape2 img,
.cta4-shape3 img {
    filter: hue-rotate(180deg) saturate(1.6) brightness(1.4) !important;
    opacity: 0.8 !important;
}

/* Testimonial Section Animated Shapes */
.testi2-bg-shape1 img,
.testi2-bg-shape2 img,
.testi2-bg-shape3 img {
    filter: hue-rotate(180deg) saturate(1.4) brightness(1.2) !important;
    opacity: 0.7 !important;
}

/* Ripple Effects - Convert to Green */
.ripple-shape span {
    border-color: rgba(52, 125, 26, 0.3) !important;
    background: radial-gradient(circle, rgba(52, 125, 26, 0.1), transparent) !important;
}

.ripple-1 {
    animation: ripple 3s linear infinite !important;
    border: 2px solid rgba(52, 125, 26, 0.4) !important;
}

.ripple-2 {
    animation: ripple 3s linear infinite 0.5s !important;
    border: 2px solid rgba(42, 107, 21, 0.4) !important;
}

.ripple-3 {
    animation: ripple 3s linear infinite 1s !important;
    border: 2px solid rgba(26, 79, 10, 0.4) !important;
}

.ripple-4 {
    animation: ripple 3s linear infinite 1.5s !important;
    border: 2px solid rgba(52, 125, 26, 0.3) !important;
}

.ripple-5 {
    animation: ripple 3s linear infinite 2s !important;
    border: 2px solid rgba(42, 107, 21, 0.3) !important;
}

.ripple-6 {
    animation: ripple 3s linear infinite 2.5s !important;
    border: 2px solid rgba(26, 79, 10, 0.3) !important;
}

/* Enhanced Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Spinning Elements Green Theme */
.spin img {
    filter: hue-rotate(180deg) saturate(1.8) brightness(1.4) !important;
    opacity: 0.6 !important;
}

/* Enhanced spinning animation */
.spin {
    animation: spinGreen 8s linear infinite !important;
}

@keyframes spinGreen {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Jump-reverse animation enhancement */
.jump-reverse {
    animation: jumpReverse 4s ease-in-out infinite !important;
}

@keyframes jumpReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(10px) rotate(2deg);
    }
    75% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* CSS-based shape replacements for better performance */
.shape-mockup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(52, 125, 26, 0.3), rgba(42, 107, 21, 0.1));
    border-radius: 50%;
    z-index: -1;
}

.team2-bg-shape1::before {
    width: 80px;
    height: 80px;
}

.team2-bg-shape2::before {
    width: 60px;
    height: 60px;
}

.team2-bg-shape3::before {
    width: 70px;
    height: 70px;
}

.team2-bg-shape4::before {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #347d1a, #2a6b15);
    border-radius: 25%;
}

.team2-bg-shape5::before {
    width: 90px;
    height: 40px;
    background: linear-gradient(90deg, rgba(52, 125, 26, 0.4), transparent);
    border-radius: 20px;
}

/* CTA shapes enhancement */
.cta4-shape1::before,
.cta4-shape2::before,
.cta4-shape3::before {
    background: linear-gradient(135deg, rgba(52, 125, 26, 0.4), rgba(26, 79, 10, 0.2));
    width: 60px;
    height: 60px;
}

/* Testimonial shapes enhancement */
.testi2-bg-shape1::before {
    width: 75px;
    height: 75px;
    background: radial-gradient(circle, rgba(52, 125, 26, 0.5), transparent);
}

.testi2-bg-shape2::before {
    width: 55px;
    height: 55px;
    background: linear-gradient(45deg, #347d1a, #1a4f0a);
    border-radius: 50%;
}

.testi2-bg-shape3::before {
    width: 65px;
    height: 30px;
    background: linear-gradient(90deg, rgba(52, 125, 26, 0.6), transparent);
    border-radius: 15px;
}
