@font-face {
    font-family: "danaweb";
    src:
        url("/assets/danaweb.woff") format("woff"),
        url("/assets/danaweb.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* بهبود نمایش فونت هنگام بارگذاری */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "danaweb";
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header با رنگ های سازمانی */
.header {
    background: linear-gradient(180deg, #1e3a8a 0%, #54a0ff 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    /* background: linear-gradient(135deg, #fff, #fbbf24); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {

    /* .logo {
                font-size: 1.4rem;
            } */
    .title {
        text-align: center;
        /* font-size: 18px; */
    }
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    backdrop-filter: blur(5px);
}

.badge-free {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
}

/* Main Card */
.main-card {
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin: 2.5rem 0;
    transition: all 0.3s ease;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

.image-wrapper {
    background: #ffe9d1;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.template-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
}

.title {
    font-size: clamp(1.2rem, 5vw, 2.25rem);
    font-weight: 800;
    /* background: linear-gradient(135deg, #1e3a8a, #f97316); */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    color: #1e3a8a;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.btn-start {
    display: block;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #fef3c7 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1.25rem;
    border-right: 4px solid #f97316;
}

.info-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #1e3a8a;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #475569;
}

/* Description Section */
.description-box {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .description-box {
        padding: 1.25rem;
    }
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    border-right: 5px solid #f97316;
    padding-right: 1rem;
    color: #1e3a8a;
}

.description-content {
    color: #334155;
    line-height: 1.9;
}

.description-content h2,
.description-content h3 {
    margin: 1.25rem 0 0.75rem;
    color: #1e3a8a;
}

.description-content p {
    margin: 1rem 0;
}

.description-content ul,
.description-content ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

/* ========================================
           طرح های مشابه به سبک منصوری واقعی (Masonry)
           ======================================== */
.mansoury-grid {
    column-count: 4;
    column-gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.mansoury-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mansoury-card:hover {
    transform: translateY(-5px);
}

.mansoury-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #f1f5f9;
    width: 100%;
}

/* هر عکس با نسبت ابعاد خودش - منصوری واقعی */
.mansoury-image-wrapper[data-type="story"] {
    padding-bottom: 177.77%;
}

.mansoury-image-wrapper[data-type="instagram"] {
    padding-bottom: 125%;
}

.mansoury-image-wrapper[data-type="feed"] {
    padding-bottom: 100%;
}

.mansoury-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.mansoury-card:hover .mansoury-image {
    transform: scale(1.05);
}

.mansoury-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0) 100%);
    padding: 1.5rem 1rem 1rem;
    text-align: right;
}

.mansoury-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* دسکتاپ بزرگ */
@media (max-width: 1200px) {
    .mansoury-grid {
        column-count: 3;
        column-gap: 1.5rem;
    }
}

/* تبلت و موبایل بزرگ - 2 ستونه */
@media (max-width: 768px) {
    .mansoury-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .mansoury-card {
        margin-bottom: 1rem;
    }

    .mansoury-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .mansoury-title {
        font-size: 0.875rem;
    }
}

/* موبایل خیلی کوچیک - 1 ستونه */
@media (max-width: 480px) {
    .mansoury-grid {
        column-count: 2;
        column-gap: 0.5rem;
    }

    .mansoury-card {
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate:nth-child(1) {
    animation-delay: 0s;
}

.animate:nth-child(2) {
    animation-delay: 0.1s;
}

.animate:nth-child(3) {
    animation-delay: 0.2s;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}