/* الأنماط العامة */
.pagemaster-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.pagemaster-section {
    position: relative;
    padding: 80px 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* الخلفيات والمفارلات */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* قسم البطل */
.section-hero {
    color: #fff;
    text-align: center;
    position: relative;
}

.section-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-primary {
    background: #fff;
    color: #007cba;
    border: 2px solid #fff;
}

.button-primary:hover {
    background: transparent;
    color: #fff;
}

.button-secondary {
    background: #6c757d;
    color: #fff;
    border: 2px solid #6c757d;
}

.button-secondary:hover {
    background: transparent;
    color: #6c757d;
}

.button-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.button-outline:hover {
    background: #fff;
    color: #007cba;
}

/* قسم الميزات */
.section-features {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    gap: 30px;
}

.layout-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.layout-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.layout-list {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    color: #007cba;
    margin-bottom: 20px;
}

.feature-icon i {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-link:hover {
    color: #005a87;
}

/* شبكة المقالات */
.posts-grid {
    display: grid;
    gap: 30px;
}

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

.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover {
    color: #007cba;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: #005a87;
}

/* التوصيات */
.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-item {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-item:before {
    content: '"';
    font-size: 80px;
    color: #007cba;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: serif;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.author-position {
    font-size: 14px;
    color: #666;
}

.testimonial-rating {
    margin-top: 15px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 18px;
}

.testimonial-rating i.active {
    color: #ffc107;
}

.testimonial-rating i:not(.active) {
    color: #ddd;
}

/* قسم الحث على الإجراء */
.section-cta {
    text-align: center;
    color: #fff;
    position: relative;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #007cba;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* التصميم المتجاوب */
@media (max-width: 992px) {
    .layout-grid-3,
    .columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .layout-grid-4,
    .columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .pagemaster-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .layout-grid-3,
    .layout-grid-4,
    .columns-2,
    .columns-3,
    .columns-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
    }
    
    .feature-item,
    .testimonial-item {
        padding: 20px;
    }
    
    .pagemaster-section {
        padding: 40px 0;
    }
    
    .section-container {
        padding: 0 15px;
    }
}

/* التحسينات على الموبايل */
.mobile-1 .features-grid {
    grid-template-columns: 1fr;
}

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

/* تأثيرات الحركة */
.pagemaster-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات الوصول */
@media (prefers-reduced-motion: reduce) {
    .pagemaster-section,
    .feature-item:hover,
    .post-item:hover,
    .hero-button:hover,
    .cta-button:hover {
        transition: none;
        transform: none;
    }
}

/* طباعة */
@media print {
    .pagemaster-section {
        page-break-inside: avoid;
    }
    
    .hero-buttons,
    .cta-button {
        display: none;
    }
}