/* Hero Section of Articles */
.articles-withtab {
  width: 100%;
  background-color: #262524;
  padding: 40px 0px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 16px;
  font-family: 'Brandon Grotesque';
  font-weight: 400;
  color: #fff;
  width: 1200px;
  place-self: center;
  margin: 70px 40px 30px;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Title Section */
.title-section {
  margin: 10px 40px;
  width: 1200px;
  place-self: center;
}

.title-section h1 {
  font-size: 48px;
  font-family: 'IBM Plex Serif';
  color: #fff;
  font-weight: 400;
  margin: 10px 0;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #fff;
}

.date-articles-publish {
  color: #999a9a;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .title-section h1 {
    font-size: 36px;
	  line-height: 45px;
  }
}


/* Yellow promotion WEALTHFIT PREMIUM */
.article-promo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8d24a;
  border-radius: 10px;
  padding: 30px;
  width: 740px;
  background:
    linear-gradient(to right, rgba(252, 211, 77, 1), rgba(252, 211, 77, 0.85)),
    url("https://wealthfit.com/wp-content/uploads/2025/02/1f38651f-07e0-43b3-81b6-5f0f562ca0ac_class-covers_section-bg.webp") center/cover no-repeat;
  z-index: 2;
  place-self: center;
/* 	margin-top: 40px; */
}


.article-promo-content {
  flex: 1;
  padding-right: 20px;
}

.article-promo-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  Font-family : 'Brandon grotesque';
  padding: 6px 12px;
  margin-bottom: 15px;
}

.article-promo-content h2 {
  font-size: 32px;
  font-family: 'IBM Plex Serif';
  margin: 10px 0;
  color: #222;
}

.article-promo-content p {
  font-size: 20px;
  color: #262524;
  font-family: 'Brandon Grotesque';
  margin-bottom: 20px;
}

.article-promo-btn {
  display: inline-block;
  background: #fff;
  color: #262524;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Brandon Grotesque';
  padding: 11px 26px;
  letter-spacing : 1px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.article-promo-btn:hover {
  background: #fff;
  color: #262524;
}

.article-promo-image img {
  width: 350px;
  border-radius: 8px;
}

@media(max-width:768px) {
  .article-promo-box {
    flex-direction: column;
	   width: 90%;
	padding: 20px;
  }

  .article-promo-content {
    padding-right: 0;
  }

	.related-item img {
		width: 35% !important;
		height: 70px !important;
	}
	
  .article-promo-image {
    display : none;
  }
}

.complete-div-dark{
	padding-top : 40px;
}

/* Summary In This Article */
.summar-article {
  place-self: center;
  padding-top: 40px;
  width: 50%;
}

.article-box {
  border: 1px solid #000;
  padding: 0;
}

.article-header {
  background: #fff;
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
}

.article-header span {
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
	font-family : 'brandon grotesque';
	letter-spacing : 1px;
  text-transform: uppercase;
}

.article-header .toggle-icon {
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s;
}

.article-content {
  padding: 15px;
}

.article-content ol {
  margin: 0;
  padding-left: 20px;
  font-size: 20px;
}

.article-content ol li {
  margin-bottom: 10px;
}

.article-content a {
  color: #262524;
  text-decoration: underline;
  font-weight: 700;
  font-size: 20px;
  font-family: 'IBM Plex Serif';
}

.article-content a:hover {
  text-decoration: underline;
}

.collapsed .article-content {
  display: none;
}

.collapsed .toggle-icon {
  transform: rotate(180deg);
}


/* Articles Descritions  */
.articles-descriptions-section {
  width: 50%;
  place-self: center;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  margin-top: 40px;
  font-family: 'IBM plex Serif';
  color: #262524;
}

/* =========================
   Dark Mode Styles
   ========================= */

.dark-mode .complete-div-dark{
	background: #000000;
	padding-top : 40px;
}

.dark-mode .summar-article {
  background: #000000;
  color: #eaeaea;
}

.dark-mode .article-box {
  border: 1px solid #444;
  background: #000000;
}

.dark-mode .article-header {
  background: #000000;
  border-bottom: 1px solid #444;
}

.dark-mode .article-header span {
  background: #fff;
  color: #000;
}

.dark-mode .article-header .toggle-icon {
  color: #eaeaea;
}

.dark-mode .article-content {
  color: #eaeaea;
}

.dark-mode .article-content a {
  color: #dcdcdc; 
}

.dark-mode .article-content a:hover {
  color: #dcdcdc;
}

/* Articles Descriptions Section */
.dark-mode .articles-descriptions-section {
  color: #eaeaea;
	background-color: #000000;
}

.dark-mode .articles-descriptions-section a {
 color: #27E0F5;
	text-decoration : underline;
}

.articles-descriptions-section a {
	text-decoration : underline;
}

/* Author Section */
.autor-articles {
  width: 50%;
  margin-top: 40px;
  place-self: center;
}

article.author-box {
  border-top: 2px solid #000;
  padding-top: 10px;
  display: flex;
  margin-top: 10px;
  gap: 20px;
}

.author-heading {
  background-color: #000;
  width: 170px;
  color: #fff;
  text-align: center;
  font-weight : 500;
  padding: 5px;
  font-size: 14px;
  font-family: 'Brandon grotesque';
}

.author-box .author-image img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box .author-content {
  flex: 1;
}

.author-box {
  font-size: 11px;
  font-weight: bold;
  color: #262524;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.author-box .author-name {
  font-size: 32px;
  color: #262524;
  font-family: 'Brandon Grotesque';
  margin: 2px 0;
}

.author-box .author-position {
  font-size: 20px;
  font-weight: 500;
  font-family: 'Brandon Grotesque';
  color: #262524;
  margin-bottom: 12px;
}

.author-box .author-bio {
  font-size: 20px;
  color: #262524;
  font-weight: 400;
}

/* Author Section */
.autor-articles {
  width: 50%;
  margin-top: 40px;
  place-self: center;
}

article.author-box {
  border-top: 2px solid #000;
  padding-top: 10px;
  display: flex;
  margin-top: 10px;
  gap: 20px;
}

.author-box .author-content {
  flex: 1;
}

.author-box {
  font-size: 11px;
  font-weight: bold;
  color: #262524;
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.author-box .author-name {
  font-size: 32px;
  font-weight: bold;
  font-family: 'Brandon Grotesque';
  margin: 2px 0;
}

.author-box .author-position {
  font-size: 20px;
  font-weight: 500;
  font-family: 'Brandon Grotesque';
  color: #262524;
  margin-bottom: 12px;
}

.author-box .author-bio {
  font-size: 20px;
  color: #262524;
  font-weight: 400;
}

/* =========================
   Dark Mode - Author Section
   ========================= */
.dark-mode .autor-articles {
  color: #eaeaea;
}

.dark-mode article.author-box {
  border-top: 2px solid #444;
}

.dark-mode .author-heading {
  background-color: #fff;
  color: #000;
}

.dark-mode .author-box {
  color: #eaeaea;
}

.dark-mode .author-box .author-name {
  color: #fff;
}

.dark-mode .author-box .author-position {
  color: #ccc;
}

.dark-mode .author-box .author-bio {
  color: #bbb;
}


/* ============== Responsive ============== */
@media (max-width: 1024px) {
  .autor-articles {
    width: 70%;
  }

  .author-box {
    font-size: 26px;
  }

	.author-name {
		font-size: 32px;
	}
	
  .author-box .author-bio {
    font-size: 18px;
  }
	.author-position{
		font-size : 20px;
	}
	

	.related-item a {
		display : flex;
		flex-direction : row-reverse;
		gap: 15px;
		border-bottom : 1px solid #dddddd;
	}
}

@media (max-width: 768px) {
  .autor-articles {
    width: 90%;
  }
	
  article.author-box {
    flex-direction: column;
	  gap : 0px;
  }
	
  .author-box .author-image img {
    width: 130px;
    height: 130px;
  }

  .author-box .author-name {
    font-size: 22px;
  }

  .author-box .author-position,
  .author-box .author-bio {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .autor-articles {
    width: 100%;
    margin-top: 20px;
	  padding: 15px;
  }

  .author-heading {
    font-size: 14px;
    padding: 4px 8px;
	  width : 170px;
	  letter-spacing : 1px;
  }


  .author-box .author-position,
  .author-box .author-bio {
    font-size: 14px;
  }
}

/* Popular Article and related categories */
.articles-container {
  display: flex;
  gap: 40px;
  width: 1250px;
  place-self: center;
}

/* Left Column */
.related-articles {
  flex: 3;
}

.related-articles h3 {
  background: #000;
  color: #fff;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 1px;
	font-family : 'brandon grotesque';
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid black;
  padding-top: 5px;
}

article.related-item img {
  width: 100%;
	height : 170px;
}

article.related-item p {
  margin-top: 8px;
  font-weight: bold;
  font-size: 26px;
  line-height : 30px;
  font-family: 'brandon grotesque';
	color : #262524;
}

/* Right Column */
.popular-articles {
  flex: 1;
}

.popular-articles h3 {
  background: #000;
  color: #fff;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 10px;
  font-size: 14px;
	Font-family : 'Brandon grotesque';
  letter-spacing: 1px;
}

.popular-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid black;
}

.popular-articles li {
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  font-size: 20px;
  font-family: 'brandon grotesque';
}

.popular-articles li a {
  text-decoration: none;
  color: #000;
}

.popular-articles li a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-container {
    flex-direction: column;
	  width : auto;
	  padding : 15px;
  }
	.summar-article,
	.articles-descriptions-section {
		width : 90%;
	}
	article.related-item p {
		font-size: 20px;
		margin-top : 0px;
		line-height: 25px;
		font-weight : 500;
		width : 60%;
	}
	.article-promo-btn{
	display : flex;
		place-self: center
	}
	.title-section{
		width: 90%;
	}

	.breadcrumb {
		width:90%;
		font-size : 12px;
	}

  .related-grid {
    grid-template-columns: 1fr;
  }
}


/* Toggle Button */
/* Wrapper fixed right-middle */
.theme-switch-wrapper {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999;
}

/* Switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 18px;
}

.slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

/* Sun & Moon Icons */
.slider .sun {
  color: gold;
}
.slider .moon {
  color: orange;
}

/* Checked State (dark mode) */
input:checked + .slider {
  background-color: #444;
}

input:checked + .slider::before {
  transform: translateX(36px);
}


/* Dark Mode Styles */
.dark-mode .with-dark {
	background: #1e1e1e;
	padding: 10px;
}
.dark-mode .articles-container {
  background: #1e1e1e;
  color: #eaeaea;
}

.dark-mode .related-articles h3,
.dark-mode .popular-articles h3 {
  background: #fff;
  color: #000;
}

.dark-mode article.related-item p,
.dark-mode .popular-articles li a {
  color: #eaeaea;
}

.dark-mode .popular-articles li {
  border-color: #444;
}

.dark-mode .related-grid {
	border-top : #dddddd;
}

.dark-mode .popular-articles ul {
	border-top : #444444;
}