.logo-wrap {
    position: relative;
    width: 50px;     
    height: 100%;
    flex-shrink: 0; 
   
}

.logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-wrap a {
    pointer-events: auto;
}


@media screen and (max-width: 991px) {
    .logo-wrap {
        width: auto;
        height: auto;
    }

    .logo {
        position: static;
        transform: none;
        height: 38px;
        width: auto;
    }
}
/*=============== 
Fonts
===============
*/
@font-face {
    font-family: "vazir";
    src: url("../fonts/vazir/Vazir-Medium-FD-WOL.846e26e842bf.woff") format("woff2"),
        url("../fonts/vazir/Vazir-Medium-FD-WOL.846e26e842bf.woff") format("woff"),
        url("../fonts/vazir/Vazir-Medium-FD-WOL.5340bb6f45ae.ttf") format("truetype");
}
/*

/*
=============== 
Variables
===============
*/

:root {
    --clr-primary-1: #5a189a;
    --clr-primary-2: #7b2cbf;
    --clr-primary-3: #9d4edd;
    --clr-grey-1: #244e76;
    --clr-grey-2: #617d98;
    --clr-grey-3: #9eb2c7;
    --clr-grey-4: #f1f5f8;
    --clr-white: #fff;
    --clr-footer:  #1d1b1b;
    --ff-primary: "vazir", sans-serif;
    --transition: all 0.3s linear;
    --light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/*
=============== 
Global Styles
===============
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--ff-primary);
    background: var(--clr-white);
    color: var(--clr-grey-1);
    line-height: 1.5;
    font-size: 0.875rem;
}
ul {
    list-style-type: none;
}
a {
    text-decoration: none;
}
img {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}
h4 {
    font-size: 0.875rem;
}
p {
    margin-bottom: 1.25rem;
    color: var(--clr-grey-2);
}
@media screen and (min-width: 800px) {
    h2 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    h4 {
        font-size: 1rem;
    }
    body {
        font-size: 1rem;
    }
    h1,
    h2,
    h3,
    h4 {
        line-height: 1.25;
    }
}

.btn {
    background: var(--clr-primary-2);
    color: var(--clr-white);
    padding: 0.375rem 0.75rem;
    display: inline-block;
    transition: var(--transition);
    font-size: 0.875rem;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    color: var(--clr-primary-1);
    background: var(--clr-primary-3);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title span {
    color: var(--clr-primary-2);
}

.section-center {
    width: 90vw;
    margin: 0 auto;
}

@media screen and (min-width: 992px) {
    .section-center {
        width: 95vw;
        max-width: 1170px;
    }
}

/*
===============
Navbar
===============
*/

/*
===============
Navbar - پایه مشترک
===============
*/

.navbar {
    position: static;
    background: #f3f3f3;
    width: 100%;
    box-shadow: var(--dark-shadow);
    z-index: 2;
}

.navbar-center {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 78px;
    flex-shrink: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
}



.nav-toggle {
    background: transparent;
    border: transparent;
    color: var(--clr-primary-2);
    cursor: pointer;
    font-size: 1.8rem;
    margin-right: 10rem;
    transition: var(--transition);
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-desktop {
    display: none;
}

@media screen and (min-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .nav-desktop {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 1.5rem;
        flex: 1;
        position: relative;
    }

    .nav-links-desktop {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links-desktop .nav-link {
        padding: 0;
        font-size: 1rem;
        color: var(--clr-grey-1);
        transition: var(--transition);
        white-space: nowrap;
    }

    .nav-links-desktop .nav-link:hover {
        color: var(--clr-primary-2);
        background: transparent;
    }

    .nav-icons {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-icon {
        color: var(--clr-primary-2);
        font-size: 1.15rem;
        transition: var(--transition);
    }

    .nav-icon:hover {
        color: var(--clr-primary-3);
    }

    .nav-divider {
        width: 1.5px;
        height: 26px;
        background: linear-gradient(to bottom, transparent, var(--clr-primary-2), transparent);
    }
}
/*
===============
Overlay 
===============
*/

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 2, 43, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/*
===============
پنل کشویی موبایل 
===============
*/

.nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    max-width: 82vw;
    background: var(--clr-white);
    box-shadow: -12px 0 35px rgba(90, 24, 154, 0.18);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-panel.show-panel {
    transform: translateX(0);
}

.nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--clr-grey-4);
}

.nav-panel-logo {
    height: 38px;
    width: auto;
}

.nav-close {
    background: var(--clr-grey-4);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--clr-grey-1);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-close:hover {
    background: var(--clr-primary-2);
    color: var(--clr-white);
}

.nav-panel-links {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.nav-panel-links .nav-link {
    display: block;
    padding: 0.9rem 0.5rem;
    font-size: 1.05rem;
    color: var(--clr-grey-1);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-panel-links .nav-link:hover {
    background: var(--clr-grey-4);
    color: var(--clr-primary-2);
    padding-right: 0.9rem;
}

.nav-panel-icons {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0 0.5rem;
}

.nav-panel-icons a {
    color: var(--clr-primary-2);
    font-size: 1.3rem;
    transition: var(--transition);
}

.nav-panel-icons a:hover {
    color: var(--clr-primary-3);
}

.nav-divider-horizontal {
    height: 1px;
    background: linear-gradient(to left, transparent, var(--clr-primary-2), transparent);
    margin: 0.5rem 0 1.5rem;
}



.nav-panel-auth a {
    display: block;
    text-align: center;
    background: var(--clr-primary-2);
    color: var(--clr-white);
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-panel-auth a:hover {
    background: var(--clr-primary-1);
}

@media screen and (min-width: 992px) {
    .nav-overlay,
    .nav-panel {
        display: none;
    }
}
/*
=============== 
Hero
===============
*/
.hero {
    min-height: 100vh;
    background-color: var(--clr-primary-2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-banner {
    padding: 0 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: hero-fade-in 1s ease-out;
}

.hero-banner .hero-tagline {
    display: inline-block;
    color: #e8d5ff;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.hero-banner .hero-tagline::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 2px;
    background: #e8d5ff;
}

.hero-banner h1 {
    color: var(--clr-white);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    margin-bottom: 1.5rem;
}

.hero-banner p {
    max-width: 35rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.9;
    font-weight: 300;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    padding: 0.75rem 2.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    background: transparent;
    color: var(--clr-white);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transition: var(--transition);
}

.btn-hero:hover {
    background: var(--clr-white);
    color: var(--clr-primary-1);
    border-color: var(--clr-white);
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (min-width: 400px) {
    .hero {
        background: linear-gradient(180deg, rgba(20, 0, 40, 0.35) 0%, rgba(10, 0, 25, 0.65) 100%),
            url("../images/headerpic.e66c4a609106.png") center/cover no-repeat;
    }

    .hero-banner {
        padding: 0;
    }

    .hero-banner h1 {
        font-size: 3rem;
    }

    .hero-banner p {
        max-width: 45rem;
        font-size: 1.15rem;
    }
}
/*
=============== 
about-main-page
===============
*/

.about-img {
    margin-bottom: 2rem;
}

@media screen and (min-width: 992px) {
    .about-center {
        display: flex;
        justify-content: space-between;
    }

    .about-img {
        margin-bottom: 0;
    }

    .about-img,
    .about-info {
        flex: 0 0 calc(50% - 2rem);
        align-self: center;
    }
}

@media screen and (min-width: 170px) {
    .about-img {
        position: relative;
    }

    .about-img::before {
        content: "";
        border: 0.5rem solid var(--clr-primary-2);
        width: 100%;
        height: 100%;
        position: absolute;
        box-sizing: border-box;
        top: -1rem;
        right: -1rem;
        z-index: -1;
    }
    

}
#about .service {
    margin-bottom: 1rem;
}    
#about p {
    max-width: 55rem;
   
}
.about-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.about-icon {
    width: 18px;
    height: 18px;
    fill: gold ;
    flex-shrink: 0;
}

.about-heading h4 {
    margin-bottom: 0;
}
/*
=============== 
Services
===============
*/

.services {
    background: #f7f7f7;
}

.service {
    text-align: center;
    margin-bottom: 3rem;
}

.service-icon {
    background: var(--clr-primary-2);
    color: var(--clr-white);
    font-size: 2rem;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-text {
    max-width: 20rem;
    margin: 0 auto;
}

@media screen and (min-width: 576px) {
    .services-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .service {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media screen and (min-width: 992px) {
    .service {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media screen and (min-width: 1170px) {
    .service {
        display: flex;
        text-align: right;
    }

    .service-info {
        padding-right: 0.75rem;
    }

    .service-icon {
        align-self: start;
    }

    .service-title {
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}


#service .service {
    margin-bottom: 1rem;
    }
#service p {
    max-width: 55rem;
    }

.services-center {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-center .service {
    flex: 0 0 calc(50% - 1rem);
    background: var(--clr-white);
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: var(--light-shadow);
    transition: var(--transition);
}

.services-center .service:hover {
    box-shadow: var(--dark-shadow);
    transform: translateY(-3px);
}

.services-center .service-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.75rem;
    background-color: #9d4edd;
    
}

@media screen and (max-width: 700px) {
    .services-center .service {
        flex: 0 0 100%;
    }
}
.check-icon {
    color: #7b2cbf;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.service-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.square-marker {
    width: 10px;
    height: 10px;
    background-color: var(--clr-primary-2);
    flex-shrink: 0;
    display: inline-block;
}

/*
=============== 
Articles
===============
*/

.article-card {
    background: var(--clr-grey-4);
    margin-bottom: 2rem;
    box-shadow: var(--light-shadow);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--dark-shadow);
    transform: scale(1.02);
}

.article-img-container {
    position: relative;
}

.article-img {
    height: 15rem;
    object-fit: cover;
}

.article-category {
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--clr-primary-3);
    color: var(--clr-white);
    padding: 0.25rem 0.5rem;
    margin-bottom: 0;
}

.article-info {
    padding: 1.25rem 1.5rem;
}

.article-title {
    display: flex;
    justify-content: space-between;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer p {
    margin-bottom: 0;
    color: var(--clr-primary-2);
}

.article-footer a {
    color: var(--clr-primary-2);
}

.article-btn {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .articles-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .article-card {
        flex: 0 0 calc(50% - 2rem);
    }
}

@media screen and (min-width: 1170px) {
    .article-card {
        flex: 0 0 calc(33.333% - 2rem);
    }
}
.article-img-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--clr-grey-4);
}

.article-img-container .article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/*
=============== 
post_detail
===============
*/
.post-detail-img-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 12px;
    background: var(--clr-grey-4);
}

.post-detail-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/*
=============== 
Footer
===============
*/
.cs_footer {
    background: var(--clr-footer);
    padding: 3.5rem 2rem 1.5rem;
}

.cs_footer_top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1170px;
    margin: 0 auto 2rem;
}

.cs_footer_col {
    flex: 1 1 220px;
}

.cs_footer_brand {
    flex: 1 1 260px;
}

.cs_footer_logo {
    height: 70px;
    width: auto;
    display: block;
    margin-bottom: 0.75rem;
}

.cs_footer_tagline {
    color:#a99fc4;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cs_footer_title {
    color: var(--clr-white);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.cs_footer_links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs_footer_links li {
    margin-bottom: 0.75rem;
}

.cs_footer_links a {
    color:#c3bcd6;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cs_footer_links a:hover {
    color: var(--clr-primary-3);
}

.cs_footer_contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs_footer_contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: #c3bcd6;
    font-size: 0.88rem;
    line-height: 1.7;
}

.cs_footer_contact i {
    color: var(--clr-primary-3);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.cs_footer_contact a {
    color:  #c3bcd6;
    transition: var(--transition);
}

.cs_footer_contact a:hover {
    color: var(--clr-primary-3);
}

.cs_footer_social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 1170px;
    margin: 0 auto 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cs_footer_social .footer-icon {
    color: var(--clr-primary-3);
    font-size: 1.3rem;
    transition: var(--transition);
}

.cs_footer_social .footer-icon:hover {
    color: var(--clr-white);
}

.cs_footer_bottom {
    text-align: center;
}

.cs_footer_bottom .copyright {
    color:#8f88a3;
    font-size: 0.82rem;
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .cs_footer_top {
        flex-direction: column;
        gap: 1.75rem;
    }
}

/*
===============
Auth (Login/Register)
===============
*/

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    background: linear-gradient(160deg, var(--clr-grey-4) 0%, #ede4f7 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--clr-white);
    border-radius: 14px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 20px 45px rgba(90, 24, 154, 0.14);
    border-top: 4px solid var(--clr-primary-2);
    text-align: center;
}

.auth-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary-2), var(--clr-primary-1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-white);
    font-size: 1.4rem;
    font-weight: 700;
}

.auth-tagline {
    color: var(--clr-primary-2);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.auth-card h2 {
    font-size: 1.4rem;
    color: var(--clr-grey-1);
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--clr-grey-2);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: right;
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-grey-1);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--ff-primary);
    font-size: 0.9rem;
    color: var(--clr-grey-1);
    background: var(--clr-grey-4);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--clr-primary-2);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.12);
}

.form-group .field-error {
    color: #d64545;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    background: var(--clr-primary-2);
    color: var(--clr-white);
    border: none;
    border-radius: 8px;
    font-family: var(--ff-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-auth:hover {
    background: var(--clr-primary-1);
}

.auth-switch {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--clr-grey-2);
}

.auth-switch a {
    color: var(--clr-primary-2);
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--clr-primary-1);
}

.auth-error-box {
    background: #fdeaea;
    color: #b02a2a;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    text-align: right;
}

/*
===============
Auth (Login/Register)
===============
*/


/* CSS */
.auth-btn-wrap .button-24 {
    background: #4278ff;
    border: 1px solid #0f13f8;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 2px 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    font-family: var(--ff-primary);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-btn-wrap .button-24:hover {
    background-color: #ffffff;
    color: #0004ff;
}

.auth-btn-wrap .button-24:active {
    opacity: 0.5;
}
/* ===========================================
   بخش اخبار
=========================================== */

.news-section {
    padding: 64px 0;
    background: #ecebeb;
}

.news-section .section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.news-section .section-heading h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    color: #1e1e2f;
}

/* ---------- گرید کارت‌ها ---------- */

.news-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-auto-rows: minmax(162px, 1fr);
    gap: 14px;
}

.news-grid .news-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}
.news-grid .news-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.news-grid .news-card:nth-child(3) { grid-column: 3; grid-row: 1; }
.news-grid .news-card:nth-child(4) { grid-column: 2; grid-row: 2; }
.news-grid .news-card:nth-child(5) { grid-column: 3; grid-row: 2; }

/* ---------- خود کارت ---------- */

.news-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 190px;
    isolation: isolate;
    text-decoration: none;
    
   
}

.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.5s ease;
    z-index: -2;
}

.news-card:hover::after {
    transform: scale(1.06);
}

.news-card__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgba(56, 55, 55, 0.92) 0%,
        rgba(62, 61, 61, 0.45) 45%,
        rgba(21, 21, 21, 0) 75%
    );
}

/* برچسب دسته‌بندی — با موتیف مربع بنفش هماهنگ با بقیه‌ی سایت */

.news-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(20, 6, 36, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.news-card__tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: #9d4edd;
    display: inline-block;
    transform: rotate(45deg);
}

/* عنوان و تاریخ روی کارت */

.news-card__content {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
}

.news-card__title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 6px;
}

.news-grid .news-card:nth-child(1) .news-card__title {
    font-size: 1.35rem;
}

.news-card__date {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
}

.news-more {
    margin-top: 28px;
    text-align: center;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 40px 0;
}

/* ---------- صفحه‌ی جزئیات خبر ---------- */

.narrow-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail {
    padding: 56px 0 80px;
}

.news-detail__meta-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.news-card__tag--static {
    position: static;
}

.news-detail__date {
    color: #888;
    font-size: 0.85rem;
}

.news-detail__title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1e1e2f;
    margin: 0 0 16px;
}

.news-detail__excerpt {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 26px;
}

.news-detail__body {
    font-size: 1rem;
    line-height: 2;
    color: #333;
}

.news-detail__back {
    margin-top: 40px;
}

/* ---------- ریسپانسیو ---------- */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .news-grid .news-card:nth-child(1) {
        grid-column: 1 / span 2;
        grid-row: 1;
        min-height: 280px;
    }
    .news-grid .news-card:nth-child(2) { grid-column: 1; grid-row: 2; }
    .news-grid .news-card:nth-child(3) { grid-column: 2; grid-row: 2; }
    .news-grid .news-card:nth-child(4) { grid-column: 1; grid-row: 3; }
    .news-grid .news-card:nth-child(5) { grid-column: 2; grid-row: 3; }
}

@media (max-width: 560px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-grid .news-card:nth-child(1),
    .news-grid .news-card:nth-child(2),
    .news-grid .news-card:nth-child(3),
    .news-grid .news-card:nth-child(4),
    .news-grid .news-card:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
        min-height: 220px;
    }
}
/* =========================
   All News Page
========================= */

.all-news-section {
    padding: 80px 0;
}

.all-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.all-news-card {
    position: relative;
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    isolation: isolate;
}

.all-news-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.08)
    );
    z-index: -1;
}

.all-news-card__tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.all-news-card__tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9d4edd;
}

.all-news-card__content {
    margin-top: auto;
}

.all-news-card__title {
    color: #fff;
    font-size: 21px;
    line-height: 1.7;
    margin: 0 0 12px;
    font-weight: 700;
}

.all-news-card__date {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.all-news-section .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.all-news-section .section-heading h2 {
    margin: 0;
    white-space: nowrap;
}
/* Pagination */

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 45px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid #9d4edd;
    border-radius: 10px;
    color: #9d4edd;
    text-decoration: none;
    transition: 0.2s;
}

.pagination-btn:hover {
    background: #9d4edd;
    color: #fff;
}

.pagination-current {
    color: #555;
    font-size: 14px;
}

/* Tablet */

@media (max-width: 900px) {
    .all-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */

@media (max-width: 600px) {
    .all-news-section {
        padding: 50px 0;
    }

    .all-news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .all-news-card {
        min-height: 320px;
    }
}



/*settings in profile*/

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;  
}

.logout-form {
    margin: 0;
}

.profile-action-link {
    color: var(--clr-primary-2);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.profile-action-link:hover {
    color: var(--clr-primary-1);
    text-decoration: underline;
}

.logout-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--ff-primary);
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    direction: ltr;
}

.pagination-number,
.pagination-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-number {
    color: #5a189a;
    background-color: #f5effb;
}

.pagination-number:hover {
    background-color: #9d4edd;
    color: #ffffff;
}


.pagination-number.active {
    background-color: #7b2cbf;
    color: #ffffff;
}


.pagination-arrow {
    color: #5a189a;
    background-color: #f5effb;
    font-size: 18px;
}

.pagination-arrow:hover {
    background-color: #7b2cbf;
    color: #ffffff;
}