/* 
 * SarkariHelp - Main Stylesheet
 * Modern, Premium, Mobile-First UI
 */

:root {
  /* Colors */
  --primary: #e63946;      /* Sarkari Red */
  --primary-dark: #c1121f;
  --secondary: #1d3557;    /* Deep Blue */
  --accent: #457b9d;       /* Steel Blue */
  --success: #2a9d8f;
  --warning: #e9c46a;
  --info: #0077b6;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-main: #333333;
  --text-muted: #6c757d;
  --border: #e9ecef;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-hover: 0 15px 30px rgba(230, 57, 70, 0.15);
  
  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-base: 0.3s ease;
  
  /* Layout */
  --radius: 8px;
  --radius-lg: 12px;
  --container-width: 1200px;
}

[data-theme="dark"] {
  --bg-light: #121212;
  --bg-white: #1e1e1e;
  --text-main: #f8f9fa;
  --text-muted: #adb5bd;
  --border: #2d2d2d;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-hover: 0 15px 30px rgba(230, 57, 70, 0.2);
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
  transition: background-color var(--trans-base), color var(--trans-base);
}
a { color: var(--primary); text-decoration: none; transition: var(--trans-fast); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar { background: var(--secondary); color: #fff; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #fff; margin-left: 15px; }
.top-bar a:hover { color: var(--primary); }
.top-bar-left span { margin-right: 15px; }
.dark-toggle { background: none; border: none; color: #fff; cursor: pointer; margin-left: 15px; font-size: 14px; }

/* Header */
.site-header { background: var(--bg-white); padding: 15px 0; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { background: var(--primary); color: #fff; width: 45px; height: 45px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.logo-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.header-search { flex: 0 1 500px; position: relative; margin: 0 20px; }
.search-box { display: flex; background: var(--bg-light); border: 1px solid var(--border); border-radius: 30px; overflow: hidden; padding: 5px; transition: var(--trans-base); }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230,57,70,0.1); }
.search-box input { flex: 1; border: none; background: transparent; padding: 10px 20px; outline: none; color: var(--text-main); font-size: 15px; }
.search-box button { background: var(--primary); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: var(--trans-fast); }
.search-box button:hover { background: var(--primary-dark); }
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-top: 10px; display: none; z-index: 1001; max-height: 400px; overflow-y: auto; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-telegram { background: #0088cc; color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn-telegram:hover { background: #0077b5; color: #fff; transform: translateY(-2px); }

/* Navigation */
.main-nav { background: var(--primary); border-top: 1px solid rgba(255,255,255,0.1); }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-list li { position: relative; }
.nav-link { display: block; padding: 15px 20px; color: #fff; font-weight: 500; transition: var(--trans-fast); }
.nav-link:hover, .nav-link.active { background: rgba(0,0,0,0.1); color: #fff; }

/* Navigation Dropdown */
.nav-list li.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--bg-white); min-width: 280px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); z-index: 1000; padding: 10px 0; list-style: none; margin: 0; }
.dropdown-menu li { border-bottom: 1px solid var(--bg-light); padding: 0; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu a { display: block; padding: 10px 20px; color: var(--text-main); font-size: 14px; font-weight: 500; transition: var(--trans-fast); }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); padding-left: 25px; }
.dropdown-menu a i { margin-right: 8px; color: var(--primary); }
.view-all-dropdown a { text-align: center; font-weight: 600; color: var(--primary); background: rgba(230,57,70,0.05); }
.view-all-dropdown a:hover { background: var(--primary); color: #fff; padding-left: 20px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--text-main); margin: 5px 0; transition: var(--trans-fast); }

.mobile-search-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; padding: 5px; }
.mobile-search-toggle:hover { color: var(--primary); }

/* Breaking News Ticker */
.breaking-news { background: var(--warning); padding: 0; color: #333; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,0.05); }
.ticker-wrap { display: flex; align-items: center; }
.ticker-label { background: var(--primary); color: #fff; padding: 8px 20px; font-weight: 600; font-family: var(--font-heading); z-index: 2; position: relative; text-transform: uppercase; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ticker-content { flex: 1; overflow: hidden; padding: 8px 15px; }
.ticker-items { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; }
.ticker-items:hover { animation-play-state: paused; }
.ticker-item { margin-right: 50px; font-weight: 500; font-size: 15px; }
.ticker-item a { color: #333; }
.ticker-item a:hover { color: var(--primary); text-decoration: underline; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* Main Content Area */
#main-content { padding: 40px 0; min-height: 60vh; }

/* Grid Layouts */
.home-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* Section Headers */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
.section-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: 10px; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 50px; height: 2px; background: var(--primary); }
.view-all { font-size: 14px; font-weight: 600; background: var(--bg-light); padding: 5px 15px; border-radius: 20px; border: 1px solid var(--border); }
.view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Post Cards */
.post-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--trans-base); border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.post-meta { display: flex; justify-content: space-between; padding: 15px 20px 5px; font-size: 12px; color: var(--text-muted); }
.post-cat { background: rgba(230,57,70,0.1); color: var(--primary); padding: 3px 10px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.post-content { padding: 15px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.post-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.post-title a { color: var(--text-main); }
.post-title a:hover { color: var(--primary); }
.post-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 15px; flex: 1; }
.post-btn { display: inline-block; background: var(--bg-light); color: var(--secondary); font-weight: 600; padding: 8px 20px; border-radius: var(--radius); text-align: center; border: 1px solid var(--border); transition: var(--trans-fast); margin-top: auto; }
.post-card:hover .post-btn { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Sarkari Link Lists */
.sarkari-list { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-sm); overflow: hidden; }
.sarkari-list ul { list-style: none; padding: 0; margin: 0; }
.sarkari-list li { border-bottom: 1px solid var(--border); padding: 15px 20px; transition: var(--trans-fast); display: flex; align-items: center; }
.sarkari-list li:last-child { border-bottom: none; }
.sarkari-list li:hover { background: var(--bg-light); padding-left: 25px; border-left: 4px solid var(--primary); }
.sarkari-list li::before { content: '»'; color: var(--primary); font-weight: bold; font-size: 20px; margin-right: 12px; }
.sarkari-list a { color: var(--text-main); font-size: 16px; font-weight: 600; flex: 1; }
.sarkari-list a:hover { color: var(--primary); }

/* Blinking New Badge */
.blink-new { background: #e63946; color: #fff; padding: 2px 8px; font-size: 11px; border-radius: 12px; font-weight: bold; animation: blink-anim 1s linear infinite; margin-left: 10px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; vertical-align: middle; }
@keyframes blink-anim { 0% { opacity: 1; } 50% { opacity: 0.2; } 100% { opacity: 1; } }

/* Sidebar */
.sidebar { background: var(--bg-white); border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 30px; }
.sidebar-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); position: relative; }
.sidebar-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--primary); }

.list-group { list-style: none; }
.list-group li { border-bottom: 1px dashed var(--border); padding: 12px 0; }
.list-group li:last-child { border-bottom: none; }
.list-group a { display: flex; align-items: flex-start; gap: 10px; color: var(--text-main); font-weight: 500; font-size: 15px; }
.list-group a:hover { color: var(--primary); padding-left: 5px; }
.list-group i { color: var(--primary); margin-top: 4px; }

/* Single Post */
.single-post { background: var(--bg-white); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.single-header { margin-bottom: 30px; text-align: center; }
.single-title { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--secondary); margin-bottom: 15px; line-height: 1.3; }
.single-meta { display: flex; justify-content: center; gap: 20px; color: var(--text-muted); font-size: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.single-meta span { display: flex; align-items: center; gap: 5px; }

.info-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-table th { background: var(--secondary); color: #fff; padding: 15px; text-align: left; font-weight: 600; width: 30%; border: 1px solid rgba(255,255,255,0.1); }
.info-table td { padding: 15px; border: 1px solid var(--border); font-weight: 500; }
.info-table tr:nth-child(even) td { background: var(--bg-light); }

.stylish-list { list-style: none; padding: 0; margin-bottom: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-white); overflow: hidden; box-shadow: var(--shadow-sm); }
.stylish-list li { display: flex; border-bottom: 1px solid var(--border); transition: var(--trans-fast); }
.stylish-list li:last-child { border-bottom: none; }
.stylish-list li:hover { background: var(--bg-light); }
.stylish-list .list-label { width: 35%; background: rgba(0,0,0,0.02); padding: 15px 20px; font-weight: 600; color: var(--secondary); display: flex; align-items: center; border-right: 1px solid var(--border); }
.stylish-list .list-value { width: 65%; padding: 15px 20px; font-weight: 500; display: flex; align-items: center; }

.important-links-list { list-style: none; padding: 0; margin-bottom: 30px; display: grid; gap: 15px; }
.important-links-list li { display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); padding: 15px 25px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--trans-base); }
.important-links-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); background: var(--bg-white); }
.important-links-list .link-title { font-weight: 700; font-size: 16px; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.important-links-list .link-btn { background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 30px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; box-shadow: 0 4px 10px rgba(230, 57, 70, 0.2); }
.important-links-list .link-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

.post-body h2, .post-body h3 { font-family: var(--font-heading); color: var(--secondary); margin: 35px 0 20px; font-weight: 700; position: relative; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.post-body h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--primary); }
.post-body p { margin-bottom: 15px; font-size: 16px; line-height: 1.8; }
.post-body ul, .post-body ol { margin-bottom: 20px; padding-left: 20px; }
.post-body li { margin-bottom: 8px; line-height: 1.6; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post-body figure.image { margin: 15px 0; max-width: 100%; display: table; }
.post-body figure.image img { max-width: 100%; display: block; margin: 0 auto; }
.post-body figure.image figcaption { display: table-caption; caption-side: bottom; word-break: break-word; color: var(--text-muted); font-size: 13px; text-align: center; padding: 5px; }

/* CKEditor Image Alignment */
.post-body figure.image-style-align-center { margin: 15px auto !important; }
.post-body figure.image-style-align-left { float: left !important; margin-right: 20px !important; margin-bottom: 15px !important; }
.post-body figure.image-style-align-right { float: right !important; margin-left: 20px !important; margin-bottom: 15px !important; }
.post-body .image-style-align-left { float: left !important; margin-right: 20px !important; margin-bottom: 15px !important; }
.post-body .image-style-align-right { float: right !important; margin-left: 20px !important; margin-bottom: 15px !important; }
.post-body .image-style-align-center { display: block !important; margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* Catch-all for inline centered text or images */
.post-body [style*="text-align: center"], .post-body [style*="text-align:center"] {
    text-align: center !important;
}
.post-body [style*="text-align: center"] img, .post-body [style*="text-align:center"] img {
    display: inline-block !important;
    margin: 0 auto !important;
}
.post-body img[style*="margin-left: auto"][style*="margin-right: auto"] {
    display: block !important;
}
.post-body img[style*="float: left"], .post-body img[style*="float:left"] {
    float: left !important; margin-right: 20px !important; margin-bottom: 15px !important;
}
.post-body img[style*="float: right"], .post-body img[style*="float:right"] {
    float: right !important; margin-left: 20px !important; margin-bottom: 15px !important;
}

.post-body p { clear: none; } /* Ensure text wraps around floats */
.post-body::after { content: ""; display: table; clear: both; } /* Clearfix for container */

.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.post-body table th, .post-body table td { border: 1px solid var(--border); padding: 10px 15px; }
.post-body table th { background: var(--bg-light); font-weight: 600; }

.action-buttons { display: flex; gap: 15px; margin: 40px 0; flex-wrap: wrap; justify-content: center; }
.btn-apply { background: var(--success); color: #fff; padding: 15px 30px; border-radius: 30px; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3); }
.btn-apply:hover { background: #21867a; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4); }
.btn-download { background: var(--info); color: #fff; padding: 15px 30px; border-radius: 30px; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3); }
.btn-download:hover { background: #005f92; color: #fff; transform: translateY(-2px); }

.social-share { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 30px; text-align: center; }
.share-title { font-weight: 600; margin-bottom: 15px; display: block; }
.share-buttons { display: flex; justify-content: center; gap: 10px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transition: var(--trans-fast); }
.share-btn:hover { transform: scale(1.1); color: #fff; }
.share-wa { background: #25D366; }
.share-tg { background: #0088cc; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }

/* Footer */
.site-footer { background: var(--secondary); color: #fff; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-desc { color: rgba(255,255,255,0.7); margin-bottom: 20px; font-size: 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: var(--trans-fast); }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-heading { font-size: 18px; font-weight: 600; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-links li, .footer-recent li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.footer-recent a { color: #fff; font-weight: 500; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.footer-recent a:hover { color: var(--primary); }
.footer-recent small { color: rgba(255,255,255,0.5); font-size: 12px; margin-left: 24px; }

.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input { flex: 1; padding: 12px; border: none; border-radius: var(--radius) 0 0 var(--radius); outline: none; }
.newsletter-form button { background: var(--primary); color: #fff; border: none; padding: 12px 20px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-weight: 600; transition: var(--trans-fast); }
.newsletter-form button:hover { background: var(--primary-dark); }
.join-channels { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.join-btn { display: block; padding: 10px 15px; border-radius: var(--radius); text-align: center; font-weight: 600; color: #fff; transition: var(--trans-fast); }
.join-btn i { margin-right: 5px; }
.whatsapp-join { background: #25D366; }
.whatsapp-join:hover { background: #1ebe5d; color: #fff; }
.telegram-join { background: #0088cc; }
.telegram-join:hover { background: #0077b5; color: #fff; }

.footer-bottom { background: rgba(0,0,0,0.2); padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: rgba(255,255,255,0.6); flex-wrap: wrap; gap: 15px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: var(--primary); }

/* Utilities */
.whatsapp-float { position: fixed; bottom: 30px; left: 30px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: var(--shadow-lg); z-index: 100; transition: var(--trans-base); animation: pulse 2s infinite; }
.whatsapp-float:hover { background: #1ebe5d; color: #fff; transform: scale(1.1); }
.whatsapp-tooltip { position: absolute; left: 70px; background: #333; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; transition: var(--trans-fast); }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--secondary); color: #fff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--shadow-md); border: none; cursor: pointer; z-index: 99; opacity: 0; visibility: hidden; transition: var(--trans-base); transform: translateY(20px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); transform: translateY(-5px); }

/* Responsive Design */
@media (max-width: 992px) {
  .home-grid { grid-template-columns: 1fr; }
  
  .mobile-search-toggle { display: block; }
  .header-search { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); padding: 15px; box-shadow: var(--shadow-md); z-index: 1000; margin: 0; border-bottom: 1px solid var(--border); border-top: 1px solid var(--bg-light); }
  .header-search.active { display: block; }
  
  .hamburger { display: block; }
  .main-nav {
    display: block;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }
  .main-nav.active {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; }
  .nav-link { color: var(--text-main); border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .nav-link:hover, .nav-link.active { background: var(--bg-light); color: var(--primary); }
  .btn-telegram { display: none; }
}

@media (max-width: 768px) {
  .top-bar-left span { display: none; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .single-title { font-size: 24px; }
  .info-table th { width: 40%; }
}

@media (max-width: 480px) {
  .logo-main { font-size: 20px; }
  .logo-sub { font-size: 10px; }
  .post-grid { grid-template-columns: 1fr; }
  .action-buttons { flex-direction: column; }
  .btn-apply, .btn-download { width: 100%; justify-content: center; }
  
  /* Breaking News Ticker Mobile Fix */
  .ticker-label { padding: 6px 10px; font-size: 11px; }
  .ticker-content { padding: 6px 10px; }
  .ticker-item { font-size: 13px; margin-right: 30px; }
  .ticker-items { animation-duration: 15s; }
  
  /* Post Details Mobile Fixes */
  .stylish-list li { flex-direction: column; }
  .stylish-list .list-label { width: 100% !important; border-right: none; border-bottom: 1px solid var(--border); padding: 10px 15px; }
  .stylish-list .list-value { width: 100% !important; padding: 10px 15px; }
  
  .important-links-list li { flex-direction: column; align-items: flex-start; gap: 15px; text-align: left; }
  .important-links-list .link-btn { width: 100%; justify-content: center; }
  
  .info-table th { width: 100%; display: block; border-bottom: none; }
  .info-table td { width: 100%; display: block; }
  .info-table tr { display: block; border-bottom: 2px solid var(--border); }
}

/* ─── FAQ Accordion ─────────────────────────────────────────── */
.faq-accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  text-align: left;
  gap: 12px;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.active { background: #fff5f5; color: var(--primary); }
.faq-question.active .faq-icon { transform: rotate(180deg); }

.faq-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 20px 16px 20px;
  background: var(--bg-light);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  border-top: 1px solid var(--border);
  animation: fadeIn 0.2s ease;
}
.faq-answer p { margin: 12px 0 0; }

@keyframes fadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

[data-theme="dark"] .faq-question { background: var(--bg-dark, #1e2a38); color: #e2e8f0; }
[data-theme="dark"] .faq-question:hover { background: #253244; }
[data-theme="dark"] .faq-question.active { background: #2d1a1a; color: var(--primary); }
[data-theme="dark"] .faq-answer { background: #192231; color: #cbd5e0; }

/* ─── Inline Related Posts ───────────────────────────────────────── */
.inline-related-post { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 12px 20px; margin: 25px 0; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); transition: var(--trans-base); display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.inline-related-post:hover { background: #fff5f5; transform: translateX(5px); box-shadow: var(--shadow-md); border-color: var(--primary-dark); }
.irp-badge { background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.irp-link { color: var(--secondary); font-weight: 600; font-size: 17px; flex: 1; text-decoration: none; display: flex; align-items: center; line-height: 1.4; transition: var(--trans-fast); }
.irp-link:hover { color: var(--primary); }

[data-theme="dark"] .inline-related-post { background: #1a1a1a; border-color: var(--primary); }
[data-theme="dark"] .inline-related-post:hover { background: #2a1a1a; }
[data-theme="dark"] .irp-link { color: #e2e8f0; }
[data-theme="dark"] .irp-link:hover { color: var(--primary); }

@media (max-width: 480px) {
  .inline-related-post { flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px; }
  .irp-link { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════════
   PWA Hero Slider — ONLY in standalone app mode
   Browser mein HIDDEN rahega
   ══════════════════════════════════════════════════════════════ */

/* Hidden by default in browser */
.pwa-hero-slider { display: none; }

/* Show ONLY when installed as PWA */
@media (display-mode: standalone) {
  .pwa-hero-slider {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    height: 220px;
  }
  @media (min-width: 769px) {
    .pwa-hero-slider { height: 380px; }
  }
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.hero-slide-inner {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
  position: relative;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.hero-slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%);
  padding: 20px 20px 16px;
  color: #fff;
}

.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (min-width: 769px) { .hero-slide-title { font-size: 28px; } }

.hero-slide-subtitle {
  font-size: 13px;
  margin: 0 0 10px;
  opacity: 0.9;
  line-height: 1.4;
}

@media (min-width: 769px) { .hero-slide-subtitle { font-size: 16px; } }

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230,57,70,0.4);
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 14px;
  transition: background 0.2s;
}

.hero-arrow:hover { background: rgba(255,255,255,0.45); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

/* ══════════════════════════════════════════════════════════════
   PWA Bottom Navigation — ONLY in installed app (standalone) mode
   Browser mein yeh HIDDEN rahega
   ══════════════════════════════════════════════════════════════ */

/* Default: hidden in browser */
.pwa-bottom-nav {
  display: none;
}

/* Show ONLY when installed as PWA (standalone mode) */
@media (display-mode: standalone) {

  /* ── Mobile PWA (≤768px): Show bottom nav, hide top nav, footer, hamburger ── */
  @media (max-width: 768px) {
    .pwa-bottom-nav {
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 64px;
      background: var(--bg-white);
      border-top: 2px solid var(--border);
      box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
      z-index: 9999;
      align-items: stretch;
      justify-content: space-around;
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    body { padding-bottom: 64px; }

    /* Hide top nav + top bar */
    .main-nav { display: none !important; }
    .top-bar   { display: none !important; }

    /* Hide hamburger button (bottom nav replaces it) */
    .hamburger,
    #menuToggle { display: none !important; }

    /* Hide footer completely in mobile PWA app */
    .site-footer { display: none !important; }

    /* Adjust WhatsApp float and Back to top (bottom nav takes space) */
    .whatsapp-float { display: flex !important; bottom: 80px !important; }
    .back-to-top.show { bottom: 80px !important; }

    /* Show telegram button in PWA mobile header (icon only) */
    .btn-telegram { 
      display: inline-flex !important; 
      padding: 0 !important; 
      width: 36px; 
      height: 36px; 
      border-radius: 50% !important; 
      justify-content: center; 
      font-size: 0; /* Hide text */
    }
    .btn-telegram i { font-size: 20px; }
  }

  /* ── Desktop PWA (>768px): Show regular top nav, hide bottom nav ── */
  @media (min-width: 769px) {
    .pwa-bottom-nav { display: none; }
    .main-nav  { display: block; }
    .top-bar   { display: block; }
  }

  /* Drawer always rendered in DOM */
  .pwa-drawer { display: flex; }
  .pwa-drawer-overlay { display: block; }
}

.pwa-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.pwa-nav-item i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.pwa-nav-item span {
  font-size: 10px;
  line-height: 1;
}

.pwa-nav-item:hover,
.pwa-nav-item.active {
  color: var(--primary);
}

.pwa-nav-item.active i {
  transform: translateY(-2px);
}

.pwa-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* Center Search Button */
.pwa-nav-center {
  position: relative;
  top: -14px;
}

.pwa-nav-center i {
  background: var(--primary);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pwa-nav-center:hover i,
.pwa-nav-center.active i {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.pwa-nav-center::after { display: none; }

/* Dark mode bottom nav */
[data-theme="dark"] .pwa-bottom-nav {
  background: #1e1e1e;
  border-top-color: #2d2d2d;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

/* ── PWA Install Banner ──────────────────────────────────────── */
.pwa-install-banner {
  display: none; /* JS will show it */
  position: fixed;
  bottom: 80px;
  left: 12px;
  right: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  padding: 14px 16px;
  z-index: 9998;
  align-items: center;
  gap: 12px;
  animation: slideUpBanner 0.4s ease;
}

.pwa-install-banner.show {
  display: flex;
}

@keyframes slideUpBanner {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.pwa-install-text small {
  font-size: 12px;
  color: var(--text-muted);
}

.pwa-install-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.pwa-install-btn:hover { background: var(--primary-dark); }

.pwa-install-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

[data-theme="dark"] .pwa-install-banner {
  background: #1e1e1e;
  border-color: #2d2d2d;
}

/* ─── PWA More Button ─────────────────────────────────────── */
.pwa-nav-more {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.pwa-nav-more.active {
  color: var(--primary);
}

/* ─── PWA Slide-Up Drawer ────────────────────────────────────── */

/* Overlay (dark background behind drawer) */
.pwa-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pwa-drawer-overlay.show {
  opacity: 1;
}

/* Drawer Panel */
.pwa-drawer {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: 20px 20px 0 0;
  z-index: 10001;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85vh;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pwa-drawer.show {
  transform: translateY(0);
}

/* Drawer Handle Bar */
.pwa-drawer::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* Drawer Header */
.pwa-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--border);
}

.pwa-drawer-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.pwa-drawer-close {
  background: var(--bg-light);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s;
}

.pwa-drawer-close:hover {
  background: var(--border);
}

/* Drawer Body (scrollable) */
.pwa-drawer-body {
  overflow-y: auto;
  padding: 8px 0 16px;
}

/* Drawer Item */
.pwa-drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.pwa-drawer-item:hover,
.pwa-drawer-item:active {
  background: var(--bg-light);
  color: var(--primary);
}

.pwa-drawer-item i {
  font-size: 20px;
  width: 26px;
  text-align: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* Divider between sections */
.pwa-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Dark Mode Drawer */
[data-theme="dark"] .pwa-drawer {
  background: #1e1e1e;
}

[data-theme="dark"] .pwa-drawer-title {
  color: #f0f0f0;
}

[data-theme="dark"] .pwa-drawer-item {
  color: #ddd;
}

[data-theme="dark"] .pwa-drawer-item:hover {
  background: #2a2a2a;
}

[data-theme="dark"] .pwa-drawer-close {
  background: #2a2a2a;
  color: #aaa;
}
