:root {
    --BackgroundPage: #fefbf6;
    --Backgroundcolor1: #ffffff;
    --Backgroundcolor2: #f0ece5;
    --Color: #b2863f;
    --ColorHover: #966d2e;
    --SameColor: #ffffff;
    --ColorText: #162e1e;
    --TextMuted: #6f716e;
    --BorderColor: rgba(22, 46, 30, 0.12);
    --Shadow: 0 10px 35px rgba(22, 46, 30, 0.08);
    --ShadowHover: 0 18px 45px rgba(22, 46, 30, 0.14);
    --Container: 1240px;
    --Radius: 18px;
}

/* =========================================================
   FONTS
========================================================= */

@font-face {
    font-family: IRANYekanX-UltraLight;
    src: url("fonts/IranYekanX/IRANYekanX-UltraLight.ttf");
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX-Regular;
    src: url("fonts/IranYekanX/IRANYekanX-Regular.ttf");
    font-display: swap;
}

@font-face {
    font-family: Byekan;
    src: url(fonts/B\ Yekan.ttf);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: IRANYekanX-UltraLight;
    background: var(--BackgroundPage);
    color: var(--ColorText);
    line-height: 1.9;
}

body::before {
    content: "";
    display: block;
    height: 0;
    direction: rtl;
}

.container {
    max-width: var(--Container);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(254, 251, 246, .94);
    border-bottom: 1px solid var(--BorderColor);
    backdrop-filter: blur(14px);

}

.navbar {
    min-height: 80px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ColorText);
    font-size: 12px;
    line-height: 1.45;
}

.navbar-brand strong {
    display: block;
    font-size: 22px;
}

.navbar-brand:hover {
    color: var(--Color);
}

.brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--Color);
    font-size: 26px;
}

.nav-link {
    color: var(--ColorText);
    font-size: 18px;
    font-weight: 500;
    margin: 0 6px;
    transition: .25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--Color);
}

.navbar-toggler {
    border: 1px solid var(--BorderColor);
    color: var(--ColorText);
    border-radius: 11px;
}


/* =========================
   BUTTONS
========================= */

.btn {
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.btn-main {
    background: var(--Color);
    color: var(--SameColor);
    border: 1px solid var(--Color);
}

.btn-main:hover {
    background: var(--ColorHover);
    color: var(--SameColor);
    transform: translateY(-2px);
}

.btn-outline-main {
    color: var(--ColorText);
    border: 1px solid var(--BorderColor);
    background: transparent;
}

.btn-outline-main:hover {
    color: var(--Color);
    border-color: var(--Color);
}


/* =========================
   HERO
========================= */

.hero-section {
    padding: 90px 0 10px;
    overflow: hidden;
}

.hero-content {
    padding-right: 30px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--Color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-label::before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--Color);
}

.hero-content h1 {
    font-size: clamp(38px, 5vw, 65px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-content h1 span {
    color: var(--Color);
}

.hero-content h2 {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--TextMuted);
    max-width: 650px;
    margin-bottom: 25px;
    font-size: 22px;
}

.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.teacher-tags span {
    padding: 7px 13px;
    background: var(--Backgroundcolor2);
    border-radius: 50px;
    font-size: 18px;
    color: var(--ColorText);
}

.teacher-tags i {
    color: var(--Color);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* Teacher Image */

.teacher-image-wrapper {
    position: relative;
    max-width: 430px;
    margin: auto;
}

.teacher-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: var(--ShadowHover);
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--Backgroundcolor2);
    border-radius: 30px;
    right: -22px;
    bottom: -22px;
}

.experience-box {
    position: absolute;
    z-index: 5;
    left: -30px;
    bottom: 30px;
    background: var(--Backgroundcolor1);
    padding: 18px 25px;
    border-radius: 15px;
    box-shadow: var(--Shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.experience-box strong {
    color: var(--Color);
    font-size: 30px;
}

.experience-box span {
    font-size: 12px;
}


/* =========================
   STATS
========================= */

.stats-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stats-card {
    background: var(--Backgroundcolor1);
    border: 1px solid var(--BorderColor);
    border-radius: var(--Radius);
    box-shadow: var(--Shadow);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 25px 10px;
    border-left: 1px solid var(--BorderColor);
}

.stat-item:last-child {
    border-left: 0;
}

.stat-item strong {
    display: block;
    color: var(--Color);
    font-size: 30px;
    font-weight: 800;
}

.stat-item span {
    color: var(--TextMuted);
    font-size: 12px;
    font-family: Byeakn;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 100px 0;
}

.section-gray {
    background: var(--Backgroundcolor2);
}

.section-heading {
    margin-bottom: 45px;
    max-width: 700px;
}

.section-heading.text-center {
    margin-right: auto;
    margin-left: auto;
}

.section-heading h2 {
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--TextMuted);
    font-size: 14px;
}


/* =========================
   ABOUT
========================= */

.about-card,
.skills-card {
    background: var(--Backgroundcolor1);
    border: 1px solid var(--BorderColor);
    border-radius: var(--Radius);
    padding: 35px;
    height: 100%;
    box-shadow: var(--Shadow);
}

.about-card h3,
.skills-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--ColorText);
}

.about-card ul li {
    color: var(--ColorText);
    font-size: 20px;
    margin-bottom: 15px;
}

.about-card ul li span {
    font-family: Byekan;
}


.skill-item {
    margin-bottom: 25px;
}

.skill-title {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.skill-title span:last-child {
    color: var(--Color);
    font-weight: 700;
}

.progress {
    height: 7px;
    background: var(--Backgroundcolor2);
    border-radius: 20px;
}

.progress-bar {
    background: var(--Color);
    border-radius: 20px;
}


/* =========================
   COURSES
========================= */

.course-card {
    background: var(--Backgroundcolor1);
    border: 1px solid var(--BorderColor);
    border-radius: var(--Radius);
    padding: 30px;
    height: 100%;
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.course-card::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--Backgroundcolor2);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.course-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--ShadowHover);
}

.course-card.featured {
    border-color: rgba(178, 134, 63, .45);
}

.course-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--Backgroundcolor2);
    color: var(--Color);
    border-radius: 16px;
    font-size: 25px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

.course-level {
    color: var(--Color);
    font-size: 11px;
    font-weight: 700;
}

.course-card h3 {
    font-size: 30px;
    margin: 7px auto;
    text-align: center;
}

.course-card img {
    display: block;
    margin: auto;
}

.course-card p {
    color: var(--TextMuted);
    font-size: 24px;
    min-height: 75px;
    text-align: center;
}


/* =========================
   TIMELINE
========================= */

.timeline {
    max-width: 850px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    width: 1px;
    background: var(--BorderColor);
}

.timeline-item {
    position: relative;
    padding-right: 55px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 15px;
    height: 15px;
    background: var(--Color);
    border-radius: 50%;
    border: 4px solid var(--BackgroundPage);
}

.timeline-content {
    background: var(--Backgroundcolor1);
    border: 1px solid var(--BorderColor);
    border-radius: var(--Radius);
    padding: 25px;
    box-shadow: var(--Shadow);
}

.timeline-content span {

    font-family: Byekan;
}

.timeline-content h3 {
    font-size: 24px;
    margin: 5px 0 10px;
    font-weight: bold;
}

.timeline-content ul li {
    color: var(--TextMuted);
    font-size: 18px;

    line-height: 50px;
}


/* =========================
   GALLERY
========================= */

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    height: 260px;
    background: var(--Backgroundcolor1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* =========================
   TESTIMONIAL
========================= */

.testimonial-card {
    background: var(--Backgroundcolor1);
    border: 1px solid var(--BorderColor);
    border-radius: var(--Radius);
    padding: 30px;
    height: 100%;
    box-shadow: var(--Shadow);
}

.quote-icon {
    color: var(--Color);
    font-size: 35px;
}

.testimonial-card p {
    color: var(--TextMuted);
    font-size: 13px;
    min-height: 90px;
}

.student {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--Backgroundcolor2);
    color: var(--Color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.student strong,
.student span {
    display: block;
}

.student strong {
    font-size: 13px;
}

.student span {
    color: var(--TextMuted);
    font-size: 11px;
}


/* Contact */
.contact-section {
    padding: 90px 0;
    background: var(--Backgroundcolor2);
}

.contact-card {
    padding: 55px;
    color: #fff;
    background: var(--ColorText);
    border-radius: 25px;
}

.contact-card h2 {
    font-size: 34px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.contact-card p {
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
}

.contact-list {
    margin-top: 25px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 13px;
    font-size: 16px;
}

.contact-list i {
    color: var(--Color);
    font-size: 20px;
}

.map-wrapper {
    overflow: hidden;
    height: 350px;
    border-radius: 18px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--ColorText);
    color: white;
    padding: 55px 0 20px;
}

.footer-brand {
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.footer p {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    margin-top: 8px;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.social-links a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.social-links a:hover {
    background: var(--Color);
    border-color: var(--Color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 35px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}

.footer-bottom a {
    color: var(--Color);
    transition-duration: 1s;
}

.footer-bottom a:hover {
    color: var(--ColorHover);

}

/* =========================
   TABLET
========================= */

@media (max-width: 991px) {

    .hero-section {
        padding: 60px 0 90px;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-content p {
        margin-right: auto;
        margin-left: auto;
    }

    .section-label {
        justify-content: center;
    }

    .hero-buttons,
    .teacher-tags {
        justify-content: center;
    }

    .teacher-image-wrapper {
        max-width: 380px;
    }

    .stats-section {
        margin-top: -25px;
    }

    .contact-card {
        padding: 40px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .navbar {
        min-height: 70px;
    }

    .navbar-collapse {
        background: var(--Backgroundcolor1);
        padding: 15px;
        margin-top: 10px;
        border-radius: 15px;
        box-shadow: var(--Shadow);
    }

    .nav-link {
        padding: 10px 5px;
    }

    .navbar .btn-main {
        display: block;
        text-align: center;
        margin-top: 10px;
    }

    .hero-section {
        padding: 45px 0 70px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content h2 {
        font-size: 17px;
    }

    .teacher-image-wrapper {
        max-width: 300px;
    }

    .experience-box {
        left: -10px;
        bottom: 20px;
        padding: 12px 17px;
    }

    .experience-box strong {
        font-size: 23px;
    }

    .stats-card {
        border-radius: 15px;
    }

    .stat-item {
        padding: 18px 5px;
    }

    .stat-item strong {
        font-size: 23px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .about-card,
    .skills-card {
        padding: 25px;
    }

    .course-card {
        padding: 25px;
    }

    .gallery-item {
        height: 170px;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .contact-card h2 {
        font-size: 27px;
    }

    .contact-form {
        padding: 18px;
    }

    .footer {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 400px) {

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .teacher-tags span {
        font-size: 11px;
    }

    .gallery-item {
        height: 145px;
    }

}