/* Global Styles */
:root {
    --primary-color: #5c6bc0;
    --secondary-color: #007bff;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --grey-color: #ccc;
    --light-grey-color: #f0f0f0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

h4, h2, h3 {
    color: var(--dark-color);
}
h1{
    color: var(--dark-color);
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 15px 30px;
}

.logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-right: 1rem;
}

.logo {
    width: 100%;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffeb3b; /* Highlight color on hover */
}

body.day-mode {
    background-color: #fff;
    color: #000;
}

body.night-mode {
    background-color: #333;
    color: #fff;
}

body.forest-mode {
    background-color: #4CAF50; /* Example color for forest theme */
    color: #fff;
}

.theme-slider {
    position: relative;
    width: 100px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    cursor: pointer;
}

.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 0;
    transition: left 0.2s;
}

.slider-track {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}


.instructions {
    color: blue;
    margin-left: 10px;
}

/* Main Section Styles */
main {
    padding: 20px;
}

.workshops-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.daily-challenge-container,
.event-announcement,
.community-forum {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.daily-challenge-container h4,
.rewards-section h3 {
    margin-bottom: 10px;
}

.rewards-section {
    padding: 20px;
    background-color: #f5f7fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0; /* Improved margin */
}

.rewards-section h3 {
    font-size: 24px;
    color: var(--dark-color);
}

.progress-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.badge {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.locked {
    opacity: 0.5; /* Dim the badge */
    filter: blur(2px); /* Optionally blur the badge */
    pointer-events: none; /* Prevent interaction */
}

.unlocked {
    opacity: 1; /* Fully visible */
}


.badge img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--grey-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.badge p {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.leaderboard {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.leaderboard h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.leaderboard ol {
    list-style-type: decimal;
    margin-left: 20px;
    padding: 0;
}

.leaderboard li {
    font-size: 16px;
    color: #444;
    margin-bottom: 10px;
}

.leaderboard li:nth-child(1) {
    font-weight: bold;
    color: #ffbf00;
}

/* Badge pop animation */
@keyframes badgePop {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Simple hover effect on leaderboard items */
.leaderboard li:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

/* Button Styles */
.accept-challenge-button,
.complete-button,
.more-button{
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accept-challenge-button:hover,
.complete-button:hover,
.more-button:hover {
    background-color: #4f5b93;
}

.cta-button:hover{
    background-color:#1c43ec;
}
.workshops-overview {
    padding: 20px;
}

.workshop-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to the next line if the screen is too small */
    gap: 20px; /* Space between cards */
}

.workshop-card {
    background: #f5f5f5; /* Light background for cards */
    border-radius: 8px; /* Rounded corners */
    padding: 15px;
    flex: 1 1 calc(30% - 20px); /* Flexible width */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s; /* Smooth hover effect */
}

.workshop-card:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}


.progress {
    background: var(--light-grey-color);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    background: #4caf50;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: white;
    border-radius: 5px;
    animation: progress-animation 1s;
}

@keyframes progress-animation {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.complete-button,
.more-button {
    background: var(--secondary-color);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.complete-button:hover,
.more-button:hover {
    background: #0056b3;
}

.more-button {
    background: #6c757d;
}

.more-button:hover {
    background: #5a6268;
}
.testimonials {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 600px; /* Set width as needed */
    margin: auto;
}

.testimonial-carousel {
    text-align: center;
    width: 80%;
}

.testimonial {
    display: none;
    font-size: 18px;
    line-height: 1.5;
}

.testimonial.active {
    display: block;
}

.arrow {
    font-size: 36px;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.3s ease;
}

.prev-btn {
    left: -50px; /* Adjust as needed */
}

.next-btn {
    right: -50px; /* Adjust as needed */
}

.arrow:hover {
    color: #007bff; /* Adjust color as needed */
}


.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.user-name {
    font-weight: bold;
    color: #003366;
}

.carousel-controls {
    margin-top: 20px;
}


#newsletter {
    background-color: #FFEB3B; /* Light background color */
    padding: 20px; /* Spacing around the section */
    border-radius: 10px; /* Rounded corners */
    text-align: center; /* Centered text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

#newsletter h3 {
    color: #333; /* Dark color for the heading */
    font-size: 1.8em; /* Larger font size */
    margin-bottom: 15px; /* Spacing below the heading */
}

#newsletter form {
    display: flex; /* Flexbox for form layout */
    justify-content: center; /* Center items */
}

#newsletter input[type="email"] {
    padding: 10px; /* Padding inside the input */
    border: 1px solid #ccc; /* Light border */
    border-radius: 5px; /* Rounded corners for input */
    font-size: 1em; /* Font size for input */
    width: 250px; /* Fixed width for input */
    margin-right: 10px; /* Spacing between input and button */
    transition: border-color 0.3s; /* Smooth transition for border color */
}

#newsletter input[type="email"]:focus {
    border-color: #007bff; /* Change border color on focus */
    outline: none; /* Remove default outline */
}

#newsletter button {
    padding: 10px 20px; /* Padding inside the button */
    background-color: #007bff; /* Button background color */
    color: white; /* Text color for the button */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners for button */
    font-size: 1em; /* Font size for button */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition */
}

#newsletter button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight lift on hover */
}

#newsletter button:active {
    transform: translateY(0); /* Reset lift on click */
}


* Footer Container */
footer {
    background-color:white; /* Dark background */
    color:black; /* White text */
    padding: 50px 20px; /* Padding to add space around the content */
    font-family: 'Arial', sans-serif;
}

/* Footer Content Layout */
.footer-content {
    max-width: 1200px;
    margin: 0 auto; /* Center the footer content */
    display: flex;
    flex-wrap: wrap; /* Wrap content on small screens */
    justify-content: space-between; /* Spread the columns evenly */
}

/* Footer Links Section */
.footer-links {
    flex: 1 1 200px; /* Flexible basis for responsiveness */
    margin: 20px;
}

.footer-links h4 {
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase; /* Uppercase titles for distinction */
    color: purple; /* Highlight color for section titles */
}

/* List Styling */
.footer-links ul {
    list-style-type: none; /* Remove bullet points */
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px; /* Space between list items */
    font-size: 16px;
}

.footer-links li:before {
    content: '✓'; /* Checkmark before each list item */
    color: #f5b400;
    margin-right: 10px;
}

/* Footer Text Links */
.footer-links a {
    color: white;
    text-decoration: none; /* Remove underline */
}

.footer-links a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Footer Bottom Text */
footer p {
    margin-top: 30px;
    text-align: center; /* Center the copyright text */
    font-size: 14px;
    color: #aaa; /* Lighter text color */
    border-top: 1px solid #444; /* Thin top border */
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Stack columns vertically on small screens */
    }
    .footer-links {
        text-align: center; /* Center-align links on small screens */
    }
}