/* Header Styles */
.header {
    z-index: 9;
    position: sticky;
    top: 0;
    width: 100%;
    padding: 4.5rem 0;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Improve transitions */
    transition: padding 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: padding, transform;
    /* Add hardware acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Progress Bar */
@keyframes grow-progress {
    to {
        transform: scaleX(1);
    }
}

.single-post .header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    background-color: var(--accent-hover);

    transform-origin: 0 50%;
    animation: grow-progress auto linear;
    animation-timeline: --page-scroll;
}

.admin-bar .header {
    top: 46px;
}

@media screen and (max-width: 600px) {
    .admin-bar .pinned.header {
        top: 0
    }
}

@media screen and (min-width: 783px) {
    .admin-bar .header {
        top: 32px;
    }
}

.header.pinned {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.site-branding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 26rem;
    max-width: 56rem;
    text-align: center;
    /* Add hardware acceleration */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.site-branding img {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.site-branding a:hover {
    text-decoration: none;
}

.site-desc {
    display: none;
    font-size: 1.3rem;
}

.pinned .site-branding {
    max-width: 32rem;
}

.pinned .site-desc {
    display: none;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    line-height: 1;
}

.header-right .social-icons,
.header-right .top-nav a:not(:last-child) {
    /* Show on 900 and up */
    display: none;
}

.pinned .subscribe-btn {
    padding: 6px 9px;
    font-size: 11px;
}

@media screen and (max-width: 600px) {
    .header {
        padding: 4rem 0 2rem;
    }

    .header.pinned {
        padding: 1rem 0;
    }

    .site-branding {
        margin-top: 1.5rem;
    }

    .header-left {
        flex: 1;
        display: flex;
        justify-content: space-between;
        margin-top: 1.5rem;
    }

    .pinned .header-left {
        margin-top: 2em;
    }

    .header-right {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .top-nav>a {
        width: 100%;
    }
}

/* Header icons and links */
.top-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.unbutton {
    background: transparent;
    color: var(--text);
    padding: 0;
    margin-bottom: 0;
    border: 0 none;
}

.nav-icon,
.search-icon {
    cursor: pointer;
    transition: color 0.25s ease;
}

.nav-icon:hover,
.search-icon:hover {
    color: var(--text);
    background-color: transparent !important;
}

.nav-icon svg,
.search-icon svg {
    width: 24px;
    height: 24px;
    vertical-align: bottom;
}

.social-icons {
    display: flex;
    gap: 2px;
    line-height: 1;
}

.social-icons a {
    padding: .2rem .6rem;
    color: var(--text-lighter);
    transition: color 0.25s ease;
}

.social-icons a:hover {
    color: var(--text);
}

/* Search Form Styles */
.search-form-wrapper {
    /* Hidden by default */
    height: 0;
    opacity: 0;
    position: sticky;
    top: 7.8rem;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid var(--color-border);
    background-color: white;
    transition: height 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.search-form-wrapper.active {
    z-index: 8;
    opacity: 1;
    height: 90px;
}

.pinned+.search-form-wrapper.active {
    top: 5rem;
}

.search-form {
    max-width: 80rem;
    margin: auto;
    padding: 3rem;
}

.search-form>label {
    width: 74%;
    display: inline-block;
}

.search-form .search-field {
    width: 100%;
    padding: 0.8rem;
    border: 0 none;
    font-size: 1.2rem;
    background: #f5f5f5;
}

.search-form .search-field:focus {
    outline: none;
}

.search-form .search-submit {
    width: 24%;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--accent-bg);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: background-color 0.25s ease;
}

.search-form .search-submit:hover {
    background: var(--accent-hover);
}

/* SITE CONTENT */
.site-content {
    min-height: 58vh;
}

.site-content .section:first-child {
    margin-top: clamp(2.5rem, 1.9718rem + 2.2535vw, 4rem);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--medium {
    max-width: 100rem;
}

.container--narrow {
    max-width: 80rem;
}

.container--small {
    max-width: 70rem;
}

/* FEATURES */
.features .container {
    display: flex;
    flex-wrap: wrap;
}

.feature--large,
.feature--medium,
.feature--small {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.feature--medium,
.feature-column--second {
    flex: 1;
}

@media screen and (min-width: 600px) {
    .site-desc {
        display: block;
    }

    .container {
        padding: 0 2.5rem;
    }

    .feature-column--second {
        display: flex;
        gap: 3rem;
        width: 100%;
    }

    .feature-column--third {
        display: flex;
        flex-wrap: wrap;
        gap: 6%;
    }

    .feature-column--third>article {
        width: 47%;
    }

    .grid-article {
        width: calc(50% - 18px);
    }
}

@media screen and (min-width: 900px) {
    .container {
        padding: 0 3rem;
    }

    .header-right .top-nav a:not(:last-child) {
        display: flex;
    }

    .feature-column--first {
        width: 68%;
    }

    .feature-column--second {
        display: block;
        /* overwrite flex */
        width: 32%;
    }

    .feature--large,
    .feature-column--third,
    .feature--small:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0 none;
    }

    .feature--medium:first-child {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .feature--large {
        padding-right: 2rem;
        margin-right: 2rem;
        border-right: 1px solid var(--border-color);
    }

    .grid-article {
        width: calc(33.33% - 24px);
    }
}

@media screen and (min-width: 900px) and (max-width: 1200px) {
    .feature-column--third {
        gap: 4%;
        margin-bottom: 0;
    }

    .feature-column--third>article {
        width: 48%;
    }

    .feature--small:nth-child(-n + 2) {
        padding-top: 2rem;
        margin-top: 3rem;
        border-top: 1px solid #eee;
    }
}

@media screen and (min-width: 1200px) {
    .header-right .social-icons {
        display: flex;
    }

    .feature-column--first {
        order: 2;
        width: 52%;
    }

    .feature-column--second {
        order: 1;
        width: 22%;
    }

    .feature-column--third {
        display: block;
        /* overwrite flex */
        order: 3;
        width: 26%;
    }

    .feature-column--third>article {
        width: 100%;
    }

    .feature--medium:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0 none;
    }

    .feature--large {
        padding-left: 2.5rem;
        margin-left: 2.5rem;
        border-left: 1px solid var(--border-color);
    }
}

.feature img {
    width: 100%;
    height: auto;
}

.feature .h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 1.5775rem + 1.8028vw, 3.2rem);
}

.feature h2 {
    margin-top: 1.5rem;
    font-size: 2.5rem;
}

.feature .h3 {
    margin-top: .2rem;
    font-size: 2rem;
}

.feature--small {
    display: flex;
    gap: 1.2rem;
}

@media screen and (min-width: 1200px) and (max-width: 1350px) {
    .feature.feature--small .h3 {
        font-size: 1.7rem;
    }
}

.feature--small>div {
    flex: 1;
}

.feature--small h2 {
    margin-bottom: 8px;
}

.feature--small img {
    width: 10rem;
    max-width: 10rem;
}

/* Lined */
.lined,
.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-family: var(--sans-font);
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.lined::after,
.comment-reply-title::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-top: 2px;
    background-color: var(--text);
}

.lined--inverse::after {
    background-color: white;
}

/* Editor Picks Styles */
.editor-picks {
    background-color: black;
    padding: 50px 0;
    overflow: hidden;
    /* Hide overflow */
}

.editor-picks-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

@media screen and (min-width: 900px) {
    .editor-picks .container {
        display: flex;
        gap: 2rem;
    }

    .editor-picks-header {
        min-width: 23%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .carousel-container {
        width: 75%;
    }
}

.editor-picks-title {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.editor-picks h3 {
    margin-bottom: 1rem;
}

.editor-picks-article {
    padding: 1rem;
    background: var(--bg);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.editor-picks-article img,
.editor-picks-article .no-img {
    width: 100%;
    height: 200px;
    /* Set a fixed height for consistency */
    object-fit: cover;
    /* Ensure images cover the area without distortion */
}

.editor-picks-article .no-img {
    display: block;
    background-color: #f9f2f2;
}

.meta {
    margin: .5rem auto;
    font-size: 1.5rem;
}

.meta>span:first-child::after {
    content: ' · ';
    position: relative;
    top: .1rem;
    padding: 0 4px;
}

.entry-cat {
    color: #555;
}

.entry-cat a,
.meta>span:first-child a {
    font-weight: 600;
    color: var(--accent-hover);
}

.meta .topic a:not(:first-child) {
    display: none;
}

/* Article Grid Styles */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.grid-article figure {
    aspect-ratio: 9/6;
    background: #fafafa;
    margin-bottom: 1rem;
}

.grid-article img {
    display: block;
    margin: auto;
}

.excerpt :is(p, ul, blockquote) {
    margin-bottom: 0;
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp--4 {
    -webkit-line-clamp: 4;
}

.clamp--5 {
    -webkit-line-clamp: 5;
}

.more {
    position: absolute;
    right: 6px;
    bottom: 2px;
    cursor: pointer;
    background: var(--bg);
    color: var(--accent-hover);
    outline: none;
    border: 0 none;
    padding: 0;
    cursor: pointer;
}

.more:enabled:hover {
    background: var(--bg);
    color: var(--accent-hover);
}

.more::before {
    content: "...";
    padding-right: 5px;
    color: var(--text);
}

.line-clamp:focus-within {
    display: block;
}

.line-clamp:focus-within .more {
    font-size: 0;
}

/* Më Shumë */
.load-more-btn-wrap {
    text-align: center;
    margin: 4rem auto 0;
}

.load-more-btn-wrap .load-more-btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    background-color: var(--text);
    color: #fff;
    border: none;
    cursor: pointer;
}

.load-more-btn-wrap .load-more-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.specials h3 {
    margin-bottom: 3rem;
}

@media screen and (min-width: 900px) {

    /* Features 2 Styles */
    .specials-wrapper {
        display: flex;
    }

    .specials-column--first {
        flex: 1;
        padding-right: 2.5rem;
        margin-right: 2.5rem;
        border-right: 1px solid #eee;
    }

    .specials-column--second {
        width: 52%;
    }
}

.specials-article .feat-img--small {
    width: 40%;
}

.specials-article img {
    width: 100%;
    height: auto;
}

.specials-article h2,
.specials-article .h1 {
    margin-bottom: 0;
}

.specials-column--first,
.specials-column--second .specials-article:not(:last-child) {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
}

@media screen and (min-width: 600px) {
    .specials-column--second .specials-article {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: 24px;
    }

    .specials-column--second .specials-article-content {
        width: 66%;
    }
}

@media screen and (min-width: 900px) {
    .specials-column--first {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .specials-column--second .excerpt {
        display: none;
    }
}

@media screen and (min-width: 1200px) {
    .specials-column--second .excerpt {
        display: -webkit-box;
    }
}

/* Donate Section Styles */
.section {
    margin: clamp(2.6rem, 1.4028rem + 5.1080vw, 6rem) auto;
}

.box {
    text-align: center;
    padding: clamp(1.2rem, 0.7423rem + 1.9531vw, 2.5rem);
    background-color: rgb(254, 251, 236);
}

.box--big {
    padding: clamp(2rem, 1.2958rem + 3.0047vw, 4rem);
}

.box h3 {
    font-family: var(--serif-font);
}

.box>p {
    margin-top: 0 !important;
}

.box .excerpt {
    margin: 2rem auto;
}

.box .button {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    border: none;
    background-color: rgb(243, 63, 51);
}

.box--inverse {
    background-color: var(--text);
    color: white;
}

.box--inverse .button {
    color: white;
    border-color: white;
    background-color: transparent;
}

.box--inverse .button:hover {
    color: var(--text);
    border-color: white;
    background-color: white;
}

/* Footer Styles */
.site-footer {
    background-color: black;
    color: white;
    overflow: hidden;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-cols {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2rem;

    margin: clamp(2.5rem, 1.9718rem + 2.2535vw, 4rem) auto;
}

.footer-col:first-child {
    flex: 1;
}

.footer-wrap .social-icons {
    align-items: center;
}

/* Footer Signup Form */
.jetpack_subscription_widget form {
    position: relative;
    max-width: 50rem;
}

.jetpack_subscription_widget input[type="email"] {
    margin-top: 1rem;
    padding: 1.2rem;
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
}

.jetpack_subscription_widget button {
    position: absolute;
    bottom: .5rem;
    right: calc(1rem + 5%);

    border: none;
    color: #fff;
    background-color: transparent;
    cursor: pointer;
}

.jetpack_subscription_widget button:hover {
    background-color: transparent;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    justify-content: flex-end;
}

.footer-col .social-icons {
    justify-content: flex-end;
}

.colophon {
    font-size: 1.3rem;
    text-transform: uppercase;
    padding: 2em 1rem;
    text-align: center;
    border-top: 1px solid #fff;
}

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

    .footer-cols {
        width: 100%;
        flex-direction: column;
        justify-content: flex-end;
        gap: 3rem;
        text-align: center;
    }

    .footer-col {
        width: 100%;
    }

    .jetpack_subscription_widget {
        display: flex;
        justify-content: center;
    }

    .footer-col .footer-nav,
    .footer-col .social-icons {
        justify-content: center;
    }

}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.archive-title span {
    display: block;
    text-align: center;
}

.archive-title span:nth-child(2) {
    font-family: var(--serif-font);
}

.archive-title .prefix {
    color: var(--text-lighter);
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--serif-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Author Bio */
.author-bio {
    background-color: #f5f5f5;
    padding: 24px;
    margin-top: 3.6rem;
}

.author-info {
    overflow: hidden;
    position: relative;
}

.author-avatar {
    float: left;
    margin-right: 2rem;
}

.author-avatar img {
    width: 10rem;
}

.author-details {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.author-name {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.author-description {
    margin-top: 1rem;
    color: #333;
}

@media screen and (max-width: 600px) {
    .author-avatar img {
        width: 7rem;
    }

    .author-details {
        flex-direction: column;
    }
}

.no-results {
    text-align: center;
}

.sharedaddy .sd-title {
    letter-spacing: 0;
}

.text-center {
    text-align: center;
}