/*
Theme Name: Kadence Child
Theme URI: https://xscapevision.com
Description: A child theme for Kadence.
Author: xscapevision oyedo
Author URI: https://xscapevision.com
Template: kadence
Version: 1.0.0
Text Domain: kadence-child
*/
/* 🔹 General Styling for Single Project Page */
.project-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 🔹 Funding Progress Bar */
.progress-container {
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 20px;
    background: #28a745;
    width: 0%;
    transition: width 0.5s ease-in-out;
}

/* 🔹 Swiper Carousel */
.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-slide img {
    width: 100%;
    border-radius: 8px;
}

/* 🔹 Recommended Projects */
.recommended-projects {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.recommended-projects h3 {
    text-align: center;
    margin-bottom: 15px;
}

.recommended-projects .project-item {
    background: #ffffff;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.recommended-projects .project-item h4 {
    margin-bottom: 5px;
}

.recommended-projects .project-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.recommended-projects .project-item a:hover {
    color: #0056b3;
}
/* ? General Styling for Single Project Page */
.single-projects-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* ? Project Title */
.single-projects-container h1 {
    font-size: 32px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    text-align: center;
}

/* ? Project Meta Information */
.project-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.project-meta p {
    font-size: 16px;
    color: #444;
    margin: 8px 0;
}

.project-meta strong {
    color: #222;
}

/* ? Apply & Back Buttons */
.project-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.apply-btn,
.back-btn {
    text-decoration: none;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* ? Apply Now Button */
.apply-btn {
    background: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.apply-btn:hover {
    background: #0056b3;
}

/* ?? Back Button */
.back-btn {
    background: #6c757d;
    color: #fff;
    border: 2px solid #6c757d;
}

.back-btn:hover {
    background: #5a6268;
}

/* ? Responsive Styles */
@media screen and (max-width: 768px) {
    .single-projects-container {
        padding: 20px;
    }

    .project-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
/* ? Project Carousel */
.project-carousel {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
}

.project-carousel img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ? Countdown Timer */
.countdown-timer {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
}

.projects-archive-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-item h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.project-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.read-more:hover {
    background: #005f87;
}

/* ? Funding Status Labels */
.funding-status {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* ? Fully Funded (Green) */
.funding_status.fully-funded {
    background: #28a745;
    color: #fff;
}

/* ? Seeking Partial Funding (Blue) */
.funding_status.seeking-partial-funding {
    background: #007bff;
    color: #fff;
}

/* ? Crowdfunding in Progress (Orange) */
.funding_status.crowdfunding-in-progress {
    background: #fd7e14;
    color: #fff;
}

/* ? Needs Full Funding (Red) */
.funding_status.needs-full-funding {
    background: #dc3545;
    color: #fff;
}

/* ? Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.project-details-grid div {
    background: #ffffff;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

/* ? Fade-in Effect */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-details-grid div {
    animation: fadeIn 0.5s ease-in-out;
}

.funding-status {
    animation: fadeIn 0.8s ease-in-out;
}

/* ? Project Details Grid Fix */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ? Individual Grid Items */
.project-details-grid div {
    background: #ffffff;
    padding: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* ? Improve Text Visibility */
.project-details-grid strong {
    color: #333;
    font-weight: 600;
}

/* ? Fix Button Placement */
.apply-now, .back-to-projects {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

.apply-now {
    background: #007bff;
    color: white;
}

.apply-now:hover {
    background: #0056b3;
}

.back-to-projects {
    background: #6c757d;
    color: white;
}

.back-to-projects:hover {
    background: #545b62;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-details-grid div {
    animation: fadeIn 0.5s ease-in-out;
}

.funding-status {
    animation: fadeIn 0.8s ease-in-out;
}
/* ? Fade-in Effect for Post Grid Items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-grid-item, .wp-block-post {
    animation: fadeIn 0.8s ease-in-out;
    opacity: 0;  /* Ensures animation starts properly */
    animation-fill-mode: forwards;
}

.submit-project-btn {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
   text-align: center;
}

.submit-project-btn:hover {
    background-color: #cc5500;
    transform: scale(1.05);
}
/* ? Improved Error Message Styling */
.error-message {
    text-align: center;
    font-size: 16px;
    color: #d9534f;
    background: #ffe6e6;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    border: 1px solid #d9534f;
    font-weight: bold;
}

/* ? Login & Back Buttons */
.login-btn,  {
    display: inline-block;
    padding: 10px 15px;
    background: #0073e6;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    margin: 5px;
    transition: background 0.3s ease-in-out;
}

.login-btn:hover 
{background: #005bb5;
}
