:root {
    --primary: #1a472a; /* Deep Islamic Green */
    --gold: #d4af37;
    --dark: #121212;
    --light: #ffffff;
    --gray: #f4f4f4;
}

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    background-color: var(--gray);
    margin: 0;
    overflow-x: hidden;
}

/* --- NAVIGATION STYLE --- */
.navbar {
    background: var(--dark);
    min-height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-urdu {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

/* Desktop Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--gold);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    transition: 0.3s;
}

/* header  */
.hero{
    text-align: center;
}

.hero p {
    width: 65vw;
    display: flex;
    justify-content: center;
    align-items: center
    
}

.hero p {
    margin: auto;
}

.color{
    color:var(--gold);
    font-size: 60px;
        
    
}


.section-title{
    text-align: center;
}



/* --- ARTICLE GRID SETTINGS --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Sirf 2 boxes ek line mein */
    gap: 30px; /* Boxes ke darmiyan fasla */
    max-width: 900px; /* Grid ki width control karne ke liye */
    margin: 0 auto; /* Grid ko page ke center mein karne ke liye */
    padding: 20px 0;
}

/* --- ARTICLE BOX (CARD) STYLING --- */
.blog-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Hover Animation: Box upar uthay ga aur shadow gehri hogi */
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(192, 120, 120, 0.15);
    border-color: var(--gold);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Image zoom on hover */
.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    text-align: right; /* Urdu alignment */
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 850px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Mobile par single box */
        max-width: 500px;
        padding: 10px;
    }
}



/* --- FOOTER STYLE --- */
.main-footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 5% 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about .logo-urdu {
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 1rem;
    line-height: 2;
    color: #bbb;
}

.footer-links h3, .footer-social h3 {
    font-family: sans-serif;
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    position: relative;
    left: 22px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--light);
    padding-right: 10px;
}

.social-icons span {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    margin-left: 10px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-family: sans-serif;
    font-size: 0.8rem;
}

.social-icons span:hover {
    background: var(--gold);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-family: sans-serif;
    font-size: 0.8rem;
    color: #777;
}



/* --- CARD FOOTER STYLING --- */
.card-footer {
    display: flex;
    justify-content: space-between; /* Button ek taraf aur date dusri taraf */
    align-items: center;
    margin-top: auto; /* Card ke bilkul nichle hisse par fix karne ke liye */
    padding: 15px 25px;
    border-top: 1px dotted #ddd; /* Elegant dotted line */
    background-color: #fafafa; /* Bohat halka gray background */
}

/* Button 'Read More' Style */
.btn-read {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: bold;
    border: 2px solid var(--primary);
    padding: 6px 18px;
    border-radius: 25px; /* Rounded pill style button */
    transition: all 0.3s ease;
    display: inline-block;
}

/* Button Hover Effect */
.btn-read:hover {
    background-color: var(--dark);
    color: var(--gold);
    transform: scale(1.05); /* Halka sa bara hoga */
    box-shadow: 0 4px 8px rgba(26, 71, 42, 0.2);
}

/* Date Style */
.date {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* English dates ke liye clean font */
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
}

/* Date ke sath chota sa icon effect (optional) */
.date::before {
    content: '📅'; /* Calendar emoji as icon */
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .card-footer {
        padding: 12px 15px;
    }
    .btn-read {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    .hero p {
    width: 85vw;
    display: flex;
    justify-content: center;
    align-items: center
    
}

.hero p {
    margin: auto;
}
}




/* For Mobile (768px and below) */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active { left: 0; }

    .blog-grid {
        grid-template-columns: 1fr; /* Mobile par 1 column */
    }

    .hero p {
    width: 85vw;
    display: flex;
    justify-content: center;
    align-items: center
    
}

.hero p {
    margin: auto;
}



    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* position: relative;
        left: 19px; */
    }

}