/* =================================================================== */
/* General Page Layout (Similar to Resume Page) */
/* =================================================================== */

.page-bg-container {
    background-color: #EDEAE6;
    /* Updated padding-top to 180px as requested */
    padding: 180px 0 80px 0;
}

.page-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =================================================================== */
/* Main Projects Header */
/* =================================================================== */

.project-main-header {
    text-align: center;
    margin-bottom: 80px;
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.title-decorator {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #002FA7;
    margin-right: 18px;
    flex-shrink: 0;
}

.project-main-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.header-intro-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}


/* =================================================================== */
/* Project Cards */
/* =================================================================== */

.project-grid {
    display: grid;
    gap: 80px;
}

.project-card {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.project-text-content {
    flex: 1;
    padding: 40px;
}

/* --- Styles for the Vertical Bar Title --- */
.project-heading {
    display: flex;
    align-items: center; /* Vertically align bar with text block */
    gap: 18px; /* Space between bar and text */
    margin-bottom: 24px; /* Space between title block and description */
}

.title-vertical-bar {
    width: 4px;
    height: 50px; /* Adjust height as needed */
    background-color: #002FA7;
    border-radius: 2px; /* Slightly rounded corners for the bar */
}

.title-text-group h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.title-text-group .project-role {
    color: #6c757d;
    font-size: 1rem;
    margin: 4px 0 0 0; /* Small margin on top of role title */
}
/* --- End of Styles for Vertical Bar Title --- */

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.project-image-content {
    flex: 1;
    background-color: #e0e0e0;
}

.project-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- Button & Link Styles --- */

.action-links {
    display: flex;
    gap: 1rem; /* Space between buttons */
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem; /* Controls button size */
    border-radius: 8px; /* Rounded corners */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Smooth transition effect */
    border: 2px solid transparent; /* Transparent border by default */
}

/* Primary Button Style (Solid) */
.btn {
    background-color: #002fa7; /* Dark blue background */
    color: #F7F7F5; /* White text */
}

.btn:hover {
    background-color: #002A9A; /* Slightly darker blue on hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Secondary Button Style (Outlined) */
.btn.btn-secondary {
    background-color: transparent; /* Transparent background */
    color: #002fa7; /* Dark blue text */
    border: 2px solid #002fa7; /* Dark blue border */
}

.btn.btn-secondary:hover {
    background-color: #002fa7; /* Fill background on hover */
    color: #F7F7F5; /* Text becomes white */
}


/* =================================================================== */
/* Responsive Design */
/* =================================================================== */

@media (max-width: 768px) {
    .page-bg-container {
        /* On mobile, the navbar is taller, so we need more space */
        padding: 180px 0 60px 0;
    }

    .page-container {
        padding: 0 20px;
    }

    .project-main-header {
        margin-bottom: 60px;
    }

    .project-card {
        flex-direction: column;
    }
}
