.investment-themes-section {
  margin: 60px 0;
}

.themes-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 30px auto;
  background-color: #f5f5f5;
  border-radius: 50px;
  padding: 5px;
  width: fit-content;
  border: none;
  flex-wrap: wrap;
}

.themes-toggle button {
  font-family: "Inter", sans-serif;
  font-size: var(--fluid-14-16);
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 40px;
  width: auto;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.themes-toggle button:hover {
  color: var(--color-primary);
  background-color: rgba(107, 51, 5, 0.1);
}

.themes-toggle button.active {
  background-color: #6b3305;
  color: #fff;
}

.theme-content {
  display: none;
  margin-top: 40px;
}

.theme-content.active {
  display: block;
}

.theme-header {
  text-align: left;
  margin-bottom: 40px;
}

.theme-header h2 {
  font-family: "SangBleuRegular", serif;
  font-weight: 400;
  color: #44372c;
  margin-bottom: 16px;
}

.theme-header p {
  font-size: var(--fluid-16-20);
  color: #1F2225;
  max-width: 1000px;
  margin: 0;
  line-height: 1.6;
}

.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.theme-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 24px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  transform: translateY(0);
  cursor: pointer;
  text-decoration: none;
}

.theme-card:hover {
  background-color: rgba(107, 51, 5, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(107, 51, 5, 0.2);
}

.theme-card-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.theme-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-card-icon svg {
  width: 42px;
  height: 42px;
  color: #000;
  stroke-width: 1.5;
}

.theme-card-content {
  display: flex;
  flex-direction: column;
}

.theme-card-content h5 {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0;
  font-size: var(--fluid-16-18);
}

.theme-card-content p {
  font-size: var(--fluid-14-16);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.theme-card-arrow svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text);
}

/* Responsive Design */
@media (max-width: 768px) {
  .themes-toggle {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
  }
  
  .themes-toggle button {
    width: 100%;
    border-radius: 8px;
    margin: 2px 0;
  }
  
  
  .theme-header p {
    font-size: 16px;
  }
  
  .theme-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .theme-card {
    padding: 20px;
  }
  
  .theme-card-icon {
    width: 32px;
    height: 32px;
  }
  
  .theme-card-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .theme-card-content h5 {
    font-size: 16px;
  }
  
  .theme-card-arrow svg {
    width: 24px;
    height: 24px;
  }
  
  .theme-stocks {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stock-card {
    padding: 20px;
    flex-direction: column;
  }
  
  .stock-info {
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  .stock-rank {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .investment-themes-section {
    margin: 40px 0;
  }
  
  .themes-toggle {
    margin: 20px auto;
  }
  
  .themes-toggle button {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  
  .theme-header p {
    font-size: 14px;
  }
  
  .theme-card {
    padding: 16px;
    gap: 12px;
  }
  
  .theme-card-icon {
    width: 28px;
    height: 28px;
  }
  
  .theme-card-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .theme-card-content h5 {
    font-size: 14px;
  }
  
  .theme-card-content p {
    font-size: 12px;
  }
  
  .theme-card-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .stock-card {
    padding: 16px;
  }
  
  .stock-info h3 {
    font-size: 16px;
  }
  
  .stock-info p {
    font-size: 13px;
  }
  
  .rank-score {
    font-size: 20px;
  }
  
  .rank-label {
    font-size: 11px;
  }
} 

/* Investment Theme Explanation Card */
.investment-theme-explanation {
  margin: 80px 0;
}

.explanation-card {
  background: #fff;
  background-image: linear-gradient(to left, #F2EEEB, #fff);
  border-radius: 32px;
  padding: 40px;
  border: 1px solid #E0DAD1;
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.explanation-content {
  flex: 1;
  max-width: 60%;
}

.explanation-content h2 {
  font-family: "SangBleuRegular", serif;
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
  line-height: 1.3;
}

.explanation-content p {
  font-size: var(--fluid-16-18);
  color: #000;
  line-height: 1.6;
  margin-bottom: 16px;
}

.explanation-image {
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

/* Responsive Design for Explanation Card */
@media (max-width: 1024px) {
  .explanation-card {
    flex-direction: column;
    gap: 30px;
  }
  
  .explanation-content {
    max-width: 100%;
  }
  
  .explanation-image {
    max-width: 100%;
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .explanation-card {
    padding: 24px;
    gap: 20px;
  }
  
  
  .explanation-content p {
    font-size: 14px;
  }
  
  .explanation-image {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .investment-theme-explanation {
    margin: 40px 0;
  }
  
  .explanation-card {
    padding: 20px;
    gap: 16px;
  }
  
  
  .explanation-content p {
    font-size: 13px;
  }
  
  .explanation-image {
    min-height: 150px;
  }
} 