main{
    width: 100%;
    margin-top: 7dvw;
    margin-bottom: 7dvw;
    padding-top: 7dvh;
}

/*بخش اسلاید شو ثبت نام */
#div3 {

    width: 100%;
    margin-bottom: 5dvw;

    z-index: 5;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    row-gap: 6dvw;
    height: max-content;
    margin-top: 5dvw;
    margin-bottom: 5dvw;
    box-sizing: border-box;
    overflow: hidden;
}
#div3_content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}
#div3_content h2 {
    margin: 0;
    font-family: var(--typo1);
    font-size: clamp(none, 8dvw, 70px);
    color: var(--color6);
}
#div3_content p {
    margin: 15px auto 0 auto;
    max-width: 90dvw;
    font-family: var(--yekan2);
    color: var(--color2);
    font-size: clamp(5px, 3dvw, 20px);
    line-height: 1.7;
}
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    direction: ltr; 
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-item {
    width: 25dvh;
    height: 25dvh;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin: 0 10px; 
    border-radius: 3dvw;
    overflow: hidden;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-marquee .marquee-track {
    animation: scroll-left-infinite 25s linear infinite;
}

.bottom-marquee .marquee-track {
    animation: scroll-right-infinite 25s linear infinite;
}

@keyframes scroll-left-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}

@keyframes scroll-right-infinite {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}
@media (orientation: portrait) {
    .marquee-item {
        width: 35dvw;
        height: 35dvw;
        border-radius: 4dvw;
    }
    #div3 {
        row-gap: 10dvw;
    }
}




/*بخش ایتم های نشریات*/
#div_publications {
    background-color: var(--color1);
    width: 100%;
    max-width: 100dvw;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;       
    justify-content: space-evenly;
    align-items: flex-start; 
    z-index: 10;
    margin-top: 7dvw;
    margin-bottom: 7dvw;
}
.publications-card {
    flex: 1;                   
    max-width: 45dvw;    
    background-color: var(--color1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 3dvw;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}
.pub-card-header {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pub-title {
    margin: 0;
    font-family: var(--yekan1);
    font-size: clamp(none, 5dvw, 30px);
    color: var(--color6);
}


.pub-view-all-btn:hover {
    background-color: rgba(50, 112, 113, 0.15);
}

.pub-list {
    display: flex;
    flex-direction: column;
}

.pub-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pub-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pub-text {
    flex: 1;
    padding-left: 4dvw;
}

.pub-text p {
    margin: 0;
    font-family: var(--yekan2);
    font-size: clamp(none, 1.8dvw, 20px);
    color: var(--color2);
    line-height: 1.6;
    text-align: right;
}

.pub-image {
    width: 9dvw;
    height: 6dvw;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.06);
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    #div_publications{
        flex-direction: column;
        align-items: center;
        gap: 3dvw;
    }
    .publications-card {                  
    max-width: 90dvw; 
    min-width: 89dvw;
    }
    .pub-text p {
    font-size: clamp(none, 3dvw, 30px);
    }

.pub-image {
    width: 21dvw;
    height: 14dvw;
    }


