/*
Theme Name: سيو لايت
Theme URI: https://example.com/seolight/
Description: قالب شركة تسويق إلكتروني متكامل
Author: اسمك
Author URI: https://example.com/
Version: 1.0
Text Domain: seolight
*/

/*------------------------------
  أسلوب الفوتر
------------------------------*/

.site-footer {
    background-color: #1E293B;
    color: #F8FAFC;
    padding: 60px 0 20px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #2F5FEF;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-left: 10px;
    color: #2F5FEF;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #2F5FEF;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-menu a:hover {
    color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #2F5FEF;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1A4BD9;
}

/*------------------------------
  المقال الفردي - single post
------------------------------*/

.single-post {
    padding: 60px 0;
    background-color: #f8fafc;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.post-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.post-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1e293b;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    color: #64748b;
    font-size: 0.95rem;
}

.post-meta i {
    color: #2c6ecb;
    margin-left: 5px;
}

.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #0f172a;
}

.post-body ul,
.post-body ol {
    padding-left: 20px;
    margin-bottom: 1.5em;
}

.post-body a {
    color: #2c6ecb;
    text-decoration: none;
}

.post-body a:hover {
    text-decoration: underline;
}

.page-links {
    margin-top: 20px;
    font-weight: bold;
    color: #2c6ecb;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.post-tags a {
    display: inline-block;
    background: #e0e7ff;
    color: #2c6ecb;
    padding: 6px 14px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.post-tags a:hover {
    background: #c7d7fd;
}

/* أزرار المشاركة */

.share-buttons {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.share-buttons h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1e293b;
}

.share-buttons a {
    display: inline-block;
    margin: 0 10px 10px 0;
    padding: 10px 18px;
    background: #2c6ecb;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    background: #1a56a7;
    color: #fff;
}

/* التنقل بين المقالات */

.post-navigation {
    position: static !important;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    background: transparent;
    z-index: 1;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    padding: 8px 14px;
    background-color: #e2e8f0;
    border-radius: 6px;
    color: #2c6ecb;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover {
    background-color: #cbd5e1;
    color: #1a56a7;
}

.nav-links .nav-previous {
    text-align: right;
}

.nav-links .nav-next {
    text-align: left;
}

/* -----------------------------
  تحسين العرض على الشاشات الصغيرة
------------------------------ */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-menu {
        justify-content: center;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links a {
        justify-content: center;
    }
}

/* -----------------------------
  تأكيد بقاء الهيدر فوق العناصر
------------------------------ */

.site-header {
    position: relative;
    z-index: 1000;
}

