
/* 1) Profile Header (top box with photo, name, role, links) */
.profile-header {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

    .profile-header .profile-container {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

.profile-photo {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    background-color: #ddd; /* fallback color */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .profile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-info {
    flex: 1 1 300px;
}

    .profile-info h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .profile-info p.role {
        font-size: 1.1rem;
        color: #555;
        margin-bottom: 1rem;
    }

.profile-links a {
    display: inline-block;
    margin-right: 0.75rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .profile-links a:hover {
        color: #0056b3;
    }

.aboutme-section {
    padding: 2rem 1rem;
}

.aboutme-container {
    background-color: black;
    border: 4px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
}

.aboutme-section h2 {
    text-align: center;
    color: white;
}
/* 2) Tasks Done Section (grid of “task cards” or a dropdown if you prefer) */
.tasks-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

    .section-title {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

.tasks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.task-card {
    background-color: #fff;
    border: 4px solid #ddd;
    border-radius: 8px;
    flex: 0 0 550px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .task-card.large {
        /* Example: make large cards twice as wide (400px) */
        /* If you’d rather have it take 100% of the container’s width, use:
    flex: 0 0 100%;
    max-width: 100%;
*/
    }

    .task-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .task-card .task-icon {
        background-color: #ddd; /* fallback if no icon image */
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        object-fit: contain;
    }

    .task-card.large .task-icon {
        height: 350px; /* increase height if you need more vertical space */
    }

    .task-card .task-icon img {
        max-width: 400px;
        max-height: 225px;
    }

    .task-card .task-content-no-img {
        display: flex;
        flex-direction: column; 
        align-items: center;
        justify-content: center; 
        height: 325px;
        padding: 1rem;
        text-align: center;
        background-color: black;
    }
    .task-card .task-content-no-img h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: white;
    }

    .task-card .task-content-no-img p {
        font-size: 0.9rem;
        color: white;
        font-family: Georgia;
    }

    .task-card .task-content {
        padding: 1rem;
        text-align: center;
        background-color: black;
        height: 100px;
        display: flex; /* or use display: grid; */
        flex-direction: column; /* stack h3 then p vertically */
        align-items: center; /* horizontal centering */
        justify-content: center; /* vertical centering */
    }

        .task-card .task-content h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: white;
        }

        .task-card .task-content p {
            font-size: 0.9rem;
            color: white;
            font-family: Georgia;
        }
.frame-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    /* If your page normally centers content inside a max-width container,
     this ensures the iframe section spans the full viewport. */
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

    /* 2) Iframe is made wider (e.g., 2× viewport width) and shifted left by half
   so its center aligns with the viewport’s center */
    .frame-container iframe {
        width: 40%; /* twice viewport width; adjust if needed */
        max-width: none; /* override any max-width from other CSS */
        height: calc(100vh - 60px); /* subtract header height if fixed; adjust 60px */
        border: none;
        display: block;
        position: relative;
        left: 30%; /* shift left by half of 200vw to center */
    }

/* 3) On narrower screens you may want a smaller “wide factor” or allow scroll: */

/* If you prefer a collapsible dropdown for each task instead of a card:
       .task-dropdown { … }  You can replace .tasks-grid/.task-card with that. */

/* 3) Experience & Competences Section */
.programs-list {
    text-align: center;
    list-style-type: none;
}
.experience-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

    .experience-section .section-title {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: white;
    }

.experience-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1rem;
    align-content: center;
    list-style-type: none;
}

    .experience-list li {
        position: relative;
        margin-bottom: 1rem;
        padding-left: 1.5rem;
        color: white;
        align-content: center;
        text-align: center;
        list-style-type: none;
    }

/* 4) Responsive adjustments for profile page sections */
@media (max-width: 768px) {
    .profile-header .profile-container {
        flex-direction: column;
        text-align: center;
    }

    .tasks-grid {
        flex-direction: column;
        align-items: center;
    }

    .experience-list {
        padding-left: 0.5rem;
        align-content: center;
    }
}

@media (max-width: 1200px) {
    .frame-container iframe {
        /* If 200vw is too wide on smaller screens, switch to full width only */
        width: 100vw;
        left: 0;
    }
}