/*
 * Custom CSS for Memberlakna.com
 * Font: IBM Plex Sans
*/

/* --- Root Variables & Base --- */
:root {
  --di-blue: #005c99;
  --di-orange: #f28c28;
  --di-green: #138808;
  --di-dark-blue: #004a7c;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #dee2e6;
  --section-padding: 5rem 0;
  --gap-size: 3rem; /* Consistent spacing for rows/columns */
}
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
}
.display-4 {
  font-size: calc(1.75rem + 1.5vw);
}
@media (min-width: 1200px) {
  .display-4 {
    font-size: 3.5rem;
  }
}
.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

.text-primary {
    color: var(--di-blue) !important;
}

/* --- Reusable Section Styling --- */
.section {
    padding: var(--section-padding);
}
.section-header {
    margin-bottom: var(--gap-size);
}
.section-header .subtitle {
    font-weight: 600;
    color: var(--di-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}
.section-header .title {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 700;
    margin-bottom: 1rem;
}
@media (min-width: 992px) {
  .section-header .title {
    font-size: 2.5rem;
  }
}
.section-header .description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Navigation Bar --- */
.navbar {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  transition: all 0.3s ease-in-out;
}
.navbar.scrolled {
  background-color: var(--white);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.navbar-brand {
    color: var(--di-blue) !important;
    font-weight: 800;
    font-size: 1.75rem;
}
.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin-left: 1.5rem;
    transition: color 0.2s ease-in-out;
}
.nav-link:hover, .nav-link.active {
    color: var(--di-blue) !important;
}
.navbar-toggler {
    border: none;
    font-size: 1.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Buttons --- */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
}
.btn-primary {
    background-color: var(--di-blue);
    border-color: var(--di-blue);
}
.btn-primary:hover {
    background-color: var(--di-dark-blue);
    border-color: var(--di-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-outline-primary {
    color: var(--di-blue);
    border-color: var(--di-blue);
}
.btn-outline-primary:hover {
    background-color: var(--di-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-outline-light.text-white:hover {
    background-color: var(--white);
    color: var(--di-blue) !important;
}


/* --- NEW Landing Page Styles --- */

/* Hero Section */
.hero-section {
    background-color: var(--di-blue);
    color: var(--white);
    padding: 3rem 0 0;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero-content {
    padding-bottom: 4rem;
}

.hero-prefix {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    background-color: #b9fab3;
    color: var(--di-green); /* Uses your brand's accent color */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    padding: 5px 10px;
    border-radius: 8px;
}

.hero-section h1 {
    color: var(--white);
    font-weight: 800;
}
.hero-section .lead {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}
.hero-mockup-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: -5rem;
    border-radius: 1rem 1rem 0 0;
}

/* Trusted By Section */
.trusted-by-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.trusted-by-logo {
    height: 70px;
    max-width: 120px;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    transition: all 0.3s ease;
}
/* .trusted-by-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
} */

/* Features Grid Section */
.features-grid-section {
    background-color: var(--white);
}
.feature-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
    border: 1px solid var(--di-blue);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--di-blue);
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--bg-light);
}
.step-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.step-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(0, 92, 153, 0.05);
    z-index: 0;
}
.step-content {
    position: relative;
    z-index: 1;
}
.step-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--di-blue);
    margin-bottom: 1rem;
}
.step-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 0;
}
.step-image {
    max-width: 100%;
    border-radius: 0.75rem;
    margin-top: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--white);
    position: relative;
}
.testimonial-card {
    background-color: var(--bg-light);
    border-radius: 1rem;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}
.testimonial-quote {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
    flex-grow: 1;
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--di-blue);
}
.testimonial-author {
    font-weight: 700;
    color: var(--di-blue);
    margin-bottom: 0.25rem;
}
.testimonial-role {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Final CTA Section */
.cta-section {
    background-color: var(--di-blue);
    color: var(--white);
    text-align: center;
}
.cta-section h2 {
    color: var(--white);
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: #001e3c;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    font-size: 0.95rem;
}
.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 2.2;
}
.footer a:hover {
    color: var(--white);
}
.footer .social-icons a {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer .social-icons a:hover {
    color: var(--white);
}


/* --- Styles for Login/Signup Pages --- */

/* Two-Column Auth Layout */
.auth-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
    align-items: center;
    padding: 1rem 0;
    justify-content: center;
}
.auth-container {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 1rem;
    overflow: hidden;
}
.auth-form-side, .auth-info-side {
    width: 100%;
}
.auth-info-side {
    background: linear-gradient(135deg, var(--di-blue), #004a7c);
    color: var(--white);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}
.auth-info-side h2 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
}
.auth-info-side p {
    font-size: 1.1rem;
    opacity: 0.9;
}
.feature-list {
    list-style: none;
    padding-left: 0;
}
.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
.feature-list .bi {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: var(--di-orange);
    margin-top: 4px;
}
.auth-form-side {
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
    order: 2;
}
.auth-form-side .card {
    border: none;
    box-shadow: none;
    width: 100%;
}
.auth-form-side h2 {
    color: var(--di-blue);
}

/* General Form Controls */
.form-control {
    border-radius: 0.5rem;
    padding: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.form-control:focus {
    border-color: var(--di-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 92, 153, 0.25);
}
.form-floating > .form-control:focus ~ label {
    color: var(--di-blue);
}


/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    margin-top: 1rem;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  }
  .nav-link {
    margin-left: 0;
    padding: 0.75rem 1rem;
  }
  .hero-mockup-img {
    margin-top: -5rem;
  }
  .order-lg-2 {
    order: -1;
  }
  .section-padding {
    padding: 4rem 0;
  }
}
@media (min-width: 992px) {
    .auth-form-side, .auth-info-side {
        width: 50%;
    }
    .auth-form-side {
        order: 1;
        padding: 3rem;
    }
    .auth-info-side {
        order: 2;
    }
}