/* ==================== Achievements Page Styles ==================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==================== Hero Section ==================== */
.ach-hero {
    padding: 7rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0a1628 0%, #122845 40%, #1a3a5c 70%, #254061 100%);
    position: relative;
    overflow: hidden;
}

.ach-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(57, 167, 255, 0.08) 0%, transparent 100%),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(135, 196, 255, 0.06) 0%, transparent 100%),
        radial-gradient(ellipse 300px 300px at 50% 90%, rgba(74, 158, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    animation: heroBgPulse 8s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    from {
        opacity: 0.7;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

.ach-hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}

.ach-badge {
    display: inline-block;
    background: rgba(135, 196, 255, 0.12);
    border: 1px solid rgba(135, 196, 255, 0.25);
    color: #87c4ff;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.ach-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #87c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ach-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin: 0 0 2.5rem;
    font-weight: 300;
}

/* Hero Stats */
.ach-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    backdrop-filter: blur(10px);
}

.ach-hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.ach-hero-stats .stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #87c4ff;
}

.ach-hero-stats .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}

/* ==================== Page Container ==================== */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ==================== Card Grid ==================== */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    margin: 0 0 1rem;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.column {
    width: 100%;
    margin: 0;
    padding: 0;
}

.column a {
    text-decoration: none;
    cursor: pointer;
    display: block;
    height: 100%;
    transition: all 0.3s ease;
}

/* ==================== Card Design ==================== */
.card {
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 8px rgba(0, 0, 0, 0.03);
    padding: 2em 1.8em 1.8em;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #87c4ff, #4a9eff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    box-shadow: 0 24px 64px rgba(37, 64, 97, 0.14), 0 8px 24px rgba(37, 64, 97, 0.08);
    transform: translateY(-8px);
    border-color: rgba(135, 196, 255, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card:hover .Ach_IMG img {
    transform: scale(1.08);
}

.card:hover .text-title {
    color: #1a6fc4;
}

.card:hover .card-icon-badge {
    transform: scale(1.15) rotate(5deg);
}

/* Card Emoji Badge */
.card-icon-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 2rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
}

/* ==================== Card Image ==================== */
.Ach_IMG {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #f0f5fa 0%, #e8f0f8 100%);
    transition: all 0.3s ease;
}

.Ach_IMG img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Card Content ==================== */
.text-container {
    display: flex;
    width: 100%;
    flex: 1 0 200px;
    flex-direction: column;
    align-items: center;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

.text-title {
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    width: 100%;
    color: var(--text-primary);
    margin: 0.5em 0 0.5em;
    transition: color 0.3s ease;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.text-content {
    overflow: hidden;
    margin: 0;
    text-align: left;
    color: #5a6a7a;
    font-size: 0.95rem;
    line-height: 1.75;
}

.text-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Show More Button ==================== */
.toggle-content {
    border: none;
    margin-top: auto;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4a9eff 0%, #6eb8fd 100%);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    letter-spacing: 0.3px;
    margin-top: 1rem;
}

.toggle-content:hover {
    background: linear-gradient(135deg, #3a8eef 0%, #5ea8ed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, 0.35);
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.toggle-content:hover .toggle-arrow {
    transform: translateX(4px);
}

/* Logo (backward compat placeholder) */
.logo {
    width: 200px;
    margin: 8px;
}

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

/* Tablet+ */
@media screen and (min-width: 768px) {
    .column {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    .Ach_IMG {
        height: 260px;
    }

    .text-title {
        text-align: center;
        font-size: 1.4rem;
    }

    .text-content {
        text-align: center;
    }

    .toggle-content {
        align-self: center;
    }
}

/* Desktop */
@media screen and (min-width: 1024px) {
    .card {
        padding: 2.5em 2.2em 2em;
    }

    .Ach_IMG {
        height: 280px;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .ach-hero {
        padding: 5rem 1.5rem 2.5rem;
    }

    .ach-hero h1 {
        font-size: 2rem;
    }

    .ach-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .ach-hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.2rem;
        justify-content: center;
    }

    .ach-hero-stats .stat-number {
        font-size: 1.2rem;
    }

    .ach-hero-stats .stat-label {
        font-size: 0.65rem;
    }

    .stat-divider {
        display: none;
    }

    .page-container {
        padding: 1.5rem 1rem;
    }

    .row {
        gap: 1.2rem;
    }

    .card {
        padding: 1.5em 1.3em 1.3em;
        border-radius: 18px;
    }

    .card-icon-badge {
        font-size: 1.6rem;
        top: 1rem;
        right: 1rem;
    }

    .Ach_IMG {
        height: 180px;
        border-radius: 12px;
    }

    .text-title {
        font-size: 1.1rem;
    }

    .text-content {
        font-size: 0.88rem;
    }

    .toggle-content {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}