/* ==========================================================================
   Partner Page General Styles
   ========================================================================== */
.partner-benefits ul {
  list-style: disc;
  padding-left: 20px;
}

.partner-benefits ul li {
  color: var(--dark-grey);
}

.partner-benefits ul li::marker {
  color: var(--secondary-colour);
}

.about-text,
.partner-benefits {
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 55px;
  align-items: center;
  text-align: right;
}

.about-image img {
  width: 75%;
  height: auto;
  border-radius: 8px;
}

/* ==========================================================================
   Features Grid Section (6 Boxes)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0;
  padding: 0;
}

.feature-box {
  padding: 40px;
  color: #fff;
  text-align: center;
}

.feature-box img {
  height: 70px;
  width: auto;
  margin-bottom: 25px;
}

/* Gold Boxes */
.features-grid .box-1,
.features-grid .box-3,
.features-grid .box-5 {
  background-color: #F5BD02;
}

.features-grid .box-1 h2, .features-grid .box-1 p,
.features-grid .box-3 h2, .features-grid .box-3 p,
.features-grid .box-5 h2, .features-grid .box-5 p {
   color: #ffffff;
}

/* White Boxes */
.features-grid .box-2,
.features-grid .box-4,
.features-grid .box-6 {
  background-color: #ffffff;
}

.features-grid .box-2 h2, .features-grid .box-2 p,
.features-grid .box-4 h2, .features-grid .box-4 p,
.features-grid .box-6 h2, .features-grid .box-6 p {
   color: #1a1a1a;
}

/* Typography for Feature Boxes */
.feature-box h2 {
   font-size: 1.5rem;
}

.feature-box p {
   font-size: 1rem;
}

/* ==========================================================================
   "How It Works" Process Cards (Corrected)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    margin-top: 40px;
}

.service-card-link {
    text-decoration: none; /* Removes underline from links */
}

/* Base Card Structure */
.onboarding-card,
.service-request-card,
.execution-card {
  position: relative;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

/* Dark Overlay (Initial State) */
.onboarding-card::before,
.service-request-card::before,
.execution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Generic Content Containers */
.onboarding-card .card-content, .onboarding-card .learn-more,
.service-request-card .card-content, .service-request-card .learn-more,
.execution-card .card-content, .execution-card .learn-more {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* --- PADDING FIX --- */
/* Different padding for initial and hover states */
.onboarding-card .card-content,
.service-request-card .card-content,
.execution-card .card-content {
  padding: 15px;
}

.onboarding-card .learn-more,
.service-request-card .learn-more,
.execution-card .learn-more {
  padding: 45px; /* Increased padding to match "About" page */
}


/* Force ALL text inside these cards to be white */
.onboarding-card h3, .onboarding-card h4, .onboarding-card p,
.service-request-card h3, .service-request-card h4, .service-request-card p,
.execution-card h3, .execution-card h4, .execution-card p {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* By default, the hover content is hidden */
.onboarding-card .learn-more,
.service-request-card .learn-more,
.execution-card .learn-more {
  opacity: 0;
  visibility: hidden;
}

/* On hover, hide the initial content */
.onboarding-card:hover .card-content,
.service-request-card:hover .card-content,
.execution-card:hover .card-content {
  opacity: 0;
  visibility: hidden;
}

/* On hover, show the hover content */
.onboarding-card:hover .learn-more,
.service-request-card:hover .learn-more,
.execution-card:hover .learn-more {
  opacity: 1;
  visibility: visible;
}

/* On hover, change the overlay to be golden */
.onboarding-card:hover::before,
.service-request-card:hover::before,
.execution-card:hover::before {
  background-color: rgba(245, 189, 2, 0.85); /* The gold overlay */
}

/* Specific Background Images */
.onboarding-card { background-image: url('/images/process-onboarding.jpg'); }
.service-request-card { background-image: url('/images/process-request.jpg'); }
.execution-card { background-image: url('/images/process-execution.jpg'); }

/* Typography for card content */
.service-card .card-content p {
    font-size: 1rem;
}

.service-card .learn-more h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.service-card .learn-more p {
    font-size: 1.1rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
}
.contact-info p {
    font-size: 1.1rem;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-colour);
}
.btn-submit {
    width: 100%;
    background: var(--secondary-colour);
    color: var(--primary-colour);
    border: none;
    cursor: pointer;
}
.btn-submit:hover {
    background: #E0AC02;
}

/* ==========================================================================
   Card Content Uniformity Fix
   ========================================================================== */

/* Add a bottom margin to the heading for better spacing */
.service-card .card-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem; /* You can adjust this if needed */
}

/* Adjust the paragraph to create a more uniform block of text */
.service-card .card-content p {
    font-size: 1rem;
    line-height: 1.6;     /* Increases the space between lines of text */
    max-width: 90%;       /* Narrows the text block, encouraging wrapping */
    margin: 0 auto;       /* Ensures the narrowed block stays centered */
}

