#home {
    display: flex;
    width: 100%;
    margin-top: 50px;
    gap: 25px;
}

#lastNews {
    width: calc(100% / 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

#lastNews .section-name {
    margin: 25px 0 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

#lastNews .section-name::before {
    content: '';
    display: block;
    position: absolute;
    top: 15px;
    right: 50%;
    transform: translate(50%, -100%);
    background-image: url("/base/css/janat/svg/109-GraFa-10.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
}

#lastNews .last-news-title {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 300;
    margin: 0;
}

#lastNews .last-news-title::before,
#lastNews .last-news-title::after {
    content: '';
    display: block;
    width: 5px;
    border-radius: 5px;
    background-color: #00a693;
}

#lastNews .last-news-date {
    font-size: 15px;
    font-weight: 300;
    text-align: center;
    margin: 0;
}

#lastNews .last-news-date span {
    color: #00a693;
}

#lastNews .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 0;
}

#lastNews .gallery img,
#lastNews .gallery .more {
    width: calc(50% - 6px);
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 20px;
    overflow: hidden;
}

#lastNews .gallery .more {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#lastNews .gallery .more .bg {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(5px);
    position: absolute;
    z-index: -1;
}

#lastNews .gallery .more .circle {
    height: 20%;
    width: auto;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border-radius: 100%;
}

#VideoEulogies {
    position: relative;
    width: calc(100% / 3 * 2);
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-eulogy {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 35px;
    transition: 0.6s;
}

.video-eulogy.active {
    transform: translateX(0);
}

.video-eulogy.active~.video-box {
    transform: translateX(calc(-100% - 25px));
}

.video-eulogy {
    transform: translateX(calc(100% + 25px));
}

.video-eulogy .controls-btn {
    display: none;
}

.video-eulogy video {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: -50%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.video-eulogy .control-box {
    position: absolute;
    inset: 0;
    background-color: #0004;
}

.video-eulogy .control-btn {
    position: absolute;
    background-color: transparent;
    border: none;
    top: 50%;
    transform: translate(0, -50%);
    margin: 5px;
}

.video-eulogy .control-btn span::before {
    background-color: #fff;
    width: 30px;
    height: 30px;
}

.video-eulogy .bottom-navbar {
    display: flex;
    gap: 8px;
    width: fit-content;
    bottom: 0;
    position: absolute;
    flex-direction: row-reverse;
    margin: 15px 30px;
}

.video-eulogy .bottom-navbar .video-eulogy-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    padding: 7px 12px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    background-color: #979797f0;
}

.video-eulogy .bottom-navbar .play {
    padding: 7px 12px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: #979797f0;
}

.video-eulogy .bottom-navbar .play::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #fff;
    box-sizing: content-box;
    display: block;
    transform: rotate(-90deg);
}

#Eulogies {
    position: relative;
    margin: 36px 50px;
    height: 85px;
}

#Eulogies .right-btn,
#Eulogies .left-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
}

#Eulogies .right-btn .icon::before,
#Eulogies .left-btn .icon::before {
    width: 22px;
    height: 22px;
}

#Eulogies .right-btn {
    right: -40px;
}

#Eulogies .left-btn {
    left: -40px;
}

#Eulogies .eulogiesBox {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#Eulogies .eulogy {
    width: 25%;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: -100%;
    overflow: hidden;
    transition: 0.4s;
}

#Eulogies .eulogy.active {
    transition: 0.4s;
}

#Eulogies .eulogy.active {
    right: 0;
}

#Eulogies .eulogy.active+.eulogy {
    right: 0;
    transform: translateX(-100%);
}

#Eulogies .eulogy.active+.eulogy+.eulogy {
    right: 0;
    transform: translateX(-200%);
}

#Eulogies .eulogy.active+.eulogy+.eulogy+.eulogy {
    right: 0;
    transform: translateX(-300%);
}

#Eulogies .eulogy.active+.eulogy+.eulogy+.eulogy+.eulogy {
    right: 0;
    transform: translateX(-400%);
}

#Eulogies .eulogy.active+.eulogy+.eulogy+.eulogy+.eulogy+.eulogy {
    right: 0;
    transform: translateX(-500%);
}

#Eulogies .eulogy .profile-image {
    position: relative;
    min-width: 65px;
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 65px;
    overflow: hidden;
}

#Eulogies .eulogy .eulogy-info::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    box-sizing: content-box;
    display: block;
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translate(50%, -50%);
}

#Eulogies .eulogy .eulogy-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: 100%;
}

#Eulogies .eulogy .eulogy-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 15px);
    overflow: hidden;
    display: block;
}

#Eulogies .eulogy .eulogy-praiser {
    font-size: 0.85rem;
    font-weight: 300;
    color: #b2aeae;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 15px);
    overflow: hidden;
    display: block;
}

#PeopleHelps {
    position: relative !important;
    background-color: #00a896;
    border-radius: 50px;
    width: 65%;
    right: 8%;
    margin: 50px 0 40px;
    height: 360px;
}

#PeopleHelps .section-name {
    position: relative;
    z-index: 1;
    margin: 0;
    margin-right: 30%;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    transform: translateY(-15%);
    background-color: #00a896;
    width: fit-content;
    border-radius: 9999px;
    line-height: 100%;
    padding: 0px 10px;
    text-shadow:
        0px 1px 0 #00a693,
        0px 2px 0 #00a693,
        0px 3px 0 #00a693,
        1px 1px 0 #00a693,
        1px 2px 0 #00a693,
        1px 3px 0 #00a693,
        2px 1px 0 #00a693,
        2px 2px 0 #00a693,
        2px 3px 0 #00a693,
        3px 1px 0 #00a693,
        3px 2px 0 #00a693,
        3px 3px 0 #00a693,
        -0px 1px 0 #00a693,
        -0px 2px 0 #00a693,
        -0px 3px 0 #00a693,
        -1px 1px 0 #00a693,
        -1px 2px 0 #00a693,
        -1px 3px 0 #00a693,
        -2px 1px 0 #00a693,
        -2px 2px 0 #00a693,
        -2px 3px 0 #00a693,
        -3px 1px 0 #00a693,
        -3px 2px 0 #00a693,
        -3px 3px 0 #00a693,
        0px -1px 0 #00a693,
        0px -2px 0 #00a693,
        0px -3px 0 #00a693,
        1px -1px 0 #00a693,
        1px -2px 0 #00a693,
        1px -3px 0 #00a693,
        2px -1px 0 #00a693,
        2px -2px 0 #00a693,
        2px -3px 0 #00a693,
        3px -1px 0 #00a693,
        3px -2px 0 #00a693,
        3px -3px 0 #00a693,
        -0px -1px 0 #00a693,
        -0px -2px 0 #00a693,
        -0px -3px 0 #00a693,
        -1px -1px 0 #00a693,
        -1px -2px 0 #00a693,
        -1px -3px 0 #00a693,
        -2px -1px 0 #00a693,
        -2px -2px 0 #00a693,
        -2px -3px 0 #00a693,
        -3px -1px 0 #00a693,
        -3px -2px 0 #00a693,
        -3px -3px 0 #00a693;
}

#PeopleHelps .box {
    width: calc(150% - 16%);
    transform: translate(8%, -30px);
    background-color: #f0eeec;
    padding: 35px 0 90px;
    border-radius: 35px;
}

#PeopleHelps .card-number {
    font-size: 3rem;
    font-weight: 700;
    word-spacing: 25px;
    margin: 10px 130px 0 0;
    width: fit-content;
    position: relative;
}

#PeopleHelps .card-number::after {
    content: '';
    display: block;
    position: absolute;
    width: 50px;
    height: 41px;
    background-image: url("/base/css/janat/svg/Shape 27.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    transform: translate(-100%, -50%);
}

#PeopleHelps .card-holder {
    margin: 0 130px 0 0;
    height: 15px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    font-size: 0.9rem;
}

#PeopleHelps .card-holder .circle {
    height: 55%;
    width: auto;
    aspect-ratio: 1;
    border-radius: 60%;
    background-color: #00a693;
    transform: translateY(3px);
}

#PeopleHelps .description {
    position: relative;
    background-color: #fff;
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    width: fit-content;
    padding: 10px 130px 15px 50px;
    margin: 30px 0px 0;
}

#PeopleHelps .description::before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: auto;
    aspect-ratio: 240 / 125;
    background-image: url(./svg/rectangle11.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    top: 0;
    right: 0;
    transform: translateX(calc(100% - 100px));
    clip: rect(0px, 100px, 9999px, 0px);
}

#PeopleHelps .description p.text {
    margin: 0;
}

#PeopleHelps .samples {
    display: flex;
    gap: 35px;
}

#PeopleHelps .sample {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

#PeopleHelps .sample::before {
    content: '';
    display: block;
    height: 10px;
    width: auto;
    aspect-ratio: 1;
    border-radius: 100%;
    background-color: #00a693;
    transform: translateY(3px);
}

#footer {
    display: flex;
    gap: 30px;
    padding: 0 40px 0 0;
    margin-top: 20px;
}

#archive .section-name {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    position: relative;
}

#archive .section-name::before {
    content: '';
    display: block;
    position: absolute;
    top: 15px;
    right: 50%;
    transform: translate(50%, -100%);
    background-image: url(/base/css/janat/svg/109-GraFa-10.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
}

#archive .news-box {
    position: relative;
    height: fit-content;
    max-height: 250px;
    padding: 4px 0;
}

#archive .news-box .news {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 14px;
}

#archive .news-box .news::before {
    content: '';
    display: block;
    background-image: url(/base/css/janat/svg/109-GraFa-6.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
}

#archive .news-box .news .news-title {
    padding-left: 5px;
    border-left: 2px solid #61c8bc;
    line-height: 17px;
}

#archive .news-box .scroll {
    padding-left: 10px;
    overflow: auto;
    height: 100%;
    max-height: 250px;
    width: 100%;
}

#archive .news-box .scrollbar {
    position: absolute;
    height: 100%;
    width: 3px;
    background-color: #dfdfdf;
    top: 0;
    left: 1px;
    z-index: -1;
}

#archive .news-box .scroll::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
    overflow: visible;
    transform: translateX(5px);
}

#archive .news-box .scroll::-webkit-scrollbar-thumb {
    background-color: #4b4b4b;
    border-radius: 6px;
}

#brandInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 70px;
}

#brandInfo .mosque-logos {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

#brandInfo .mosque-logos .logo:first-of-type {
    height: 100px;
}

#brandInfo .mosque-logos .logo:last-of-type {
    height: 75px;
}

#brandInfo .messenger-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-bottom: 2px solid #00a693;
    padding-bottom: 10px;
}

#brandInfo .subsection-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0;
}

#brandInfo .addr {
    font-weight: 600;
    color: #a6a6a6;
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
}

#flagBox {
    position: absolute;
    width: 50%;
    left: 0;
    transform: translate(0, calc(-100% + 52px));
    overflow: hidden;
}

#flag {
    position: relative;
    width: 75%;
    transform: translate(-7%, 6px);
}

@media (max-width: 950px) {
    #PeopleHelps {
        height: 286px;
    }
    
    #PeopleHelps .box {
        border-radius: 60px;
        padding-bottom: 60px;
    }

    #PeopleHelps .card-number {
        font-size: 2rem;
        word-spacing: 10px;
        margin-right: 100px;
    }

    #PeopleHelps .card-holder {
        margin-right: 100px;
    }

    #PeopleHelps .description .text {
        font-size: 0.7rem;
    }

    #PeopleHelps .samples {
        gap: 15px;
    }

    #PeopleHelps .sample {
        margin: 5px 0;
        font-size: 0.8rem;
    }
    
    #flag {
        position: relative;
        width: 110%;
        transform: translate(-47%, -10px);
    }
    
    main {
        padding-bottom: 10px;
    }
}

@media (max-width: 728px) {
    #home {
        flex-direction: column;
    }
    
    #lastNews, #VideoEulogies {
        width: 100%;
    }
    
    #Eulogies .eulogy {
        width: 50%;
    }
    
    #PeopleHelps {
        transform: scale(0.5);
        width: 130%;
        right: -20%;
        margin: -80px 0 -60px 0;
    }
    
    #footer {
        flex-direction: column;
        align-items: center;
        max-width: fit-content;
    }
    
    #flagBox {
        width: 100%;
        z-index: -1;
    }
    
    #brandInfo .mosque-logos {
        margin-left: 80px;
    }
}
@media (max-width: 450px) {
    #Eulogies .eulogy {
        width: 100%;
    }
}