/* Ensure the portal container is positioned relative for absolute positioning */
.portal {
    position: relative;
    background-color: #f8f9fa;
    padding: 60px 20px;
    color: #333;
    text-align: center;
    width: auto;
}

/* Background image container that spans the whole portal */
.portal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.portal-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

/* Content container placed above the background and decorative images */
.portal-content {
    position: relative;
    z-index: 2;
}


/* Your existing portal styles */
.portal h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: normal;
}

.portal p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Cards Container */
.portal-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

/* Individual Card */
.portal-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure spacing between elements */
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.portal-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #002147;
    font-weight: 600;
    text-align: center;
}

.portal-card p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #555;
    text-align: center;
}

/* Button Styles */
.portal-card a.button {
  display: inline-block;
  background: #002147;
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: normal;
  transition: background 0.3s ease;
  margin: 10px 20px; /* Center the button horizontally within the card */
  text-align: center;
  min-width: 140px; /* Ensure button has a minimum width */
}

.portal-card a.button:hover {
    background: #001f3f;
}

/* ─── PORTAL CTA SECTION ────────────────────────────────────────────────────── */
.portal-cta {
    /* break out to full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
  
    /* styling */
    background: #002147;
    color: #fff;
    text-align: center;
  
    /* spacing */
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 80px 20px;
  
    z-index: 1;
  }
  
  .portal-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .portal-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: normal;
    color: #fff;
  }
  
  .portal-cta p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #fff;
  }
  
  .portal-cta__button {
    display: inline-block;
    background: #fff;
    color: #002147;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .portal-cta__button:hover {
    background: #e6e6e6;
    color: #001f3f;
  }

  .portal-cta {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Add shadow for pop effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
  }

  .portal-cta:hover {
    transform: translateY(-10px); /* Slight lift on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
  }
  
  /* ─── MOBILE ADJUSTMENTS ───────────────────────────────────────────────────── */
  @media (max-width: 700px) {
    .portal-cta {
      margin: 60px 0;
      padding: 40px 15px;
      width: auto;
    }
  
    .portal-cta h2 {
      font-size: 2rem;
    }
  
    .portal-cta p {
      font-size: 1.1rem;
    }
  
    .portal-cta__button {
      padding: 12px 24px;
      font-size: 0.95rem;
    }
    
  }

  
  @media (max-width: 700px) {
    /* 1) Turn off the break-out on mobile */
    .portal-cta {
      position: relative !important;
      left: auto !important;
      right: auto !important;
      margin: 60px auto !important;   /* top/bottom = 60px, auto‐centered left/right */
      width: auto !important;          /* let it size to its container */
    }
  
    /* 2) Give the inner container a little breathing room */
    .portal-cta__inner {
      padding: 0 10px;   /* your 10px side padding */
      max-width: 1200px; /* keep your desktop cap */
      margin: 0 auto;    /* center inside its now-normal parent */
    }
  }
  