@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: bold;
	src: url('/style/fonts/eot/iranyekanwebbold.eot');
	src: url('/style/fonts/eot/iranyekanwebbold.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebbold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebbold.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 100;
	src: url('/style/fonts/eot/iranyekanwebthin.eot');
	src: url('/style/fonts/eot/iranyekanwebthin.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebthin.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebthin.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 300;
	src: url('/style/fonts/eot/iranyekanweblight.eot');
	src: url('/style/fonts/eot/iranyekanweblight.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanweblight.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanweblight.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: normal;
	src: url('/style/fonts/eot/iranyekanwebregular.eot');
	src: url('/style/fonts/eot/iranyekanwebregular.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebregular.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebregular.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 500;
	src: url('/style/fonts/eot/iranyekanwebmedium.eot');
	src: url('/style/fonts/eot/iranyekanwebmedium.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebmedium.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebmedium.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 800;
	src: url('/style/fonts/eot/iranyekanwebextrabold.eot');
	src: url('/style/fonts/eot/iranyekanwebextrabold.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebextrabold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebextrabold.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 900;
	src: url('/style/fonts/eot/iranyekanwebblack.eot');
	src: url('/style/fonts/eot/iranyekanwebblack.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebblack.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebblack.ttf') format('truetype');
}

@font-face {
	font-family: iranyekan;
	font-style: normal;
	font-weight: 950;
	src: url('/style/fonts/eot/iranyekanwebextrablack.eot');
	src: url('/style/fonts/eot/iranyekanwebextrablack.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
		 url('/style/fonts/woff/iranyekanwebextrablack.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
		 url('/style/fonts/ttf/iranyekanwebextrablack.ttf') format('truetype');

}

/* پایه‌ها */
body {
  font-family: "IranYekan", sans-serif;
  background-color: #ffffff;
  color: #0f1c2e;
  margin: 0;
  padding: 0;
}

/* هدر */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  flex-wrap: wrap;
}

.header nav {
  display: flex;
  gap: 1rem;
}

.header nav a {
  text-decoration: none;
  color: #4b5d67;
}

.logo {
  height: 80px;
  object-fit: contain;
  margin-right: 30px;
  margin-top: 10px;
}

/* کانتینر اصلی */
.container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* سکشن ویژه (featured section) */
.featured {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: #e9e9ec;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.featured img {
  width: 45%;
  border-radius: 12px;
  object-fit: cover;
}

.featured .content {
  flex: 1;
  padding: 0 1rem;
}

.featured h2 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-top: -0.5rem;
  margin-bottom: 0.3rem;
}

.featured p {
  font-size: 1rem;
  color: #4b5d67;
  line-height: 1.6;
}

.featured .label {
  color: #bfa46f;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* لیست مقاله‌ها */
.articles h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.grid article {
  background-color: #e9e9ec;
  padding: 1rem;
  border-radius: 8px;
}

.grid img {
  width: 100%;
  border-radius: 6px;
}

.grid h4 {
  margin: 0.8rem 0 0.4rem;
  color: #0f1c2e;
  font-size: 1rem;
}

.grid p {
  color: #4b5d67;
  font-size: 0.9rem;
}

/* دکمه‌ها */
.btn {
  background-color: #869164;
  color: white;
  padding: 0.3rem 0.8rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.btn.small {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

/* مدیاکوئری برای موبایل */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .header nav {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
    gap: 0;
  }

  .header nav a {
    font-size: 0.8rem;
  }

  .logo {
    height: 60px;
    margin: 0 auto;
  }

  .note {
    font-size: 0.7rem;
  }

  .featured {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    padding: 1.5rem;
    direction: rtl;
  }

  .featured .content {
    padding: 1rem 0;
    width: 100%;
  }

  .featured h2 {
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .featured p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .featured img {
    width: 100%;
  }

  .btn.small {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }
}

/* تب‌ها */
.tabs {
  margin-top: 2rem;
}

.tab-buttons {
  display: flex;
  gap: 0.6rem;
  border-bottom: 2px solid #ccc;
}

.tab-buttons button {
  all: unset;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-bottom: 2px solid transparent;
  color: #0f1c2e;
}

.tab-buttons button:hover,
.tab-buttons button.active {
  background-color: #869164;
  color: white;
  border-radius: 5px 5px 0 0;
}

.tab-content {
  display: none;
  margin-top: 1rem;
}

.tab-content.active {
  display: block;
}

/* آکاردئون */
.accordion {
  margin-top: 1rem;
}

.accordion-item {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.accordion-header {
  padding: 0.1rem 0.7rem;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: #869164;
  color: white;
}

.accordion-body {
  padding: 1rem;
  display: none;
  background-color: #fafafa;
}

.accordion-body.active {
  display: block;
}
