﻿
/* ========================================
   home- Hero
======================================== */

.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 35%, rgba(127, 190, 255, 0.28), transparent 34%),
        linear-gradient(to left, #092554, #174783 60%, #2564ae);
}

.hero::before {
    content: "";
    position: absolute;
    left: 5%;
    top: 50%;
    width: min(38vw, 520px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: url("/images/logo.png") center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.1;
    pointer-events: none;
}

.hero > .container {
    position: relative;
}

.hero-content {
    max-width: 700px;
    color: #fff;
}

.hero-label {
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.hero h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.45;
}

.hero p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    color: #123f79;
    background: #fff;
}

.hero-actions .btn-primary:hover {
    color: #123f79;
    background: #eaf3ff;
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-actions .btn-outline:hover {
    color: #123f79;
    background: #fff;
}

/* ========================================
   Home - Quick Links
======================================== */

.quick-links {
    background: var(--background);
}

.quick-link-card {
    display: block;
    padding: 30px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
}

    .quick-link-card:hover {
        transform: translateY(-6px);
        border-color: rgba(33, 86, 216, 0.2);
        box-shadow: var(--shadow-md);
    }

.quick-link-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(33, 86, 216, 0.08);
    font-size: 24px;
}

.quick-link-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   Home - About Preview
======================================== */

.about-preview {
    background: var(--background-soft);
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 38px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 15px;
}

.about-content .text-link {
    display: inline-block;
    margin-top: 15px;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

    .about-image img {
        width: 100%;
        min-height: 380px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .about-image:hover img {
        transform: scale(1.04);
    }

/* Home - Request guide */
.request-guide {
    padding-block: 64px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.home-page .news-section {
    background: var(--background-soft);
}

.request-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.request-step {
    min-width: 0;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.request-step-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(33, 86, 216, .08);
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

.request-step h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.request-step p {
    color: var(--text-light);
    font-size: 14px;
}

.request-guide-actions {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 768px) {
    .request-guide {
        padding-block: 48px;
    }

    .request-guide-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Home - Statistics
======================================== */

.statistics-section {
    background: var(--background-soft);
}

.stat-card {
    padding: 35px 20px;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-number {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
}

.stat-title {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   Home - Publications
======================================== */

.publications-section {
    background: #fff;
}

.publication-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    transition: 0.25s ease;
}

    .publication-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.publication-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3f3f3;
}

    .publication-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.publication-content {
    padding: 18px;
}

    .publication-content h3 {
        margin-bottom: 5px;
        font-size: 17px;
    }

    .publication-content span {
        color: var(--text-light);
        font-size: 13px;
    }


/* ========================================
   Home - Registration CTA
======================================== */

.registration-cta {
    background: var(--primary);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
}

    .cta-content .section-label {
        color: var(--secondary);
    }

    .cta-content h2 {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .cta-content p {
        max-width: 700px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 15px;
    }

    .cta-content .btn-primary {
        color: var(--primary);
        background: #fff;
    }

        .cta-content .btn-primary:hover {
            color: #fff;
            background: var(--primary-dark);
        }

/* ========================================
   About Page
======================================== */

.page-hero {
    padding: 100px 0;
    background: linear-gradient( 135deg, rgba(33, 86, 216, 0.96), rgba(23, 67, 173, 0.96) );
    color: #fff;
}

.page-hero-content {
    max-width: 700px;
}

.page-hero-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.page-hero h1 {
    margin-bottom: 15px;
    font-size: clamp(36px, 5vw, 52px);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
}

.about-introduction {
    background: #fff;
}

.about-introduction-content h2 {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 38px;
}

.about-introduction-content p {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 15px;
}

.about-introduction-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

    .about-introduction-image img {
        width: 100%;
        min-height: 400px;
        object-fit: cover;
    }

.mission-section {
    background: var(--background-soft);
}

.mission-card {
    padding: 35px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: 0.25s ease;
}

    .mission-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.mission-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.mission-card h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.mission-card p {
    color: var(--text-light);
    font-size: 14px;
}

.values-section {
    background: #fff;
}

.values-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

    .values-image img {
        width: 100%;
        min-height: 460px;
        object-fit: cover;
    }

.values-content h2 {
    margin-bottom: 30px;
    color: var(--text);
    font-size: 36px;
}

.value-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
}

.value-number {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--primary);
    background: rgba(33, 86, 216, 0.08);
    font-size: 13px;
    font-weight: 700;
}

.value-item h3 {
    margin-bottom: 5px;
    font-size: 17px;
}

.value-item p {
    color: var(--text-light);
    font-size: 14px;
}

.about-statistics {
    background: var(--background-soft);
}

.contact-section {
    background: #fff;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    padding: 50px;
    border-radius: var(--radius-lg);
    background: var(--background-soft);
    border: 1px solid var(--border);
}

.contact-content h2 {
    margin-bottom: 15px;
    font-size: 34px;
}

.contact-content p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-items {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-size: 18px;
}

.contact-item strong,
.contact-item div span {
    display: block;
}

.contact-item strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.contact-item div span {
    color: var(--text-light);
    font-size: 13px;
}

/* ========================================
   News List Page
======================================== */

.news-list-section {
    background: #ffffff;
}

.news-list-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 35px;
}

    .news-list-header h2 {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 5px;
        color: var(--text);
        font-size: 32px;
    }

.news-count {
    padding: 7px 14px;
    border-radius: 30px;
    color: var(--primary);
    background: rgba(33, 86, 216, 0.08);
    font-size: 13px;
    font-weight: 600;
}

.news-list-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .news-list-card .news-image {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .news-list-card .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.news-type {
    padding: 3px 9px;
    border-radius: 20px;
    color: var(--primary);
    background: rgba(33, 86, 216, 0.08);
    font-size: 11px;
    font-weight: 600;
}

.news-list-card .news-content h3 {
    min-height: 58px;
}

.news-list-card .news-content p {
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

    .news-read-more span {
        transition: transform 0.2s ease;
    }

    .news-read-more:hover {
        color: var(--primary-dark);
    }

        .news-read-more:hover span {
            transform: translateX(-4px);
        }

/* ========================================
   News Empty State
======================================== */

.news-empty {
    padding: 70px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background-soft);
    text-align: center;
}

    .news-empty h3 {
        margin-bottom: 10px;
        color: var(--text);
        font-size: 22px;
    }

    .news-empty p {
        color: var(--text-light);
        font-size: 14px;
    }


/* ========================================
   News Details Page
======================================== */
.news-details-header {
    padding: 70px 0 55px;
    background: linear-gradient( 135deg, rgba(33, 86, 216, 0.96), rgba(23, 67, 173, 0.96) );
     color: #ffffff;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

    .news-breadcrumb a {
        color: rgba(255, 255, 255, 0.75);
        transition: color 0.2s ease;
    }

        .news-breadcrumb a:hover {
            color: #ffffff;
        }

.news-details-title {
    max-width: 950px;
    margin-inline: auto;
    text-align: center;
}

    .news-details-title h1 {
        margin-bottom: 24px;
        color: #ffffff;
        font-size: clamp(30px, 5vw, 52px);
        line-height: 1.6;
    }

.news-details-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
}

    .news-details-meta strong {
        color: #ffffff;
        font-weight: 700;
    }

.meta-divider {
    color: rgba(255, 255, 255, 0.45);
}

/* ========================================
   Content
======================================== */

.news-details-content {
    padding: 70px 0;
    background: var(--background-soft);
}

.news-details-card {
    max-width: 900px;
    margin-inline: auto;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}


/* ========================================
   Summary
======================================== */

.news-summary {
    position: relative;
    margin-bottom: 35px;
    padding: 22px 25px 22px 25px;
    border-radius: var(--radius-md);
    background: rgba(33, 86, 216, 0.06);
    border-right: 4px solid var(--primary);
}

.news-summary-title {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

.news-summary p {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 2;
}


/* ========================================
   Image
======================================== */

.news-details-image {
    width: 100%;
    margin-bottom: 35px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #f3f3f3;
}

    .news-details-image img {
        width: 100%;
        max-height: 550px;
        object-fit: cover;
    }


/* ========================================
   Description
======================================== */

.news-description {
    color: var(--text);
    font-size: 16px;
    line-height: 2.3;
    white-space: pre-line;
}

    .news-description p {
        margin-bottom: 20px;
    }


/* ========================================
   Footer
======================================== */

.news-details-footer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

    .back-to-news:hover {
        color: var(--primary-dark);
    }

    .back-to-news span {
        transition: transform 0.2s ease;
    }

    .back-to-news:hover span {
        transform: translateX(4px);
    }

/* ========================================
   Account Login
======================================== */

.account-login-page {
    min-height: calc(100vh - 140px);
    background: radial-gradient( circle at top right, rgba(33, 86, 216, 0.08), transparent 35% ), var(--background-soft);
}

.login-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    padding: 70px 0;
}

.login-wrapper {
    width: 100%;
    max-width: 470px;
    margin-inline: auto;
}

.login-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.login-card-header {
    margin-bottom: 30px;
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

    .login-logo img {
        width: auto;
        height: 60px;
        object-fit: contain;
    }

.login-card-header h1 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 28px;
}

.login-card-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
    }

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text);
    background: #ffffff;
    font-size: 14px;
    direction: rtl;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(33, 86, 216, 0.10);
    }

.otp-input {
    direction: ltr;
    text-align: center;
    letter-spacing: 8px;
    font-size: 20px;
    font-weight: 700;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

    .login-submit:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

.login-note {
    color: var(--text-light);
    text-align: center;
    font-size: 11px;
    line-height: 1.9;
}

.validation-summary {
    margin-bottom: 20px;
    color: #b42318;
    font-size: 13px;
}

.field-validation {
    color: #b42318;
    font-size: 12px;
}

.login-step-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border-radius: var(--radius-sm);
    background: var(--background-soft);
    color: var(--text-light);
    text-align: center;
    font-size: 12px;
}

    .login-step-info strong {
        color: var(--primary);
        font-size: 14px;
    }

.otp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.text-button {
    padding: 0;
    border: none;
    color: var(--primary);
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

    .text-button:hover {
        color: var(--primary-dark);
    }

.otp-timer {
    color: var(--text-light);
    font-size: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
}

    .remember-me input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

a.text-button {
    text-decoration: none;
}

.text-button[hidden],
.otp-timer[hidden] {
    display: none;
}


/* متن‌های طولانی بدون فاصله (مثل لینک) در خبر از صفحه بیرون نزنند */
.news-details-card,
.news-card .news-content {
    overflow-wrap: anywhere;
}
