/* Project Pages Specific Styles */

/* Reset for BMWE project pages only */
body.bmwe-projects-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Override body styles for project pages */
body.project-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: block; /* Override flex from wiznetcss.css */
    height: auto; /* Override height from wiznetcss.css */
}

/* BMWE Projects Landing Page */
body.bmwe-projects-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;       
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* Container for project pages - matches landing page */
.project-page .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* BMWE projects page container */
bodybody.bmwe-projects-page .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Project Header */
.project-header,
body.bmwe-projects-page .header {
    background: linear-gradient(180deg, #ae1818 50%, #000000 150%);
    color: white;
    padding: 60px 40px 50px;
    text-align: center;
    margin: 0;
}

.project-header h1,
body.bmwe-projects-page .header h1 {
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* BMWE projects landing page specific header styles */
body.bmwe-projects-page .header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

body.bmwe-projects-page .header p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.funding-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* BMWE landing page funding badge variant */
body.bmwe-projects-page .funding-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    margin-top: 20px;
}

/* Main Content Area */
.project-page .main-content,
body.bmwe-projects-page .main-content {
    padding: 60px 40px;
}

/* Article Meta Information */
.article-meta {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 0.95em;
}

/* Article Text Styles */
.article-text {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.article-text h2 {
    color: #F52D36;
    margin: 40px 0 20px;
    font-size: 1.8em;
    font-weight: 400;
}

.article-text h3 {
    color: #000000;
    margin: 30px 0 15px;
    font-size: 1.4em;
    font-weight: 500;
}

.article-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-text ul {
    margin: 20px 0 20px 40px;
}

.article-text li {
    margin-bottom: 10px;
}

/* Image Placeholder */
.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Project Info Box */
.project-info-box {
    background: #f8f9fa;
    border-left: 4px solid #ae1818;
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.project-info-box h4 {
    color: #ae1818;
    margin-bottom: 10px;
}

/* Technical Highlight Box */
.technical-highlight {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.technical-highlight h4 {
    color: #856404;
    margin-bottom: 10px;
}

/* Logos Section */
.logos-section,
.bmwe-projects-page .logos-section {
    background: #f8f9fa;
    padding: 40px;
    margin-top: 60px;
    border-top: 3px solid #ae1818;
}

.logos-title,
.bmwe-projects-page .logos-title {
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
    font-size: 1.5em;
    font-weight: 400;
}

.logos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
}

/* BMWE page has 3 columns for logos */
body.bmwe-projects-page .logos-container {
    grid-template-columns: repeat(3, 1fr);
}

.logo-item,
.bmwe-projects-page .logo-item {
    width: 100%;
    max-width: 180px;
    height: 100px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
    color: #999;
    font-size: 0.9em;
    text-align: center;
}

.logo-item:hover,
.bmwe-projects-page .logo-item:hover {
    border-color: #ae1818;
    box-shadow: 0 4px 12px rgba(174,24,24,0.15);
}

/* For BMWE page hover effect */
.bmwe-projects-page .logo-item:hover {
    box-shadow: 0 4px 12px rgba(42,82,152,0.15);
}

.logo-item img,
.bmwe-projects-page .logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* BMWE logo item uses cover instead of contain */
.bmwe-projects-page .logo-item img {
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .project-page .container {
        margin: 0;
        box-shadow: none;
    }

    .project-header {
        padding: 40px 20px 30px;
    }

    .project-page .main-content {
        padding: 40px 20px;
    }

    .project-header h1 {
        font-size: 2em;
    }

    .logos-section {
        padding: 30px 20px;
    }

    .logos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .logos-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .logo-item {
        max-width: 200px;
    }
}

/* BMWE Projects Landing Page Specific Styles */

/* Section Title */
body.bmwe-projects-page .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #000000;
    font-size: 2.2em;
    font-weight: 400;
}

/* Projects Grid */
bodybody.bmwe-projects-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Project Card */
body.bmwe-projects-page .project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

body.bmwe-projects-page .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(42,82,152,0.15);
    border-color: #ae1818;
}

/* Project Image */
body.bmwe-projects-page .project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    border-bottom: 1px solid #e9ecef;
}

body.bmwe-projects-page .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Project Content */
body.bmwe-projects-page .project-content {
    padding: 25px;
}

body.bmwe-projects-page .project-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Project Status */
body.bmwe-projects-page .project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 15px;
}

body.bmwe-projects-page .status-active {
    background: #d4edda;
    color: #155724;
}

body.bmwe-projects-page .status-completed {
    background: #cce5ff;
    color: #004085;
}

body.bmwe-projects-page .status-planning {
    background: #fff3cd;
    color: #856404;
}

/* Project Description */
body.bmwe-projects-page .project-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Project Meta */
body.bmwe-projects-page .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #888;
}

body.bmwe-projects-page .project-duration {
    font-weight: 500;
}

body.bmwe-projects-page .project-funding {
    color: #ae1818;
    font-weight: 500;
}

/* Project Links */
bodybody.bmwe-projects-page .project-links {
    display: flex;
    gap: 10px;
}

/* Buttons */
bodybody.bmwe-projects-page .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

body.bmwe-projects-page .btn-primary {
    background: #ae1818;
    color: white;
}

body.bmwe-projects-page .btn-primary:hover {
    background: #1e3c72;
    transform: translateY(-1px);	
}

body.bmwe-projects-page .btn-secondary {
    background: transparent;
    color: #2a5298;
    border: 1px solid #2a5298;
}

body.bmwe-projects-page .btn-secondary:hover {
    background: #2a5298;
    color: white;
}

/* Stats Section */
body.bmwe-projects-page .stats-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin: 60px 0;
}

body.bmwe-projects-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

body.bmwe-projects-page .stat-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.bmwe-projects-page .stat-number {
    font-size: 2.5em;
    font-weight: 300;
    color: #ae1818;
    display: block;
}

body.bmwe-projects-page .stat-label {
    color: #666;
    font-weight: 500;
    margin-top: 5px;
}

/* BMWE Projects Landing Page Responsive */
@media (max-width: 768px) {
    body.bmwe-projects-page .container {
        margin: 0;
        box-shadow: none;
    }

    body.bmwe-projects-page .header {
        padding: 40px 20px 30px;
    }

    body.bmwe-projects-page .header h1 {
        font-size: 2.2em;
    }

    body.bmwe-projects-page .main-content {
        padding: 40px 20px;
    }

    body.bmwe-projects-page .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.bmwe-projects-page .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    body.bmwe-projects-page .logos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    body.bmwe-projects-page .project-links {
        flex-direction: column;
    }

    body.bmwe-projects-page .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body.bmwe-projects-page .header h1 {
        font-size: 1.8em;
    }

    body.bmwe-projects-page .stats-grid {
        grid-template-columns: 1fr;
    }

    body.bmwe-projects-page .logos-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}