/* -------------------------------------------
   Simple Portfolio List (3 Blocks) - Custom Fixes
------------------------------------------- */

.mil-simple-portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 90px;
}

.mil-simple-project {
    position: relative;
    width: 100%;
    /* Ensure visibility for hotfix */
    opacity: 1 !important;
    transform: none !important;
}

.mil-project-image {
    position: relative;
    width: 100%;
    height: 500px;
    /* Fixed height for consistency */
    overflow: hidden;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .mil-project-image {
        height: 350px;
    }
}

.mil-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mil-simple-project:hover .mil-project-image img {
    transform: scale(1.05);
}

.mil-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.mil-project-content {
    position: relative;
    padding-left: 20px;
    /* Dark border for light background */
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.mil-project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

/* --- FIX: Text Colors for White/Light Background --- */

.mil-project-header h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #000 !important;
    /* Black text */
}

@media (max-width: 768px) {
    .mil-project-header h3 {
        font-size: 24px;
    }
}

.mil-status-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #c4ae9a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
}

.mil-location {
    font-size: 14px;
    color: #666 !important;
    /* Dark Grey */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mil-description {
    font-size: 16px;
    color: #333 !important;
    /* Darker text */
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.mil-button-simple {
    display: inline-flex;
    align-items: center;
    color: #c4ae9a;
    /* Gold Accent */
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.mil-button-simple i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.mil-button-simple:hover {
    color: #000;
    /* Dark on hover */
}

.mil-button-simple:hover i {
    transform: translateX(5px);
}

/* -------------------------------------------
   Footer & Visibility Hotfixes
------------------------------------------- */

/* Force visibility of animated elements if JS fails */
.mil-up {
    opacity: 1 !important;
    transform: none !important;
}

/* Force visibility of reviews content */
.mil-review-frame {
    opacity: 1 !important;
}

/* --- FIX: Footer Background & Colors --- */

/* Force Footer to be dark by disabling the invert filter logic */
footer.mil-dark-bg,
#contact {
    background-color: #0c0c0c !important;
    /* Deep black/grey */
    padding-top: 80px;
    position: relative;
}

/* Disable the weird invert filter used by the theme */
footer.mil-dark-bg:before {
    content: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: none !important;
}

.mi-invert-fix {
    filter: none !important;
    pointer-events: auto !important;
    /* Ensure links are clickable */
}

/* Reset colors for the dark background */
.mil-footer-clean h6 {
    color: #fff !important;
}


.mil-footer-clean a {
    display: block;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 12px;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mil-footer-clean a:hover {
    color: #c4ae9a !important;
    padding-left: 5px;
}

.mil-footer-clean p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px;
    line-height: 1.6;
}

.mi-invert-fix {
    filter: none !important;
}