/* ================================= */
/* Styles for Experience Page (Mixed) */
/* ================================= */

/* Styles for the main groups of experiences */
.experience-group {
    margin-bottom: 3rem; /* Space below each group */
}

.experience-group h2 {
    /* Style for the main heading of each group (e.g., "Professional Roles") */
    font-size: var(--h2-font-size); /* Using variable from main.css */
    color: var(--textColor);        /* Using variable from main.css */
    border-bottom: 2px solid var(--linkColor); /* Accent line */
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Styles for individual experience cards (similar to expertise cards) */
.project-experience-card {
    background-color: rgba(255, 255, 255, 0.2); /* Slight white background */
    border: 1px solid rgba(0, 0, 0, 0.1);     /* Light border */
    border-radius: 8px;                       /* Rounded corners */
    padding: 1.5rem;
    margin-bottom: 1.5rem; /* Space between cards within a group */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.project-experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Optional: Style for a logo/image within the card */
.experience-logo {
    max-width: 100px; /* Adjust as needed */
    max-height: 50px; /* Adjust as needed */
    float: right; /* Example: float logo to the right */
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.project-experience-card h3 {
    /* Title of the role/project */
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: var(--linkColor);
    font-size: 1.3em;
}

.project-experience-card .project-context {
    /* Company/Date line */
    font-size: 0.9em;
    color: var(--textColor);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.project-experience-card p {
    /* Main description paragraph */
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-experience-card h4 {
    /* Sub-heading for Key Contributions */
    font-size: 1em;
    font-weight: bold;
    color: var(--textColor);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.project-experience-card ul {
    list-style: disc;
    margin-left: 1.2rem;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-experience-card ul li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

/* Style for the active navigation link */
/* Ensure this is consistent or defined if not already in main.css */
nav ul li a.active {
    font-weight: bold;
    color: var(--link-hover);
    border-bottom: 1px solid var(--link-hover);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .project-experience-card {
        padding: 1rem;
    }

    .project-experience-card h3 {
        font-size: 1.2em;
    }

    .experience-logo {
        float: none; /* Stack logo on mobile */
        display: block;
        margin: 0 auto 1rem auto; /* Center logo */
    }
}
