/* Responsible Lending Page Specific Styles */

/* Responsible Lending Header */
.responsible-header {
  padding: 60px 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.responsible-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 1;
}

.responsible-header .container {
  position: relative;
  z-index: 2;
}

.responsible-header h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.responsible-header h1::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary);
}

.responsible-header p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsible Lending Content */
.responsible-content {
  padding: 80px 0;
  background-color: var(--white);
}

/* Intro Section */
.responsible-intro {
  padding: 60px 0;
}
.intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.intro-content {
  flex: 1;
}

.intro-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-blue);
}

.intro-content p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.intro-image {
  flex-basis: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 250px;
  height: 250px;
  background-color: #eef3f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--primary);
}

/* Principles Section */
.principles {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.principles h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-blue);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.principle-card {
  background-color: var(--white);
  padding: 30px;
  text-align: center;
  border-top: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-10px);
  border-top-color: var(--secondary);
}

.principle-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.principle-card:hover .principle-icon {
  background-color: var(--secondary);
}

.principle-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

.principle-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Practices Section */
.practices {
  padding: 60px 0;
}

.practices h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--dark-blue);
}

.practices-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.practice-item {
  background-color: var(--light-gray);
  padding: 25px;
}

.practice-item h3 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.practice-item h3 i {
  color: var(--secondary);
  margin-right: 15px;
  font-size: 1.5rem;
}

/* Commitments Section */
.commitments {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.commitments h2,
.commitments .intro-text {
  text-align: center;
}

.commitments h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--dark-blue);
}

.commitments .intro-text {
  max-width: 800px;
  margin: 0 auto 40px;
}

.compliance-list {
  list-style-type: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 30px;
}

.compliance-list li {
  background-color: var(--white);
  padding: 15px 20px;
  margin-bottom: 10px;
}

.commitment-statement {
  text-align: center;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* Education Section */
.education {
  padding: 60px 0;
}

.education h2,
.education .intro-text {
  text-align: center;
}

.education h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--dark-blue);
}

.education .intro-text {
  max-width: 800px;
  margin: 0 auto 40px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.resource-card {
  background-color: var(--white);
  padding: 30px;
  text-align: center;
  border-top: 4px solid var(--secondary);
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-10px);
}

.resource-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  background-color: var(--secondary);
  color: var(--white);
  font-size: 1.8rem;
}

.resource-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark-blue);
}

/* CTA Section adjustments */
.lending-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Guidelines Section */
.guidelines {
  margin-bottom: 80px;
  background-color: var(--white);
  padding: 60px 0;
  position: relative;
}

.guidelines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
}

.guidelines h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary);
}

.guidelines-list {
  max-width: 900px;
  margin: 0 auto;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--white);
  padding: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.guideline-item:hover {
  transform: translateX(10px);
  border-left-color: var(--secondary);
}

.guideline-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: 25px;
  line-height: 1;
  transition: all 0.3s ease;
}

.guideline-item:hover .guideline-number {
  color: var(--secondary);
}

.guideline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.guideline-content p {
  font-size: 1.05rem;
  color: var(--black);
  line-height: 1.7;
  margin: 0;
}

/* Resources Section */
.resources {
  margin-bottom: 80px;
}

.resources h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary);
}

.resource-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.resource-links li {
  margin-bottom: 12px;
}

.resource-links li a {
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 1.05rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.resource-links li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.resource-links li a i {
  margin-right: 10px;
  color: var(--secondary);
}

/* Contact Section */
.lending-contact {
  background-color: var(--white);
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.lending-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
}

.lending-contact h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--primary);
}

.lending-contact p {
  font-size: 1.2rem;
  color: var(--black);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  min-width: 200px;
}

/* Responsive Adjustments */
@media screen and (max-width: 992px) {
  .principles-grid,
  .resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .responsible-header h1 {
    font-size: 2.5rem;
  }

  .responsible-header p,
  .responsible-intro p,
  .lending-contact p {
    font-size: 1.1rem;
  }

  .responsible-intro h2,
  .principles h2,
  .guidelines h2,
  .resources h2,
  .lending-contact h2 {
    font-size: 2rem;
  }

  .guideline-item {
    padding: 20px;
  }

  .guideline-number {
    font-size: 2rem;
    margin-right: 15px;
  }

  .guideline-content h3 {
    font-size: 1.3rem;
  }

  .intro-grid {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .principle-card,
  .resource-card {
    padding: 25px 20px;
  }

  .guideline-item {
    flex-direction: column;
  }

  .guideline-number {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .contact-buttons {
    flex-direction: column;
  }
}
