/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #EAE4F2; /* Pale-wisteria background */
    color: #2D2535;
    line-height: 1.6;
    padding-bottom: 40px;
    overflow-x: hidden; /* Guards against the full-bleed strip causing a page-level scrollbar */
}

/* Header Section (Less pale purple to stand out) */
.hero-header {
    background-color: #CDB4DB;
    text-align: center;
    padding: 48px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #23192F;
    margin-bottom: 8px;
}

.project-tagline {
    font-size: 1.05rem;
    color: #4A3C59;
    max-width: 650px;
    margin: 0 auto;
}

/* Main Container Layout */
.main-container {
    max-width: 1050px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Detailed Description */
.description-section {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    font-size: 1rem;
    color: #4A4052;
}

/* Subtitles */
.section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #382A45;
    margin-bottom: 16px;
    border-bottom: 2px solid #D8CBE4;
    padding-bottom: 6px;
}

.section-block {
    margin-bottom: 40px;
}

/* Horizontal Scroll Container (fixed) */
.cards-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-behavior: smooth;

    /* Break out of the 1050px column so the strip can use the whole viewport width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* Center the cards when they all fit; fall back to start so scrolling stays usable */
    justify-content: flex-start;
    justify-content: safe center;

    padding-inline: clamp(20px, 3vw, 40px);
}

/* Custom Inoffensive Horizontal Scrollbar Styling */
.cards-container::-webkit-scrollbar {
    height: 8px;
}

.cards-container::-webkit-scrollbar-track {
    background: #DFD7EC;
    border-radius: 4px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: #B9A5CD;
    border-radius: 4px;
}

/* Common Card Base Style */
.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    flex: 0 0 280px; /* Fixed width prevents shrinking and forces horizontal scroll */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Team Card Specific Styles */
.team-card .card-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.member-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #E0DEE5;
    flex-shrink: 0;
}

.member-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.member-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2D2535;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-id, .member-email {
    font-size: 0.8rem;
    color: #6C6077;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-bottom {
    display: flex;
    gap: 16px;
    border-top: 1px solid #F1EEF5;
    padding-top: 12px;
}

.card-link {
    font-size: 0.85rem;
    color: #7B5EA7;
    text-decoration: none;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* Deliverable Card Specific Styles */
.deliverable-card {
    flex: 0 0 300px;
}

.deliverable-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2D2535;
    margin-bottom: 4px;
}

.deliverable-date {
    font-size: 0.8rem;
    color: #7A6F85;
    display: block;
    margin-bottom: 24px;
}

.deliverable-bottom {
    border-top: 1px solid #F1EEF5;
    padding-top: 12px;
}

.file-info {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #4A4052;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.file-type {
    color: #7A6F85;
}

.download-btn {
    display: block;
    background-color: #9D81BA;
    color: #FFFFFF;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px; /* Rounded corners on buttons */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #886CA4;
}
