/* Achievement Section Styles */
.achievement-gallery {
    display: flex;
    gap: 20px;
    height: 500px;
    overflow: hidden;
}

.scroll-column {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.scroll-column .image-container {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scroll-up .image-container {
    animation: scrollUp 20s linear infinite;
}

.scroll-down .image-container {
    animation: scrollDown 20s linear infinite;
}

.scroll-column:hover .image-container {
    animation-play-state: paused;
}

.scroll-column img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.scroll-column img:hover {
    transform: scale(1.05);
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

.achievement-stat {
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    text-align: center;
}

.achievement-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Timeline Styles */
@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.timeline-container {
    position: relative;
    padding: 60px 0;
    overflow: visible;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 4px;
    background: #F3564E;
    left: 5%;
    top: 80px;
    z-index: 1;
    animation: waveFlow 4s linear infinite;
    background: linear-gradient(90deg, transparent, #F3564E, #F3564E, transparent);
}

@keyframes waveFlow {
    0% {
        d: path('M 0,50 C 50,30 100,70 150,50 C 200,30 250,70 300,50 C 350,30 400,70 450,50 C 500,30 550,70 600,50');
    }

    50% {
        d: path('M 0,50 C 50,70 100,30 150,50 C 200,70 250,30 300,50 C 350,70 400,30 450,50 C 500,70 550,30 600,50');
    }

    100% {
        d: path('M 0,50 C 50,30 100,70 150,50 C 200,30 250,70 300,50 C 350,30 400,70 450,50 C 500,30 550,70 600,50');
    }
}

.timeline-container .row {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 -15px;
}

.timeline-container .col {
    margin-top: calc(var(--offset, 0) * 40px);
    transform: translateY(calc(var(--offset, 0) * 40px));
    transition: transform 0.3s ease;
}

.timeline-container .col:nth-child(1) {
    --offset: 0;
}

.timeline-container .col:nth-child(2) {
    --offset: 1;
}

.timeline-container .col:nth-child(3) {
    --offset: 0;
}

.timeline-container .col:nth-child(4) {
    --offset: 1;
}

.timeline-container .col:nth-child(5) {
    --offset: 0;
}

.timeline-step {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 10px;
    animation: floatAnimation 3s ease-in-out infinite;
}

.timeline-step::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: #F3564E;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-step:nth-child(1) {
    animation-delay: 0s;
}

.timeline-step:nth-child(2) {
    animation-delay: 1s;
}

.timeline-step:nth-child(3) {
    animation-delay: 2s;
}

.timeline-step:nth-child(4) {
    animation-delay: 3s;
}

.timeline-step:nth-child(5) {
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.timeline-step:hover {
    transform: translateY(-10px);
}

<style>

/* Book Carousel Styles */
.book-scroll-container {
    position: relative;
    overflow: hidden;
    padding: 20px 60px;
}

.book-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 10px 0;
}

.book-wrapper::-webkit-scrollbar {
    display: none;
}

.book-card {
    min-width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-image {
    height: 200px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 15px;
}

.book-info h5 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.book-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.book-count {
    color: #666;
    font-size: 14px;
}

.btn-view {
    background: #F5362C;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-view:hover {
    background: #d42e25;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    color: #F5362C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.scroll-btn:hover {
    background: #F5362C;
    color: white;
}

.scroll-btn.prev {
    left: 10px;
}

.scroll-btn.next {
    right: 10px;
}

.btn-all-books {
    background: #f8f9fa;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-all-books:hover {
    background: #e9ecef;
}

.btn-all-books .book-count {
    background: #F5362C;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-size: 12px;
}

/* Timeline Styles */
.timeline-step.active {
    border: 2px solid #F3564E;
}

.timeline-content {
    padding: 15px;
}

.timeline-content .number {
    width: 40px;
    height: 40px;
    background: #F3564E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 15px;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 4px white;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline-container::after {
        width: 2px;
        height: 85%;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-step {
        margin-bottom: 30px;
    }
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.category-btn {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Noto Serif Bengali', 'Noto Sans', sans-serif;
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.category-btn.active {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.category-btn-art {
    background-color: #ff6b6b;
}

.category-btn-color {
    background-color: #4ecdc4;
}

.category-btn-athletic {
    background-color: #45b7d1;
}

.category-btn-language {
    background-color: #96ce79;
}

.category-btn-religion {
    background-color: #f7b731;
}

.category-btn-knowledge {
    background-color: #a77bd4;
}

.category-btn-all {
    background-color: #ff9f43;
}

@media (max-width: 768px) {
    .category-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 25px;
    background-color: var(--light);
    border: 3px solid var(--primary);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Noto Serif Bengali', serif;
}

.modal-header {
    background-color: var(--primary);
    color: #FFFFFF;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 15px 20px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.social-link {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Noto Sans', sans-serif;
    color: #FFFFFF;
    background-color: var(--primary);
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.social-link i {
    margin-right: 8px;
}

/* Timeline Styles */
.timeline-container {
    position: relative;
}

.col.position-relative {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.timeline-step {
    background: #fff;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.timeline-content {
    text-align: center;
    padding: 20px;
    width: 100%;
}

.timeline-content .number {
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    background: #F3342A;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 3px 10px rgba(111, 66, 193, 0.3);
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.timeline-content p {
    font-size: 14px;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #F3342A, #ffd95a);
    z-index: -1;
    border-radius: 17px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-step:hover::before {
    opacity: 1;
}

.timeline-step:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: var(--primary);
}

.timeline-step:hover .timeline-content .number {
    background: white;
    color: var(--primary);
}

.timeline-step:hover .timeline-content h4,
.timeline-step:hover .timeline-content p {
    color: white;
}

/* Timeline Circle Styles */
.timeline-container {
    position: relative;
    padding: 40px 20px;
    background-color: #ffd95a;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: none;
    z-index: 1;
    clip-path: url(#timeline-wave);
    background-color: #F3342A;
    transform: translateY(-50%);
}

.timeline-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(255, 217, 90, 0.8));
    pointer-events: none;
}

@media (max-width: 991px) {
    .timeline-container {
        padding: 30px 15px;
    }

    .row.g-4.timeline-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem !important;
    }

    .timeline-container::before {
        display: none;
    }

    .col.position-relative {
        width: 100%;
        max-width: 300px;
    }
}

.col.position-relative {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 15px;
    position: relative;
    z-index: 2;
}

.col.position-relative:hover .timeline-step {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: var(--primary);
    color: white;
}

.col.position-relative:hover .timeline-content .number {
    background: white;
    color: var(--primary);
}

.col.position-relative:hover .timeline-content h4,
.col.position-relative:hover .timeline-content p {
    color: white;
}

.timeline-step {
    background: #fff;
    border-radius: 15px;
    width: 200px;
    min-height: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
}