:root {
    --color-primary: #6f6af8;
    --color-primary-light: hsl(242, 91%, 69%, 18%);
    --color-primary-variant: #5854c7;
    --color-red: #da0f3f;
    --color-red-light: hsl(346, 87%, 46%, 15%);
    --color-green: #00c476;
    --color-green-light: hsl(156, 100%, 38%, 15%);
    --color-gray-900: #1e1e66;
    --color-gray-700: #2d2b7c;
    --color-gray-300: rgba(242, 242, 254, 0.3);
    --color-gray-200: rgba(242, 242, 254, 0.7);
    --color-white: #f2f2fe;
    --color-bg: #0f0f3e;

    --transition: all 300ms ease;

    --container-width-lg: 74%;
    --container-width-md: 88%;
    --form-width: 40%;

    --card-border-radius-1: 0.3rem;
    --card-border-radius-2: 0.5rem;
    --card-border-radius-3: 0.8rem;
    --card-border-radius-4: 2rem;
    --card-border-radius-5: 5rem;
}



/* =========== general ========== */

* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    appearance: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--color-gray-200);
    overflow-x: hidden;
    background: var(--color-bg);
    font-size: 0.9rem;
}

.container {
    width: var(--container-width-lg);
    max-width: 1800px;
    margin-inline: auto;
}

section {
    margin-top: 4rem;
    width: 100vw;
}

h1, h2, h3, h4, h5 {
    color: var(--color-white);
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin: 1rem 0;
}

h2 {
    font-size: 1.7rem;
    margin: 1rem 0;
}

h3 {
    font-size: 1.1rem;
    margin: 0.8rem 0 0.5rem;
}

h4 {
    font-size: 1rem;
}

a {
    color: var(--color-white);
    transition: var(--transition);
}

img {
    display: block;
    width: 100%;
    object-fit: cover;
}


/* ========= nav ========= */
nav {
    background: var(--color-primary);
    width: 100vw;
    height: 4.5rem;
    position: fixed;
    top: 0;
    z-index: 10;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
}

nav button {
    display: none;
}

.nav__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 0.3rem solid var(--color-bg);
}

.avatar img {
    height: 100%;
    object-fit: cover;
}

.nav__logo {
    font-weight: 600;
    font-size: 1.2rem;
}

.nav__items {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav__profile {
    position: relative;
    cursor: pointer;
}

.nav__profile ul {
    position: absolute;
    top: 140%;
    right: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

/* show nav ul when nav profile is hovered */
.nav__profile:hover > ul {
    visibility: visible;
    opacity: 1;
}

.nav__profile ul li a {
    padding: 1rem;
    background: var(--color-gray-900);
    display: block;
    width: 100%;
}

.nav__profile ul li:last-child a {
    background: var(--color-red);
    color: var(--color-bg);
}

/* ========== category button ========= */
.category__button {
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--card-border-radius-2);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
}

.category__button:hover {
    color: var(--white);
}

/* ========== Pagination ========== */
.pagination {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.pagination__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination a {
    display: inline-block;
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 0.6rem 1rem;
    border-radius: var(--card-border-radius-2);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--color-primary);
}

.pagination a.active {
    background: var(--color-primary);
    cursor: default;
}

.pagination span {
    color: var(--color-gray-300);
}

/* ========== general post ========== */
.post__thumbnail {
    border-radius: var(--card-border-radius-5);
    overflow: hidden;
    margin-bottom: 1.6rem;
    aspect-ratio: 1 / 1;
    width: 80%;
    margin-inline: auto;
}

.post__thumbnail img {
    height: 100%;
}

.post:hover .post__thumbnail img {
    filter: saturate(0);
    transition: filter 500 ease;
}

.post__author {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.post__author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--card-border-radius-3);
    overflow: hidden;
}

.post__author-avatar img {
    height: 100%;
    object-fit: cover;
}

/* ========= Global First Section Helper ========= */
.first-section {
    margin-top: 6rem !important;
}

/* ========= featured ======== */
.featured {
    margin-top: 6rem;
}

.featured__container {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 4rem;
    border: 2px solid var(--color-gray-700);
    padding: 2rem;
    border-radius: 2rem;
    background: var(--color-bg);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
    transition: var(--transition);
}

.featured__container:hover {
    border-color: var(--color-primary);
}

/* ========= popular posts ======== */
.popular__posts h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.featured .post__thumbnail {
    height: 100%;
    aspect-ratio: 1 / 1;
}

/* =========== posts =========== */
.posts__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin-bottom: 5rem;
}

.post {
    border: 1px solid var(--color-gray-700);
    padding: 1.5rem;
    border-radius: 1rem;
    background: transparent;
    transition: var(--transition);
}

.post:hover {
    background: var(--color-gray-900);
}

/* =========== category buttons =========== */
.category__buttons {
    padding: 4rem 0;
    border-top: 2px solid var(--color-gray-900);
    border-bottom: 2px solid var(--color-gray-900);
}

.category__buttons-container {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* =========== footer =========== */
footer {
    background: var(--color-gray-900);
    padding: 5rem 0 0;
    box-shadow: inset 0 1.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.footer__socials {
    margin-inline: auto;
    width: fit-content;
    margin-bottom: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.footer__socials a {
    background: var(--color-bg);
    border-radius: 50%;
    width: 2.3rem;
    height: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__socials a:hover {
    background: var(--color-white);
    color: var(--color-bg);
}


footer h4 {
    color: var(--color-white);
    margin-bottom: 0.6rem;
}

footer ul li {
    padding: 0.4rem 0;
}

footer ul a {
    opacity: 0.75;
}

footer ul a:hover {
    letter-spacing: 0.2rem;
    opacity: 1;
}

.footer__copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--color-bg);
    margin-top: 4rem;
    color: var(--color-white);
}

/* =========== search =========== */
.search__bar {
    margin-top: 5.5rem;
}

.search__bar-container {
    position: relative;
    width: 30rem;
    background: var(--color-gray-900);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    padding: 0.6rem 1rem;
    border-radius: var(--card-border-radius-2);
    color: var(--color-gray-300);
}

.search__bar-container > div {
    width: 100%;
    display: flex;
    align-items: center;
}

.search__bar input  {
    background: transparent;
    margin-left: 0.7rem;
    padding: 0.5rem 0;
    width: 100%;
}

.search__bar input::placeholder {
    color: var(--color-gray-300);
}

/* =========== button =========== */
.btn {
    display: inline-block;
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-primary);
    border-radius: var(--card-border-radius-2);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-white);
}

.btn.sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.btn.danger {
    background: var(--color-red);
}

.btn:hover {
    background: var(--color-white);
    color: var(--color-bg);
}



/* ========== Breadcrumbs ========== */
.breadcrumbs {
    margin-top: 5.5rem;
    padding: 1rem 0 0;
}

.breadcrumbs__container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--color-gray-300);
}

.breadcrumbs__container a {
    color: var(--color-primary);
    transition: var(--transition);
}

.breadcrumbs__container a:hover {
    color: var(--color-white);
}

.breadcrumbs__container i {
    font-size: 0.7rem;
}

.breadcrumbs__container span {
    color: var(--color-gray-200);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}



/* =========== single post =========== */
.singlepost {
    margin: 6rem 0 2rem;
}

.singlepost__container {
    width: var(--form-width); /* burda post.html sayfa genişliği */
    background: var(--color-gray-900);
    padding: 1rem 2rem 3rem;
}

.singlepost__thumbnail {
    margin: 1.5rem 0 1rem;
}

.singlepost__container p {
    margin-top: 1rem;
    line-height: 1.7;
}

/* =========== category post =========== */
.category__title {
    height: 15rem;
    margin-top: 4.5rem;
    background: var(--color-gray-900);
    display: grid;
    place-items: center;
}

/* =========== progress bar =========== */
.reading-progress-container {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 100;
}

.reading-progress-bar {
    height: 100%;
    background: var(--color-green);
    width: 0%;
    transition: width 0.1s ease;
}



/* =========== Live Search =========== */
.search__results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-gray-900);
    border: 1px solid var(--color-gray-700);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.search__result-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    gap: 1.2rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--color-gray-700);
}

.search__result-item:last-child {
    border-bottom: none;
}

.search__result-item:hover {
    background: var(--color-gray-700);
}

.search__result-thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.3rem;
    overflow: hidden;
    flex-shrink: 0;
}

.search__result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search__result-title {
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 500;
}

/* =========== related posts =========== */
.relatedposts {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--color-gray-700);
}

.relatedposts h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.relatedposts__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.8fr;
    gap: 3rem;
}

.relatedposts .post__thumbnail {
    width: 100%;
}



/* =========== social share =========== */
.post__share {
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.post__share h4 {
    color: var(--color-gray-200);
}

.share__buttons {
    display: flex;
    gap: 0.8rem;
}

.share__buttons a {
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    background: var(--color-gray-700);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition);
}

.share__buttons a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.share__buttons a.wa:hover { background: #25D366; }
.share__buttons a.x:hover { background: #000000; }
.share__buttons a.li:hover { background: #0077b5; }



/* =========== empty page =========== */
.empty__page {
    height: 35vh;
    display: grid;
    place-content: center;
}

/* =========== general form =========== */
.form__section {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 6rem 0;
}

.form__section-container {
    width: var(--form-width);
}

.form__section-container.wide {
    width: 80%;
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media screen and (max-width: 1024px) {
    .form__section-container.wide {
        width: var(--container-width-md);
    }
}

@media screen and (max-width: 600px) {
    .form__section-container.wide {
        width: var(--container-width-md);
    }
    .form__grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-white);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1.4rem;
    background-color: var(--color-gray-900);
    border-radius: var(--card-border-radius-2);
    color: var(--color-white);
    resize: none;
    border: 1px solid transparent;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media screen and (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.alert__message {
    padding: 0.8rem 1.4rem;
    margin-bottom: 1rem;
    border-radius: var(--card-border-radius-2);
}

.alert__message.error {
    background: var(--color-red-light);
    color: var(--color-red);
}

.alert__message.success {
    background: var(--color-green-light);
    color: var(--color-green);
}

.alert__message.lg {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form__control {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form__control.inline {
    flex-direction: row;
    align-items: center;
}

input, textarea, select {
    padding: 0.8rem 1.4rem;
    background-color: var(--color-gray-900);
    border-radius: var(--card-border-radius-2);
    resize: none;
    color: var(--color-white);
}

.form__section small {
    margin-top: 1rem;
    display: block;
}

.form__section small a {
    color: var(--color-primary);
}

/* =========== dashboard =========== */
.dashboard {
    margin-top: 6rem;
}

.sidebar__toggle {
    display: none;
}

.dashboard__container {
    display: grid;
    grid-template-columns: 14rem auto;
    gap: 1rem;
    background: var(--color-gray-900);
    padding: 2rem;
    margin-bottom: 5rem;
}

.dashboard aside a {
    background-color: var(--color-primary);
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.6rem;
}

.dashboard aside ul li:not(:last-child) a {
    border-bottom: 1px solid var(--color-gray-900);
}

.dashboard aside a:hover {
    background: var(--color-gray-700);
}

.dashboard aside a.active {
    background-color: var(--color-gray-900);
}

.dashboard main {
    margin-left: 1.5rem;
    min-width: 0;
    overflow-x: hidden;
}

.dashboard main h2 {
    margin: 0 0 2rem 0;
    line-height: 1;
}

.dashboard main table {
    width: 100%;
    text-align: left;
}

.dashboard main table th {
    background: var(--color-gray-700);
    padding: 0.8rem;
    color: var(--color-gray-200);
}

.dashboard main table td {
    padding: 0.8rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.dashboard main table tr:hover td {
    background-color: var(--color-bg);
    color: var(--color-white);
    cursor: default;
    transition: var(--transition);
}


/* =========== media queries (tablet) =========== */
@media screen and (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 0.8rem;
    }

    /* =========== nav =========== */
    nav button {
        display: inline-block;
        font-size: 1.5rem;
        background: transparent;
        color: var(--color-white);
        cursor: pointer;
    }

    nav button#close__nav-btn {
        display: none;
    }

    .nav__container {
        position: relative;
    }

    .nav__items {
        position: absolute;
        flex-direction: column;
        top: 100%;
        right: 0;
        width: 12rem;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        display: none;
    }

    .nav__items li {
        width: 100%;
        height: 4.5rem;
        display: flex;
        align-items: center;
        box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0,7);
        border-top: 1px solid var(--color-bg);
        animation: animateDropdown 400ms 0s ease forwards;
        opacity: 0;
        transform-origin: top;
    }

    .nav__items li:nth-child(2) {
        animation-delay: 200ms;
    }

    .nav__items li:nth-child(3) {
        animation-delay: 400ms;
    }

    .nav__items li:nth-child(4) {
        animation-delay: 600ms;
    }

    .nav__items li:nth-child(5) {
        animation-delay: 800ms;
    }

    /* nav dropdown animation */
    @keyframes animateDropdown {
        0% {
            transform: rotateX(90deg);
        }
        100% {
            transform: rotateX(0deg);
            opacity: 1;
        }
    }

    /* nav mobile polish */
    .nav__items {
        width: 14rem;
        box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0.5);
    }

    .nav__items li a {
        background: var(--color-gray-900);
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 1.5rem;
        font-size: 1rem;
        border-radius: 0;
    }

    /* table buttons mobile */
    .dashboard main table td .btn.sm {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        display: inline-block;
        margin: 0.2rem 0;
    }

    .dashboard main table td {
        min-width: 80px;
    }

    .nav__profile {
        background: var(--color-gray-900);
    }

    .nav__profile ul {
        top: 100%;
        width: 100%;
    }

    .nav__profile .avatar {
        margin-left: 2rem;
        border: 0;
    }

    .featured__container {
        gap: 3rem;
    }

    .posts__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .newsletter__container {
        flex-direction: column;
        text-align: center;
    }

    .newsletter__form input {
        min-width: 100%;
    }

    .dashboard__stats > div {
        grid-template-columns: 1fr !important;
    }

    .relatedposts__container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* =========== blog =========== */
    .search__bar-container {
        width: 60%;
    }

    /* =========== general form =========== */
    .form__section-container {
        padding: 3rem;
    }


    /* =========== dashboard =========== */
    .dashboard__container {
        grid-template-columns: 4.3rem auto;
        padding: 0;
        background: transparent;
    }

    .dashboard aside h5 {
        display: none;
    }

    .dashboard main table thead {
        display: none;
    }

    .dashboard main table tr {
        display: flex;
        flex-direction: column;
    }

    .dashboard main table tr:nth-child(even) {
        background: var(--color-gray-900);
    }

    .dashboard main table tr:hover td {
        background: transparent;

    }
}


/* =========== media queries (phone) =========== */
@media screen and (max-width: 600px) {
    .pagination__container {
        gap: 0.5rem;
    }
    .pagination a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    section {
        margin-top: 2rem;
    }

    h1 {
        font-size: 2rem;
    }
    
    .featured {
        margin-top: 6rem;
    }

    .featured__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .posts__container {
        grid-template-columns: 1fr;
    }

    .category__buttons-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    /* Comments Mobile Polish */
    .comment-wrapper {
        margin-left: 0.6rem !important;
        padding-left: 0.6rem !important;
        border-left-width: 1px !important;
        border-left-color: var(--color-gray-700) !important;
    }

    .comment {
        padding: 0.4rem 0 !important;
    }

    .comment__info h5 {
        font-size: 0.85rem !important;
    }

    .comment__info p {
        font-size: 0.9rem !important;
    }

    /* Form Section Polish */
    .form__section {
        padding: 1rem 0;
    }

    .form__section-container {
        padding: 1.5rem !important;
        border-radius: 1rem !important;
    }

    input, textarea, select {
        padding: 1rem !important; /* Larger touch target */
        font-size: 1rem !important;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        width: 100%; /* Full width buttons on mobile */
        justify-content: center;
    }

    /* Single Post Polish */
    .singlepost__container {
        background-color: transparent;
        padding: 0;
    }

    /* Search Bar Mobile Polish */
    .search__bar-container {
        width: 100% !important;
        grid-template-columns: 1fr auto !important; /* Input takes space, button is auto */
        gap: 0.5rem;
    }

    .search__bar-container input {
        width: 100%;
        padding: 0.6rem 1rem !important;
    }

    .search__bar-container .btn {
        width: auto !important; /* Prevent full width */
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem;
        margin: 0;
    }

    /* =========== general form =========== */
    .form__section-container, .form__section-container.wide {
        width: var(--container-width-md);
        padding: 0;
    }

    /* =========== dashboard =========== */
    .dashboard {
        margin-top: 5rem;
    }

    .dashboard__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dashboard main {
        margin: 0;
    }

    .dashboard main h2 {
        margin-top: 1rem;
    }

    .dashboard aside {
        position: fixed;
        top: 4.5rem;
        bottom: 0;
        height: auto;
        z-index: 5;
        box-shadow: 2rem 0 4rem rgba(0, 0, 0, 0,4);
        left: -100%;
        overflow-y: auto;
        padding-bottom: 2rem;
        transition: var(--transition);
        background: var(--color-primary);
    }

    .dashboard .sidebar__toggle {
        display: inline-block;
        background: var(--color-primary-variant);
        color: var(--color-white);
        position: fixed;
        right: 0;
        bottom: 4rem;
        z-index: 1;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50% 0 0 50%;
        font-size: 1.3rem;
        cursor: pointer;
        box-shadow: -1rem 0 2rem rgba(0, 0, 0, 0,4);
    }

    .dashboard aside a h5 {
        display: inline-block;
    }

    #hide__sidebar-btn {
        display: none;
    }
}

/* =========== comment form styles =========== */
.comment__form-textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 0.8rem;
    background: var(--color-gray-900);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 300; /* Thin text when typing */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.comment__form-textarea::placeholder {
    font-weight: 600; /* Bolder placeholder */
    color: var(--color-gray-300);
}

.footer__newsletter {
    background: var(--color-gray-900);
    padding: 1.5rem;
    border-radius: var(--card-border-radius-3);
    border: 1px solid var(--color-gray-700);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.footer__newsletter h4 {
    margin-bottom: 0.6rem;
    color: var(--color-primary);
}

.footer__newsletter p {
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* =========== newsletter footer =========== */
.footer__newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__newsletter input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--color-bg);
    border-radius: var(--card-border-radius-2);
    color: var(--color-white);
    border: 1px solid var(--color-gray-700);
}

.footer__newsletter .btn {
    width: 100%;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
}