/* Consolidated styles for dynamic modules (Projects, Blog, etc.) in Tema2 */

/* --- Projects Listing (Index) --- */
.case-studies-two figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.case-studies-two figure:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay by default */
    top: 0;
    left: 0;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.case-studies-two:hover figure:after {
    background-color: rgba(0, 0, 0, 0.6);
    /* Slightly darker on hover */
}

.case-studies-two figure img {
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
    filter: blur(0);
    /* Clear by default */
}

.case-studies-two:hover figure img {
    transform: scale(1.1);
    filter: blur(5px);
    /* Blur on hover */
}

.case-studies-text {
    z-index: 2 !important;
}

.pagination {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 50px 0 0 0 !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.pagination li, .pagination .page-item {
    display: inline-block !important;
}

.pagination a, .pagination span, .pagination .page-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    height: 45px !important;
    padding: 0 10px !important;
    border: 1px solid #ebebeb !important;
    border-radius: 8px !important;
    color: #222 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.pagination .active span, 
.pagination .active a, 
.pagination .page-item.active .page-link {
    background-color: #0049ff !important;
    border-color: #0049ff !important;
    color: #fff !important;
}

.pagination a:hover {
    background-color: #0049ff !important;
    border-color: #0049ff !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 73, 255, 0.2) !important;
}

.pagination .disabled span, .pagination .disabled a {
    color: #ccc !important;
    cursor: not-allowed !important;
    background: #f9f9f9 !important;
}

/* --- Project Detail (Show) --- */
.image-radius {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.content-detail {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

/* Project Info Widget Styles */
.project-info-widget {
    background-color: #222;
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid #0049ff;
}

.info-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.info-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0049ff;
}

.info-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list .label {
    color: #0049ff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-list .value {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    margin-top: 5px;
}

/* Related Projects Widget Styles */
.related-projects-widget {
    background-color: #f2edf5;
    padding: 40px;
    border-radius: 10px;
}

.related-title {
    color: #222;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.related-project-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

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

.related-project-item:last-child {
    margin-bottom: 0;
}

.related-project-item .item-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-right: 18px;
}

.related-project-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-project-item .item-content a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-project-item .item-content a:hover {
    color: #0049ff;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .case-studies-text {
        opacity: 1 !important;
        top: 50% !important;
        visibility: visible !important;
        transform: translate(-50%, -50%) !important;
    }

    .case-studies-two figure:after {
        background-color: rgba(0, 0, 0, 0.5) !important;
    }

    .splash-area h2 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .gap {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .mb-30 {
        margin-bottom: 20px !important;
    }

    .sidebar.pl-60 {
        padding-left: 0 !important;
        margin-top: 50px;
    }

    .quote-bg {
        padding: 30px !important;
    }

    .content-detail {
        font-size: 16px;
    }

    .project-info-widget,
    .related-projects-widget {
        padding: 30px;
    }
}