/*
Theme Name: Tradexy
Theme URI: https://pixelaxis.net/tradexy/
Author: Pixelaxis
Author URI: https://themeforest.net/user/pixelaxis
Description: Tradexy is a clean and minimalist WordPress theme designed for modern brokers! Give your customers an engaging, lightning-fast user experience that priorities performance
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tradexy
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, portfolio
*/

/* 1. Nạp font Roboto có tiếng Việt */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap&subset=vietnamese');

/* 2. Áp dụng Roboto cho toàn site, override mọi plugin (Tutor LMS, WooCommerce, Elementor, theme, v.v.) */
body, html, p, span, a, li, div,
h1, h2, h3, h4, h5, h6,
input, textarea, select,
.tutor-course-details-content,
.tutor-course-details-widget,
.tutor-course-details-widget-title,
.tutor-course-title,
.tutor-course-single-content-wrap,
.tutor-single-course-segment,
.tutor-single-course-sidebar,
.elementor-widget,
.elementor-heading-title {
  font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}
/* ================================= 🟡 TEXT & LINK COLOR ================================= *//* ================================= 🟡 TEXT & LINK COLOR ================================= */

a, a:visited {
  color: #ffcc00 !important;
}

a:hover {
  color: #ffaa00 !important;
  transition: 0.3s ease;
}

/* ================================= 🧩 BLOG SECTION (Archive + Single) ================================= */
.themephi-blog,
.blog,
.archive,
.single-post {
  background: #0c0c0c !important;
}

/* Card bài viết */
.themephi-blog article,
.themephi-blog .blog-item,
.themephi-blog .full-blog-content,
.themephi-blog .blog-post {
  background-color: #111 !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Tiêu đề & mô tả */
.themephi-blog h2 a,
.themephi-blog h3,
.themephi-blog p {
  color: #f5f5f5 !important;
}

.themephi-blog h2 a:hover {
  color: #ffcc00 !important;
}

/* Nút Read More */
.themephi-blog a.read-more {
  background: #ffcc00 !important;
  color: #000 !important;
  border-radius: 6px;
  padding: 8px 18px;
  display: inline-block;
  font-weight: 600;
  transition: 0.3s ease;
}

.themephi-blog a.read-more:hover {
  background: #ffaa00 !important;
  transform: translateY(-2px);
}

/* Sidebar */
.themephi-blog .widget,
.sidebar,
aside {
  background-color: #111 !important;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
}

/* Hover card effect */
.themephi-blog article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255,204,0,0.15);
  transition: all 0.3s ease;
}

/* ================================= ⚙️ SERVICE PAGE ================================= */
.services-section,
.service-item,
.single-service,
.service-wrapper,
.single-services,
.service-details,
.service-post-details-inner {
  background: #111 !important;
  color: #f5f5f5 !important;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 24px;
}

/* Hình ảnh trong Service */
.service-item img,
.single-services .bs-img img {
  width: 100% !important;
  border-radius: 12px;
}

/* Hover card effect */
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255,204,0,0.15);
  transition: all 0.3s ease;
}

/* Phần nội dung chi tiết service */
.single-services .content-area {
  padding: 0 12px;
  color: #ddd !important;
}

.single-services .content-area h1,
.single-services .content-area h2,
.single-services .content-area h3,
.single-services .content-area h4 {
  color: #ffcc00 !important;
}

.single-services .content-area a {
  color: #ffcc00 !important;
}

.single-services .content-area a:hover {
  color: #ffaa00 !important;
}

/* Navigation dưới cuối trang service */
.single-services .service-navigation {
  padding: 32px 12px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  margin-top: 32px;
  color: #ccc;
}

/* ================================= 📊 MARKET ANALYSIS SECTION ================================= */
.market-analysis,
.market,
.analysis,
.trading-blog,
.trading-article {
  background: #0c0c0c !important;
  color: #f5f5f5 !important;
}

.market-analysis article,
.trading-blog article,
.analysis-item,
.market-item {
  background: #111 !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.market-analysis article:hover,
.trading-blog article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255,204,0,0.15);
  transition: all 0.3s ease;
}

.market-analysis h2 a,
.market-analysis h3,
.market-analysis p {
  color: #f5f5f5 !important;
}

.market-analysis h2 a:hover {
  color: #ffcc00 !important;
}

/* ================================= 🧠 FORM, INPUT, TABLE ================================= */
input, textarea, select {
  background-color: #222 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
}

table {
  background: #111 !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255,255,255,0.1);
}

th {
  background: #222 !important;
  color: #ffcc00 !important;
}

/* ================================= 🎥 VIDEO + IFRAME ================================= */
iframe {
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255,204,0,0.1);
}

/* ================================= 🧩 RESPONSIVE ================================= */
@media (max-width: 768px) {
  .themephi-blog article,
  .service-item {
    padding: 16px;
  }
}

/* Fix thanh “Showing 1–10 of …” */
.results-box,
.tp-shop-items-wrapper,
.tp-shop-items,
.results-box.box.df {
  background: #111 !important;
  color: #f5f5f5 !important;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Fix trang chi tiết bài viết */
.themephi-blog-details,
.themephi-blog-details .type-post,
.blog-post-details-inner,
.blog-details-wrapper,
.single-post .post {
  background: #111 !important;
  color: #f5f5f5 !important;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  padding: 30px !important;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Chữ trong bài viết */
.themephi-blog-details p,
.themephi-blog-details h1,
.themephi-blog-details h2,
.themephi-blog-details h3,
.themephi-blog-details span,
.themephi-blog-details li {
  color: #f5f5f5 !important;
}

/* Link trong bài viết */
.themephi-blog-details a {
  color: #ffcc00 !important;
}

.themephi-blog-details a:hover {
  color: #ffaa00 !important;
}

/* Tiêu đề bài viết */
.themephi-blog-details .entry-title,
.themephi-blog-details h1.entry-title {
  color: #ffcc00 !important;
  font-weight: 700;
}

/* Fix nền trắng ở sidebar chi tiết bài */
.themephi-blog-details .sidebar,
.themephi-blog-details .widget,
aside {
  background: #0c0c0c !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #f5f5f5 !important;
}

/* Hình ảnh bài viết chi tiết */
.themephi-blog-details img,
.blog-post-details-inner img {
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Fix bảng và quote trong nội dung */
.themephi-blog-details table {
  background: #111 !important;
  border: 1px solid rgba(255,255,255,0.1);
  color: #f5f5f5 !important;
}

.themephi-blog-details blockquote {
  background: #191919 !important;
  border-left: 4px solid #ffcc00;
  padding: 15px 20px;
  font-style: italic;
  color: #eee !important;
}
/* =============================================== */
/* ✅ FIX NỀN TRẮNG TOÀN SITE (MAIN CONTENT AREA) */
/* =============================================== */
body,
#page,
.main-contain,
.main-contain #content,
#content,
.site-content,
.entry-content,
.page-content,
.blog,
.archive,
.single-post,
.single-services,
.market-analysis,
.services-section,
.service-wrapper,
.single-service {
  background-color: #0c0c0c !important;
  color: #f5f5f5 !important;
}

/* Fix cả phần wrapper khi template mặc định */
.page-template-default #content,
.page-template-default .main-contain,
.page-template-default .site-content {
  background-color: #0c0c0c !important;
}

/* Fix trường hợp theme thêm lớp offcontents hoặc has-sidebar */
.main-contain.offcontents,
.main-contain.has-sidebar {
  background-color: #0c0c0c !important;
}

/* Fix khoảng trắng giữa breadcrumb và phần content */
.breadcrumbs-wrapper,
.themephi-breadcrumbs,
.market-analysis-breadcrumbs {
  background: #0c0c0c !important;
}

/* Nếu còn dải trắng phía dưới footer */
body,
html {
  background: #0c0c0c !important;
}

/* Cho đồng bộ tone của các section xen giữa */
.section,
.section-bg,
.content-section,
.page-section {
  background-color: #0c0c0c !important;
  color: #f5f5f5 !important;
}

/* Đảm bảo tất cả card, box đều nằm trên nền tối */
.card,
.box,
.widget,
.sidebar,
article,
.post,
.service-item {
  background-color: #111 !important;
  border: 1px solid rgba(255,255,255,0.08);
}

/* =============================================== */
/* 💬 FIX COMMENT AREA (FORM + REPLY) */
/* =============================================== */

/* Vùng chứa toàn bộ bình luận */
.comments-area,
.comment-respond,
.comment-list,
.comment-body,
.comment-content {
  background-color: #111 !important;
  color: #f5f5f5 !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  padding: 20px;
}

/* Tên người bình luận + tiêu đề */
.comments-title,
.comment-reply-title,
.comment-author,
.comment-metadata a {
  color: #ffcc00 !important;
  font-weight: 600;
}

/* Thời gian và metadata */
.comment-metadata,
.comment-metadata a {
  color: #aaa !important;
  font-size: 14px;
}

/* Nội dung comment */
.comment-content p {
  color: #f5f5f5 !important;
  line-height: 1.6;
}

/* Các input trong form bình luận */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  background-color: #222 !important;
  color: #fff !important;
  border: 1px solid #333 !important;
  border-radius: 6px;
  padding: 10px 14px;
  transition: 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 10px rgba(255,204,0,0.2);
}

/* Nút gửi bình luận */
.comment-form input[type="submit"],
.comment-form .submit {
  background: #ffcc00 !important;
  color: #000 !important;
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
  background: #ffaa00 !important;
  color: #000 !important;
  transform: translateY(-2px);
}

/* Đường phân tách giữa các bình luận */
.comment-list .comment {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
  padding-bottom: 16px;
}

/* Liên kết "Trả lời" */
.comment-reply-link {
  color: #ffcc00 !important;
  font-weight: 500;
}

.comment-reply-link:hover {
  color: #ffaa00 !important;
  text-decoration: underline;
}

/* Fix avatar người bình luận */
.comment-author img {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  margin-right: 10px;
}

/* Khoảng cách giữa reply con và cha */
.comment .children {
  margin-left: 40px;
  border-left: 1px dashed rgba(255,255,255,0.1);
  padding-left: 16px;
}
