/* ==========================================================
   Nasrin Academy - Final Optimized Stylesheet
   ========================================================== */
:root {
    --primary-blue: #001A72;
    --accent-blue: #4169e1;
    --light-bg: #f4f6f8;
    --text-color: #333;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    margin: 0; 
    background-color: var(--light-bg); 
    line-height: 1.6; 
    color: var(--text-color);
}

/* --- Header & Navigation --- */
header { 
    background-color: var(--accent-blue); 
    color: var(--white); 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.logo img { 
    max-width: 60px; 
    height: auto; 
    display: block; 
    /* هاله درخشان دور لوگو */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    transition: 0.3s;
}

.logo img:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

.logo { font-size: 1.4rem; font-weight: bold; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 15px; }
.lang-nav { font-size: 0.9rem; }
.lang-nav a { color: var(--white); text-decoration: none; }

.btn-connexion, .btn-signup { 
    border: 2px solid var(--white); 
    padding: 6px 20px; 
    border-radius: 50px; 
    color: var(--white); 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--accent-blue);
    object-fit: cover;
    margin-bottom: 25px;
}

.hero h1 { font-size: 2.5rem; color: #333; margin: 10px 0; }
.hero p { font-size: 1.2rem; color: #666; margin-bottom: 30px; }

.btn-reserve {
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

/* --- Services & Blog Cards --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 40px 5%; max-width: 1200px; margin: auto; }
.card { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.06); text-align: center; }

.blog-card { transition: 0.3s; }
.blog-card:hover {
    background-color: #f9fbff;
    cursor: pointer;
}

/* --- Footer --- */
.site-footer { background-color: var(--primary-blue); color: var(--white); padding: 40px 5%; margin-top: 50px; text-align: center; }
.site-footer img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .header-right { gap: 10px; }
}
/* استایل مربوط به تصویر در کارت پروفایل */
.profile-card img {
    width: 150px;           /* اندازه عرض عکس */
    height: 150px;          /* اندازه ارتفاع عکس */
    border-radius: 50%;     /* دایره‌ای کردن عکس */
    object-fit: cover;      /* برای اینکه عکس کشیده نشود */
    border: 5px solid #fff; /* ایجاد یک حاشیه سفید به عنوان بخشی از هاله */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 0 5px var(--primary-blue); 
    /* بخش اول box-shadow: سایه نرم بیرونی (هاله) */
    /* بخش دوم box-shadow: ایجاد یک حلقه رنگی دور عکس */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
/* ============================================================
   QUESTION SECTION LINKS
============================================================ */

.exam-card {
    padding: 0;
    min-height: auto;
    text-decoration: none;
}

.exam-card-inner {
    padding: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exam-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.exam-icon-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exam-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 9px 22px rgba(15,23,42,.16);
}

.exam-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(37,99,235,.12);
    border-radius: 19px;
}

.exam-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
}

.exam-badge-mini i {
    color: #f59e0b;
}

.exam-card h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.exam-subtitle {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* QUESTION BOX */

.question-box {
    margin-top: 4px;
    margin-bottom: 16px;
    border: 1px solid #e8edf5;
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px;
}

.question-box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 5px 9px;
}

.question-box-title strong {
    color: #172554;
    font-size: .74rem;
    font-weight: 900;
}

.question-box-title span {
    color: #94a3b8;
    font-size: .62rem;
}

/* SECTION LINK */

.question-section-link {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    margin-top: 5px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e5eaf1;
    color: #334155;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 800;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.question-section-link:hover {
    transform: translateX(
        <?php echo $isRtl ? '-3px' : '3px'; ?>
    );

    border-color: #bfdbfe;
    background: #eff6ff;
    box-shadow: 0 5px 14px rgba(37,99,235,.08);
    color: #1d4ed8;
}

.question-section-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: .75rem;
}

.question-section-name {
    flex: 1;
    line-height: 1.5;
}

.question-section-count {
    color: #94a3b8;
    font-size: .59rem;
    white-space: nowrap;
}

.question-section-arrow {
    color: #94a3b8;
    font-size: .65rem;
    transition: transform .2s;
}

.question-section-link:hover .question-section-arrow {
    transform: translateX(
        <?php echo $isRtl ? '-3px' : '3px'; ?>
    );
    color: #2563eb;
}

/* BOTTOM ACTIONS */

.exam-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.exam-main-button,
.exam-detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 9px;
    padding: 9px 11px;
    font-size: .68rem;
    font-weight: 900;
    transition: .2s ease;
}

.exam-main-button {
    flex: 1;
    color: white;
    background: #2563eb;
}

.exam-main-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.exam-detail-button {
    background: #f1f5f9;
    color: #475569;
}

.exam-detail-button:hover {
    background: #e2e8f0;
    color: #172033;
}

.exam-total {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: .63rem;
    margin-top: 9px;
}

.exam-total i {
    color: #2563eb;
}

/* RTL */

[dir="rtl"] .question-section-link:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .question-section-link {
    text-align: right;
}

/* MOBILE */

@media (max-width: 430px) {

    .exam-card-inner {
        padding: 17px;
    }

    .question-section-link {
        padding: 8px;
        font-size: .64rem;
    }

    .question-section-count {
        display: none;
    }

    .exam-main-button,
    .exam-detail-button {
        font-size: .64rem;
    }
}
/* Academy Links Section */
.academy-links-section {
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 0 5%;
}

.academy-links-header {
    text-align: center;
    margin-bottom: 35px;
}

.academy-links-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.academy-links-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.academy-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.academy-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 25px 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    text-align: center;
    transition: all .25s ease;
}

.academy-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37,99,235,.2);
}

.academy-link-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eef2ff;
    color: var(--primary-light);
    font-size: 1.35rem;
    margin-bottom: 17px;
}

.academy-link-card h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.academy-link-card p {
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.academy-link-card span {
    color: var(--accent);
    font-size: .82rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .academy-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .academy-links-grid {
        grid-template-columns: 1fr;
    }

    .academy-link-card {
        min-height: 160px;
    }
}
/* =========================================================
   COLORFUL TOUCH
========================================================= */

:root {
    --color-blue: #2563eb;
    --color-purple: #7c3aed;
    --color-pink: #ec4899;
    --color-cyan: #06b6d4;
    --color-green: #10b981;
    --color-orange: #f59e0b;
}

/* رنگی‌تر شدن آیکون خدمات */
.service-card:nth-child(1)::before {
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.service-card:nth-child(2)::before {
    background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.service-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.service-card:nth-child(4)::before {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

.service-card:nth-child(5)::before {
    background: linear-gradient(90deg, #ec4899, #7c3aed);
}

.service-card:nth-child(6)::before {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}


/* =========================================================
   NASRIN ACADEMY WORLD
========================================================= */

.academy-world {
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(99,102,241,.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(236,72,153,.08),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8fafc,
            #ffffff
        );
}

.academy-world-header {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.academy-world-header .section-label {
    justify-content: center;
}

.academy-world-header h2 {
    color: var(--primary);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 12px;
}

.academy-world-header p {
    color: var(--text-muted);
    line-height: 1.9;
}


/* GRID */

.world-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


/* CARD */

.world-card {
    position: relative;

    min-height: 235px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-decoration: none;

    background: rgba(255,255,255,.92);

    border: 1px solid rgba(15,23,42,.07);

    border-radius: 24px;

    box-shadow:
        0 8px 30px rgba(15,23,42,.05);

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* نور رنگی گوشه کارت */

.world-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -65px;
    top: -65px;

    border-radius: 50%;

    background: rgba(99,102,241,.10);

    transition: .4s ease;
}

.world-card:hover::before {
    transform: scale(1.6);
}


/* خط پایین رنگی */

.world-card::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background: linear-gradient(
        90deg,
        #4f46e5,
        #2563eb
    );

    opacity: .8;
}


/* رنگ هر کارت */

.world-card:nth-child(1)::after {
    background: linear-gradient(
        90deg,
        #2563eb,
        #06b6d4
    );
}

.world-card:nth-child(2)::after {
    background: linear-gradient(
        90deg,
        #7c3aed,
        #ec4899
    );
}

.world-card:nth-child(3)::after {
    background: linear-gradient(
        90deg,
        #f59e0b,
        #ef4444
    );
}

.world-card:nth-child(4)::after {
    background: linear-gradient(
        90deg,
        #10b981,
        #06b6d4
    );
}


.world-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 22px 45px rgba(15,23,42,.10);

    border-color:
        rgba(79,70,229,.18);
}


/* ICON */

.world-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 19px;

    color: #fff;

    font-size: 1.35rem;

    margin-bottom: 25px;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #2563eb
        );

    box-shadow:
        0 10px 24px rgba(79,70,229,.20);

    transition:
        transform .3s ease;
}


.world-card:nth-child(2) .world-icon {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );
}

.world-card:nth-child(3) .world-icon {
    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #ef4444
        );
}

.world-card:nth-child(4) .world-icon {
    background:
        linear-gradient(
            135deg,
            #10b981,
            #06b6d4
        );
}


.world-card:hover .world-icon {
    transform:
        rotate(-5deg)
        scale(1.08);
}


.world-card h3 {
    color: var(--primary);

    font-size: 1.08rem;

    margin-bottom: 8px;
}


.world-card p {
    color: var(--text-muted);

    font-size: .84rem;

    line-height: 1.8;
}


.world-arrow {
    position: absolute;

    left: 25px;
    bottom: 23px;

    color: var(--accent);

    font-size: .9rem;

    transition:
        transform .25s ease;
}


.world-card:hover .world-arrow {
    transform:
        translateX(-6px);
}


/* MOBILE */

@media (max-width: 950px) {

    .world-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .academy-world {
        padding: 70px 5%;
    }

    .world-grid {
        grid-template-columns: 1fr;
    }

    .world-card {
        min-height: 210px;
    }

}
