/*
Theme Name:   شركة البوابة
Author:       Islam Omr
Version:      1.0.0
Tags:         custom-post-type, redux, meta-box
*/

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

body {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* =====================
   Layout
   ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 40px 0;
}

/* =====================
   Header
   ===================== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-branding .site-description {
    font-size: 0.85rem;
    color: #777;
}

/* =====================
   Navigation
   ===================== */
.main-navigation ul {
    display: flex;
    gap: 24px;
}

.main-navigation ul li a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation ul li a:hover {
    color: #0073aa;
}

/* =====================
   Footer
   ===================== */
.site-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* =====================
   Index / Archive
   ===================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.post-card-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
}

.post-card-body h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.post-card-body .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

.post-card-body .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0073aa;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* =====================
   Pagination
   ===================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
