﻿@import url("vazir-font-face.css");

/* =========================
       تنظیمات پایه و متغیرها
       ========================= */
:root {
    --bg1: #092b96; /* تیره‌تر */
    --bg2: #8a3edb; /* روشن‌تر */
    --accent: #f3c045; /* زرد CTA */
    --muted: rgba(255,255,255,0.85);
    --glass: rgba(255,255,255,0.06);
    --card-shadow: 0 8px 24px rgba(0,0,0,0.18);
    --radius: 14px;
    --max-width: 1100px;
}

/* ریست سبک‌ها */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: "vazir", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg,var(--bg1),var(--bg2));

    color: #fff;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    direction: rtl; /* اطمینان از راست به چپ بودن */
	 /*جلوگیری از خط مرزی*/
        background: linear-gradient(135deg, var(--bg1), var(--bg2));
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-size: cover;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
	     
}
.alert{    color: green;
    background-color: aliceblue;
    border-radius: 999px;
	padding: 8px 12px;}
a {
    color: inherit;
    text-decoration: none
}
a h1{
	font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    padding: 8px;
	border-radius: 8px;}
li h2{    
	font-size: 17px!important;
	font-weight:normal;
}
img {
    max-width: 100%;
    height: auto;
    display: block
}

/* =========================
       کانتینر اصلی
       ========================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px;
}

/* =========================
       هدر
       ========================= */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* لوگوی ساده SVG */
.logo {
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center
}

    .logo svg {
        width: 46px;
        height: 46px;
        opacity: 0.95
    }

.brand h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2px
}

.brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted)
}

nav {
    display: flex;
    gap: 18px;
    align-items: center
}

    nav a {
        font-size: 15px;
        color: rgba(255,255,255,0.95);
        padding: 8px;
        border-radius: 8px
    }

        nav a:hover {
            background: var(--glass);
            backdrop-filter: blur(4px)
        }

.cta {
    background: var(--accent);
    color: #111;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

    .cta:active {
        transform: translateY(1px)
    }

/* موبایل: منو همبرگری */
.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: inherit;
    font-size: 20px
}

/* =========================
       بخش هِرو (Hero)
       ========================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: center;
    padding: 48px 0 32px;
}

    .hero .title {
        font-size: 28px;
        font-weight: 800;
        margin: 0 0 12px;
        letter-spacing: 0.6px;
    }

    .hero .subtitle {
        font-size: 18px;
        color: var(--muted);
        margin: 0 0 20px
    }

    .hero .badge {
        display: inline-block;
        background: rgba(255,255,255,0.07);
        padding: 8px 12px;
        border-radius: 999px;
        margin-bottom: 12px;
        font-weight: 600
    }

    .hero .actions {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 18px
    }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
}

.btn-primary {
    background: var(--accent);
    color: #111
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted)
}

/* کارت تصویر مدرس */
.instructor-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
}

    .instructor-card img {
        width: 100%;
        height: auto;
        border-radius: 10px
    }

/* =========================
       معرفی دوره
       ========================= */

.section {
    margin-top: 40px;
    background: rgba(255,255,255,0.02);
    padding: 24px;
    border-radius: var(--radius);
}

    .section h2 {
        font-size: 24px;
        margin-top: 0
    }
/*.section {
    margin-top: 30px;
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border-radius: 12px;
}

    .section h2 {
        font-size: 28px;
        margin: 0 0 10px
    }*/
.features {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.feature {
    flex: 1 1 180px;
    min-width: 140px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
}

    .feature strong {
        display: block;
        font-size: 18px;
        margin-bottom: 6px
    }

    .feature span {
        color: var(--muted);
        font-size: 13px
    }

/* =========================
       قسمت‌ها (کارت ویدیو)
       ========================= */
.episodes {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.episode {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
	text-align: justify;
}

    .episode .thumb {
        height: 140px;
        overflow: hidden;
        border-radius: 8px
    }

    .episode h3 {
        margin: 6px 0 0;
        font-size: 16px
    }

    .episode p {
        margin: 0;
        color: var(--muted);
        font-size: 13px
    }

    .episode .row {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
        margin-top: auto
    }

/* =========================
       درباره مدرس کوچک
       ========================= */
.about {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    background: rgba(255,255,255,0.02);
    padding: 14px;
    border-radius: 12px;
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 84px
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

/* =========================
       فوتر
       ========================= */
footer {
    margin-top: 36px;
    padding: 28px 0;
    color: rgba(255,255,255,0.85);
    font-size: 13px
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap
}

.socials {
    display: flex;
    gap: 10px;
    align-items: center
}

.accordion-header {
    padding: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s;
}

    .accordion-header:hover {
        background: rgba(255,255,255,0.07)
    }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 14px;
}

    .accordion-content.open {
        padding: 14px;
    }

    .accordion-content ul {
        margin: 0;
        padding-right: 20px;
    }

    .accordion-content li {
        font-size: 14px;
        margin: 6px 0;
        color: var(--muted);
    }
/* بخش اهداف */


.goals {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 14px;
    margin-top: 20px;
}

.goal {
    background: rgba(255,255,255,0.04);
    padding: 14px;
    border-radius: var(--radius);
    transition: transform 0.25s ease;
}

    .goal:hover {
        transform: translateY(-4px);
        background: rgba(255,255,255,0.06)
    }

/* کلیات فرم */
form {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color:rgb(255 255 255 / 18%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    direction: rtl; /* راست‌به‌چپ */
	font-family: "vazir", sans-serif;
}

/* گروه‌های فرم */
.form-group {
    margin-bottom: 20px;
}

/* ردیف‌ها */
.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ستون‌ها */
.form-row .col {
    flex: 1;
}

/* فیلدهای ورودی */
input.form-control, textarea.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
	font-family: 'Vazir';
}

/* هاور و فوکوس */
input.form-control:focus, textarea.form-control:focus {
    border-color: #333;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    outline: none;
}

/* دکمه ارسال */
button.btn {
    background-color: #1a2d9f;
    color: #fff;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
	font-family: 'Vazir';
}

button.btn:hover {
    background-color: #1a2d9f5c;
}

/* placeholder */
input::placeholder, textarea::placeholder {
    color: #999;
}


/* =========================
       ریسپانسیو
       ========================= */
@media (max-width:1024px) {
    .hero {
        grid-template-columns: 1fr 360px
    }

        .hero .title {
            font-size: 36px
        }

    .episodes {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:720px) {
    .container {
        padding: 18px
    }

    nav {
        display: none
    }

    .menu-toggle {
        display: inline-block
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center
    }

        .hero .title {
            font-size: 32px
        }

        .hero .subtitle {
            font-size: 16px
        }

    .instructor-card {
        order: -1
    }

    .episodes {
        grid-template-columns: 1fr
    }

    .brand h1 {
        font-size: 16px
    }

    .brand p {
        font-size: 11px
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start
    }
}
/* سرفصل‌ها (آکاردئون) */
.accordion {
    margin-top: 24px;
}

.accordion-item {
    background: rgba(255,255,255,0.04);
    margin-bottom: 10px;
    border-radius: var(--radius);
    overflow: hidden;
}

/* دستورات دسترسی (focus) */
.btn:focus, nav a:focus {
    outline: 3px solid rgba(255,255,255,0.08);
    outline-offset: 3px
}
