/* Our Portfolios Page Styles - Modern Redesign */

/* Override global paragraph margins and max-width for portfolio page */
.portfolios-page p {
  margin-bottom: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.portfolios-page {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f6 50%, #ffffff 100%);
  padding-bottom: 100px;
  position: relative;
}

.portfolios-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(135deg, rgba(226, 77, 125, 0.03) 0%, rgba(248, 116, 143, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

.portfolios-hero {
  text-align: center;
  padding: 160px 20px 60px;
  max-width: 900px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}

.portfolios-hero h1 {
  font-size: 3.75rem;
  font-weight: 800;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #e24d7d 0%, #f8748f 50%, #ffb2c2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.portfolios-hero p {
  font-size: 1.3rem;
  color: #555;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto;
  font-weight: 400;
}

.portfolios-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 24px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 0;
  margin: 0 auto 60px;
  border: 1px solid rgba(226, 77, 125, 0.12);
  box-shadow: 0 4px 24px rgba(226, 77, 125, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: block;
  clear: both;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #e24d7d 0%, #f8748f 50%, #ffb2c2 100%);
  z-index: 1;
  opacity: 0.8;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(226, 77, 125, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(226, 77, 125, 0.2);
}

.portfolio-header {
  padding: 40px 36px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #fffafb 100%);
  border-bottom: 1px solid rgba(226, 77, 125, 0.08);
  position: relative;
  text-align: center;
}

.portfolio-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 77, 125, 0.2), transparent);
}

.portfolio-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.portfolio-title .title-main {
  display: block;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #e24d7d 0%, #f8748f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-title .title-subtitle {
  font-size: 1rem;
  color: #888;
  font-weight: 500;
  display: block;
  margin-top: 6px;
  font-style: normal;
}

.portfolio-subtitle {
  font-size: 1.15rem;
  color: #666;
  font-style: normal;
  margin: 0 !important;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}

.portfolio-body {
  padding: 36px;
}

.portfolio-body p {
  max-width: 100% !important;
  width: 100%;
}

.portfolio-content {
  display: block;
  width: 100%;
}

.portfolio-description {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.85;
  margin: 0 0 40px 0 !important;
  font-weight: 400;
  text-align: center;
  max-width: 100% !important;
  width: 100%;
}

.allocation-section {
  background: linear-gradient(135deg, #fffafb 0%, #fff5f6 100%);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(226, 77, 125, 0.1);
  margin-bottom: 40px;
  box-shadow: inset 0 1px 3px rgba(226, 77, 125, 0.05);
}

.allocation-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #e24d7d;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.allocation-bar {
  margin-bottom: 20px;
}

.allocation-bar:last-child {
  margin-bottom: 0;
}

.allocation-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #2a2a2a;
}

.allocation-label span:last-child {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.95rem;
  color: #e24d7d;
  font-weight: 700;
}

.allocation-bar-fill {
  height: 14px;
  border-radius: 24px;
  background: linear-gradient(90deg, #e24d7d 0%, #f8748f 50%, #ffb2c2 100%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(226, 77, 125, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.allocation-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.funds-section {
  padding: 0 36px 36px;
  border-top: 1px solid rgba(226, 77, 125, 0.08);
  margin-top: 0;
  padding-top: 36px;
}

.funds-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  text-align: center;
}

.fund-item {
  background: linear-gradient(135deg, #ffffff 0%, #fffafb 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  border-left: 5px solid #e24d7d;
  border: 1px solid rgba(226, 77, 125, 0.12);
  border-left: 5px solid #e24d7d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(226, 77, 125, 0.05);
}

.fund-item:last-child {
  margin-bottom: 0;
}

.fund-item:hover {
  background: linear-gradient(135deg, #fff5f6 0%, #ffffff 100%);
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(226, 77, 125, 0.12);
  border-color: rgba(226, 77, 125, 0.2);
}

.fund-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.fund-ticker {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.95rem;
  color: #e24d7d;
  font-weight: 700;
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(226, 77, 125, 0.08);
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.fund-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  margin: 0 !important;
  font-weight: 400;
  text-align: center;
}

.portfolio-note {
  display: none;
}

.portfolio-note::before {
  content: "💡";
  margin-right: 8px;
  font-style: normal;
}

.sources-section {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 48px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #fffafb 100%);
  border-radius: 24px;
  border: 1px solid rgba(226, 77, 125, 0.1);
  box-shadow: 0 8px 32px rgba(226, 77, 125, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}

.sources-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e24d7d 0%, #f8748f 50%, #ffb2c2 100%);
  border-radius: 24px 24px 0 0;
}

.sources-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.01em;
}

.sources-text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.85;
  text-align: center;
  margin: 0;
  font-weight: 400;
}

/* Responsive Design */
@media (max-width: 968px) {
  .portfolios-hero {
    padding: 140px 20px 50px;
    margin-bottom: 50px;
  }

  .portfolios-hero h1 {
    font-size: 2.75rem;
  }

  .portfolios-hero p {
    font-size: 1.2rem;
  }

  .portfolio-card {
    margin-bottom: 50px;
  }

  .portfolio-title {
    font-size: 2rem;
  }

  .portfolio-title .title-subtitle {
    font-size: 0.95rem;
  }

  .portfolio-header {
    padding: 32px 28px 24px;
  }

  .portfolio-body {
    padding: 32px 28px;
  }

  .funds-section {
    padding: 0 28px 32px;
    padding-top: 32px;
  }
}

@media (max-width: 600px) {
  .portfolios-page {
    padding-bottom: 60px;
  }

  .portfolios-hero {
    padding: 120px 16px 40px;
    margin-bottom: 40px;
  }

  .portfolios-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 20px;
  }

  .portfolios-hero p {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .portfolios-container {
    padding: 0 16px 16px;
  }

  .portfolio-card {
    margin-bottom: 40px;
    border-radius: 20px;
  }

  .portfolio-header {
    padding: 28px 20px 20px;
  }

  .portfolio-body {
    padding: 28px 20px;
  }

  .portfolio-title {
    font-size: 1.75rem;
  }

  .portfolio-title .title-main {
    display: block;
    margin-bottom: 4px;
  }

  .portfolio-title .title-subtitle {
    font-size: 0.9rem;
    display: block;
    margin-top: 4px;
  }

  .portfolio-subtitle {
    font-size: 1.05rem;
  }

  .portfolio-description {
    font-size: 1.05rem;
    margin-bottom: 32px;
  }

  .allocation-section {
    padding: 24px 20px;
    margin-bottom: 32px;
    border-radius: 16px;
  }

  .allocation-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
  }

  .allocation-label {
    font-size: 0.95rem;
  }

  .funds-section {
    padding: 0 20px 28px;
    padding-top: 28px;
  }

  .funds-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
  }

  .fund-item {
    padding: 20px;
    margin-bottom: 16px;
  }

  .fund-name {
    font-size: 1.1rem;
  }

  .fund-ticker {
    font-size: 0.9rem;
  }

  .fund-description {
    font-size: 0.95rem;
  }

  .portfolio-note {
    margin: 28px 20px 0;
    padding: 20px;
    font-size: 0.95rem;
  }

  .sources-section {
    padding: 36px 24px;
    margin: 60px 16px 0;
    border-radius: 20px;
  }

  .sources-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .sources-text {
    font-size: 1rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.portfolio-card:nth-child(1) {
  animation-delay: 0.1s;
}

.portfolio-card:nth-child(2) {
  animation-delay: 0.2s;
}

.portfolio-card:nth-child(3) {
  animation-delay: 0.3s;
}

.sources-section {
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}
