/* ========== COMPLETED PROJECTS PAGE STYLES ========== */
/* Following the same design language as Mission and Vision page */

/* Hero Section for Completed Projects */
#CompletedHero {
    min-height: 400px;
    padding: 120px 2rem 80px 2rem;
    background: linear-gradient(135deg, #0b2b40 0%, #1a4a5f 100%);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

#CompletedHero .completed-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#CompletedHero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

#CompletedHero h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffcd7e, #ffb84d);
    border-radius: 2px;
}

#CompletedHero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Completed Projects Section */
#CompletedSection {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #0b2b40;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #ffcd7e, #ffb84d);
    border-radius: 2px;
}

.section-header p {
    font-size: 1rem;
    color: #2c3e50;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Projects Grid - 3x2 layout initially */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Project Card Container */
.project-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Project Image */
.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

/* Completed Badge */
.completed-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffcd7e, #ffb84d);
    color: #0b2b40;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.completed-badge i {
    font-size: 0.8rem;
}

/* Project Info */
.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    color: #0b2b40;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff8c42;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.project-location i {
    font-size: 0.9rem;
}

.project-description {
    color: #2c3e50;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Project Year */
.project-year {
    display: inline-block;
    background: #0b2b40;
    color: #ffcd7e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 10px 0;
}

/* View Details Link */
.view-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff8c42;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-details i {
    transition: transform 0.3s ease;
}

.project-item:hover .view-details i {
    transform: translateX(5px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.load-more-btn {
    background: linear-gradient(135deg, #0b2b40, #1a4a5f);
    color: white;
    border: none;
    padding: 14px 45px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #1a4a5f, #0b2b40);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== BACK TO TOP BUTTON - SOLID DARK BLUE ===== */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1A3C6B !important;
    color: white !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    transform: translateY(-5px);
    background: #0b2b40 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#backToTopBtn:active {
    transform: scale(0.95);
}

/* Hidden Projects Container */
.hidden-projects {
    margin-top: 2rem;
}

.hidden-item {
    display: block;
}

/* Image Placeholder Styles */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b2b40, #1a4a5f);
    color: #ffcd7e;
    gap: 15px;
    min-height: 220px;
}

.image-placeholder i {
    font-size: 4rem;
    opacity: 0.6;
}

.image-placeholder span {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    #CompletedHero {
        min-height: 350px;
        padding: 100px 2rem 60px 2rem;
    }
    
    #CompletedHero h1 {
        font-size: 2.5rem;
    }
    
    #CompletedHero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #CompletedHero {
        min-height: 300px;
        padding: 100px 1.5rem 50px 1.5rem;
    }
    
    #CompletedHero h1 {
        font-size: 2rem;
    }
    
    #CompletedHero p {
        font-size: 0.9rem;
    }
    
    #CompletedSection {
        padding: 60px 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .load-more-btn {
        padding: 12px 35px;
        font-size: 0.9rem;
    }

    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    #backToTopBtn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
}