/*
Theme Name: UrduForexGuide Theme
Theme URI: https://www.urduforexguide.com
Author: Urdu Forex Guide
Author URI: https://www.urduforexguide.com
Description: A custom child theme based on Twenty Twenty-Five with Bootstrap 5 layout, designed for UrduForexGuide.com.
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: urduforexguide-theme
*/

/* ============================================
   Bootstrap-Powered Theme Styles
   ============================================ */

/* Remove Bootstrap container padding to prevent overflow */
.container,
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Top Navigation - Bootstrap navbar-dark */
.top-navbar {
    background-color: #212529;
    padding: 0;
    margin: 0;
    min-height: 50px;
    width: 100%;
}

.top-navbar .navbar-nav {
    margin-left: 0;
}

.top-navbar .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 15px 16px;
    transition: color 0.3s ease;
}

.top-navbar .navbar-nav .nav-link:hover,
.top-navbar .navbar-nav .nav-link:focus {
    color: #e1bee7;
}

.top-navbar .navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.15);
}

.top-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    margin: 8px;
}

.top-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.3);
}

.top-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search form in top navbar */
.top-navbar .search-form-nav {
    padding: 7px 0;
}

.top-navbar .search-form-nav .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    height: 36px;
    font-size: 0.9rem;
}

.top-navbar .search-form-nav .btn-outline-light {
    border-radius: 0 0.25rem 0.25rem 0;
    border-color: rgba(255, 255, 255, 0.5);
    height: 36px;
    padding: 0 10px;
}

.top-navbar .search-form-nav .btn-outline-light:hover {
    background-color: #e1bee7;
    color: #4a148c;
    border-color: #e1bee7;
}

.top-navbar .navbar-collapse {
    align-items: center;
}

/* Header Section - Full Width Image (no padding/gaps) */
.header-link {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.header-link:hover {
    opacity: 0.95;
}

.header-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    overflow: hidden;
}

/* Post Thumbnails */
.post-thumbnail {
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.25rem;
    display: block;
}

.entry-content .wp-block-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.site-header a {
    color: #ffffff;
    text-decoration: none;
}

.site-header a:hover {
    color: #e1bee7;
}

/* Fallback header styling (no image) */
.site-branding-wrapper {
    padding: 100px 0;
    background: #6a1b9a;
    min-height: 300px;
}

.site-branding {
    text-align: center;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-description {
    font-size: 1.2rem;
    color: #e1bee7;
    margin-top: 10px;
}

/* Post-Header Menu Bar - Bootstrap navbar */
.post-header-navbar {
    background-color: #f3e5f5;
    padding: 0;
    margin: 0 !important;
    min-height: 50px;
    width: 100%;
}

.post-header-navbar .navbar-nav {
    flex-wrap: nowrap;
}

.post-header-navbar .navbar-nav .nav-link {
    color: #4a148c;
    font-weight: 500;
    padding: 10px 12px;
    transition: color 0.3s ease;
}

.post-header-navbar .navbar-nav .nav-link:hover,
.post-header-navbar .navbar-nav .nav-link:focus {
    color: #7b1fa2;
    background-color: rgba(106, 27, 154, 0.08);
}

.post-header-navbar .navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: #7b1fa2;
}

.post-header-navbar .navbar-toggler {
    border-color: #7b1fa2;
    margin: 6px 8px;
}

.post-header-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(106, 27, 154, 0.3);
}

.post-header-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%237b1fa2' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.post-header-navbar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e1bee7;
}

.post-header-navbar .dropdown-menu .dropdown-item {
    color: #4a148c;
}

.post-header-navbar .dropdown-menu .dropdown-item:hover {
    color: #ffffff;
    background-color: #7b1fa2;
}

/* Content & Sidebar - Bootstrap grid */
.main-layout-row {
    display: flex;
    flex-wrap: wrap;
}

/* LTR layout: Main Content left (order 1), Sidebar right (order 2) */
body:not(.rtl):not(.urdu-site) .main-layout-row > [class*="col-md-8"],
body:not(.rtl):not(.urdu-site) .main-layout-row > [class*="col-lg-8"] {
    order: 1;
}

body:not(.rtl):not(.urdu-site) .main-layout-row > [class*="col-md-4"],
body:not(.rtl):not(.urdu-site) .main-layout-row > [class*="col-lg-4"] {
    order: 2;
}

/* RTL layout: Sidebar right (order 1 in RTL flow), Main Content left (order 2 in RTL flow) */
body.rtl .main-layout-row > [class*="col-md-4"],
body.rtl .main-layout-row > [class*="col-lg-4"],
body.urdu-site .main-layout-row > [class*="col-md-4"],
body.urdu-site .main-layout-row > [class*="col-lg-4"],
[dir="rtl"] .main-layout-row > [class*="col-md-4"],
[dir="rtl"] .main-layout-row > [class*="col-lg-4"] {
    order: 1 !important;
}

body.rtl .main-layout-row > [class*="col-md-8"],
body.rtl .main-layout-row > [class*="col-lg-8"],
body.urdu-site .main-layout-row > [class*="col-md-8"],
body.urdu-site .main-layout-row > [class*="col-lg-8"],
[dir="rtl"] .main-layout-row > [class*="col-md-8"],
[dir="rtl"] .main-layout-row > [class*="col-lg-8"] {
    order: 2 !important;
}

.content-area {
    color: #1a237e;
    padding: 20px;
    min-height: 500px;
}

.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
    color: #0d47a1;
}

.sidebar-area {
    color: #4e342e;
    padding: 20px;
}

.sidebar-area h3,
.sidebar-area h4 {
    color: #e65100;
    border-bottom: 2px solid #ffb74d;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sidebar-area ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-area ul li {
    padding: 8px 0;
    border-bottom: 1px solid #ffe0b2;
}

.sidebar-area ul li a {
    color: #5d4037;
    text-decoration: none;
}

.sidebar-area ul li a:hover {
    color: #e65100;
}

/* SiteOrigin Page Builder Support */
.siteorigin-panels .panel,
.siteorigin-panels .widget {
    margin-bottom: 25px;
}

.siteorigin-panels .panel h3,
.siteorigin-panels .widget h3 {
    color: #e65100;
    border-bottom: 2px solid #ffb74d;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.siteorigin-panels .so-widget .textwidget {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #ffe0b2;
    border-radius: 4px;
}

/* Ensure Custom HTML widget inherits theme fonts */
.siteorigin-panels .custom-html-widget {
    font-family: inherit;
    direction: ltr;
    text-align: left;
}

/* Footer */
.site-footer {
    background-color: #263238;
    color: #eceff1;
    padding: 0 !important;
    margin: 0;
}

.site-footer a {
    color: #b0bec5;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.widget {
    margin-bottom: 25px;
}

/* ============================================
   Home Page Composer Section Styling
   ============================================ */
.composer-section-header {
    background-color: #d4edda;
    border-right: 5px solid #28a745;
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

:root:not([dir="rtl"]) .composer-section-header,
body:not(.rtl):not(.urdu-site) .composer-section-header {
    border-right: none;
    border-left: 5px solid #28a745;
}

.composer-section-title {
    color: #155724;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* Orange Action Buttons */
.btn-orange {
    background-color: #e65100;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

.btn-orange:hover,
.btn-orange:focus {
    background-color: #ff6f00;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Step Cards */
.step-card {
    background: #ffffff;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px;
    min-height: 70px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Pattern Thumbnails */
.thumb-80 {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.pattern-img {
    max-height: 280px;
    object-fit: cover;
}

/* Tabbed Box Styling */
.section-tabs .nav-tabs .nav-link {
    color: #495057;
    border-radius: 4px 4px 0 0;
}

.section-tabs .nav-tabs .nav-link.active {
    color: #28a745;
    border-color: #dee2e6 #dee2e6 #fff;
    background-color: #ffffff;
}

/* Composer Area Spacing */
.homepage-composer-area {
    background-color: #ffffff;
}


