/* ============================================
   Achievements Page Styles — achievements-page.css
   ============================================ */

/* Prevent horizontal overflow on the whole page */
.project-page-body {
    overflow-x: hidden;
}

/* Page Header */
.ach-page-header {
    padding: 6rem 0 2rem;
    position: relative;
}

.ach-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(10,132,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.ach-page-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2.5rem;
    animation: contentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ach-page-meta {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0.8rem;
}

.ach-page-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1rem;
}

.ach-page-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.35);
    max-width: 420px;
    line-height: 1.6;
}

/* Achievements List — single column, wide rectangle cards */
.ach-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: contentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* Achievement Card — horizontal low rectangle */
.ach-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.ach-card:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.13);
    transform: translateX(6px);
}

/* Left — icon + year */
.ach-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    width: 40px;
}

.ach-icon-wrap {
    font-size: 1.3rem;
    line-height: 1;
}

.ach-year-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    white-space: nowrap;
}

/* Divider line */
.ach-card-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.07);
    flex-shrink: 0;
}

/* Right — Card Body */
.ach-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Title row */
.ach-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ach-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Tags inline with title */
.ach-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ach-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Bullet points */
.ach-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ach-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.ach-bullets li::before {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin-top: 0.48rem;
    flex-shrink: 0;
}

/* ── Mobile Responsive ── */
@media (max-width: 640px) {

    .ach-page-header {
        padding: 5rem 0 2rem;
    }

    .ach-page-header-inner {
        padding: 0 1rem;
    }

    .ach-page-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .ach-page-sub {
        font-size: 0.85rem;
    }

    .ach-grid {
        padding: 0 0.8rem 4rem;
        gap: 0.6rem;
    }

    /* Stack card vertically on very small screens */
    .ach-card {
        flex-direction: column;
        padding: 1rem 1.1rem;
        gap: 0.75rem;
    }

    /* Left becomes a horizontal row */
    .ach-card-left {
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 0.6rem;
    }

    .ach-icon-wrap {
        font-size: 1.3rem;
    }

    .ach-year-tag {
        font-size: 0.6rem;
    }

    /* Hide the vertical divider — not needed in column mode */
    .ach-card-divider {
        display: none;
    }

    /* Title row stacks */
    .ach-card-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .ach-card-title {
        font-size: 0.95rem;
    }

    /* Tags smaller + wrap */
    .ach-tags {
        flex-wrap: wrap;
        flex-shrink: 1;
        gap: 0.3rem;
    }

    .ach-tags span {
        font-size: 0.63rem;
        padding: 0.15rem 0.5rem;
        white-space: normal;
    }

    /* Bullets tighter */
    .ach-bullets li {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}
