/* ============================================
    FARATARAZMAN - Ultra Modern Design
    Premium UI with Advanced Effects
    ============================================ */

/* Variables */
:root {
    /* Brand Colors */
    --fp-primary: #0D9488;
    --fp-primary-light: #14B8A6;
    --fp-primary-dark: #0F766E;
    --fp-accent: #F59E0B;
    --fp-accent-light: #FBBF24;

    /* Light Theme */
    --fp-bg: #FAFAFA;
    --fp-bg-alt: #FFFFFF;
    --fp-bg-elevated: #FFFFFF;
    --fp-text: #18181B;
    --fp-text-secondary: #52525B;
    --fp-text-muted: #A1A1AA;
    --fp-border: #E4E4E7;
    --fp-border-light: #F4F4F5;

    /* Effects */
    --fp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --fp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --fp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --fp-shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);
    --fp-shadow-glow: 0 0 60px rgba(13, 148, 136, 0.3);

    /* Spacing */
    --fp-space-xs: 0.25rem;
    --fp-space-sm: 0.5rem;
    --fp-space-md: 1rem;
    --fp-space-lg: 1.5rem;
    --fp-space-xl: 2rem;
    --fp-space-2xl: 3rem;
    --fp-space-3xl: 4rem;
    --fp-space-4xl: 6rem;

    /* Border Radius */
    --fp-radius-sm: 8px;
    --fp-radius-md: 12px;
    --fp-radius-lg: 16px;
    --fp-radius-xl: 24px;
    --fp-radius-2xl: 32px;
    --fp-radius-full: 9999px;

    /* Transitions */
    --fp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fp-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --fp-duration: 0.3s;
    --fp-duration-slow: 0.5s;

    /* Typography */
    --fp-font: 'Inter', 'Vazirmatn', system-ui, sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
    --fp-bg: #09090B;
    --fp-bg-alt: #18181B;
    --fp-bg-elevated: #27272A;
    --fp-text: #FAFAFA;
    --fp-text-secondary: #A1A1AA;
    --fp-text-muted: #71717A;
    --fp-border: #27272A;
    --fp-border-light: #3F3F46;

    --fp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --fp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --fp-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --fp-shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
    --fp-shadow-glow: 0 0 80px rgba(13, 148, 136, 0.4);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fp-font);
    background: var(--fp-bg);
    color: var(--fp-text);
    line-height: 1.6;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.fp-main {
    overflow-x: hidden;
}

.fp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--fp-space-xl);
}

/* ============================================
    HERO SECTION
    ============================================ */
.fp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--fp-space-4xl) 0;
    overflow: hidden;
}

/* Animated Background */
.fp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.fp-hero__gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform;
    animation: float 20s ease-in-out infinite;
}

.fp-hero__gradient-orb--1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--fp-primary), var(--fp-primary-light));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.fp-hero__gradient-orb--2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--fp-accent), var(--fp-accent-light));
    bottom: -100px;
    left: -50px;
    animation-delay: -7s;
}

.fp-hero__gradient-orb--3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.3;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.fp-hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--fp-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--fp-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.fp-hero__noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Hero Content */
.fp-hero__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.fp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-sm);
    padding: var(--fp-space-sm) var(--fp-space-lg);
    background: var(--fp-bg-elevated);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fp-text-secondary);
    margin-bottom: var(--fp-space-xl);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s var(--fp-ease) forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.fp-hero__badge-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--fp-primary), var(--fp-accent), var(--fp-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity var(--fp-duration);
    border-radius: inherit;
    z-index: -1;
}

.fp-hero__badge:hover .fp-hero__badge-glow {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-hero__title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--fp-space-xl);
    animation: slideUp 0.8s var(--fp-ease) 0.1s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fp-hero__title-line {
    display: block;
    color: var(--fp-text);
}

.fp-hero__title-highlight {
    display: inline-block;
    position: relative;
}

.fp-hero__title-gradient {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-light) 50%, var(--fp-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.fp-hero__title-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    color: var(--fp-primary);
    opacity: 0.5;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--fp-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--fp-space-2xl);
    line-height: 1.8;
    animation: slideUp 0.8s var(--fp-ease) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* CTA Buttons */
.fp-hero__actions {
    display: flex;
    justify-content: center;
    gap: var(--fp-space-md);
    flex-wrap: wrap;
    margin-bottom: var(--fp-space-3xl);
    animation: slideUp 0.8s var(--fp-ease) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-sm);
    padding: var(--fp-space-md) var(--fp-space-xl);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--fp-radius-full);
    cursor: pointer;
    transition: all var(--fp-duration) var(--fp-ease);
    position: relative;
    overflow: hidden;
}

.fp-btn__icon {
    display: flex;
    transition: transform var(--fp-duration) var(--fp-ease);
}

.fp-btn__icon svg {
    width: 20px;
    height: 20px;
}

.fp-btn--primary {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    color: white;
}

.fp-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--fp-shadow-glow);
}

.fp-btn--primary:hover .fp-btn__icon {
    transform: translateX(-4px);
}

.fp-btn--glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--fp-primary), var(--fp-accent), var(--fp-primary));
    background-size: 200% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity var(--fp-duration);
}

.fp-btn--glow:hover::before {
    opacity: 1;
}

.fp-btn--outline {
    background: transparent;
    color: var(--fp-text);
    border: 2px solid var(--fp-border);
}

.fp-btn--outline:hover {
    border-color: var(--fp-primary);
    color: var(--fp-primary);
    background: rgba(13, 148, 136, 0.1);
}

.fp-btn--white {
    background: white;
    color: var(--fp-primary-dark);
}

.fp-btn--white:hover {
    transform: translateY(-3px);
    box-shadow: var(--fp-shadow-xl);
}

/* Hero Preview Cards */
.fp-hero__preview {
    display: flex;
    justify-content: center;
    gap: var(--fp-space-lg);
    perspective: 1000px;
    animation: slideUp 0.8s var(--fp-ease) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fp-hero__preview-card {
    width: 140px;
    height: 170px;
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--fp-shadow-xl);
    transition: all var(--fp-duration-slow) var(--fp-ease);
    will-change: transform;
    animation: cardFloat 6s ease-in-out infinite;
}

.fp-hero__preview-card--1 {
    transform: rotate(-8deg) translateY(20px);
    animation-delay: 0s;
}

.fp-hero__preview-card--2 {
    transform: rotate(0deg) translateY(-10px);
    animation-delay: -2s;
    z-index: 2;
}

.fp-hero__preview-card--3 {
    transform: rotate(8deg) translateY(20px);
    animation-delay: -4s;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(var(--float-offset, 20px)) rotate(var(--rotate, 0deg));
    }

    50% {
        transform: translateY(calc(var(--float-offset, 20px) - 15px)) rotate(var(--rotate, 0deg));
    }
}

.fp-hero__preview-card--1 {
    --float-offset: 20px;
    --rotate: -8deg;
}

.fp-hero__preview-card--2 {
    --float-offset: -10px;
    --rotate: 0deg;
}

.fp-hero__preview-card--3 {
    --float-offset: 20px;
    --rotate: 8deg;
}

.fp-hero__preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-hero__preview-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--fp-space-sm);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: center;
}

.fp-hero__preview-card-content span {
    font-size: 1.25rem;
    display: block;
    margin-bottom: var(--fp-space-xs);
}

.fp-hero__preview-card-content p {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Scroll Indicator */
.fp-hero__scroll {
    position: absolute;
    bottom: var(--fp-space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fp-space-sm);
    color: var(--fp-text-muted);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.fp-hero__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--fp-border);
    border-radius: 12px;
    position: relative;
}

.fp-hero__scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--fp-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ============================================
    BENTO GRID
    ============================================ */
.fp-bento {
    padding: var(--fp-space-3xl) 0;
    background: var(--fp-bg);
}

.fp-bento__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: var(--fp-space-md);
}

.fp-bento__card {
    position: relative;
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--fp-duration) var(--fp-ease);
    background: var(--fp-bg-elevated);
    border: 1px solid var(--fp-border);
}

.fp-bento__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fp-shadow-xl);
}

.fp-bento__card--large {
    grid-column: span 2;
    grid-row: span 2;
}

.fp-bento__card--medium {
    grid-column: span 1;
    grid-row: span 1;
}

.fp-bento__card--highlight {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-primary-dark) 100%);
    color: white;
    border: none;
}

.fp-bento__card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fp-bento__card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fp-duration-slow) var(--fp-ease);
}

.fp-bento__card:hover .fp-bento__card-bg img {
    transform: scale(1.1);
}

.fp-bento__card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.fp-bento__card--large .fp-bento__card-content {
    color: white;
}

.fp-bento__card-bg--gradient {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.fp-bento__card-bg--pattern {
    background:
        radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        var(--fp-bg-elevated);
}

.fp-bento__card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: var(--fp-space-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.fp-bento__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--fp-radius-lg);
    margin-bottom: var(--fp-space-sm);
}

.fp-bento__card-icon svg {
    width: 24px;
    height: 24px;
}

.fp-bento__card--medium .fp-bento__card-icon {
    background: var(--fp-bg-alt);
    color: var(--fp-primary);
}

[data-theme="dark"] .fp-bento__card-bg--gradient .fp-bento__card-icon,
[data-theme="dark"] .fp-bento__card-bg--pattern .fp-bento__card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.fp-bento__card-icon--animated {
    position: relative;
}

.fp-bento__card-waves {
    position: absolute;
    display: flex;
    gap: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.fp-bento__card-waves span {
    width: 3px;
    height: 12px;
    background: currentColor;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.fp-bento__card-waves span:nth-child(1) {
    animation-delay: 0s;
}

.fp-bento__card-waves span:nth-child(2) {
    animation-delay: 0.1s;
}

.fp-bento__card-waves span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes wave {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 16px;
    }
}

.fp-bento__card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--fp-space-xs);
}

.fp-bento__card-content p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.fp-bento__card-arrow {
    position: absolute;
    top: var(--fp-space-lg);
    left: var(--fp-space-lg);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--fp-radius-full);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--fp-duration) var(--fp-ease);
}

.fp-bento__card-arrow svg {
    width: 18px;
    height: 18px;
}

.fp-bento__card:hover .fp-bento__card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.fp-bento__card-badge {
    display: inline-block;
    padding: var(--fp-space-xs) var(--fp-space-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--fp-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--fp-space-sm);
}

.fp-bento__card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        background-position: 200% 200%;
    }

    100% {
        background-position: -200% -200%;
    }
}

/* ============================================
    SECTIONS
    ============================================ */
.fp-section {
    padding: var(--fp-space-3xl) 0;
}

.fp-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--fp-space-xl);
}

.fp-section__header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fp-section__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fp-primary);
    margin-bottom: var(--fp-space-xs);
    padding: var(--fp-space-xs) var(--fp-space-sm);
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--fp-radius-full);
}

.fp-section__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--fp-text);
}

.fp-section__more {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-primary);
    text-decoration: none;
    transition: gap var(--fp-duration) var(--fp-ease);
}

.fp-section__more:hover {
    gap: var(--fp-space-md);
}

.fp-section__more svg {
    width: 16px;
    height: 16px;
}

/* ============================================
    COURSES SLIDER
    ============================================ */
.fp-courses-section {
    background: var(--fp-bg-alt);
}

.fp-courses__slider {
    overflow-x: auto;
    padding: var(--fp-space-md) 0;
    margin: 0 calc(-1 * var(--fp-space-xl));
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.fp-courses__slider::-webkit-scrollbar {
    display: none;
}

.fp-courses__track {
    display: flex;
    gap: var(--fp-space-lg);
    padding: 0 var(--fp-space-xl);
    width: max-content;
}

.fp-course-card {
    width: 260px;
    flex-shrink: 0;
}

.fp-course-card__link {
    display: block;
    background: var(--fp-bg-elevated);
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--fp-duration) var(--fp-ease);
    border: 1px solid var(--fp-border);
}

.fp-course-card__link:hover {
    transform: translateY(-8px);
    box-shadow: var(--fp-shadow-xl);
}

.fp-course-card__visual {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.fp-course-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fp-duration-slow) var(--fp-ease);
}

.fp-course-card__link:hover .fp-course-card__visual img {
    transform: scale(1.1);
}

.fp-course-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 148, 136, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--fp-duration) var(--fp-ease);
}

.fp-course-card__link:hover .fp-course-card__overlay {
    opacity: 1;
}

.fp-course-card__play {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--fp-radius-full);
    color: var(--fp-primary);
    transform: scale(0.8);
    transition: transform var(--fp-duration) var(--fp-ease-bounce);
}

.fp-course-card__link:hover .fp-course-card__play {
    transform: scale(1);
}

.fp-course-card__play svg {
    width: 24px;
    height: 24px;
    margin-right: -3px;
}

.fp-course-card__info {
    padding: var(--fp-space-md);
}

.fp-course-card__meta {
    margin-bottom: var(--fp-space-xs);
}

.fp-course-card__instructor {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-xs);
    font-size: 0.75rem;
    color: var(--fp-text-muted);
}

.fp-course-card__instructor svg {
    width: 12px;
    height: 12px;
}

.fp-course-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: var(--fp-space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-course-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--fp-space-sm);
    border-top: 1px solid var(--fp-border-light);
}

.fp-course-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--fp-primary);
}

.fp-course-card__price small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--fp-text-muted);
    margin-right: 2px;
}

.fp-course-card__action {
    display: inline-flex;
    align-items: center;
    gap: var(--fp-space-xs);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    transition: all var(--fp-duration) var(--fp-ease);
}

.fp-course-card__action svg {
    width: 14px;
    height: 14px;
    transition: transform var(--fp-duration) var(--fp-ease);
}

.fp-course-card__link:hover .fp-course-card__action {
    color: var(--fp-primary);
}

.fp-course-card__link:hover .fp-course-card__action svg {
    transform: translateX(-4px);
}

/* ============================================
    FEATURES
    ============================================ */
.fp-features-section {
    background: var(--fp-bg);
}

.fp-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fp-space-lg);
    margin-top: var(--fp-space-xl);
}

.fp-feature-card {
    text-align: center;
    padding: var(--fp-space-xl) var(--fp-space-md);
    background: var(--fp-bg-elevated);
    border-radius: var(--fp-radius-xl);
    border: 1px solid var(--fp-border);
    transition: all var(--fp-duration) var(--fp-ease);
}

.fp-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fp-shadow-lg);
    border-color: var(--fp-primary);
}

.fp-feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--fp-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fp-feature-card__icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0.05) 100%);
    border-radius: var(--fp-radius-lg);
    transition: all var(--fp-duration) var(--fp-ease);
}

.fp-feature-card:hover .fp-feature-card__icon-bg {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, rgba(13, 148, 136, 0.1) 100%);
}

.fp-feature-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--fp-primary);
    position: relative;
    z-index: 1;
}

.fp-feature-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: var(--fp-space-xs);
}

.fp-feature-card__desc {
    font-size: 0.85rem;
    color: var(--fp-text-muted);
    line-height: 1.6;
}

/* ============================================
    ARTICLES - MAGAZINE LAYOUT
    ============================================ */
.fp-articles-section {
    background: var(--fp-bg-alt);
}

.fp-articles__magazine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: var(--fp-space-md);
}

.fp-article-card {
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
}

.fp-article-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.fp-article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--fp-bg-elevated);
    text-decoration: none;
    color: inherit;
    transition: all var(--fp-duration) var(--fp-ease);
    border: 1px solid var(--fp-border);
    border-radius: inherit;
    overflow: hidden;
}

.fp-article-card__link:hover {
    transform: translateY(-4px);
    box-shadow: var(--fp-shadow-lg);
}

.fp-article-card__image {
    flex: 1;
    overflow: hidden;
}

.fp-article-card--featured .fp-article-card__image {
    flex: 1.5;
}

.fp-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fp-duration-slow) var(--fp-ease);
}

.fp-article-card__link:hover .fp-article-card__image img {
    transform: scale(1.05);
}

.fp-article-card__content {
    padding: var(--fp-space-md);
}

.fp-article-card--featured .fp-article-card__content {
    padding: var(--fp-space-lg);
}

.fp-article-card__category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fp-primary);
    background: rgba(13, 148, 136, 0.1);
    padding: var(--fp-space-xs) var(--fp-space-sm);
    border-radius: var(--fp-radius-sm);
    margin-bottom: var(--fp-space-xs);
}

.fp-article-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fp-text);
    line-height: 1.4;
    margin-bottom: var(--fp-space-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-article-card--featured .fp-article-card__title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
}

.fp-article-card__excerpt {
    font-size: 0.8rem;
    color: var(--fp-text-muted);
    line-height: 1.6;
    display: none;
}

.fp-article-card--featured .fp-article-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--fp-space-sm);
}

.fp-article-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.fp-article-card__author {
    display: flex;
    align-items: center;
    gap: var(--fp-space-xs);
    font-size: 0.75rem;
    color: var(--fp-text-secondary);
}

.fp-article-card__author img {
    width: 20px;
    height: 20px;
    border-radius: var(--fp-radius-full);
}

.fp-article-card__read {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-primary);
}

/* ============================================
    PODCASTS
    ============================================ */
.fp-podcasts-section {
    background: var(--fp-bg);
}

.fp-podcasts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fp-space-lg);
}

.fp-podcast-card {
    display: block;
    background: var(--fp-bg-elevated);
    border-radius: var(--fp-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--fp-duration) var(--fp-ease);
    border: 1px solid var(--fp-border);
}

.fp-podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fp-shadow-xl);
}

.fp-podcast-card__cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.fp-podcast-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fp-duration-slow) var(--fp-ease);
}

.fp-podcast-card:hover .fp-podcast-card__cover img {
    transform: scale(1.1);
}

.fp-podcast-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-primary);
    color: white;
    border-radius: var(--fp-radius-full);
    opacity: 0;
    transition: all var(--fp-duration) var(--fp-ease-bounce);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
}

.fp-podcast-card:hover .fp-podcast-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.fp-podcast-card__play svg {
    width: 20px;
    height: 20px;
    margin-right: -2px;
}

.fp-podcast-card__equalizer {
    position: absolute;
    bottom: var(--fp-space-sm);
    left: var(--fp-space-sm);
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 16px;
}

.fp-podcast-card__equalizer span {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: equalizer 0.8s ease-in-out infinite;
}

.fp-podcast-card__equalizer span:nth-child(1) {
    animation-delay: 0s;
    height: 60%;
}

.fp-podcast-card__equalizer span:nth-child(2) {
    animation-delay: 0.1s;
    height: 100%;
}

.fp-podcast-card__equalizer span:nth-child(3) {
    animation-delay: 0.2s;
    height: 40%;
}

.fp-podcast-card__equalizer span:nth-child(4) {
    animation-delay: 0.3s;
    height: 80%;
}

.fp-podcast-card__equalizer span:nth-child(5) {
    animation-delay: 0.4s;
    height: 50%;
}

@keyframes equalizer {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

.fp-podcast-card__duration {
    position: absolute;
    bottom: var(--fp-space-sm);
    right: var(--fp-space-sm);
    padding: 2px var(--fp-space-xs);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--fp-radius-sm);
}

.fp-podcast-card__info {
    padding: var(--fp-space-md);
}

.fp-podcast-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: var(--fp-space-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-podcast-card__speaker {
    font-size: 0.8rem;
    color: var(--fp-text-muted);
}

/* ============================================
    CTA SECTION - COMPACT VERSION
    ============================================ */
.fp-cta-section {
    padding: var(--fp-space-2xl) 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.fp-cta-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--fp-primary-dark) 0%, var(--fp-primary) 100%);
}

.fp-cta-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: var(--fp-space-lg) var(--fp-space-xl);
}

.fp-cta-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fp-space-md);
}

.fp-cta-card__emoji {
    font-size: 2rem;
}

.fp-cta-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.fp-btn--cta {
    margin-top: var(--fp-space-sm);
}

/* ============================================
    RESPONSIVE - TABLET
    ============================================ */
@media (max-width: 1024px) {
    .fp-container {
        padding: 0 var(--fp-space-lg);
    }

    .fp-bento__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .fp-bento__card--large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 250px;
    }

    .fp-bento__card--highlight {
        grid-column: span 2;
    }

    .fp-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-articles__magazine {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .fp-article-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .fp-podcasts__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fp-hero__preview-card {
        width: 120px;
        height: 150px;
    }

    .fp-course-card {
        width: 240px;
    }
}

/* ============================================
    RESPONSIVE - MOBILE LARGE
    ============================================ */
@media (max-width: 768px) {
    .fp-hero {
        min-height: auto;
        padding: 100px 0 var(--fp-space-2xl);
    }

    .fp-hero__preview {
        gap: var(--fp-space-sm);
    }

    .fp-hero__preview-card {
        width: 100px;
        height: 130px;
    }

    .fp-hero__preview-card-content span {
        font-size: 1rem;
    }

    .fp-hero__preview-card-content p {
        font-size: 0.65rem;
    }

    .fp-hero__scroll {
        display: none;
    }

    .fp-hero__subtitle-br {
        display: none;
    }

    .fp-hero__gradient-orb {
        filter: blur(40px);
        animation: none;
        opacity: 0.25;
    }

    .fp-hero__noise {
        display: none;
    }


    .fp-bento {
        padding: var(--fp-space-2xl) 0;
    }

    .fp-bento__grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(140px, auto);
        gap: var(--fp-space-sm);
    }


    .fp-bento__card--large,
    .fp-bento__card--medium,
    .fp-bento__card--highlight {
        grid-column: span 1;
        min-height: 180px;
    }

    .fp-bento__card--medium {
        min-height: 140px;
    }

    /* حذف backdrop-filter روی موبایل */
    .fp-bento__card-icon {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fp-bento__card-arrow {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fp-features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--fp-space-sm);
    }

    .fp-feature-card {
        padding: var(--fp-space-md);
    }

    .fp-feature-card__icon {
        width: 52px;
        height: 52px;
    }

    .fp-feature-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .fp-feature-card__title {
        font-size: 0.9rem;
    }

    .fp-feature-card__desc {
        font-size: 0.75rem;
    }

    .fp-articles__magazine {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .fp-article-card--featured {
        grid-column: span 1;
    }

    .fp-article-card__link {
        flex-direction: row;
        height: 120px;
    }

    .fp-article-card--featured .fp-article-card__link {
        flex-direction: column;
        height: auto;
    }

    .fp-article-card__image {
        flex: 0 0 120px;
        height: 100%;
    }

    .fp-article-card--featured .fp-article-card__image {
        flex: 1;
        height: 180px;
    }

    .fp-article-card__content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--fp-space-sm);
    }

    .fp-article-card__meta {
        display: none;
    }

    .fp-article-card--featured .fp-article-card__meta {
        display: flex;
    }

    .fp-podcasts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--fp-space-sm);
    }

    .fp-podcast-card__info {
        padding: var(--fp-space-sm);
    }

    .fp-podcast-card__title {
        font-size: 0.8rem;
    }

    .fp-podcast-card__speaker {
        font-size: 0.7rem;
    }

    /* حذف backdrop-filter برای پادکست */
    .fp-podcast-card__duration {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fp-section__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--fp-space-sm);
    }

    .fp-course-card {
        width: 220px;
    }

    /* CTA ساده‌تر در موبایل */
    .fp-cta-section {
        padding: var(--fp-space-xl) 0;
    }

    .fp-cta-card {
        padding: var(--fp-space-md);
    }

    .fp-cta-card__emoji {
        font-size: 1.75rem;
    }

    .fp-cta-card__title {
        font-size: 1.25rem;
    }
}

/* ============================================
    RESPONSIVE - MOBILE SMALL
    ============================================ */
@media (max-width: 480px) {
    .fp-container {
        padding: 0 var(--fp-space-md);
    }

    .fp-hero {
        padding: 90px 0 var(--fp-space-xl);
    }

    .fp-hero__badge {
        font-size: 0.75rem;
        padding: var(--fp-space-xs) var(--fp-space-md);
    }

    .fp-hero__title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }

    .fp-hero__subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--fp-space-xl);
    }

    .fp-hero__actions {
        flex-direction: column;
        width: 100%;
        gap: var(--fp-space-sm);
        margin-bottom: var(--fp-space-xl);
    }

    .fp-btn {
        width: 100%;
        justify-content: center;
        padding: var(--fp-space-md) var(--fp-space-lg);
    }

    .fp-hero__preview {
        gap: var(--fp-space-xs);
    }

    .fp-hero__preview-card {
        width: 85px;
        height: 110px;
    }

    .fp-hero__preview-card-content {
        padding: var(--fp-space-xs);
    }

    .fp-hero__preview-card-content span {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .fp-hero__preview-card-content p {
        font-size: 0.6rem;
    }

    .fp-bento__card--large,
    .fp-bento__card--medium,
    .fp-bento__card--highlight {
        min-height: 150px;
    }

    .fp-bento__card-content h3 {
        font-size: 1rem;
    }

    .fp-bento__card-content p {
        font-size: 0.75rem;
    }

    .fp-section {
        padding: var(--fp-space-2xl) 0;
    }

    .fp-section__title {
        font-size: 1.3rem;
    }

    .fp-features__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--fp-space-xs);
    }

    .fp-feature-card {
        padding: var(--fp-space-sm);
    }

    .fp-feature-card__icon {
        width: 44px;
        height: 44px;
        margin-bottom: var(--fp-space-sm);
    }

    .fp-feature-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .fp-feature-card__title {
        font-size: 0.8rem;
    }

    .fp-feature-card__desc {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .fp-course-card {
        width: 200px;
    }

    .fp-course-card__title {
        font-size: 0.9rem;
    }

    .fp-course-card__price {
        font-size: 0.9rem;
    }

    .fp-podcasts__grid {
        gap: var(--fp-space-xs);
    }

    .fp-podcast-card__play {
        width: 44px;
        height: 44px;
    }

    .fp-podcast-card__play svg {
        width: 16px;
        height: 16px;
    }

    /* CTA مینیمال در موبایل کوچک */
    .fp-cta-section {
        padding: var(--fp-space-lg) 0;
    }

    .fp-cta-card {
        padding: var(--fp-space-sm) var(--fp-space-md);
    }

    .fp-cta-card__content {
        gap: var(--fp-space-sm);
    }

    .fp-cta-card__emoji {
        font-size: 1.5rem;
    }

    .fp-cta-card__title {
        font-size: 1.1rem;
    }

    .fp-btn--cta {
        margin-top: 0;
        padding: var(--fp-space-sm) var(--fp-space-lg);
        font-size: 0.9rem;
    }
}

/* ============================================
    REDUCED MOTION
    ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fp-hero__gradient-orb {
        animation: none;
    }

    .fp-hero__preview-card {
        animation: none;
    }
}

/* ============================================
    PRINT STYLES
    ============================================ */
@media print {

    .fp-hero__scroll,
    .fp-hero__bg,
    .fp-bento__card-shine {
        display: none !important;
    }
}