/*
Theme Name: D.Tech News Pro
Theme URI: https://dailytarjuman.com
Author: Dilshad Hadi
Author URI: https://dailytarjuman.com
Description: Professional Urdu News WordPress Theme
Created by: Dilshad Hadi
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dtech-news
License: GPL v2 or later
*/
/*=========================================
URDU FONT DECLARATION
=========================================*/
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('fonts/jameel-noori-nastaleeq.woff2') format('woff2'),
         url('fonts/jameel-noori-nastaleeq.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* فاؤنٹ لوڈ ہونے تک متن ظاہر رکھے گا */
}

/* =========================================
   1. RESET & BASE STYLES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f5f5;
    color: #111;
    direction: rtl;
    text-align: right;
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c40000;
}

.container {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto;
}

.clear {
    clear: both;
}

/* =========================================
   2. EMBEDS & SOCIAL MEDIA STYLES
========================================= */

/* General iFrames, Videos & Embeds */
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content video {
    max-width: 100% !important;
    margin: 0 auto;
    display: block;
}

/* YouTube, Vimeo & Aspect Ratio Video Containers (16:9) */
.entry-content .wp-block-embed-youtube,
.entry-content .wp-block-embed-vimeo,
.entry-content .wp-block-embed.is-type-video {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.entry-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.entry-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Facebook Reels & Vertical Videos Fix (9:16) */
.entry-content iframe[src*="facebook.com/plugins/video.php"] {
    width: 100% !important;
    max-width: 350px !important;
    height: 620px !important;
    aspect-ratio: 9 / 16 !important;
    margin: 20px auto !important;
    display: block !important;
    border: none;
}

/* Twitter / X, Facebook Posts & Instagram Fix */
.entry-content .twitter-tweet,
.entry-content .fb-post,
.entry-content .fb-video,
.entry-content .instagram-media {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}

/* =========================================
   3. BREAKING NEWS STYLES
========================================= */

/* Desktop: Hidden by default */
.breaking-label {
    display: none !important; 
}

/* Mobile Screens (767px or smaller) */
@media (max-width: 767px) {
    .breaking-label {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
    }

    .breaking-label a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: 100% !important;
        font-size: 24px !important; /* Fixed for optimal mobile viewing */
        font-weight: bold !important;
        color: #fff !important;
        padding: 12px 0 !important;
        text-decoration: none;
    }
}

/* =========================================
   4. URDU COMMENTS SECTION
========================================= */

.comments-area {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    direction: rtl;
    text-align: right;
    font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
}

.comments-title, 
.comment-reply-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    border-right: 4px solid #bb1919;
    padding-right: 10px;
}

.comment-notes {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.comment-form p {
    margin-bottom: 18px;
}

.comment-form label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #bb1919;
    outline: none;
}

/* Submit Button */
.form-submit input[type="submit"] {
    background: #bb1919;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

.form-submit input[type="submit"]:hover {
    background: #901212;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.comment-body {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.comment-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 22px;
    line-height: 1.7;
    color: #222;
}

.reply a {
    display: inline-block;
    color: #bb1919;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    margin-top: 8px;
}