/*
Theme Name: Blogs Typist
Theme URI: http://example.com/blogstypist
Author: Manzoor Hoth
Author URI: http://example.com/
Description: A professional, clean, and fast typing theme for writers and bloggers.
Version: 4.0
License: GNU General Public License v2 or later
Text Domain: blogstypist
*/

/* =========================================
   1. FONT SETUP (Jameel Noori)
   ========================================= */
@font-face {
    font-family: 'Jameel Noori';
    /* Folder mein file ka naam 'jameel.ttf' hona chahiye */
    src: url('fonts/jameel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* =========================================
   2. GLOBAL STYLES (Light Background Fix)
   ========================================= */
* { box-sizing: border-box; }

body {
    /* Pehle Urdu Font, phir English Arial */
    font-family: 'Jameel Noori', 'Arial', sans-serif;
    
    /* ✅ Background ab Halka Grey hai (Aankhon ke liye acha) */
    background-color: #f4f7f6; 
    
    /* ✅ Likhayi ka rang Dark Grey/Black hai taake saaf dikhe */
    color: #333333;
    
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.6;
}

a { text-decoration: none; color: #0073aa; transition: 0.3s; }
a:hover { color: #d63031; }

/* =========================================
   3. HEADER STYLES
   ========================================= */
.site-header {
    background-color: #2d3436; /* Header Dark hi acha lagta hai */
    color: #fff;
    position: relative;
    border-bottom: none;
}

.header-overlay { padding: 40px 20px; }

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding { flex: 1; text-align: left; }

/* Logo Size */
.custom-logo-link img {
    max-width: 200px;
    height: auto;
}

/* Text Title styling */
.site-title { margin: 0; font-size: 42px; font-weight: normal; }
.site-title a { color: #fff !important; }
.site-description { margin: 10px 0 0; color: rgba(255,255,255,0.8); font-size: 18px; }

/* =========================================
   4. CONTAINER & GRID LAYOUT
   ========================================= */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* News Grid System */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* =========================================
   5. POST CARD DESIGN
   ========================================= */
.post-card {
    background: #ffffff; /* Cards bilkul White honge */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 14px;
    color: #777; /* Date ka color halka */
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

/* Urdu Heading Style */
.post-card h2 {
    margin: 0 0 15px;
    font-size: 26px;
    line-height: 1.4;
    text-align: right;
    direction: rtl;
    color: #000; /* Heading bilkul Black */
}

.post-card h2 a { color: #000; }
.post-card h2 a:hover { color: #0073aa; }

/* --- CONTENT / EXCERPT (Text Dark & Clear) --- */
.excerpt, article div {
    color: #444444; /* Paragraph text Dark Grey */
    font-size: 19px;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: right;
    direction: rtl;
    line-height: 1.6;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0073aa;
    color: #fff !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    align-self: flex-start;
    font-family: Arial, sans-serif;
}

.read-more-btn:hover { background-color: #0056b3; }

/* =========================================
   6. HERO POST (Pehli Badi Post)
   ========================================= */
.hero-post {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.hero-post .post-thumbnail { width: 55%; }
.hero-post .post-thumbnail img { height: 100%; }
.hero-post .post-content { width: 45%; padding: 50px; justify-content: center; }
.hero-post h2 { font-size: 42px; line-height: 1.3; }

/* =========================================
   7. FOOTER STYLES
   ========================================= */
footer {
    background: #dfe6e9;
    text-align: center;
    padding: 40px 20px;
    margin-top: auto;
    color: #636e72;
    border-top: 1px solid #b2bec3;
}

/* =========================================
   8. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
    
    .hero-post { 
        grid-column: span 1; 
        flex-direction: column; 
    }
    .hero-post .post-thumbnail, .hero-post .post-content { width: 100%; }
    .hero-post .post-thumbnail img { height: 250px; }
    .hero-post .post-content { padding: 25px; }
    .hero-post h2 { font-size: 32px; }

    .header-container { flex-direction: column; text-align: center; }
    .site-branding { text-align: center; margin-bottom: 20px; width: 100%; }
    .custom-logo-link img { margin: 0 auto; }

    .excerpt, article div {
        font-size: 18px;
        line-height: 1.5;
    }
}
/* --- URDU FIXES (FORCE RTL) --- */

/* 1. Heading aur Text ko Right Side karen */
.post-card h2, 
.post-content, 
.excerpt,
.post-meta {
    text-align: right !important;
    direction: rtl !important;
    unicode-bidi: embed;
}

/* 2. Mobile par Read More button ko bhi Right side layen */
.read-more-btn {
    float: right !important; 
    margin-top: 15px;
}

/* 3. Author aur Date ko set karen */
.post-meta {
    display: flex;
    justify-content: flex-start; /* Urdu mein start Right hota hai */
    flex-direction: row-reverse; /* Items ko palat den */
    gap: 10px;
}

/* 4. List Style (Bullets) ko Right karen */
ul, ol {
    direction: rtl;
    text-align: right;
    margin-right: 20px;
    padding-left: 0;
}