/*
Theme Name: Yamama Travel Urdu Child Theme
Theme URI: https://yamamatravel.net/
Description: Urdu pages and Urdu-category posts. Safe /urdu/post-slug/ routing and Urdu single-post header styling.
Author: Yamama Travel
Template: betheme
Version: 2.4
*/

@font-face {
    font-family: "Jameel Noori Nastaleeq";
    src: url("https://yamamatravel.net/wp-content/uploads/fonta/Jameel-Noori-Nastaleeq.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Existing Urdu content layout */
.yamama-urdu-layout {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    direction: ltr;
}
.yamama-urdu-main {
    flex: 1 1 0;
    min-width: 0;
    direction: rtl;
    text-align: right;
    font-family: "Jameel Noori Nastaleeq", serif;
    font-size: 24px;
    line-height: 2.15;
}
.yamama-urdu-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
    direction: rtl;
    text-align: right;
    font-family: "Jameel Noori Nastaleeq", serif;
    font-size: 21px;
    line-height: 2;
}
.yamama-urdu-sidebar .widget { margin-bottom: 28px; }
.yamama-urdu-sidebar ul,
.yamama-urdu-main ul {
    margin: 0 0 20px 0;
    padding-right: 28px;
    padding-left: 0;
    list-style-position: inside;
}
.yamama-urdu-sidebar ol,
.yamama-urdu-main ol {
    margin: 0 0 20px 0;
    padding-right: 28px;
    padding-left: 0;
    list-style-position: inside;
}
.yamama-urdu-sidebar li,
.yamama-urdu-main li { margin-bottom: 8px; }

.yamama-urdu-main h1,
.yamama-urdu-main h2,
.yamama-urdu-main h3,
.yamama-urdu-main h4,
.yamama-urdu-sidebar h1,
.yamama-urdu-sidebar h2,
.yamama-urdu-sidebar h3,
.yamama-urdu-sidebar h4,
.yamama-urdu-sidebar .widgettitle {
    font-family: "Jameel Noori Nastaleeq", serif;
    text-align: right;
}

/* -------------------------------------------------
   Urdu SINGLE POST header + breadcrumb
   Scoped only to Urdu-category single posts.
   ------------------------------------------------- */
body.yamama-urdu-post #Subheader {
    direction: rtl;
}
body.yamama-urdu-post #Subheader h1.title,
body.yamama-urdu-post #Subheader .title,
body.yamama-urdu-post #Subheader .title_wrapper .title,
body.yamama-urdu-post .post-header h1.title,
body.yamama-urdu-post .post-header .title {
    font-family: "Jameel Noori Nastaleeq", serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    float: right !important;
    direction: rtl;
    text-align: right !important;
    font-family: "Jameel Noori Nastaleeq", serif !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}
/* BeTheme title can receive a more specific font rule; force Jameel only for Urdu posts. */
body.yamama-urdu-post #Subheader .title_wrapper h1.title,
body.yamama-urdu-post #Subheader .title_wrapper .title,
body.yamama-urdu-post #Subheader h1.title {
    font-family: "Jameel Noori Nastaleeq", serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
}

body.yamama-urdu-post #Subheader .breadcrumbs {
    float: left !important;
    direction: rtl;
    text-align: left !important;
    font-family: "Jameel Noori Nastaleeq", serif !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}
body.yamama-urdu-post #Subheader .breadcrumbs a,
body.yamama-urdu-post #Subheader .breadcrumbs span {
    font-family: "Jameel Noori Nastaleeq", serif !important;
}
body.yamama-urdu-post #Subheader .container::after {
    content: "";
    display: block;
    clear: both;
}
body.yamama-urdu-post .post-header,
body.yamama-urdu-post .post-header .title,
body.yamama-urdu-post .post-header .post-meta {
    direction: rtl;
}

/* Keep article content in proper Urdu flow */
body.yamama-urdu-post .single-post .entry-content,
body.yamama-urdu-post .post-wrapper,
body.yamama-urdu-post .post-item {
    direction: rtl;
    text-align: right;
}
body.yamama-urdu-post .single-post .entry-content {
    font-family: "Jameel Noori Nastaleeq", serif;
    font-size: 24px;
    line-height: 2.15;
}

/* Mobile */
@media (max-width: 767px) {
    .yamama-urdu-layout {
        flex-direction: column;
        gap: 30px;
    }
    .yamama-urdu-main,
    .yamama-urdu-sidebar {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .yamama-urdu-main { font-size: 21px; line-height: 2.1; }
    .yamama-urdu-sidebar { font-size: 19px; line-height: 2; }

    body.yamama-urdu-post #Subheader .title,
    /* BeTheme title can receive a more specific font rule; force Jameel only for Urdu posts. */
body.yamama-urdu-post #Subheader .title_wrapper h1.title,
body.yamama-urdu-post #Subheader .title_wrapper .title,
body.yamama-urdu-post #Subheader h1.title {
    font-family: "Jameel Noori Nastaleeq", serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
}

body.yamama-urdu-post #Subheader .breadcrumbs {
        float: none !important;
        width: 100%;
        text-align: right !important;
    }
}

/* v2.5: BeTheme uses h1.entry-title for the actual single-post title. */
body.yamama-urdu-post .post-header .title_wrapper h1.entry-title,
body.yamama-urdu-post .post-header h1.entry-title,
body.yamama-urdu-post h1.entry-title {
    font-family: "Jameel Noori Nastaleeq", serif !important;
    font-weight: normal !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    direction: rtl !important;
    text-align: right !important;
    float: right !important;
    line-height: 1.8 !important;
}
