/* Projects Page Styles */

/* Most Popular Section */
.most-popular {
    padding: 50px;
    background: linear-gradient(135deg, #0047AB 0%, #00B4DB 100%);
    border-radius: 30px;
    margin: 30px;
    margin-top: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 28px;
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.stem-pillar .section-title {
    color: #333;
    margin: 30px 0;
}

/* Projects Grid */
.most-popular .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stem-pillar .projects-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 40px;
}

/* Project Card - Most Popular */
.most-popular .project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding: 12px;
    gap: 16px;
}

.most-popular .project-image {
    flex: 0 0 180px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
}

.most-popular .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transform: scale(1.02); /* Slight scale to prevent white edges */
}

.most-popular .project-image h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 12px;
    margin: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.most-popular .project-card p {
    flex: 1;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Card - STEM Pillar */
.stem-pillar .project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stem-pillar .project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: 12px;
}

.stem-pillar .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02); /* Slight scale to prevent white edges */
}

.stem-pillar .project-image h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 16px 12px;
    margin: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stem-pillar .project-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* STEM Pillar Section */
.stem-pillar {
    padding: 30px 0;
    background: #fff;
    margin-bottom: 30px;
}

.stem-pillar .section-title {
    color: #333;
    margin: 30px 0;
    text-align: left;
    padding-left: 40px;
}

.stem-pillar .projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stem-pillar .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
    
    .stem-pillar .section-title {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .stem-pillar .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stem-pillar .project-image {
        aspect-ratio: 16/9;
    }
    
    .stem-pillar .section-title {
        padding-left: 16px;
    }
}

/* Projects Page Specific Styles */

/* Projects Hero Section */
.projects-hero {
    min-height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../Assets/projects-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding-top: 5rem;
}

.projects-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.projects-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.projects-hero-content .lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Projects Grid Section */
.projects-grid {
    padding: 5rem 0;
    
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.project-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Project Details Section */
.project-details {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.details-container {
    max-width: 1000px;
    margin: 0 auto;
}

.details-header {
    text-align: center;
    margin-bottom: 3rem;
}

.details-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.details-text {
    color: var(--text-light);
    line-height: 1.6;
}

.details-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.details-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Gallery Section */
.project-gallery {
    padding: 5rem 0;
    background-color: var(--background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Project Impact Section */
.project-impact {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.impact-icon i {
    font-size: 1.5rem;
    color: white;
}

.impact-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.impact-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-hero-content h1 {
        font-size: 2.5rem;
    }

    .projects-container,
    .gallery-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .details-content {
        grid-template-columns: 1fr;
    }
} 
