/* =========================================
   1. GLOBAL STYLES & FONTS
   ========================================= */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: local('Jameel Noori Nastaleeq'), url('../fonts/JameelNooriNastaleeq.ttf') format('truetype');
}

* {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Arial', sans-serif;
}

body {
    background-color: #fcfbf7;
    margin: 0; padding: 0;
    direction: rtl;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
}

h1, h2, h3, h4, h5, h6 { font-weight: bold !important; margin-bottom: 15px; }
a { text-decoration: none; color: inherit; }

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

/* =========================================
   2. BOXES & GRID SYSTEM
   ========================================= */
.inner-grid-boxes, .grid-container { 
    display: grid; 
    gap: 10px !important;
}

.sec-content .inner-grid-boxes { align-content: start; }
.grid-container { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.cat-box { 
    background: #fffbf0; border: 1px solid #e1d4a6; border-radius: 6px; 
    padding: 0px 12px !important;
    transition: 0.3s; display: flex; justify-content: space-between; align-items: center; 
    height: 60px !important; min-height: 60px !important;
}
.cat-box:hover { background: #fff; border-color: #c9a227; transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,0.05); }

.cat-name { 
    color: #333; margin: 0; 
    font-weight: bold !important; 
    font-size: clamp(1.4rem, 1.7vw, 1.8rem) !important; 
    line-height: 1.0 !important; 
    padding-left: 5px; margin-top: 8px; 
    text-shadow: 0 1px 0px rgba(255,255,255,0.8);
}
.cat-badge { font-size: 0.9rem; color: #666; white-space: nowrap; flex-shrink: 0; font-weight: bold; }

/* =========================================
   3. HOME PAGE LAYOUT
   ========================================= */
.dashboard-container { 
    max-width: 1200px; margin: 0 auto 40px auto; padding: 0 20px; 
    display: flex; gap: 20px; align-items: stretch; 
}

/* Slide Panel */
.slide-panel { 
    flex: 2; background: white; border: 2px solid #c9a227; border-radius: 15px; 
    overflow: hidden; display: flex; flex-direction: column; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}
.slide-header { 
    background: #154c3b; color: #ffd700; padding: 12px 20px; 
    display: flex; justify-content: space-between; 
    font-size: 1.6rem; font-weight: bold; 
}
.slide-body { 
    flex-grow: 1; padding: 0; background: #fcfbf7; 
    display: flex; align-items: flex-start; justify-content: center;
    height: 280px; min-height: 280px; max-height: 280px;
    overflow: hidden; position: relative;
}
.slide-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Social Panel */
.social-panel { 
    flex: 1; background: #fffdf5; border: 2px solid #c9a227; border-radius: 15px; 
    padding: 20px; display: flex; flex-direction: column; justify-content: center; 
}
.social-title { 
    text-align: center; color: #154c3b; 
    font-size: 1.8rem; margin-bottom: 20px; font-weight: bold; 
}
.social-btn { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 15px; margin-bottom: 12px; border-radius: 8px; 
    color: white; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.2); filter: brightness(1.1); }
.bg-wa { background: #25D366; } .bg-fb { background: #1877F2; } .bg-yt { background: #FF0000; } .bg-gg { background: #1a5f4a; }

.s-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.s-icon svg { width: 24px; height: 24px; fill: white; }
.s-text { flex-grow: 1; text-align: right; padding-right: 15px; font-size: 1.4rem; font-weight: bold; }
.s-action { background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 4px; font-size: 0.9rem; font-family: sans-serif; text-transform: uppercase; font-weight: bold; }

/* Prayer Section */
.prayer-section { max-width: 1200px; margin: 0 auto 30px auto; padding: 0 20px; }
.prayer-card { background: #fff; border: 1px solid #e1d4a6; border-radius: 15px; padding: 15px 30px; box-shadow: 0 3px 10px rgba(0,0,0,0.03); }
.prayer-header-row { display: flex; justify-content: center; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.prayer-main { font-size: 2.6rem; color: #154c3b; font-weight: bold; line-height: 1; order: 1;}
.prayer-sub { font-size: 1.5rem; color: #c9a227; font-weight: bold; order: 2;}

.pt-grid { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pt-box { width: 115px; border: 1px solid #eee; border-radius: 8px; text-align: center; overflow: hidden; background: #fff; }
.pt-name { background: #fcfcfc; padding: 6px; color: #154c3b; font-size: 1.4rem; border-bottom: 1px solid #eee; font-weight: bold; }
.pt-time { padding: 8px 5px; font-size: 1.1rem; color: #333; font-family: sans-serif; direction: ltr; font-weight: bold; }
.pt-box.highlight { border-color: #c9a227; background: #fffdf9; }
.pt-box.highlight .pt-name { color: #c9a227; background: #fff9e6; }

.fasting-row { text-align: center; font-size: 1.3rem; color: #555; margin-bottom: 15px; padding-bottom: 10px; font-weight: bold; }
.fasting-label { color: #154c3b; font-weight: bold; margin-left: 5px; }
.fasting-time { font-family: sans-serif; direction: ltr; display: inline-block; color: #333; }
.fasting-sep { margin: 0 15px; color: #ddd; }

.nawafil-container { position: relative; text-align: center; margin-top: 15px; border-top: 1px solid #e1d4a6; padding-top: 15px; }
.nawafil-heading { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #fff; color: #c9a227; padding: 0 15px; font-size: 1.3rem; font-weight: bold; }
.nawafil-times { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; color: #555; font-size: 1.2rem; font-weight: bold; }
.nt-item b { color: #154c3b; margin-left: 5px; font-weight: normal; }
.nt-time { font-family: sans-serif; direction: ltr; display: inline-block; color: #333; font-size: 1rem; }

/* Sections Area */
.sections-wrapper { max-width: 1200px; margin: 0 auto 50px auto; padding: 0 20px; }
.main-sections-grid { display: grid; gap: 25px; grid-template-columns: repeat(12, 1fr); }
.span-12 { grid-column: span 12; } .span-6 { grid-column: span 6; } .span-4 { grid-column: span 4; }    

.sec-card { background: white; border: 1px solid #ddd; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,0.05); display: flex; flex-direction: column; height: 100%; min-height: 200px; }
.theme-green .sec-head { background: #154c3b; } .theme-gold .sec-head { background: #B8860B; } .theme-blue .sec-head { background: #2c3e50; }

.sec-head { padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; }
.sec-head h3 { margin: 0; font-size: 1.8rem; color: white; font-weight: bold; }
.sec-head a { color: white; font-size: 1rem; text-decoration: none; background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 20px; transition: 0.3s; font-weight: bold; }
.sec-head a:hover { background: white; color: #333; }
.sec-content { padding: 15px; flex-grow: 1; background: #fff; }

/* =========================================
   4. BREADCRUMB & UTILS
   ========================================= */
.breadcrumb-container {
    background-color: #ffffff; border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); width: 100%; min-height: 50px;
    display: flex; align-items: center; margin-bottom: 30px;
}
.breadcrumb-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%;
    font-size: 1.1rem; color: #666; display: flex; align-items: center;
}
.breadcrumb-inner a { color: #0b462d; font-weight: bold; transition: 0.3s; padding: 5px 8px; border-radius: 4px; }
.breadcrumb-inner a:hover { color: #c9a227; background-color: rgba(201, 162, 39, 0.1); }
.breadcrumb-inner .separator { margin: 0 5px; color: #ccc; }
.breadcrumb-inner .active { color: #999; pointer-events: none; }

.nav-search input { color: #333 !important; font-size: 1.1rem; font-weight: bold; }
.page-title { font-size: 2.2rem; color: #154c3b; margin: 0; line-height: 1.4; font-weight: bold; }

/* Sidebar & Card */
.article-layout { display: flex; gap: 30px; align-items: flex-start; flex-direction: row-reverse; }
.article-main { flex: 3; min-width: 0; }
.article-sidebar { flex: 1; min-width: 300px; max-width: 350px; }

.card { background: white; border: 1px solid #eee; border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; margin-bottom: 10px; }

.category-card-content { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; }
.category-title { color: #0b462d; font-size: clamp(1.3rem, 1.6vw, 1.7rem); margin: 0; font-weight: bold; line-height: 1.2; }
.category-count { background-color: #fff8e1; color: #c9a227; font-size: 0.9rem; padding: 2px 8px; border-radius: 4px; border: 1px solid #c9a227; white-space: nowrap; margin-right: 15px; }

/* =========================================
   5. FOOTER STYLES
   ========================================= */
footer, .main-site-footer {
    background-color: #082f24; color: #fff; padding: 20px 0 0 0 !important;
    border-top: 5px solid #c9a227; font-family: 'Jameel Noori Nastaleeq', serif !important; margin-top: 40px;
}
.footer-content { 
    max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; 
    justify-content: space-between; padding: 0 20px 10px 20px; align-items: flex-start; 
}
.footer-col { flex: 1; min-width: 250px; margin-bottom: 20px; }
.footer-col h3, footer h3 { 
    color: #ffd700; font-size: 2.2rem !important; font-weight: bold !important;
    margin-top: 0 !important; margin-bottom: 20px; display: inline-block; 
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { transition: 0.3s; display: inline-block; color: white; font-size: 1.4rem !important; font-weight: bold !important; line-height: 1.8 !important; }
.footer-col ul li a:hover { color: #ffd700 !important; transform: translateX(-5px); text-decoration: underline; }
.footer-col p, .footer-text { font-size: 1.3rem !important; line-height: 1.6 !important; font-weight: bold !important; color: #e1d4a6; }
.footer-bottom { background-color: #051f18; text-align: center; padding: 15px; border-top: 1px solid #154c3b; color: #aaa; font-size: 1rem; }

/* Responsive Footer/Layout */
@media(max-width: 900px) {
    .dashboard-container { flex-direction: column; }
    .slide-body { height: auto; min-height: 200px; } 
    .pt-box { width: 45%; }
    .span-6, .span-4 { grid-column: span 12 !important; } 
    .article-layout { flex-direction: column; }
    .article-sidebar { width: 100%; min-width: 100%; max-width: 100%; margin-top: 30px; }
}

/* =========================================
   6. SOCIAL BUTTON COLORS
   ========================================= */
.bg-insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important; border: 1px solid rgba(255,255,255,0.2);
}
.bg-insta:hover { filter: brightness(1.1); box-shadow: 0 4px 8px rgba(220, 39, 67, 0.3); }

/* =========================================
   7. REFINED STYLING (URDU & TEXT)
   ========================================= */
span.islamic-book { color: #2BA60E !important; font-weight: bold !important; }
span.darood-shareef { color: #2BA60E !important; font-size: 100% !important; font-weight: normal !important; font-family: inherit !important; }

/* Urdu Headings */
.article-main h1, .urdu-font h1 {
    color: #154c3b !important; font-size: 1.4rem !important; 
    font-weight: bold !important; text-align: center; line-height: 1.5; margin-bottom: 20px;
}
.article-body h2, .urdu-font h2 {
    color: #154c3b !important; border-bottom: 2px solid #c9a227 !important; 
    display: inline-block; line-height: 1.4 !important; font-size: 1.5rem !important; 
    margin-top: 10px !important; padding-bottom: 5px !important; margin-bottom: 2px !important;
}

/* =========================================
   8. ENGLISH TYPOGRAPHY
   ========================================= */
.english-content-box {
    direction: ltr !important; font-family: 'Calibri', 'Arial', sans-serif !important;
    font-size: 1.25rem !important; line-height: 1.6 !important; color: #222 !important;
    margin-top: 30px; padding-top: 20px; border-top: 4px double #e1d4a6;
}
.english-section-label {
    font-family: 'Arial', sans-serif; font-size: 1.1rem; color: #c9a227;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; display: block;
}
.english-content-box h1 {
    text-align: center !important; color: #154c3b !important; 
    font-family: 'Calibri', 'Arial', sans-serif !important; font-weight: bold !important;
    font-size: 2.0rem !important; line-height: 1.3 !important; 
    margin-top: 1px !important; margin-bottom: 17px !important; border: none !important;
}
.english-content-box h2 {
    color: #154c3b !important; font-family: 'Calibri', 'Arial', sans-serif !important;
    font-weight: bold !important; font-size: 1.5rem !important; 
    border-bottom: 2px solid #c9a227 !important; display: inline-block !important; width: auto !important;
    margin-top: 5px !important; padding-bottom: 1px !important; margin-bottom: 15px !important;
}
.english-content-box h2 + p, .english-content-box h2 + ul, .english-content-box h2 + div {
    margin-top: 0px !important; padding-top: 1px !important;
}
.english-content-box p, .english-content-box li {
    font-family: 'Calibri', 'Arial', sans-serif !important; font-size: 1.25rem !important; margin-bottom: 15px !important;
}

/* =========================================
   RIBBON STYLE NEW BADGE (Top-Left Corner)
   ========================================= */
/* 1. کارڈز کو ریلیٹو کریں */
.card, .cat-box, .archive-card {
    position: relative !important;
    overflow: hidden; /* ربن کو باہر نکلنے سے روکنے کے لیے */
}

/* 2. ربن کا ڈیزائن */
.new-badge {
    position: absolute;
    top: 6px;
    left: -24px; /* ٹیڑھا کرنے کے لیے پوزیشن */
    width: 80px;
    
    background: #ff4757; /* لال رنگ */
    color: white;
    
    font-family: 'Arial', sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    
    transform: rotate(-45deg); /* ٹیڑھا کیا */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    
    /* خوبصورتی کے لیے ہلکا بارڈر */
    border: 1px solid #fff;
    line-height: 1.4;
}