


.projects-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.projects-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 27, 15, 0.7) 0%, rgba(1, 50, 32, 0.4) 100%), 
                url('/assets/imgs/projects-hero.jpg') center/cover no-repeat;
    z-index: 1;
    transition: transform 0.8s ease;
}

.projects-hero:hover .projects-hero-bg {
    transform: scale(1.05);
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    text-align: right;
    color: white;
    width: 100%;
}

.projects-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 16px 0;
    line-height: 1.2;
    color: white;
}

.projects-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
}


.projects-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--outline-variant);
    margin-bottom: 48px;
}

.projects-search {
    flex: 1;
    max-width: 450px;
}

.projects-search .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.projects-search .input-wrapper i {
    position: absolute;
    right: 20px;
    color: var(--on-surface-variant);
    font-size: 18px;
    pointer-events: none;
}

.projects-search .input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 54px 0 20px;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: 50px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 15px;
    color: var(--on-surface);
    transition: all 0.3s ease;
    outline: none;
}

.projects-search .input-wrapper input:focus {
    background: var(--surface-container-lowest);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(1, 50, 32, 0.08);
    transform: translateY(-2px);
}

.projects-search .input-wrapper input:focus + i {
    color: var(--primary);
}

.filter-tabs {
    display: flex;
    background: var(--surface-container-low);
    padding: 4px;
    border-radius: 50px;
    gap: 4px;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    color: var(--on-surface-variant);
}

.tab-btn.active {
    background: var(--primary-container);
    color: white;
}


.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    margin-bottom: 32px;
}

.projects-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.project-card .card-location {
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.featured-project {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.featured-project .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.featured-project .content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 40px;
    text-align: right;
    color: white !important;
}

.featured-project h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: white !important;
}

.featured-project .card-location {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 8px;
}

.featured-project p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
    color: white !important;
}


.partners-section {
    padding: 80px 0;
    background-color: var(--surface-container-low);
    text-align: center;
}

.partners-section .section-title {
    margin-bottom: 48px;
    font-size: 28px;
}

.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.partner-logo i {
    font-size: 44px;
    color: var(--primary);
}

.partner-logo span {
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface-variant);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-5px);
}

.partner-logo:hover span {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: 1fr; }
    .projects-subgrid { grid-template-columns: repeat(2, 1fr); }
    .projects-filter-bar { flex-direction: column; align-items: stretch; gap: 24px; }
    .projects-search { max-width: 100%; }
}

@media (max-width: 768px) {
    .projects-subgrid { grid-template-columns: 1fr; }
}
