* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.backbutton {
    display: block;
    padding: 1rem 3%;
    padding-top: 3rem;
    min-width: 100vw;
    margin-top: 9rem;
}

/* author not found text will be center */
.notfound{
    padding: 1rem 3%;
    text-align: center; 
    width: 100vw;
}
.backbutton img {
    width: 40px;
    height: 40px;
    cursor: pointer;
}


.author-container {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    min-width: 100vw;
}

.author-container h1,
.author-container h3,
.author-container p,
.author-container h4 {
    margin: 0;
}

.author-container .author-profile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 2rem;
    box-sizing: border-box;
    gap: 2rem;
}

.author-container .author-profile .author-details {
    width: 50%;
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.author-container .author-profile .author-links {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    box-sizing: border-box;
}

.author-container .author-profile .author-links .links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.author-container .author-profile .author-details .profile {
    height: 250px;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;
}

.author-container .author-profile .author-details img {
    height: 180px;
    width: 200px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.author-container .author-profile .author-details .details {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 100vw;
}

.author-container .author-profile .author-links .links img {
    width: 40px;
    height: 40px;
}

.author-container .author-profile h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.author-container .author-profile h1 {
    font-size: 34px;
    font-weight: bolder;
    margin: 0;
}

.author-container .author-profile h4 {
    font-size: 20px;
    color: #EF724B;
}

.author-container .author-profile,
.author-container .authorbioraphy,
.author-articles,
.also-see,
.achivement-section {
    padding: 1rem 3%;
    width: 100%;
}


.author-container .author-profile .author-links h1 {
    margin: 0;
    width: 100%;
    text-align: center;
}

.author-container p {
    font-size: 18px;
}


.tile-container {
    width: 35vw;
    height: 260px;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    overflow: hidden;
    transition: height 1s ease-in-out;
}

.accordion-section.expanded .tile-container {
    height: fit-content;
    margin-bottom: 1rem;
}

.sticky-heading {
    position: sticky;
    top: 0;
    background-color: #000;
    z-index: 1;
    padding: 1rem;
    border-bottom: .7px solid #EF724B;
}

.tile-wrapper {
    scroll-snap-type: y proximity;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tile {
    scroll-snap-align: start;
    padding: 1.4rem;
    min-height: fit-content;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    word-break: break-word;
}


.author-container .more {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 3rem;
    width: 100%;
}

.author-container .more button {
    width: 180px;
    height: 45px;
    outline: none;
    border: none;
    background: #EF724B;
    color: #fff;
    font-family: 'Poppins';
    font-weight: 600;
    font-size: 17px;
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    cursor: pointer;
    align-items: center;
}

.author-container .more .button:hover {
    background: #fff;
    color: #EF724B;
}

.more-contents {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.4s ease;
}

.section-contents {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: row;
    padding: 1rem 9rem;
}

.more-contents.expanded {
    max-height: 2000px;
    opacity: 1;
}


#article-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.article-box {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.article-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.article-box p {
    margin: 0.75rem 1rem 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.article-box .read-more {
    display: inline-block;
    margin: 0.75rem 1rem 1rem;
    color: orangered;
    font-weight: 600;
}



.separator {
    min-height: max(1px, 0.112107623vh);
    height: max(1px, 0.112107623vh);
    background: transparent linear-gradient(270deg, #343434 0%, #9D9D9D 48%, #343434 100%) 0% 0% no-repeat padding-box;
    opacity: 0.5;
    width: 95%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    padding: 1rem;
    background: white;
    border: none;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn.active {
    background: #EF724B;
    color: white;
}

#authors-page-wrapper {
    background-color: white;
    padding: 30px 60px;
    border-radius: 100px;
    width: fit-content;
    max-width: 90%;
    margin: auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

#authors-page {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: start;
    align-items: center;
}

#authors-page>div {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    background: transparent;
    min-width: 140px;
}

#authors-page img {
    cursor: pointer;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccc;
}

#authors-page h3 {
    margin-top: 10px;
    font-size: 1.3rem;
    color: #EF724B;
}

#authors-page a {
    text-decoration: none;
    color: inherit;
}

#authors-page>div:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.accordion-toggle {
    text-align: center;
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
    top: -15px;
}

.accordion-toggle img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    transform: rotate(270deg);
}

.accordion-section.expanded .accordion-toggle img {
    transform: rotate(90deg);
}

.section-contents .accordion-section .achivement-section h1.highlight {
    margin-bottom: .5rem;
    color: #EF724B;
}

.achivement-slider-wrapper {
    overflow: hidden;
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
}

/* responsive issues */
.achivement-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.achievement-tile {
    color: #fff;
    flex: 1 0 calc(100%/3);
    min-width: 250px;
    overflow: hidden;
    word-wrap: break-word;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.13);
    padding: 1rem;
    height: 250px;
    text-align: justify;
    box-sizing: border-box;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #EF724B;
    margin-bottom: 0.5rem;
}

.achievement-desc {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.achievement-year {
    font-size: 0.85rem;
    color: #EF724B;
}

.achievement-dots,
.achievement-dots>* {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.achievement-dots .dot img {
    width: 34px;
    height: 34px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}


.dot .disabled {
    cursor: not-allowed;
    opacity: 0.6;
}


.center-dot .pagenumber {
    color: #000;
    background: #EF724B;
    padding: 6px 12px;
    border-radius: 50%;
    font-size: 14px;
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
}

.pagination span{
    background: transparent;
    width: fit-content;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #EF724B;
    padding: .5rem;
}

@media(max-width:1350px) {
    .section-contents {
        justify-content: space-around;
        padding: 1rem;
    }
}

@media screen and (max-width: 1200px) {

    .author-container .author-profile,
    .author-container .authorbioraphy,
    .author-articles,
    .also-see,
    .achivement-section {
        padding: 1.5rem 3%;
    }

    .author-container .authorbioraphy p {
        font-size: 16px;
    }

    .author-container .more {
        padding: 1rem;
        text-align: center;
        justify-content: center;
    }

    .author-container .more button {
        width: 100%;
        max-width: 280px;
        font-size: 15px;
        padding: 10px 20px;
    }

    .tile-container {
        width: 35vw;
    }

    #article-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievement-tile {
        flex: 0 0 100%;
    }

    .achievement-dots {
        gap: 15px;
    }

    .achievement-dots .dot {
        width: 20px;
        height: 20px;
        font-size: 14px;
        line-height: 20px;
    }

    .achievement-dots .center-dot {
        width: 36px;
        height: 31px;
        font-size: 18px;
        line-height: 24px;
    }

    .achievement-tile {
        flex: 0 0 calc(50% - 16px);
    }

    .author-profile {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 3%;
    }

    .author-details {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .author-details .profile .mainImg {
        width: 120px;
        height: 120px;
    }

    .author-links {
        width: 100%;
        align-items: flex-start;
    }

    .author-links .links {
        justify-content: flex-start;
    }

    .authorbioraphy p {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .author-container .author-profile .author-links h1 {
        text-align: -webkit-center;
    }

    .author-container .author-profile .author-links .links {
        justify-content: center;
    }

    .author-container .author-profile h3 {
        font-size: 19px;
    }

    .author-container .author-profile h1 {
        font-size: 30px;
    }
}

@media(max-width:1130px) {

    .author-details .details h3,
    .author-details .details h4 {
        font-size: 1rem;
    }

    .author-container .author-profile .author-details img {
        width: 180px;
        height: 180px;
    }

    .author-profile .author-details h1,
    .author-profile .author-links h1 {
        font-size: 1.3rem;
    }

    .author-container .author-profile .author-links .links img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 1150px) {
    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 4%;
        gap: 1.5rem;
    }

    .author-details {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .author-details .profile .mainImg {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        object-fit: cover;
    }

    .author-details .details h1 {
        font-size: 1.6rem;
    }

    .author-details .details h3,
    .author-details .details h4 {
        font-size: 1.1rem;
    }

    .author-links {
        width: 100%;
        align-items: center;
    }

    .author-links h1 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .author-links .links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .author-links .links img {
        width: 28px;
        height: 28px;
    }

    .authorbioraphy {
        padding: 2rem 4%;
        font-size: 1rem;
        text-align: justify;
    }

    .authorbioraphy h1,
    .author-container .achivement-section h1,
    .author-container .author-articles h1,
    .also-see h1 {
        font-size: 1.3rem;
    }

    .authorbioraphy p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section-contents {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .tile-container {
        width: 90vw;
    }
}
@media(max-width:1050px) {
    .author-container .author-profile .author-details img {
        width: 150px;
        height: 150px;
    }
}

@media(max-width:950px) {
    #article-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-details .details h3 {
        font-size: 14px;
    }
}

@media(max-width:900px) {
    .author-container .author-profile {
        flex-direction: column;
    }

    .author-container .author-profile .author-details {
        justify-content: center;
        width: 100%;
    }

    .author-container .author-profile .author-details .details h1 {
        font-size: 28px;
    }

    .author-container .author-profile .author-details .details h4,
    .author-container .author-profile .author-details .details h3 {
        font-size: 20px;
    }

    .author-container .author-profile .author-links {
        width: 100vw;
        padding: 1rem 4%;
    }

    .author-container .author-profile .author-links h1 {
        text-align: start;
        font-size: 30px;
    }

    .author-container .author-profile .author-links .links {
        justify-content: start;
    }

    .author-container .author-profile .author-links .links img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .achievement-tile {
        flex: 0 0 100%;
    }
}


@media(max-width:750px) {
    .achievement-tile {
        flex: 0 0 100%;
        height: 200px;
    }

}

@media(max-width:600px) {
    .author-container .author-profile .author-details {
        flex-direction: column;
    }

    .author-container .author-profile .author-details .details {
        padding: 1rem 4%;
    }

    #authors-page {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:650px) {
    #authors-page {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:500px) {
    .achievement-tile {
        height: 250px;
        /* overflow-x: auto; */
    }
}

@media(max-width:450px) {
    #article-content {
        grid-template-columns: repeat(1, 1fr);
    }
}


@media(max-width:350px) {
    #authors-page {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
}