/* Custom CSS for Paveking Projects Landing Page */

/* Projects Gallery Section */
.projects-gallery-section {
    padding: 80px 0; /* Consistent with other sections */
    background-color: #f7f7f7; /* Light background for the gallery */
}

.projects-gallery-section .section-heading {
    margin-bottom: 60px; /* Space below heading */
}

/* Project Card Styling */
.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%; /* Ensure cards in a row have equal height */
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; /* 3:2 Aspect Ratio for images */
    overflow: hidden;
}

.project-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to take available space */
}

.project-card-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.project-card-content span {
    font-size: 14px;
    color: #666;
    display: block;
}

/* Status Badge on Project Cards */
.project-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    z-index: 10;
}

.project-status-badge.completed {
    background-color: #28a745; /* Green for completed */
}

.project-status-badge.underway {
    background-color: #ffc107; /* Yellow/Orange for underway */
    color: #333; /* Darker text for better contrast on yellow */
}

/* Why Choose Us Section - REDESIGNED STYLES (List Removed, Text Justified) */
.why-choose-us-section {
    padding: 80px 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.why-choose-us-section .section-heading {
    margin-bottom: 60px;
}

/* If you still have an image in this section, keep its styles.
   If the image was removed in a previous step, these can be omitted. */
/*
.why-choose-us-image {
    position: relative;
    padding-bottom: 65%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.why-choose-us-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/

.why-choose-us-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

/* New style for the main paragraph to justify text */
.why-choose-us-content .why-choose-us-main-text {
    text-align: justify;
}

/* The following list-related styles are no longer needed and can be removed */
/*
.why-choose-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-choose-us-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.why-choose-us-list li:last-child {
    margin-bottom: 0;
}

.why-choose-us-list .list-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: #EC1f24;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(236, 31, 36, 0.3);
}

.why-choose-us-list .list-text {
    flex-grow: 1;
}

.why-choose-us-list .list-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 5px;
}

.why-choose-us-list .list-text p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 0;
}
*/

/* Filled Button Style (reused from your existing theme) */
.filled-button {
    background-color: #EC1f24;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.filled-button:hover {
    background-color: #1e1e1e;
    color: #fff;
    text-decoration: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .why-choose-us-section .section-heading {
        margin-bottom: 30px;
    }
    /* If image was present and now removed, these image-related media queries might not be needed */
    /*
    .why-choose-us-section .why-choose-us-image {
        margin-bottom: 30px;
    }
    */
    .why-choose-us-section .why-choose-us-content {
        padding: 0 15px;
    }
}

/* Project Details Modal Styling */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 90%;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    font-family: 'Poppins', sans-serif; /* Use Poppins for modal content */
}

.project-modal-overlay.show .project-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.project-modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.project-modal-close-button:hover {
    color: #EC1f24; /* Match accent color */
}

.project-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.project-modal-details p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.project-modal-details p strong {
    color: #1e1e1e;
    font-weight: 600;
    margin-right: 5px;
}

.project-modal-details .project-status {
    font-weight: 700;
}

.project-modal-details .project-status.completed {
    color: #28a745; /* Green */
}

.project-modal-details .project-status.underway {
    color: #ffc107; /* Yellow/Orange */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .projects-why-choose-us .right-content {
        padding-left: 15px; /* Adjust padding for mobile */
        padding-right: 15px;
        margin-top: 30px; /* Space between image and text when stacked */
    }
    .project-modal-content {
        padding: 20px;
    }
    .project-modal-title {
        font-size: 24px;
    }
    .project-modal-details p {
        font-size: 14px;
    }
}
