/* Custom Font Face for Urdu */
@font-face {
    font-family: 'Jameel-Noori-Nastaleeq';
    src: url('/assets/fonts/Jameel-Noori-Nastaleeq-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Root Colors & Variables */
:root {
    --primary: #c41e3a;
    --secondary: #d4af37;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --urdu-font: 'Jameel-Noori-Nastaleeq', 'Noto Naskh Arabic', serif;
}

/* Base Styles */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

img{
max-width:100%;
height:auto;
display:block;
}

/* Base Site Direction (LTR Website) */
html{
direction:ltr;
}

/* Body */
body{
font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
color:var(--text-dark);
background:#fff;
line-height:1.6;
direction:ltr;
text-align:left;

-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;
text-rendering:optimizeLegibility;
}

/* Urdu Text Font */
[lang="ur"],
.urdu-text,
body[dir="auto"]{
font-family:var(--urdu-font);
font-size:1.05em;
letter-spacing:0.2px;
}

/* Urdu Content RTL */

[dir="rtl"]{
direction:rtl;
text-align:right;
font-family:var(--urdu-font);
line-height:1.9;
}

/* Urdu paragraphs */
[dir="rtl"] p{
font-size:18px;
line-height:1.9;
}

/* Urdu headings and text */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] p,
[dir="rtl"] li,
[dir="rtl"] a{
font-family:var(--urdu-font);
}

/* Typography */

h1,h2,h3,h4,h5,h6{
font-weight:700;
line-height:1.3;
margin-bottom:1rem;
}

h1{font-size:2.5rem;}
h2{font-size:2rem;}
h3{font-size:1.5rem;}
h4{font-size:1.25rem;}

a{
color:var(--primary);
text-decoration:none;
transition:color .3s ease;
}
a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .3s ease;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--urdu-font);
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #a01730;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: #a01730;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #c99a27;
    transform: translateY(-2px);
}

.post-content{
direction:rtl;
text-align:right;
font-family:var(--urdu-font);
}

.post-title{
direction:rtl;
text-align:right;
}

.post-excerpt{
direction:rtl;
text-align:right;
}

.homepage-intro{
direction:rtl;
text-align:right;
margin:40px 0;
line-height:1.9;
}


/* BREAKING NEWS SECTION */
.breaking-news-section {
    background: linear-gradient(135deg, var(--primary) 0%, #a01730 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
}

.breaking-news-container {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideIn 0.8s ease;
}

.breaking-news-label {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--urdu-font);
}

.breaking-news-ticker {
    flex:1;
    display:flex;
    gap:40px;
    overflow:hidden;
    white-space:nowrap;
}
.news-item {
    white-space: nowrap;
    animation: scroll-text 25s linear infinite;
	will-change: transform;
    font-family: var(--urdu-font);
    font-size: 0.95em;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HEADER */
.header {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: linear-gradient(to right, #ffffff 0%, #f9f9f9 100%);
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    font-size: 0.9rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tagline{
direction:ltr;
text-align:right;
max-width:320px;
line-height:1.4;
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
color:var(--text-light);
font-weight:600;
font-size:0.95rem;
font-family:var(--urdu-font);
}


/* CTA inside article */

.post-action-button-inside{
text-align:center;
margin:35px 0;
padding:25px;
background:#f6f8fb;
border-radius:12px;
border:1px solid #e3e7ef;
}

.post-action-button-inside a{
text-decoration:none;
display:inline-block;
}

.post-action-button-inside button,
.post-action-button-inside .btn{
font-size:20px;
padding:16px 34px;
border-radius:10px;
font-weight:700;
transition:.25s;
cursor:pointer;
}

.post-action-button-inside button:hover{
transform:translateY(-3px);
box-shadow:0 10px 22px rgba(0,0,0,0.2);
}


/* bottom button */

.post-action-button-bottom{
text-align:center;
margin:50px 0;
}



/* OVERLAY TEXT */

.hero-overlay{
position:absolute;
bottom:0;
left:0;
right:0;
padding:30px;
background:linear-gradient(
to top,
rgba(0,0,0,.85),
rgba(0,0,0,.55),
rgba(0,0,0,.15),
transparent
);
color:#fff;
}


/*aritcle header*/
.article-header{
margin-bottom:30px;
text-align:right;
}

.article-category{
display:inline-block;
background:#c41e3a;
color:#fff;
padding:5px 12px;
font-size:14px;
border-radius:20px;
margin-bottom:12px;
}

.article-title{
font-size:32px;
line-height:1.6;
margin-bottom:10px;
}

.article-excerpt{
font-size:18px;
color:#555;
margin-bottom:15px;
line-height:1.8;
}

.article-meta{
font-size:14px;
color:#777;
display:flex;
gap:10px;
align-items:center;
}

.meta-dot{
opacity:.6;
}
/*end article header*/

.date {
    color: var(--primary);
    font-weight: 600;
    font-family: var(--urdu-font);
}

.header-main {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-content{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
flex-wrap:nowrap;
}

.logo {
    flex-shrink: 0;
}

.logo h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo h1 a {
    background: linear-gradient(135deg, var(--primary) 0%, #a01730 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: color 0.3s ease;
    display: inline-block;
}

.logo h1 a:hover {
    filter: brightness(1.2);
}

/* NAVIGATION */
.main-nav {
    flex: 1;
}



.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all .3s ease;
    font-family: var(--urdu-font);
    background-color: transparent;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(196, 30, 58, 0.05);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: white;
    background-color: var(--primary);
    border-color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}


/* CATEGORIES BAR */
.categories-bar {
    background: linear-gradient(to right, #fafafa 0%, #f0f0f0 100%);
    border-top: 2px solid var(--border);
    padding: 18px 0;
}

.categories-list {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 0 10px;
}

.categories-label {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-family: var(--urdu-font);
    font-size: 1rem;
    padding-right: 15px;
    border-right: 2px solid var(--primary);
}

.cat-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 25px;
    transition: all .3s ease;
    white-space: nowrap;
    font-family: var(--urdu-font);
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cat-link:hover {
    background-color: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.cat-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
}

/* MAIN CONTENT */
.main-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* HERO SECTION */


.hero-section{
margin:40px 0;
padding:50px 0;
background:linear-gradient(135deg,#f7f7f7 0%,#f1f3f6 100%);
border-radius:14px;
}

.hero-wrapper{
display:grid;
grid-template-columns:1fr 1.1fr;
gap:50px;
align-items:center;
}

.hero-text{
direction:rtl;
text-align:right;
}

.hero-category{
background:#c41e3a;
color:#fff;
padding:6px 14px;
border-radius:20px;
font-size:13px;
display:inline-block;
margin-bottom:10px;
}

.hero-title{
font-size:36px;
line-height:1.6;
margin-bottom:15px;
}

.hero-excerpt{
font-size:18px;
color:#555;
margin-bottom:25px;
max-width:600px;
}

.hero-title a{
color:#111;
text-decoration:none;
}



.hero-meta{
color:#777;
margin-bottom:20px;
}

.hero-image img{
width:100%;
height:auto;
aspect-ratio:16/9;
object-fit:cover;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
}


/* FEATURED SECTION */
.featured-section,
.latest-section {
    margin-bottom: 50px;
}

.featured-section h2,
.latest-section h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--dark);
    font-family: var(--urdu-font);
}

.featured-section h2::after,
.latest-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* POSTS GRID */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
	height:100%;
}

.post-card:hover{
transform:translateY(-8px) scale(1.01);
box-shadow:0 16px 35px rgba(0,0,0,.18);
}

.post-image{
width:100%;
height:220px;
overflow:hidden;
position:relative;
border-bottom:1px solid rgba(0,0,0,.04);
}

.post-image img{
width:100%;
height:100%;
object-fit:cover;
display:block;
transition:transform .35s ease;
}
.post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}


.post-card:hover .post-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* image zoom effect */

.post-image img,
.next-card-image img{
transition:transform .35s ease;
}

.post-card:hover img,
.next-card:hover img{
transform:scale(1.06);
}

/* better title readability */

.post-title,
.next-card-content h3{
line-height:1.6;
letter-spacing:.2px;
}

.next-article{
margin-top:70px;
padding-top:40px;
border-top:2px solid var(--border);
}

.next-card{
display:flex;
gap:25px;
align-items:stretch;
background:#fff;
border-radius:14px;
box-shadow:var(--shadow);
overflow:hidden;
transition:all .25s ease;
}

.next-card:hover{
transform:translateY(-6px);
box-shadow:var(--shadow-lg);
}

/* IMAGE SIDE */

.next-card-image{
width:38%;
min-width:0;
overflow:hidden;
}

.next-card-image img{
width:100%;
height:100%;
object-fit:cover;
display:block;
transition:transform .35s ease;
}

.next-card:hover .next-card-image img{
transform:scale(1.05);
}

/* CONTENT SIDE */

.next-card-content{
padding:22px;
flex:1;
display:flex;
flex-direction:column;
justify-content:center;
}

.next-card-content h3{
margin-bottom:10px;
font-size:24px;
line-height:1.5;
font-family:var(--urdu-font);
font-weight:700;
}

.next-card-content p{
color:#666;
margin-bottom:12px;
font-size:15px;
line-height:1.7;
}

.next-read-btn{
color:var(--primary);
font-weight:bold;
font-size:15px;
}

.next-article h2,
.related-posts h2{
font-size:28px;
font-weight:700;
font-family:var(--urdu-font);
margin-bottom:30px;
text-align:center;
position:relative;
}

.next-article h2:after,
.related-posts h2:after{
content:"";
width:60px;
height:3px;
background:var(--primary);
display:block;
margin:10px auto 0;
border-radius:2px;
}


/* Sticky Share Bar */

.sticky-share{
position:fixed;
left:20px;
top:35%;
display:flex;
flex-direction:column;
gap:10px;
z-index:999;
}

.share-icon{
width:42px;
height:42px;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
border-radius:8px;
font-weight:bold;
cursor:pointer;
transition:.25s;
box-shadow:0 2px 6px rgba(0,0,0,.15);
}

.share-icon:hover{
transform:translateX(4px);
}

/* colors */

.fb{background:#1877f2;}
.x{background:#000;}
.wa{background:#25d366;}
.ln{background:#0a66c2;}
.tg{background:#229ed9;}
.copy{background:#6b7280;}


/* Image loading states */
img.img-loading {
    opacity: 0.7;
    animation: pulse 1.5s ease-in-out infinite;
}

img.img-loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

img.img-error {
    opacity: 0.5;
    background-color: #f5f5f5;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #a01730 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
    font-family: var(--urdu-font);
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.5;
    font-family: var(--urdu-font);
}

.post-title a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
    font-family: var(--urdu-font);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
}

.post-date {
    font-family: var(--urdu-font);
    font-weight: 500;
}

.post-views {
    color: #888;
}


/* RELATED POSTS */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.related-posts h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-family: var(--urdu-font);
}

/* FOOTER */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--secondary);
    font-family: var(--urdu-font);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
    font-family: var(--urdu-font);
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
    font-family: var(--urdu-font);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    font-family: var(--urdu-font);
}
.date{
direction:ltr;
unicode-bidi:embed;
font-weight:600;
letter-spacing:0.3px;
}
/* RESPONSIVE */
@media (max-width: 1024px) {

.header-content{
gap:20px;
}

.nav-menu{
gap:10px;
}

.nav-link{
padding:8px 14px;
font-size:0.9rem;
}


}





/* =========================
   DESKTOP NAV MENU
========================= */
/* responsive */

@media(max-width:900px){

.hero-wrapper{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}

.hero-text{
order:2;
}

.hero-image{
order:1;
}

}


/* MOBILE NAVIGATION */
@media (max-width:768px){

.menu-toggle{
display:flex;
}

.nav-menu{
display:none;
flex-direction:column;
width:100%;
background:#fff;
border-top:1px solid #eee;
}


.nav-link{
width:100%;
padding:14px 20px;
text-align:left;
direction:ltr;
}

}


/* ================= HEADER LAYOUT ================= */

.main-nav{
flex:1;
text-align:center;
}

/* ================= DESKTOP MENU ================= */

.nav-menu{
display:flex;
gap:15px;
justify-content:center;
flex-wrap:wrap;
}

.menu-toggle{
display:none;
}

/* ================= MOBILE ================= */




/* =====================================
   HOMEPAGE PROFESSIONAL DESIGN UPGRADE
   Add this section at the END of CSS
===================================== */


/* Global homepage section spacing */

.hero-section,
.featured-section,
.homepage-intro,
.home-info-grid{
margin-top:60px;
margin-bottom:60px;
}


/* INTRO BLOCK */

.homepage-intro{
background:#fafafa;
padding:40px;
border-radius:12px;
border:1px solid #eee;
box-shadow:var(--shadow);
}

.homepage-intro h2{
font-size:28px;
margin-bottom:15px;
color:#111;
}

.homepage-intro p{
font-size:18px;
color:#444;
}


/* SECTION TITLE STYLE */

.featured-section h2{
font-size:28px;
font-weight:800;
margin-bottom:35px;
position:relative;
display:inline-block;
}

.featured-section h2::before{
content:"";
position:absolute;
bottom:-10px;
right:0;
width:70px;
height:4px;
background:var(--primary);
border-radius:3px;
}


/* INFO GRID (TOPICS + ABOUT) */

.home-info-grid{
display:grid;
grid-template-columns:1fr 2fr;
gap:40px;
margin-top:60px;
}


/* TOPICS BOX */

.topics{
background:#fff;
padding:25px;
border-radius:12px;
border:1px solid #eee;
box-shadow:var(--shadow);
}

.topics h3{
font-size:22px;
margin-bottom:20px;
}

.topics ul{
list-style:none;
padding:0;
}

.topics li{
margin-bottom:12px;
}

.topics a{
display:block;
padding:10px 14px;
background:#f7f7f7;
border-radius:6px;
font-weight:600;
transition:.25s;
}

.topics a:hover{
background:var(--primary);
color:#fff;
transform:translateX(-3px);
}


/* ABOUT BOX */

.site-about{
background:#fff;
padding:35px;
border-radius:12px;
border:1px solid #eee;
box-shadow:var(--shadow);
}

.site-about h3{
font-size:24px;
margin-bottom:15px;
}

.site-about ul{
margin-top:20px;
padding-right:20px;
}

.site-about li{
margin-bottom:10px;
font-size:17px;
}

/* WIDER CONTAINER LIKE NEWS WEBSITES */
.container{
max-width:1200px;
margin:0 auto;
padding:0 20px;
width:100%;
}

/* SECTION DIVIDER */

.section-divider{
height:1px;
background:#eee;
margin:70px 0;
}

 .post-share-qr-section {
                    margin: 2rem 0;
                    padding: 1.5rem;
                    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
                    border-radius: 12px;
                    border: 1px solid #bae6fd;
                    display: flex;
                    align-items: flex-start;
                    justify-content: space-between;
                    gap: 2rem;
                    flex-wrap: wrap;
                }
                .share-section {
                    flex: 1;
                    min-width: 250px;
                }
                .share-section h4 {
                    margin: 0 0 1rem 0;
                    font-size: 1rem;
                    color: #0369a1;
                    font-weight: 600;
                }
                .share-buttons {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 0.5rem;
                }
                .share-btn {
                    width: 42px;
                    height: 42px;
                    border-radius: 10px;
                    border: none;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: transform 0.2s ease, box-shadow 0.2s ease;
                }
                .share-btn:hover {
                    transform: translateY(-2px);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                }
                .share-btn:active {
                    transform: translateY(0);
                }
                .share-facebook { background: #1877f2; color: #fff; }
                .share-twitter { background: #000; color: #fff; }
                .share-whatsapp { background: #25d366; color: #fff; }
                .share-linkedin { background: #0a66c2; color: #fff; }
                .share-telegram { background: #0088cc; color: #fff; }
                .share-email { background: #64748b; color: #fff; }
                .share-copy { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
                .share-copy.copied { background: #10b981; color: #fff; border-color: #10b981; }
                
                .qr-section {
                    display: flex;
                    align-items: center;
                    gap: 1rem;
                    flex-shrink: 0;
                }
                .qr-code-wrapper {
                    background: #fff;
                    padding: 0.75rem;
                    border-radius: 10px;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                }
                .qr-code-wrapper canvas,
                .qr-code-wrapper img {
                    display: block;
                }
                .qr-code-info {
                    text-align: left;
                }
                .qr-code-info h4 {
                    margin: 0 0 0.25rem 0;
                    font-size: 0.875rem;
                    color: #0369a1;
                    font-weight: 600;
                }
                .qr-code-info p {
                    margin: 0 0 0.5rem 0;
                    color: #64748b;
                    font-size: 0.75rem;
                }
                .qr-code-info .btn-sm {
                    padding: 0.375rem 0.75rem;
                    font-size: 0.75rem;
                    display: inline-flex;
                    align-items: center;
                    gap: 0.375rem;
                }
                
/* =====================================
   MOBILE RESPONSIVE FIX (PRODUCTION)
===================================== */

@media (max-width:768px){

/* Prevent horizontal scroll */

html, body{
overflow-x:hidden;
}

/* Share + QR */

.post-share-qr-section{
flex-direction:column;
gap:20px;
}

.share-section{
width:100%;
}

.share-buttons{
justify-content:flex-start;
}

.qr-section{
width:100%;
justify-content:center;
padding-top:1rem;
border-top:1px solid #bae6fd;
}

/* Grid */

.home-info-grid{
grid-template-columns:1fr;
}

.homepage-intro{
padding:25px;
}

/* Header */

.header-main{
padding:12px 0;
}

.header-content{
display:flex;
align-items:center;
justify-content:space-between;
flex-wrap:nowrap;
position:relative;
width:100%;
}

/* Logo */

.logo{
flex:1;
text-align:left;
}

.logo h1{
font-size:1.35rem;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}

/* Article meta */

.article-meta{
display:flex;
gap:8px;
flex-wrap:wrap;
direction:ltr;
}

/* Hide sticky share */

.sticky-share{
display:none;
}

/* Menu button */

.menu-toggle{
display:flex;
align-items:center;
justify-content:center;
width:42px;
height:42px;
font-size:26px;
border:1px solid #ddd;
border-radius:6px;
background:#fff;
cursor:pointer;
flex-shrink:0;
margin-left:auto;
}

/* Navigation */

.main-nav{
position:absolute;
top:100%;
left:0;
width:100%;
background:#fff;
z-index:1000;
}

.nav-menu{
display:none;
flex-direction:column;
width:100%;
border-top:1px solid #eee;
}

.nav-menu.active{
display:flex;
}

.nav-link{
width:100%;
padding:16px 20px;
border-bottom:1px solid #eee;
text-align:left;
direction:ltr;
}

/* Posts grid */

.posts-grid{
grid-template-columns:1fr;
gap:20px;
}

/* Hero */

.hero-section{
padding:20px 10px;
margin:25px 0;
}

.hero-wrapper{
display:flex;
flex-direction:column;
gap:12px;
}

.hero-image{
order:1;
width:100%;
}

.hero-text{
order:2;
padding:5px 0;
}

.hero-title{
font-size:22px;
line-height:1.6;
margin-bottom:8px;
}

.hero-excerpt{
font-size:16px;
line-height:1.8;
color:#444;
margin-bottom:12px;
max-width:100%;
}

.hero-meta{
font-size:13px;
margin-bottom:10px;
}

.hero-text .btn{
width:100%;
text-align:center;
padding:12px;
}

/* Article mobile protection */

.single-post{
width:100%;
max-width:100%;
overflow:hidden;
}

.article-content{
width:100%;
max-width:100%;
overflow-wrap:break-word;
word-break:break-word;
}

.article-content img{
max-width:100%;
height:auto;
}

.article-content table{
display:block;
width:100%;
overflow-x:auto;
}

.article-content iframe{
max-width:100%;
}

.article-content *{
max-width:100%;
}

}/* NEXT ARTICLE MOBILE FIX */

/* GLOBAL MOBILE FIX */

@media (max-width:768px){

.container{
max-width:100%;
width:100%;
padding-left:15px;
padding-right:15px;
}

body{
overflow-x:hidden;
}

.single-post{
width:100%;
max-width:100%;
}

.next-card{
flex-direction:column;
}

.next-card-image{
width:100%;
min-width:0;
}

}