@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap");

/* ------------------ Global Styles ------------------ */

:root {
    --color-primary: #e200e2;
    --color-text-secondary: rgb(108, 0, 108);
    --color-text-third: #878787;
    --color-primary-background: hsla(300, 100%, 44%, 0.15);
    --color-black: #000000;
    --color-white: #ffffff;
}
button,
.search,
.dots-wrapper,
.close {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    font-size: 62.5%;
    width: 100vw;
}

body {
    overflow-x: hidden;
    min-width: 380px;
    position: relative;
    margin: 0 auto;
    font-family: "Roboto Condensed", sans-serif;
}

/* ------------------ Header Section ------------------ */

header {
    padding: 3rem 2rem 0 2rem;
    display: grid;
    grid-template-columns: 1fr 0.2fr;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

header .logo {
    height: 3.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

header .logo .separator {
    width: 1px;
    height: 55%;
    margin-left: -5px;
    background-color: #000000;
}

header .logo span {
    font-size: 2rem;
    font-weight: 340;
}

header .main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    justify-content: flex-end;
}

header .main-menu .search {
    display: flex;
    align-items: center;
}

header .main-menu .dots {
    list-style: none;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

header .main-menu .dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1.2px solid var(--color-black);
}

body.active-nav,
body.active-search {
    overflow-y: hidden;
}

body.active-nav header .main-menu .main-nav,
body.active-search header .main-menu .main-nav {
    opacity: 1;
    top: 0;
    transform: none;
    pointer-events: all;
    z-index: 9999;
}

header .main-menu .main-nav {
    opacity: 0;
    position: absolute;
    top: -100vh;
    left: 0;
    width: clamp(380px, 100vw, 100vw);
    height: 100vh;
    background-color: var(--color-black);
    z-index: 1;
    color: var(--color-white);
    transition: opacity 0.1s ease-in, top 0.1s ease-in;
    pointer-events: none;
    padding: 2rem 4rem;
}

header .main-menu .main-nav .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.active-search header .main-menu .main-nav {
    padding: 4rem 4rem 0;
}

body.active-search header .main-menu .main-nav .wrapper {
    height: 50%;
    align-items: center;
    justify-content: space-between;
}

header .main-menu .main-nav .wrapper .controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    display: none;
}

header .main-menu .main-nav .wrapper .controls .title {
    font-size: 2.4rem;
    font-weight: 900;
    display: none;
}

header .main-menu .main-nav .wrapper .controls .close {
    font-weight: 200;
    font-size: 4rem;
    margin-top: -1rem;
}

body.active-search header .main-menu .main-nav .wrapper .controls {
    display: flex;
}

body.active-search header .main-menu .main-nav .wrapper .controls .title,
body.active-search header .main-menu .main-nav .wrapper nav .nav-links,
body.active-search header .main-menu .main-nav .wrapper .reserved {
    opacity: 0;
    display: none;
}

body.active-nav header .main-menu .main-nav .wrapper .controls .title,
body.active-nav header .main-menu .main-nav .wrapper nav .nav-links,
body.active-nav header .main-menu .main-nav .wrapper .reserved,
body.active-nav header .main-menu .main-nav .wrapper .controls {
    opacity: 1;
    display: flex;
}

body.active-search header .main-menu .main-nav .wrapper .search-form {
    display: flex;
}

body.active-search header .main-menu .main-nav .wrapper .controls {
    align-self: flex-end;
}

header .main-menu .main-nav .wrapper nav .nav-links {
    margin-top: 10rem;
    display: flex;
    flex-direction: column;
    padding-left: 4rem;
    gap: 3.2rem;
    display: none;
}

header .main-menu .main-nav .wrapper nav .nav-links li a {
    font-size: 2.4rem;
    font-weight: 500;
}

header .main-menu .main-nav .wrapper .reserved {
    position: absolute;
    bottom: 10rem;
    right: 5%;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    align-self: flex-end;
    display: none;
}

header .main-menu .main-nav .wrapper .search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    display: none;
}

header .main-menu .main-nav .wrapper .search-form .title {
    font-size: 3.6rem;
    font-weight: 800;
}

header .main-menu .main-nav .wrapper .search-form .search-input-wrapper {
    position: relative;
}

header
    .main-menu
    .main-nav
    .wrapper
    .search-form
    .search-input-wrapper
    .search-input {
    width: 27rem;
    height: 4.5rem;
    border: 1.8px solid var(--color-black);
    border-radius: 30px;
    padding: 2rem 5rem 2rem 1.6rem;
}

header
    .main-menu
    .main-nav
    .wrapper
    .search-form
    .search-input-wrapper
    .search-input::placeholder {
    color: #9f9f9f;
    font-size: 1.2rem;
    font-weight: 500;
}

header
    .main-menu
    .main-nav
    .wrapper
    .search-form
    .search-input-wrapper
    .search-icon {
    position: absolute;
    top: calc(0.9rem / 2);
    right: calc(1rem / 2);
    height: 3.6rem;
    width: 3.6rem;
    background: none;
    border: none;
    border-radius: 50%;
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
}
.breadCrumb .container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--color-primary-background);
    border-radius: 2.1rem;
    margin-left: -5px;
    padding: 1rem 1.6rem;
}
.breadCrumb .container .link .item,
.breadCrumb .container .separation {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6c006c;
}

/* ------------------ Main Blog Section ------------------ */
main {
    padding: 0 2rem 0 3rem;
    margin-top: 6rem;
}

main article .info .category {
    overflow-x: hidden;
    overflow-x: scroll;
    display: flex;
    align-items: center;
    gap: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0.2rem;
}

main article .info .category::-webkit-scrollbar {
    display: none;
}

main article .info .category .category-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #facffa;
    color: #6c006c;
    padding: 8px 2rem;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: 500;
}

main article .hero .fig-tag figure {
    position: relative;
    margin-top: 2rem;
    min-width: 32rem;
    height: clamp(19rem, 40vw, 40rem);
    border-radius: 3rem;
    overflow: hidden;
    color: var(--color-white);
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

main article .hero .fig-tag figure .article-image {
    width: 110%;
    height: 100%;
    margin-left: -1rem;
    object-fit: cover;
}

main article .hero .fig-tag figure .overlay {
    position: absolute;
    top: 70%;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

main article .hero figure .overlay .author-wrapper {
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
}

main article .hero .fig-tag figure .overlay .author-wrapper .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

main article .hero .fig-tag figure .overlay .author-wrapper .author img {
    position: relative;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    object-fit: cover;
}

main article .hero .fig-tag figure .overlay .author-wrapper .separator {
    width: clamp(20%, 35%, 50%);
    height: 1px;
    background-color: var(--color-white);
}

main article .hero .fig-tag figure .overlay .author-wrapper .dots-separator {
    display: none;
}

main article .hero .fig-tag figure .overlay .author-wrapper .author span,
main article .hero .fig-tag figure .overlay .author-wrapper time {
    font-size: 1rem;
    font-weight: 600;
}

article .hero .fig-tag figure .overlay .author-wrapper img {
    object-fit: cover;
    border-radius: 1.2rem;
}

main article .hero .fig-tag .tags {
    margin-top: 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: hidden;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-1.2rem);
}

main article .hero .fig-tag .tags::-webkit-scrollbar {
    display: none;
}

main article .hero .fig-tag .tags .tag-wrapper {
    padding: 0.5em 1em;
    border: 1.4px solid var(--color-black);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

main article .hero .fig-tag .tags .tag-wrapper .tag {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-black);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ------------------ accordion Section ------------------ */

.trigger-text {
    display: none;
}
.content-container {
    display: grid;
    grid-template-columns: 25% 55%;
    width: 1140px;
    margin: 0 auto;
    padding: 1rem;
}

.accordion {
    width: 280px;
    height: 280px;
    margin: 5px;
    padding: 5px 15px;
}

.accordion-section {
    border-bottom: 1px solid #000;
}

.accordion-title {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    color: #000;
    position: relative;
    gap: 8px;
    justify-content: space-between;
}

.accordion-title span {
    font-size: 16px;
    font-weight: 600;
    margin-right: auto;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
    padding: 0 0 5px 20px;
}

.accordion-content-inner a {
    display: flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    transition: font-weight 0.2s ease, color 0.2s ease;
}

.accordion-content-inner a::after {
    content: "\2794";
    position: absolute;
    left: 150px;
    opacity: 0;
    transition: left 0.3s ease-out, opacity 0.3s ease-out;
    font-weight: bold;
    color: #6c006c;
}

.accordion-content-inner a:hover {
    color: #6c006c;
}

.accordion-content-inner a:focus,
.accordion-content-inner a:active {
    font-weight: bold;
    outline: none;
}

.accordion-content-inner a:focus::after,
.accordion-content-inner a:active::after,
.accordion-content-inner a.active-category::after {
    left: 200px;
    opacity: 1;
}

.accordion-content a.active-category {
    font-weight: 700;
}

.arrow {
    transform: rotate(180deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.3;
    margin-right: 5px;
}

.accordion-section.active .arrow {
    transform: rotate(0deg);
    opacity: 1;
}

.badge {
    background-color: #fae6ff;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-align: center;
    min-width: 24px;
    display: none;
}

.main-container {
    display: grid;
    width: 100%;
}

/* ------------------ Breadcrumb Section ------------------ */
.breadcrumb {
    display: flex;
    align-items: end;
    margin-bottom: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #3c3c3c;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
    color: #3c3c3c;
}

.breadcrumb a.active {
    color: #3c3c3c;
}

.header__main {
    display: flex;
    align-items: center;
    width: 100%;
}

.header__main h2 {
    font-size: 24px;
    padding-right: 10px;
    margin: 0;
    white-space: nowrap; /* Prevents text from wrapping */
}

.header__main::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #000;
    margin-left: 15px;
}
.separator-wrapper {
    display: none;
}

/* ------------------ Card Components ------------------*/

.card {
    max-width: 220px;
    overflow: hidden;
    width: 220px;
    height: 271px;
}

.no-posts {
    text-align: center;
    font-size: 1.5rem;
    color: #999;
    height: 270px;
}

.image-container {
    position: relative;
    width: 220px;
    height: 123px;
}

.card-image {
    width: 220px;
    height: 123px;
    object-fit: cover;
    border-radius: 12px;
}

.card-content {
    padding: 5px 5px 0 5px;
}

.card-content .category {
    color: #6c006c;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-content h2 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #111;
    display: block;
    font-weight: bold;
    line-height: 1.2;
}

.card-content .description {
    margin: 0 0 5px 0;
    color: #9f9f9f;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 500;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    margin-left: 0.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: solid 2px white;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
}

.author-name {
    flex: 1;
    font-size: 10px;
    font-weight: 500;
    color: #9f9f9f;
}

.read-time {
    color: #9f9f9f;
    font-size: 10px;
}

.card-grid {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 3rem;
}
.main-container {
    min-height: 100px;
}

.card-grid:empty {
    min-height: 200px;
}

/* ------------------ Pagination Section ------------------ */
.pagination-number {
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.pagination-number:hover {
    color: #6c006c;
}
.pagination {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2rem;
    font-size: 16px;
    margin-bottom: 2rem;
    margin-right: -15rem;
}

.pagination a {
    color: #000;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #fbdefb;
    color: #6c006c;
}

.pagination-arrow {
    font-weight: 500;
}

/* ------------------ Newsletter Section ------------------ */
.newsletter {
    margin-top: 2rem;
    height: 20rem;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter .wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
}

.newsletter .wrapper .metas {
    width: 60%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
}

.newsletter .wrapper .metas h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-black);
    margin-top: 1rem;
}

.newsletter .wrapper .metas p {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.5;
}

.newsletter .wrapper form .input-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: 1.6rem;
}

.newsletter .wrapper form input {
    width: 100%;
    height: 4.5rem;
    border: 1.8px solid var(--color-black);
    border-radius: 30px;
    padding: 2rem 11rem 2rem 1.6rem;
}

.newsletter .wrapper form input::placeholder {
    color: #9f9f9f;
    font-size: 1.2rem;
    font-weight: 500;
}

.newsletter .wrapper form button {
    position: absolute;
    margin-top: calc(11px / 2);
    right: calc(11px / 2);
    width: 10rem;
    height: 3.4rem;
    background: none;
    border: none;
    background-color: var(--color-black);
    color: var(--color-white);
    font-weight: 500;
    font-size: 1.2rem;
    border-radius: 30px;
}

.newsletter .wrapper form button:hover {
    background-color: #6c006c;
}

footer {
    padding: 3rem 2rem 0;
    background-color: var(--color-black);
}

footer .wrapper {
    height: auto;
    color: var(--color-white);
    display: grid;
    grid-template-columns: 1fr 0.5fr;
    flex-direction: column;
    gap: 2rem;
}

footer .wrapper .logo {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

footer .wrapper .logo .slogan {
    font-size: 1.2rem;
    font-weight: 380;
    color: #9f9f9f;
    width: 100%;
    margin-left: 4.75rem;
    margin-top: -5px;
}

footer .wrapper .legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    grid-area: 3 / span 2;
}

footer .wrapper .legal a {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

footer .wrapper .separator {
    width: calc(100% - 2rem);
    margin: 0 auto;
    height: 0.5px;
    background-color: #9f9f9f;
    grid-column: span 2;
}

footer .wrapper .footer-nav ul {
    display: none;
}

footer .wrapper .footer-social-media-nav {
    grid-area: 1/2;
    align-self: end;
}

footer .wrapper .footer-social-media-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
}

footer .wrapper .reserved {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    grid-area: 4 / span 2;
}

footer .wrapper .reserved .rights {
    font-size: 1.2rem;
    letter-spacing: 1.2px;
}

footer .wrapper .reserved .made {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.popup-wrapper {
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.popup,
.popup-wrapper {
    display: none;
    position: fixed;
    width: 100%;
}
.popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ededed;
    z-index: 1000;
    height: fit-content;
    padding: 2rem;
    align-items: center;
}
.popup-content {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0 2rem 0 4rem;
}
.popup-content h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    text-align: left;
}
#popup-message {
    margin: 0 auto;
    padding: 5px 8px;
    font-size: 1.6rem;
    color: #000;
    background-color: rgba(0, 191, 13, 0.22745098039215686);
}
.msg-btn {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}
.popup-content button {
    color: #000;
    border: none;
    padding: 8px 10px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.popup-content button:hover {
    background-color: #d9ebdc;
}

@media (min-width: 740px) {
    body.active-search {
        overflow-y: scroll;
    }

    header {
        max-width: 1200px;
        padding: 6rem 2rem;
        margin: 0 auto;
        grid-template-columns: 0.4fr 1fr;
    }

    header .logo img {
        width: 16rem;
        height: auto;
    }

    header .main-menu {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    header .main-menu .dots {
        display: none;
    }

    header .main-menu .main-nav {
        opacity: 1;
        position: static;
        width: 100%;
        height: 100%;
        background-color: var(--color-white);
        color: var(--color-white);
        grid-area: 3/2;
        pointer-events: auto;
        padding: 0;
    }

    body.active-search header .main-menu .main-nav {
        opacity: 1;
        position: absolute;
        width: 100%;
        height: 14rem;
        padding: 1rem;
        background-color: var(--color-black);
        color: var(--color-white);
        box-shadow: 0px 5px 10px 6px rgba(0, 0, 0, 0.3);
    }

    header .main-menu .main-nav .wrapper {
        align-items: flex-start;
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }

    header .main-menu .search {
        height: 3.6rem;
        width: 3.8rem;
        border-radius: 50%;
        background-color: var(--color-black);
        display: flex;
        justify-content: center;
    }

    header .main-menu .search svg {
        width: 1.8rem;
        height: 1.9rem;
    }

    header .main-menu .search svg path {
        fill: var(--color-white);
    }

    body.active-search header .main-menu .main-nav .wrapper .search-form {
        margin: 0;
    }

    body.active-search header .main-menu .main-nav .wrapper {
        align-items: center;
        flex-direction: column;
        height: auto;
        margin: 0 auto;
        max-width: 1140px;
        justify-content: center;
    }

    header .main-menu .main-nav .wrapper nav .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        color: var(--color-black);
        z-index: 10;
        padding: 0;
        gap: 3.2rem;
        margin-top: 0;
    }
    .nav-links a {
        position: relative;
        text-decoration: none;

        display: inline-block;
        transition: color 0.1s ease;
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0;
        height: 3px;
        background-color: #6c006c;
        transition: width 0.2s ease-in-out;
    }

    .nav-links a:focus::after,
    .nav-links a:active::after {
        width: 100%;
    }
    .nav-links a:hover::after {
        width: 100%;
    }

    header .main-menu .main-nav .wrapper .search-form .title {
        display: none;
    }

    main {
        margin: 8rem auto;
        padding: 0 4rem 0;
    }
    main article .info {
        gap: 0.7rem;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    main article .hero .fig-tag .tags {
        margin-top: 1.5rem;
    }

    main article .hero figure .overlay .author-wrapper {
        gap: 3rem;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper .author {
        gap: 2rem;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper .author img {
        width: 3.6rem;
        height: 3.6rem;
        border: 4px solid var(--color-white);
    }

    main article .hero .fig-tag figure .overlay .author-wrapper .author span,
    main article .hero .fig-tag figure .overlay .author-wrapper time {
        font-size: 1.4rem;
        font-size: 500;
    }

    main
        article
        .hero
        .fig-tag
        figure
        .overlay
        .author-wrapper
        .dots-separator {
        display: none;
    }

    article .hero .fig-tag figure .overlay .author-wrapper img {
        object-fit: cover;
        border-radius: 1.2rem;
    }

    .newsletter {
        margin-top: 1rem;
    }

    .newsletter .wrapper {
        flex-direction: row;
        height: auto;
        width: 100%;
    }

    .newsletter .wrapper .metas {
        align-items: flex-start;
        width: auto;
    }

    .newsletter .wrapper form .input-container {
        margin: 0;
        width: 32rem;
    }

    footer {
        padding: 4rem 4rem 3rem;
    }

    footer .wrapper {
        grid-template-columns: 1fr;
    }

    footer .wrapper .legal {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    footer .wrapper .legal a:nth-child(2),
    footer .wrapper .legal a:nth-child(3) {
        display: none;
    }

    footer .wrapper .legal a:nth-child(1) {
        align-self: flex-end;
        margin: 0;
    }

    footer .wrapper .footer-nav ul {
        display: flex;
        gap: 2rem;
    }

    footer .wrapper .separator {
        grid-column: span 2;
        grid-row: 2;
        width: 100%;
    }

    footer .wrapper .footer-social-media-nav {
        grid-row: 3;
        grid-column: 2;
        justify-self: end;
    }

    footer .wrapper .footer-nav ul li {
        font-size: 1.4rem;
        font-weight: 450;
    }

    footer .wrapper .reserved {
        margin-top: 6rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.6rem;
        grid-area: 4 / span 2;
    }

    footer .wrapper .reserved .rights {
        font-size: 1.2rem;
        letter-spacing: 1.2px;
    }

    footer .wrapper .reserved .made {
        font-size: 1.2rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 739px) {
    main article .hero .fig-tag .tags {
        margin-top: 2.5rem;
    }
    main article h1 {
        font-size: 30px;
        color: #000;
        font-weight: bold;
        padding-left: 1rem;
        margin-top: 2rem;
    }
    main article h2 {
        font-size: 14px;
        color: #9f9f9f;
        font-weight: 500;
        padding-left: 1rem;
        margin-top: 2rem;
    }
    .breadCrumb .container {
        padding: 0.8rem 1.4rem;
    }
    .breadCrumb .container .link .item,
    .breadCrumb .container .separation {
        font-size: 1.2rem;
    }
    .card-grid {
        margin-top: 3rem;
        display: grid;
        grid-template-columns: 100%;
        justify-content: space-around;
        gap: 1rem;
        margin: 0 auto;
        
    }
    .card {
        max-width: 100%;
        width: 70%;
        overflow: hidden;
        height: 360px;
        margin: 0 auto;
    }
    .no-posts {
        text-align: center;
        font-size: 1.5rem;
        color: #999;
        height: 50px;
    }

    .image-container {
        position: relative;
        width: 100%;
        height: 123px;
    }

    .card-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 12px;
    }

    .card-content {
        padding: 5px;
        margin-top: 3rem;
    }

    .card-content .category {
        color: #6c006c;
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 5px;
    }

    .card-content h2 {
        margin: 0 0 8px 0;
        font-size: 20px;
        color: #111;
        display: block;
        font-weight: bold;
        line-height: 1.2;
    }

    .card-content .description {
        margin: 0 0 5px 0;
        color: #9f9f9f;
        font-size: 12px;
        line-height: 1.5;
        font-weight: 500;
    }

    .author-name {
        flex: 1;
        font-size: 10px;
        font-weight: 500;
        color: #9f9f9f;
    }

    .read-time {
        color: #9f9f9f;
        font-size: 10px;
    }

    .breadcrumb {
        display: none;
    }
    .header__main {
        display: none;
    }
    .content-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 10px;
    }

    .separator-wrapper {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        width: calc(100% - 6rem);
    }

    .separator-wrapper::before,
    .separator-wrapper::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #000;
    }

    .separator-wrapper .separator {
        height: 1.2px;
    }
    .separator-wrapper p {
        font-size: 23px;
        font-weight: 600;
        padding: 2rem;
    }

    .trigger-button {
        display: block;
        position: relative;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        border: 1.2px solid #000;
        border-radius: 20px;
        padding: 15px 20px;
        cursor: pointer;
        z-index: 1000;
        width: 75%;
    }

    .trigger-button.active {
        border-radius: 20px 20px 0 0;
        border-bottom: none;
    }

    .trigger-text {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 16px;
        font-weight: 400;
        color: #9f9f9f;
        white-space: nowrap;
    }

    .trigger-text::before {
        content: attr(data-section);
        font-weight: 600;
        color: #000;
    }

    .trigger-text::after {
        content: "";
        margin: 0 4px;
        color: #000000;
    }

    .accordion {
        display: block;
        position: relative;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        height: auto;
        max-height: 0;
        border: 1.2px solid #000;
        border-top: none;
        border-radius: 0 0 20px 20px;
        overflow: hidden;
        z-index: 999;
        transition: max-height 0.3s ease-out;
        opacity: 0;
        visibility: hidden;
    }

    .accordion::before {
        content: "";
        display: block;
        width: 90%;
        height: 1px;
        background-color: #000000;
        margin: 0 auto;
    }

    .accordion.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin: 0;
        margin-bottom: 3rem;
        width: 75%;
    }

    .accordion-section {
        border-bottom: none;
    }

    .accordion-content-inner a {
        padding: 8px 0px;
    }
    .accordion-section .arrow {
        display: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 0 !important;
    }

    .accordion-content-inner a:hover {
        color: #6c006c;
    }

    .accordion-content-inner a.active-category {
        background-color: #000;
        margin-left: -15px;
        padding: 8px 15px;
        color: #fff;
    }
    .accordion-content-inner a::after {
        display: none;
    }

    .pagination {
        display: flex;
        justify-content: center;
        font-size: 16px;
        width: 380px auto;
        margin: 0;
        margin-top: 2rem;
    }
    .pagination a {
        color: #000;
        text-decoration: none;
        padding: 6px 8px;
        margin: 0;
        border-radius: 4px;
    }
}

@media (min-width: 740px) and (max-width: 940px) {
    header .main-menu .main-nav .wrapper nav .nav-links li a {
        font-size: 1.3rem;
        font-weight: 600;
    }
    header .main-menu .main-nav .wrapper nav .nav-links {
        gap: 2.2rem;
    }
    main {
        margin-bottom: 2rem;
    }
    main article h1 {
        font-size: 35px;
        color: #000;
        font-weight: bold;
        padding-left: 1rem;
        margin-top: 1rem;
    }
    main article h2 {
        font-size: 15px;
        color: #9f9f9f;
        font-weight: 500;
        padding-left: 1rem;
        margin-top: 1rem;
    }
    .main-container {
        width: auto;
    }
    .content-container {
        display: grid;
        grid-template-columns: 45% 55%;
        max-width: 90%;
        margin: 0 auto;
        gap: 2rem;
    }

    .header__main {
        width: 90%;
    }
    /* cards-------------------------------- */
    .card-grid {
        display: grid;
        grid-template-columns: 100%;
        gap: 4rem;
        align-items: center;

        width: 350px;
    }

    .card {
        display: flex;
        flex-direction: column;
        max-width: 350px;
        width: 100%;
        height: auto;
    }

    .card-image {
        width: 350px;
        height: 130px;
        border-radius: 20px;
    }

    .card-content {
        padding: 5px;
        height: auto;
    }

    .card-content .category {
        margin-top: 5px;
        color: #6c006c;
        font-size: 16px;
        font-weight: 500;
    }

    .card-content h2 {
        margin: 0 0 8px 0;
        font-size: 23px;
        color: #111;
        display: block;
        font-weight: bold;
        line-height: 1.2;
    }

    .card-content .description {
        color: #9f9f9f;
        margin: 0 0 12px 0;
        font-size: 15px;
        line-height: 1.5;
        font-weight: 500;
    }

    .author-name {
        flex: 1;
        font-size: 15px;
        font-weight: 500;
        color: #9f9f9f;
    }

    .read-time {
        color: #9f9f9f;
        font-size: 15px;
    }

    /* accordion------------------------- */
    .accordion {
        width: 300px;
        height: 300px;
        margin: 5px;
        padding: 5px 15px;
    }

    /* ------------------ Pagination Section ------------------ */
    .pagination {
        grid-column: 2;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 2rem;
        font-size: 16px;
        margin-bottom: 2rem;
        margin-right: 0;
        margin-left: -3rem;
    }

    .pagination a {
        color: #000;
        text-decoration: none;

        margin: 0 4px;
        border-radius: 4px;
    }

    .pagination a.active {
        background-color: #fbdefb;
        color: #6c006c;
        padding: 4px 8px;
    }

    .pagination-arrow {
        font-weight: 500;
    }
    .newsletter {
        margin-top: 1rem;
    }
}
@media (min-width: 940px) and (max-width: 1140px) {
    header .main-menu .main-nav .wrapper nav .nav-links li a {
        font-size: 1.6rem;
        font-weight: 600;
    }
    main {
        margin-bottom: 2rem;
    }

    main article h1 {
        font-size: 35px;
        color: #000;
        font-weight: bold;
        padding-left: 1rem;
        margin-top: 1rem;
    }
    main article h2 {
        font-size: 15px;
        color: #9f9f9f;
        font-weight: 500;
        padding-left: 1rem;
        margin-top: 1rem;
    }
    .content-container {
        display: grid;
        grid-template-columns: 35% 65%;
        max-width: 90%;
        margin: 0 auto;
        gap: 2rem auto;
    }

    .content-container .card-grid {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 1rem;
    }

    .content-container .card {
        width: 100%;
    }
    .header__main {
        width: auto;
        /* cards-------------------------------- */
    }

    .card-grid {
        align-items: flex-start;
    }
    .card {
        display: flex;
        flex-direction: column;
        max-width: 260px;
        overflow: hidden;
        width: 220px;
        height: auto;
    }

    .card-image {
        width: 260px;
        height: 130px;
        border-radius: 20px;
    }

    .card-content {
        padding: 5px;
    }

    .card-content .category {
        margin-top: 5px;
        color: #6c006c;
        font-size: 14px;
        font-weight: 500;
    }

    .card-content h2 {
        margin: 0 0 8px 0;
        font-size: 20px;
        color: #111;
        display: block;
        font-weight: bold;
        line-height: 1.2;
    }

    .card-content .description {
        margin: 0 0 16px 0;
        color: #9f9f9f;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 500;
    }

    .author-name {
        flex: 1;
        font-size: 13px;
        font-weight: 500;
        color: #9f9f9f;
    }

    .read-time {
        color: #9f9f9f;
        font-size: 13px;
    }

    /* accordion------------------------- */
    .accordion {
        width: 280px;
        height: 280px;
        margin: 5px;
        padding: 5px 15px;
    }

    /* ------------------ Pagination Section ------------------ */
    .pagination {
        grid-column: 2;
        justify-content: flex-end;
        align-items: center;
        margin-top: 2rem;
        margin: 0;
        font-size: 1.8rem;
    }

    .pagination a {
        color: #000;
        text-decoration: none;
        padding: 8px 12px;
        margin: 0 4px;
        border-radius: 4px;
    }

    .pagination a.active {
        background-color: #fbdefb;
        color: #6c006c;
        padding: 4px 8px;
    }

    .pagination-arrow {
        font-weight: 500;
    }
}
@media (min-width: 1141px) {
    header {
        grid-template-columns: 0.3fr 1fr;
    }

    header .main-menu .main-nav .wrapper nav .nav-links li a {
        font-size: 1.6rem;
        font-weight: 600;
    }

    main {
        margin-top: 4rem;
        max-width: 1140px;
        padding: 0 2rem;
    }

    main article .hero {
        margin-top: 1rem;
        display: grid;
        justify-content: space-between;
        grid-template-columns: 100%;
    }

    main article .info {
        gap: 0.7rem;
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    main article h1 {
        font-size: 36px;
        color: #000;
        font-weight: bold;
        padding-left: 1rem;
    }
    main article h2 {
        font-size: 14px;
        color: #9f9f9f;
        font-weight: 500;
        padding-left: 1rem;
        margin-top: 1rem;
    }

    main article .hero .fig-tag {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    main article .hero .fig-tag .tags {
        align-self: flex-end;
        width: 48%;
        margin-top: -6rem;
    }

    main article .hero .fig-tag .tags .tag-wrapper {
        border: 1.4px solid var(--color-white);
        z-index: 1;
    }

    main article .hero .fig-tag .tags .tag-wrapper .tag {
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--color-white);
    }

    main article .hero .fig-tag figure {
        border-radius: 2rem;
        width: 100%;
    }

    main article .hero .fig-tag figure .article-image {
        width: 110%;
        height: 110%;
        margin-top: -1rem;
        object-fit: cover;
    }

    main article .hero .fig-tag figure .overlay {
        top: 78%;
        height: 6rem;
        justify-content: space-between;
    }

    main article .hero figure .overlay .author-wrapper {
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.4rem;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper .author {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper .author img {
        position: relative;
        border-radius: 50%;
        border: 3px solid var(--color-white);
        object-fit: cover;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper .separator {
        display: none;
    }

    main
        article
        .hero
        .fig-tag
        figure
        .overlay
        .author-wrapper
        .dots-separator {
        display: inline-block;
        transform: rotate(90deg);
        font-size: 2.2rem;
        font-weight: 200;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper time {
        margin-left: -1.4rem;
    }

    main article .hero .fig-tag figure .overlay .author-wrapper img {
        object-fit: cover;
        border-radius: 1.2rem;
    }

    .content-container {
        display: grid;
        grid-template-columns: 25% 70%;
        max-width: 1140px;
        margin: 0 auto;
        gap: 3%;
    }

    .content-container .card-grid {
        display: grid;
        grid-template-columns: 28% 28% 28%;
        align-items: flex-start;
        gap: 8%;
    }

    .content-container .card {
        display: flex;
        flex-direction: column;
        width: auto;
        height: fit-content;
    }
    .pagination {
        grid-column: 2;
        justify-content: flex-end;
        align-items: center;

        margin: 0;
        font-size: 1.8rem;

        padding: 3rem 0;
    }

    .newsletter {
        margin-top: 2rem;
    }

    .newsletter .wrapper {
        max-width: 1140px;
        padding: 0 4rem;
        justify-content: space-between;
    }

    .newsletter .wrapper form .input-container {
        width: 42rem;
    }

    footer .wrapper {
        max-width: 1024px;
        margin: 0 auto;
    }
}
