:root {
  --primary-color: #2f80ed;
  --background-color: #ecf5f8;
  --card-bg-color: #ffffff;
  --button-active: #22a3ff;
  --text-color: #4f4f4f;
  --heading-color: #1d3557;
  --light-gray: #e9ecef;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
  --border-radius: 12px;
}

body {
  font-family: "Vazirmatn", sans-serif;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container-fluid {
  width: 100%;
}

/* --- Placeholder Styling --- */
.placeholder {
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c5;
  font-size: 1rem;
}

/* --- Header --- */
header {
  padding: 40px 0;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
}

/* --- Section Title --- */
.section-title {
  text-align: right;
  font-size: 1.8rem;
  color: var(--heading-color);
  margin: 60px 0 30px 0;
}

/* --- Top Section --- */
.top-section .card {
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.top-section .placeholder-column {
  flex: 0 0 200px;
}
.top-section .text-column {
  flex: 1;
  text-align: right;
}
.top-section h1 {
  font-size: 1.2rem;
  color: var(--heading-color);
}
.top-section p {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4rem;
  margin: 15px 0 25px;
  text-align: justify;
}
.top-section button {
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 5px;
}
.top-section .btn-primary {
  background-color: var(--primary-color);
  color: white;
}
.top-section .btn-secondary {
  background-color: var(--light-gray);
  color: var(--text-color);
}

/* --- Middle Section (Tabs) --- */
.tabs-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tab-buttons {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px; /* Align with card padding */
}

.tab-buttons button {
  background: transparent;
  border: none;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: "Vazirmatn", sans-serif;
  text-align: right;
  border-radius: 8px;
  color: var(--heading-color);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.tab-buttons button:not(.active):hover {
  background-color: #e6eaf0;
}
.tab-buttons button.active {
  background-color: var(--button-active);
  color: white;
  font-weight: 700;
  /* This is the magic part: pull the button over the content card */
  margin-left: -39px; /* (padding of card) - (gap) + 1px border */
  padding-left: 38px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content-wrapper {
  flex: 1;
  background-color: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  min-height: 350px;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.tab-content-inner {
  display: flex;
  gap: 30px;
}
.tab-content-inner .text-content {
  flex: 1.2;
}
.tab-content-inner .placeholder-column {
  flex: 1;
}
.tab-content-inner h3 {
  width: fit-content;
  padding: 8px;
  font-size: 1.2rem;
  color: var(--heading-color);
  border-bottom: #22a3ff 4px solid;
}
.tab-content-inner p {
  line-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  grid-template-rows: repeat(2, auto); /* 2 rows */
  gap: 16px; /* spacing between items */
  max-width: 400px;
  margin: auto;
}

.item {
  text-align: right;
  border-radius: 8px;
  font-weight: bold;
}

/* --- Bottom Section --- */
.columns-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.column-card {
  /* background-color: transparent; */
  border-radius: var(--border-radius);
  /* box-shadow: var(--card-shadow); */
  padding: 20px;
  text-align: center;
}
.column-card .placeholder {
  min-height: 150px;
  margin-bottom: 15px;
}
.column-card p {
  line-height: 1.6;
  text-align: justify;
  justify-content: flex-start;
}
.column-card h4 {
  font-size: 1rem;
  font-weight: 800;
  text-align: justify;
  justify-content: flex-start;
}

/* --- Footer --- */
footer {
  margin-top: 60px;
  padding: 30px 0;
  background-color: var(--card-bg-color);
  border-top: 1px solid var(--light-gray);
  text-align: center;
  color: #888;
}
