/* Consolidated Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Gotu&family=Merriweather:ital,wght@0,300;0,700;1,300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

:root {
    --body-color: #fff;    
    --header-bg:#F7F4EF;       
    --menu-color: #1C2430;    
    --menu-bg-trans: #b6064170;    
    --mobilemenu-color: #f7f4ef;
    --footer-bg: #1C2430;
    --footer-text: #a0a0a0;
    --footer-heading: #ffffff;
    --footer-link-hover: #ffffff;
    --footer-border: #2a2a2a;
}


html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    /*overflow-x: hidden;*/
    box-sizing: border-box;
    background-color: var(--body-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* ====================HERO SECTION CSS STARTS ================= */
/* Container & Layout */
.article-page-wrapper {
    background: #fdfdfd;
    padding: 40px 20px;
}

.article-container {
    max-width: 800px; /* Optimal reading width */
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

.breadcrumb a {
    text-decoration: none;
    color: #b60640; /* Safhaat Brand Red */
}

/* Header & Meta */
.post-header h1 {
    font-family: 'Merriweather', serif; /* Or your preferred Urdu/English serif */
    font-size: 2.5rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Image Handling */
.featured-img-wrapper {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Content Typography (Crucial for a writer's site) */
.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content strong {
    color: #1a1a1a;
}

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center; /* Centers the share section */
}

.share-container {
    text-align: center;
}

.share-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.icon-link {
    font-size: 24px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    text-decoration: none;
}

.icon-link:hover {
    transform: translateY(-3px);
    background: #b60641; /* Safhaat Brand Red */
    color: #fff;
}

.icon-link.whatsapp:hover { background: #25D366; }
.icon-link.instagram:hover { background: #E1306C; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .post-footer {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .icon-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .article-page-wrapper {
        padding: 10px;
    }

    .article-container {
        padding: 15px 10px;
        border-radius: 0; /* Full width feel on mobile */
        box-shadow: none;
    }

    .post-header h1 {
        font-size: 1.4rem;
    }

    .post-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 5px;
    }

    .meta-sep {
        display: none;
    }

    .post-content {
        font-size: 1.05rem;
    }
}

/* ==================== BOOK DETAILS GALLERY & THUMBNAILS ==================== */

.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-gallery {
    flex: 1;
    max-width: 500px;
}

/* Main Display Area */
.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 1:1 Square Thumbnails Grid */
.thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnails img {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    background-color: #fdfdfd;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.thumbnails img.active,
.thumbnails img:hover {
    border-color: #b60641; /* Safhaat Brand Red */
    opacity: 1;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-gallery {
        max-width: 100%;
    }

    .thumbnails img {
        width: 60px;
        height: 60px;
    }
}