/* Financial Tools Hero Section */
.financial-tools-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.financial-tools-hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/images/financial-tools-preview.jpg") no-repeat
    center center/cover;
  z-index: -1;
  opacity: 0.9;
  background-attachment: fixed;
}

.financial-tools-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #212529;
}

.financial-tools-hero .highlight {
  color: #0056b3;
  position: relative;
}

.financial-tools-hero .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 86, 179, 0.2);
  z-index: -1;
  border-radius: 50px;
}

.financial-tools-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #495057;
  margin-bottom: 2rem;
  max-width: 500px;
}

.financial-tools-hero .hero-image {
  width: 45%;
  background: url("../assets/images/financial-tools-hero.png") no-repeat center
    center/contain;
  height: 300px;
}

/* Tools Navigation */
.tools-nav {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tools-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none; /* Firefox */
}

.tools-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.tools-tab-btn {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
  text-decoration: none;
}

.tools-tab-btn.active {
  background-color: #0056b3;
  color: white;
}

.tools-tab-btn i {
  font-size: 1rem;
}

/* Main Content */
.financial-tools-main {
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.tools-section {
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.tools-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tools-section h2 i {
  color: #0056b3;
}

.section-intro {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 800px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tool-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tool-icon {
  width: 50px;
  height: 50px;
  background-color: #e6f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #0056b3;
  font-size: 1.25rem;
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

.tool-card p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Resources Section */
.resources-section {
  margin-top: 3rem;
}

.resources-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resources-section h3 i {
  color: #0056b3;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.resource-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #212529;
}

.resource-card p {
  color: #6c757d;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.resource-link {
  color: #0056b3;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.resource-link:hover {
  color: #003d82;
  text-decoration: underline;
}

.resource-link i {
  font-size: 0.8rem;
}

/* Wellness Section */
.wellness-section {
  background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
  border-radius: 12px;
  overflow: hidden;
  margin: 4rem 0;
  display: flex;
  align-items: center;
}

.wellness-content {
  padding: 3rem;
  color: white;
  flex: 1;
}

.wellness-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wellness-content h2 i {
  color: rgba(255, 255, 255, 0.8);
}

.wellness-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 500px;
}

.wellness-image {
  width: 40%;
  background: url("../assets/images/financial-wellness.png") no-repeat center
    center/cover;
  height: 300px;
}

/* CTA Section */
.tools-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.tools-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #212529;
}

.tools-cta p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #495057;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .financial-tools-hero .container {
    flex-direction: column;
    text-align: center;
  }

  .financial-tools-hero .hero-content {
    margin-bottom: 3rem;
  }

  .financial-tools-hero .hero-image {
    width: 100%;
    margin-top: 2rem;
  }

  .wellness-section {
    flex-direction: column;
  }

  .wellness-content {
    text-align: center;
    padding: 2rem;
  }

  .wellness-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .financial-tools-hero h1 {
    font-size: 2.5rem;
  }

  .tools-tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tools-section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .financial-tools-hero h1 {
    font-size: 2rem;
  }

  .financial-tools-hero .hero-subtitle {
    font-size: 1.1rem;
  }

  .tools-cta h2 {
    font-size: 2rem;
  }

  .tools-cta p {
    font-size: 1.1rem;
  }

  .wellness-content h2 {
    font-size: 1.5rem;
  }
}

/* News Section */
.news-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.news-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-section h2 i {
  color: #0056b3;
}

.news-section .section-intro {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 800px;
}

.news-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.news-filter-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: 1px solid #ced4da;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #495057;
  font-size: 0.9rem;
}

.news-filter-btn.active {
  background-color: #0056b3;
  color: white;
  border-color: #0056b3;
}

.news-filter-btn:hover:not(.active) {
  background-color: #e9ecef;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 1.5rem;
}

.news-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #e6f0ff;
  color: #0056b3;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #212529;
  line-height: 1.4;
}

.news-excerpt {
  color: #6c757d;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6c757d;
}

.news-source {
  font-weight: 600;
}

.news-date {
  opacity: 0.8;
}

.news-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  border: 4px solid rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  border-top: 4px solid #0056b3;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.news-cta {
  text-align: center;
  margin-top: 2rem;
}

.news-cta p {
  margin-bottom: 1rem;
  color: #6c757d;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-filters {
    justify-content: center;
  }
}
