.timeline-section .timeline {
    position: relative;
    padding-left: 38px;
}

.timeline-section .timeline:before {
    content: '';
    position: absolute;
    top: 14px;
    left: 8px;
    width: 2px;
    height: calc(100% - 28px);
    background: rgba(34, 34, 34, 0.12);
    border-radius: 2px;
}

.timeline-section .timeline-item {
    position: relative;
    padding-left: 34px;
    margin-bottom: 40px;
}

.timeline-section .timeline-badge {
    position: absolute;
    top: 10px;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #222;
    box-shadow: 0 0 0 6px rgba(34, 34, 34, 0.06);
}

/* Active glowing badge */
.timeline-section .timeline-badge.active {
    background: #0064FF;
}

/* Ripple effect */
.timeline-section .timeline-badge.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 100, 255, 0.4);
    transform: translate(-50%, -50%);
    animation: pulse-wave 1.8s infinite;
}

/* Animation */
@keyframes pulse-wave {
    0% {
        width: 14px;
        height: 14px;
        opacity: 0.6;
    }

    70% {
        width: 40px;
        height: 40px;
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.timeline-section .timeline-card {
    background: #fff;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-section .timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.timeline-section .timeline-card h6 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.timeline-section .timeline-meta {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.timeline-section .timeline-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .timeline-section .timeline {
        padding-left: 22px;
    }

    .timeline-section .timeline:before {
        left: 6px;
    }

    .timeline-section .timeline-item {
        padding-left: 28px;
    }

    .timeline-section .timeline-card {
        padding: 24px 22px;
    }
}


.header {
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header .container,
.header .caption,
.header .social,
.wave-svg-bottom {
    position: relative;
    z-index: 2;
}

.gallery {
    opacity: 0;
    transition: opacity .2s ease;
}

.gallery.is-loaded {
    opacity: 1;
}

.mt-80 {
    margin-top: 80px;
}

/* for arabic */
.quote-arabic {
    font-size: 1.6rem;
    line-height: 2;
    text-align: center;
    direction: rtl;
}

.quote-english {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

.quote-bangla {
    font-size: 1.35rem;
    line-height: 1.9;
    text-align: center;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.quote-title {
    font-weight: 700;
}

.blockquote-footer {
    font-size: 115% !important;
}

.favorite-section {
    position: relative;
    overflow: hidden;
}

.favorite-section .favorite-subtitle {
    max-width: 700px;
    margin: 0 auto 35px;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

.favorite-slider .item {
    padding: 10px 8px;
}

.favorite-card {
    position: relative;
    min-height: 320px;
    padding: 30px 25px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
}

.favorite-figure {
    position: relative;
    min-height: 200px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
    text-align: center;
    letter-spacing: 0.2px;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.favorite-figure::before {
    content: '';
    position: absolute;
    top: -18px;
    right: -18px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.favorite-figure-label {
    position: relative;
    font-size: 1.05rem;
    font-weight: 700;
    max-width: 190px;
}

.favorite-content span {
    display: block;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.78rem;
    margin-bottom: 14px;
}

.favorite-content h5 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #222;
}

@media (max-width: 991px) {
    .favorite-card {
        min-height: 280px;
        padding: 24px 20px;
    }

    .favorite-figure {
        min-height: 180px;
    }
}

@media (max-width: 575px) {
    .favorite-subtitle {
        font-size: 0.95rem;
    }

    .favorite-content h5 {
        font-size: 1.25rem;
    }
}

/* Gallery */
.gallery-title {
    padding: 80px 0 32px;
    text-align: center;
}

.gallery-title h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin: 0;
    color: #222;
}

.gallery-title p {
    margin: 18px auto 0;
    max-width: 640px;
    color: #6f6f6f;
    font-size: 1rem;
    line-height: 1.8;
}

.gallery-grid-section {
    padding: 0 0 80px;
}


.gallery-item-image {
    position: relative;
    overflow: hidden;
}

.gallery-item-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-indent: -9999px;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.1rem;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 24px;
    overflow: auto;
}

.image-modal.open {
    display: flex;
    animation: image-modal-fade 0.25s ease;
}

.image-modal-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    transform: scale(0.95);
    animation: image-modal-scale 0.25s ease forwards;
}

.image-modal-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

@keyframes image-modal-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes image-modal-scale {
    from {
        transform: scale(0.95);
    }

    to {
        transform: scale(1);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-body {
    padding: 18px 18px 22px;
}

.gallery-item-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #202020;
}

.gallery-item-caption {
    margin: 10px 0 0;
    color: #6f6f6f;
    font-size: 0.94rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1300px) {
    .gallery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .gallery-title {
        padding-top: 56px;
    }

    .gallery-item img {
        height: 220px;
    }
}