﻿
/* Title Styles */
.title {
    text-align: center;
    font-size: 28px;
    margin: 20px 0;
    color: #a94442;
    position: relative;
    padding-bottom: 10px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background-color: #a94442;
}

/* Button Navigation */
.achievements-nav-section {
    margin-top: 20px;
}

.achievements-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.achievements-btn {
    background-color: rgb(194, 7, 7);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

    .achievements-btn:hover {
        background-color: #33b040;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .achievements-btn.active {
        background-color: #ffb303;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }

/* Content Sections */
.achievements-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .achievements-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Achievement Cards - Compact Design */
.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.achievement-card {
    display: flex;
    background-color: #fbebeb;
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); */
    height: 100px;
}

.achievement-image {
    /* width: 35%; */
    overflow: hidden;
    flex-shrink: 0;
}

    .achievement-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* transition: transform 0.3s ease; */
    }

.achievement-details {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.achievement-description {
    font-size: 14px;
    line-height: 1.3;
    color: #555;
    /* margin-bottom: 15px; */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

/* .achievement-description.collapsed {
            max-height: 42px; 
        }*/
/* .achievement-description.expanded {
            max-height: 500px; 
        } */

.achievement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.achievement-date {
    display: flex;
    align-items: center;
    color: #777;
}

    .achievement-date i {
        margin-right: 5px;
    }

/* .read-more-container {
            display: flex;
            align-items: center;
        }
        
        .read-more-btn {
            background-color: transparent;
            color: #a94442;
            border: 1px solid #a94442;
            padding: 6px 12px;
            font-size: 13px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .read-more-btn:hover {
            background-color: #a94442;
            color: white;
        } */

/* Back to Top Button */
/* .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            background-color: #a94442;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            background-color: #8a3634;
        } */

/* Responsive Design */
@media (max-width: 992px) {
    .achievements-nav {
        gap: 12px;
    }

    .achievements-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 130px;
    }

    .achievement-card {
        height: 180px;
    }
}

@media (max-width: 768px) {

    .achievements-nav {
        flex-direction: row;
        gap: 8px;
    }

    .achievements-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 110px;
    }

    .achievement-card {
        flex-direction: column;
        height: auto;
    }

    .achievement-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .achievements-nav {
        flex-direction: row;
        gap: 6px;
    }

    .achievements-btn {
        width: auto;
        padding: 6px 8px;
        font-size: 11px;
        min-width: 90px;
    }

    .achievement-description {
        font-size: 13px;
    }

    .achievement-image {
        height: 150px;
    }
}

