/* =====================================
   AZZAWAJ MAIN CSS (CORE SYSTEM)
   - NO HEADER / FOOTER / ARTICLE
===================================== */

/* ================= RESET ================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= ROOT ================= */
:root {
    --primary: #2A96C1;
    --accent: #F57C00;
    --text: #222;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --white: #fff;

    --radius: 8px;
    --transition: 0.3s ease;

    --shadow: 0 5px 15px rgba(0,0,0,0.05);

    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
}

/* ================= BODY ================= */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

html, body {
    overflow-x: hidden;
}
/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}
img {
    max-width: 100%;
    height: auto;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* ================= LINKS ================= */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ================= HERO ================= */
.hero,
.page-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/hero.jpg') center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 38px;
}

/* ================= LAYOUT ================= */
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.content {
    width: 100%;
}

/* ================= GRID ================= */
.post-grid,
.program-grid,
.news-layout {
    display: grid;
    gap: 25px;
}

.post-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
}

/* ================= CARDS ================= */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image img {
    width: 100%;
    display: block;
}

.post-content {
    padding: var(--spacing-md);
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

/* ================= FEATURED POST ================= */
.featured-post {
    margin-bottom: 40px;
}

.featured-image img {
    width: 100%;
    border-radius: var(--radius);
}

.featured-content {
    padding: 15px 0;
}

.featured-content h2 {
    font-size: 26px;
}

/* ================= NEWS HOME ================= */
.news-layout {
    grid-template-columns: 2fr 1fr;
}

.news-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-sidebar {
    position: relative;
}

/* ================= SIDEBAR ================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= PAGINATION ================= */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 5px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 14px;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ================= EMPTY STATES ================= */
.no-posts,
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.center {
    text-align: center;
}

/* ================= 404 ================= */
.error-code {
    font-size: 80px;
    font-weight: 700;
    color: var(--primary);
}

.error-title {
    font-size: 28px;
    margin-top: 10px;
}

.error-text {
    margin: 10px 0 20px;
}

/* ================= UTILITIES ================= */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ================= ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= MOBILE ================= */
@media (max-width: 992px) {

    .layout,
    .news-layout {
        grid-template-columns: 1fr;
    }

    .featured-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 600px) {

    h1 { font-size: 26px; }
    h2 { font-size: 22px; }

    .container {
        width: 92%;
    }
}