.project-page-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* === Left Column === */

.project-hero img.project-featured-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}
.project-content-area {
    background-color: white;
    padding: 24px;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-meta {
    border-bottom: 2px solid #ccc;
    padding: 8px 0;
}
.project-meta p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.project-description {
    /* margin-top: 20px; */
    line-height: 1.7;
    font-size: 1rem;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}
.related-projects-section {
    padding: 24px;
    margin: 24px 0;
    background-color: white;
}


.related-projects-section h4{
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}
.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Mobile-first */
    gap: 20px;
}

@media (min-width: 600px) {
    .related-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .related-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    min-height: 180px;
}

.related-project-overlay-card {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-project-overlay-card:hover {
    transform: scale(1.03);
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.related-project-overlay-card:hover .overlay-gradient {
    opacity: 1;
}

.overlay-title {
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}


.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.overlay-title {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}

/* === Sidebar === */
.project-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.project-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.project-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list-sidebar li {
    margin-bottom: 10px;
}

.project-list-sidebar a {
    color: #333;
    text-decoration: none;
    transition: 0.2s ease;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.project-list-sidebar a:hover {
    background-color: #0073aa;
    color: #fff;
}

.project-meta-info {
    margin: 20px 0;
    font-size: 16px;
    color: #555;
}

.project-meta-info p {
    margin-bottom: 5px;
}

.project-comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.comment-respond {
    margin-top: 20px;
}

/* Layout */
.project-layout {
    display: flex;
    gap: 30px;
    /* margin-top: 40px; */
    align-items: flex-start; /* This ensures columns don't stretch */
}
/* Main project styles */
.project-main {
    flex: 0 0 75%;
    /* background: #ffffff; */
    
    border-radius: 8px;
}
.single-project-meta {
    background-color: #131D3B;
    color: #f2f5f7;
}
.project-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.project-date {
    color: #666;
    margin-bottom: 20px;
}

/* Sidebar */
.project-sidebar {
    flex: 0 0 25%;
    background-color: #f4f4f4;
    padding: 20px;
    border-left: 4px solid #D5B040;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    align-self: flex-start; /* 👈 KEY: Don't stretch */
}

.project-sidebar h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #131D3B;
}

.sidebar-project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-project-item {
    margin-bottom: 12px;
}

.sidebar-project-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 4px;
}

.sidebar-project-date {
    color: #666;
    font-size: 13px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    width: 100% !important;
    float: none !important;
    display: block;
}


.project-thumbnail-sidebar {
    background-color: #f9f9f9;
    padding: 20px;
    /* border-left: 4px solid #0073aa; */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    align-self: flex-start; /* ✅ This is the key */
    width: 100%;
}


.project-thumbnail-sidebar p {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    color: #131D3B;
}

.project-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.project-thumb-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.project-thumb-link:hover img {
    opacity: 0.5;
    cursor: pointer;
}
.carousel-slide {
    padding: 5px;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.img-wrapper img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}




.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* optional dark overlay */
    display: flex;
    align-items: end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px; /* match your image */
}

.carousel-slide:hover .overlay {
    opacity: 1;
}

.overlay h5 {
    color: white;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}

.slick-prev,
.slick-next {
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}
.project-carousel:hover .slick-prev,
.project-carousel:hover .slick-next {
    opacity: 1;
    pointer-events: auto;
}


/* Optional: Adjust left/right positioning */


.slick-prev:before,
.slick-next:before {
    /* display: none; */
    color: #4caf50 !important;
    font-size: 32px !important;
    
}


.slick-prev {
    left: 15px !important;
}

.slick-next {
    right: 18px !important;
}

.site-branding {
    padding: 5px !important;
}
#menu-item-1879 .sub-menu {
    background-color: #131D3B;
}


@media (max-width: 768px) {
    .project-page-grid {
        grid-template-columns: 1fr;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
    }
}
