/* Mizban Home Page Styles */

.mz-home {
    background-color: #f5f5f5;
    direction: rtl;
    font-family: var(--mz-font-main);
}

/* 1. Hero Section */
.mz-hero {
    text-align: center;
    padding-top: 80px !important;
    padding-bottom: 120px !important;
}

.mz-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.mz-hero-title {
    font-family: var(--mz-font-bold);
    color: var(--mz-text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.mz-hero-subtitle {
    margin-bottom: 40px;
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    line-height: 2;
}

.mz-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

/* 2. Services Grid */
.mz-services-section {
}

.mz-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mz-service-card {
    background: var(--mz-white);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--mz-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--mz-transition);
    border: 1px solid var(--mz-border-light);
}

.mz-service-card:hover {
    box-shadow: var(--mz-shadow-md);
}

.mz-service-icon {
    margin-bottom: 20px;
    color: var(--mz-primary);
    display: flex;
    justify-content: center;
}

.mz-service-card h3 {
    font-family: var(--mz-font-bold);
    margin-bottom: 15px;
    color: var(--mz-text-dark);
}

.mz-service-card .en-name {
    display: block;
    font-family: 'en', var(--mz-font-main);
    color: var(--mz-text-light);
    font-size: var(--mz-fs-xs);
    margin-bottom: 20px;
}

.mz-service-price {
    font-size: var(--mz-fs-sm);
    color: var(--mz-text-main);
    margin-bottom: 10px;
}

.mz-service-price .price {
    font-family: 'en', var(--mz-font-bold);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--mz-primary);
}

.mz-service-target {
    font-weight: 600;
    color: var(--mz-text-dark);
    font-size: var(--mz-fs-sm);
    margin-bottom: 20px;
}

.mz-service-desc {
    text-align: justify;
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    line-height: 2;
}

/* 4. Hardware Sections */
.mz-hardware-section {
}

.mz-hardware-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.mz-hardware-item.mz-reverse {
    flex-direction: row-reverse;
}

.mz-hardware-item.mz-reverse .mz-btn-group {
    margin-right: auto;
    margin-left: 0;
}

.mz-hardware-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--mz-shadow-lg);
}

.mz-hardware-img img {
    width: 100%;
    display: block;
}

.mz-hardware-content {
    flex: 1.2;
}

.mz-hardware-content h2 {
    margin-bottom: 20px;
    color: var(--mz-text-dark);
    line-height: 1.4;
}

.mz-hardware-content p {
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    line-height: 2;
    margin-bottom: 25px;
}

.mz-hardware-reverse {
    flex-direction: column;
    text-align: center;
}

.mz-hardware-reverse .mz-btn-group {
    margin: 15px auto;
}

.mz-hardware-reverse .mz-hardware-content {
    margin: 0 auto 40px;
    max-width: 800px;
}

.mz-hardware-reverse .mz-hardware-img {
    max-width: 800px;
    margin: 0 auto;
}

/* 6. Support Section */
.mz-support-section {
}

@media (max-width: 992px) {
    .mz-hardware-item {
        flex-direction: column-reverse;
        text-align: center;
    }

    .mz-hardware-item.mz-reverse {
        flex-direction: column;
    }

    .mz-hardware-item .mz-btn-group {
        margin: 15px auto;
    }
    
    .mz-hardware-content {
        margin-bottom: 30px;
    }
}

/* 7. Blog Section */
.mz-features-section {
}

.mz-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.mz-section-header h2 {
    margin-bottom: 15px;
    color: var(--mz-text-dark);
}

.mz-section-header p {
    color: var(--mz-text-main);
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--mz-fs-md);
    line-height: var(--mz-lh-base);
}

.mz-features-grid {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.mz-feature-card {
    flex: 0 0 calc((100% - 40px) / 3);
    background: var(--mz-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--mz-shadow-sm);
    box-sizing: border-box;
}

.mz-feature-card.dark {
    background: #111;
    color: var(--mz-white);
}

.mz-feature-card.dark h3 {
    color: var(--mz-white);
}

.mz-feature-card.dark p {
    color: #aaa;
}

.mz-feature-icon {
    margin-bottom: 20px;
    color: var(--mz-primary);
    display: flex;
}

.mz-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--mz-text-dark);
}

.mz-feature-card p {
    color: var(--mz-text-main);
    font-size: var(--mz-fs-md);
    line-height: 2;
    margin: 0;
}

/* 6. SEO Content Section */
.mz-seo-section {
    border-top: 1px solid var(--mz-border-light);
}

.mz-seo-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.mz-seo-main {
    flex: 1;
}

.mz-seo-badge {
    display: inline-block;
    background: #f1f1f1;
    color: var(--mz-text-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: var(--mz-fs-sm);
    font-weight: 700;
    margin-bottom: 20px;
}

.mz-seo-title {
    font-size: var(--mz-fs-h2);
    line-height: var(--mz-lh-tight);
    color: var(--mz-text-dark);
    margin-bottom: 25px;
}

.mz-seo-title span {
    color: var(--mz-text-dark);
}

.mz-seo-lead {
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    line-height: var(--mz-lh-base);
    margin-bottom: 35px;
    text-align: justify;
}

.mz-seo-text h3 {
    font-size: var(--mz-fs-h3);
    margin-bottom: 15px;
    color: var(--mz-text-dark);
}

.mz-seo-text p {
    color: var(--mz-text-main);
    line-height: var(--mz-lh-base);
    font-size: var(--mz-fs-md);
}

.mz-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.mz-seo-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--mz-white);
    border-radius: 12px;
    border: 1px solid var(--mz-border-light);
}

.mz-seo-card-icon {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mz-text-main);
    flex-shrink: 0;
}

.mz-seo-card-content h4 {
    font-size: var(--mz-fs-lg);
    margin-bottom: 5px;
    color: var(--mz-text-dark);
}

.mz-seo-card-content p {
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    margin: 0;
    line-height: var(--mz-lh-base);
}

.mz-seo-side {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mz-seo-side-card {
    background: var(--mz-white);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--mz-border-light);
}

.mz-seo-side-card .f-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--mz-primary);
    display: flex;
    align-items: center;
}

.mz-seo-side-card h4 {
    font-size: var(--mz-fs-lg);
    margin-bottom: 10px;
    color: var(--mz-text-dark);
}

.mz-seo-side-card p {
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    margin: 0;
    line-height: var(--mz-lh-base);
}

/* 7. Blog Section */
.mz-blog-section {
}

.mz-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.mz-blog-card {
    background: var(--mz-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--mz-shadow-sm);
    transition: var(--mz-transition);
    border: 1px solid var(--mz-border-light);
    display: flex;
    flex-direction: column;
}

.mz-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mz-shadow-md);
}

.mz-blog-img {
    height: 200px;
    overflow: hidden;
}

.mz-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--mz-transition);
}

.mz-blog-card:hover .mz-blog-img img {
    transform: scale(1.05);
}

.mz-blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mz-blog-category {
    display: inline-block;
    color: var(--mz-primary);
    font-size: var(--mz-fs-xs);
    font-weight: 700;
    margin-bottom: 12px;
}

.mz-blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.mz-blog-content h3 a {
    color: var(--mz-text-dark);
    text-decoration: none;
    transition: var(--mz-transition);
}

.mz-blog-content h3 a:hover {
    color: var(--mz-primary);
}

.mz-blog-content p {
    font-size: var(--mz-fs-sm);
    color: var(--mz-text-main);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mz-blog-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--mz-border-light);
}

.mz-blog-date {
    font-size: var(--mz-fs-xs);
    color: var(--mz-text-light);
}

.mz-blog-more {
    font-size: var(--mz-fs-xs);
    color: var(--mz-primary);
    font-weight: 700;
    text-decoration: none;
}

.mz-blog-actions {
    text-align: center;
}

/* 8. FAQ Section */
.mz-faq-section {
}

.mz-faq-item {
    background: var(--mz-white);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--mz-border-light);
}

.mz-faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mz-font-bold);
    font-weight: 700;
    transition: var(--mz-transition);
}

.mz-faq-answer {
    padding: 0 20px 15px;
    display: none;
    font-size: var(--mz-fs-md);
    color: var(--mz-text-main);
    line-height: 2;
}

.mz-faq-item.active .mz-faq-answer {
    display: block;
}

.mz-faq-item.active .mz-faq-question svg {
    transform: rotate(180deg);
}

/* -----------------------------------------
   Responsive Styles
   ----------------------------------------- */

@media (max-width: 1024px) {
    .mz-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mz-feature-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .mz-hardware-item {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mz-hero {
        padding-top: 60px !important;
        padding-bottom: 80px !important;
    }

    .mz-hero-title {
        font-size: 1.6rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .mz-hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.9;
        margin-bottom: 35px;
    }

    .mz-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .mz-hero-actions .mz-btn-group {
        width: 100%;
        max-width: 320px;
    }

    .mz-services-section {
    }

    .mz-section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
        line-height: 1.4;
    }

    .mz-service-card {
        padding: 35px 25px;
    }

    .mz-service-card h3 {
        font-size: 1.25rem;
    }

    .mz-hardware-item {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .mz-hardware-img {
        width: 100%;
        max-width: 500px;
        order: -1;
    }

    .mz-hardware-content {
        width: 100%;
    }

    .mz-hardware-content h2 {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .mz-hardware-content p {
        font-size: 15px;
        line-height: 1.9;
        margin-bottom: 30px;
    }

    .mz-features-grid {
        flex-direction: column;
        gap: 20px;
    }

    .mz-feature-card {
        flex: 0 0 100%;
        padding: 30px;
    }

    .mz-feature-card h3 {
        font-size: 1.15rem;
    }

    .mz-feature-card p {
        font-size: 15px;
        line-height: 1.9;
    }

    .mz-seo-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .mz-seo-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .mz-seo-lead {
        font-size: 15px;
        line-height: 1.9;
    }

    .mz-seo-side {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .mz-seo-side-card {
        flex: 1;
        min-width: 280px;
    }

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

@media (max-width: 576px) {
    .mz-hero-title {
        font-size: 1.35rem;
    }

    .mz-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mz-seo-grid {
        grid-template-columns: 1fr;
    }

    .mz-seo-side {
        flex-direction: column;
    }

    .mz-seo-side-card {
        width: 100%;
    }

    .mz-blog-grid {
        grid-template-columns: 1fr;
    }

    .mz-hardware-content h2 {
        font-size: 1.4rem;
    }
}
