/*
Theme Name: RajTech BD
Theme URI: https://rajtechbd.com/
Author: RajTech BD Engineering Team
Author URI: https://rajtechbd.com/
Description: A high-performance, minimalist corporate WordPress theme for software engineering, custom ERP platforms, sales development, and SEO. Includes full Gutenberg block editor optimization, responsive navbar, multi-page templates (About, Services, Case Studies, FAQ, Contact), and native zero-bloat architecture.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rajtechbd
Tags: block-patterns, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, wide-blocks
*/

/* Base typography & variables are loaded once via assets/css/theme.css.
 * Below are WordPress Gutenberg Block & FAQ Accordion styles. */

/* ================= WordPress Block Editor (Gutenberg) Compatibility ================= */
.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Block Content Typography inside .entry-content */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #334155;
}

.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4, 
.entry-content h5, 
.entry-content h6 {
  color: #0F172A;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.875rem; border-bottom: 1px solid #F1F5F9; padding-bottom: 0.5rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: var(--raj-sky);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.entry-content a:hover {
  color: #0369a1;
}

.entry-content ul, 
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--raj-amber);
  background-color: var(--raj-light-bg);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #1E293B;
}

.entry-content pre, 
.entry-content code {
  font-family: var(--raj-font-mono);
  font-size: 0.9em;
}

.entry-content pre {
  background-color: #0B1528;
  color: #E2E8F0;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid #1E3352;
}

.entry-content :not(pre) > code {
  background-color: #F1F5F9;
  color: #0F172A;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.entry-content th, 
.entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--raj-border);
  text-align: left;
}

.entry-content th {
  background-color: var(--raj-light-bg);
  font-weight: 600;
  color: var(--raj-slate-dark);
}

/* FAQ Accordion Styling */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: #0284C7;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.08);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: #0F172A;
  transition: color 0.2s ease;
}

.faq-header:hover {
  color: #0284C7;
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #F1F5F9;
  transition: transform 0.3s ease, background-color 0.2s ease;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: #0284C7;
  color: #ffffff;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0 1.5rem;
  color: #475569;
  line-height: 1.7;
}

.faq-item.active .faq-body {
  max-height: 1000px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: max-height 0.45s cubic-bezier(0.9, 0, 0.8, 0.2), padding 0.25s ease;
}

/* Career Open Positions Accordion */
.job-faq-item.active {
  border-color: #0284C7;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.08);
}

.job-faq-header:hover h3 {
  color: #0284C7;
}

.job-faq-header:focus-visible {
  outline: 2px solid #0284C7;
  outline-offset: -2px;
  border-radius: 0.75rem;
}

.job-faq-item.active .job-faq-icon {
  transform: rotate(180deg);
  background-color: #0284C7;
  color: #ffffff;
}

.job-faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.job-faq-item.active .job-faq-body {
  grid-template-rows: 1fr;
}

.job-faq-body-inner {
  overflow: hidden;
}

.job-description-content > *:first-child {
  margin-top: 0;
}

.job-description-content > *:last-child {
  margin-bottom: 0;
}

.job-description-content h2,
.job-description-content h3,
.job-description-content h4 {
  color: #0F172A;
  font-weight: 700;
  margin-top: 1.1rem;
  margin-bottom: 0.45rem;
}

.job-description-content p {
  margin-bottom: 0.75rem;
}

.job-description-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.85rem;
}

.job-description-content ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.85rem;
}

.job-description-content li {
  margin-bottom: 0.35rem;
}

.job-description-content strong,
.job-description-content b {
  color: #0F172A;
  font-weight: 700;
}

.job-description-content a {
  color: #0284C7;
  text-decoration: underline;
}
