:root {
    --btn-primary-background:#00263e;
    --btn-primary-color:white;

    --btn-secundary-background:#e8ae60;
    --btn-secundary-color:white;

    --btn-tercary-background:#cb0000;
    --btn-tercary-color:white;
    
}

body{overflow-x: hidden;}

.container,.container-fluid {
  padding-left: 15px;   
  padding-right: 15px;
}

@media (min-width: 656px) {
  .container,.container-fluid {
    padding-left: 20px; 
    padding-right: 20px;
  }
}

@media (min-width: 864px) {
  .container,.container-fluid {
    padding-left: 20px; 
    padding-right: 20px;
  }
}

@media (min-width: 1040px) {
  .container,.container-fluid {
    padding-left: 10px; 
    padding-right: 10px;
  }
}

@media (min-width: 1296px) {
  .container,.container-fluid {
    padding-left: 15px; 
    padding-right: 15px;
  }
}

@media (min-width: 1536px) {
  .container,.container-fluid {
    padding-left: 30px; 
    padding-right: 30px;
  }
}

/* MOBILE FIRST */
:not(.text-white) h1,
:not(.text-white) h2,
:not(.text-white) h3,
:not(.text-white) h4,
:not(.text-white) h5,
:not(.text-white) h6 {
  color: var(--btn-primary-background);
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: inherit; 
}

h1 { font-size: 40px; line-height: inherit; }
h2 { font-size: 24px; line-height: inherit; }
h3 { font-size: 21px; line-height: inherit; }
h4 { font-size: 18px; line-height: inherit; }
h5 { font-size: 14px; line-height: inherit; }
h6 { font-size: 12px; line-height: inherit; }


p,li  { font-size: 15px; line-height: inherit; }
ul, ol { margin-bottom: 16px; padding-left: 20px; }
blockquote { border-left: 4px solid #D1D5DB; padding-left: 16px; font-style: italic; margin: 16px 0; }
pre { font-family: monospace; font-size: 14px; padding: 8px; background: #F3F4F6; overflow-x: auto; margin-bottom: 16px; }
code { font-family: monospace; font-size: 14px; background: #F3F4F6; padding: 0 4px; border-radius: 4px; }

/* tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
th, td { border: 1px solid #D1D5DB; padding: 8px; text-align: left; }


/* Primary button */
a.btn-primary {
  font-family: input-serif,serif;
  text-transform: uppercase;
  display: inline-block;
  font-weight: 500;
  color: var(--btn-primary-color);
  background-color: var(--btn-primary-background);
  padding: 16px 10px;
  text-decoration: none;
  transition: background-color .2s;
}
/* a.btn-primary:hover { background-color: #1E40AF; } */

/* Secondary button */
a.btn-secondary {
  font-family: input-serif,serif;
  text-transform: uppercase;
  display: inline-block;
  font-weight: 500;
  color: var(--btn-secundary-color);
  background-color: var(--btn-secundary-background);
  padding: 16px 10px;
  text-decoration: none;
  transition: background-color .2s;
}
/* a.btn-secondary:hover { background-color: #D1D5DB; } */

/* Secondary button */
a.btn-tercary {
  font-family: input-serif,serif;
  text-transform: uppercase;
  display: inline-block;
  font-weight: 500;
  color: var(--btn-tercary-color);
  background-color: var(--btn-tercary-background);
  padding: 16px 10px;
  text-decoration: none;
  transition: background-color .2s;
  }
  /* a.btn-tercary:hover { background-color: #D1D5DB; } */

  a.btn-primary, a.btn-secondary, a.btn-tercary {
    padding: 12px 30px;
    font-size: 15px;
    @media (max-width: 656px) {
      text-align: center;
    }
  }


/* RESPONSIVE BREAKPOINTS */
/* ≥656px (sm) */
@media (min-width: 656px) {
  h1 { font-size: 40px; line-height: inherit; }
  h2 { font-size: 25px; line-height: inherit; }
  h3 { font-size: 23px; line-height: inherit; }
  h4 { font-size: 20px; line-height: inherit; }
  h5 { font-size: 18px; line-height: inherit; }
  h6 { font-size: 16px; line-height: inherit; }

  p,ul,li  { font-size: 15px; line-height: inherit; }

  a.btn-primary, a.btn-secondary, a.btn-tercary {
    padding: 11px 30px;
    font-size: 14px;
  }
}

/* ≥864px (md) */
@media (min-width: 864px) {
  h1 { font-size: 56px; line-height: inherit; }
  h2 { font-size: 27px; line-height: inherit; }
  h3 { font-size: 22px; line-height: inherit; }
  h4 { font-size: 20px; line-height: inherit; }
  h5 { font-size: 18px; line-height: inherit; }
  h6 { font-size: 16px; line-height: inherit; }

  p,ul,li  { font-size: 16px; line-height: inherit; }

  a.btn-primary, a.btn-secondary, a.btn-tercary {
    padding: 12px 30px;
    font-size: 16px;
  }
}

/* ≥1040px (lg) */
@media (min-width: 1040px) {
  h1 { font-size: 60px; line-height: inherit; }
  h2 { font-size: 27px; line-height: inherit; }
}

/* ≥1296px (xl) */
@media (min-width: 1296px) {
  h1 { font-size: 80px; line-height: normal; }
  h2 { font-size: 32px; line-height: inherit; }
}




.heading-text-columns-content {
  --grid-gap: 30px;
  --cards-columns: 2;
  
  @media (max-width: 767px) {
    & {
      --grid-gap: 40px;
    }
  }

  .card,
  .orange-card,
  .featured-card.card {
    background: #fff !important;
  }

  .card-link {
    color: #0056b3;
    font-family: "study", serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    display: block;
    text-decoration: none;
    margin: 0 auto;
    transition: color 0.2s;
  }

  .card-link:hover {
    color:  #e8ae60; 
  }

  &.orange {
    background-color: var(--btn-secundary-background);
    background-image: url("https://bradfordatmadison.local/wp-content/uploads/2025/05/heading-text-columns-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }

  &.default {
    background-color: var(--btn-primary-background);
    background-image: url("https://bradfordatmadison.local/wp-content/uploads/2025/05/overview-background-scaled-1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }

  .card {
    border: 0;
    background: #fff !important;

    .card-head {
      .card-image {
        height: 400px;
        object-fit: cover;
      }
    }

    .card-body {
      text-align: center;

      h3 {
        line-height: 1.1;
        margin-bottom: 20px;
      }

      p {
        max-width: 100%;
      }
    }
  }

  .orange-card {
    background: #fff !important;
    .card-body {
      padding: 30px 30px;
    }
  }

  .featured-card {
    width: 100%;

    .grid {
      gap: 0.5rem;
      @media (min-width: 1023px) {
        gap: var(--grid-gap);
      }
    }

    .card-head {
      .card-image {
        height: auto;
        max-height: 550px;
        width: 100%;
        object-fit: cover;
        object-position: center;
      }
    }

    .card-body {
      text-align: left;
      @media (max-width: 1023px) {
        text-align: center;
      }
    }

    @media (max-width: 1023px) {
      .card-head {
        .card-image {
          height: 400px;
        }
      }
      &.orange-card .card-body {
        padding: 30px !important;
      }
    }
  }

  .grid {
    gap: var(--grid-gap);
  }

  /* New styles for incomplete cards handling */
  #incomplete-cards {
    display: flex;
    flex-direction: column;
    margin-top: var(--grid-gap);

    @media (max-width: 1023px) {
      .card {
        width: 100% !important;
        margin: 0 !important;
        margin-bottom: var(--grid-gap) !important;

        &:last-child {
          margin-bottom: 0 !important;
        }
      }
    }

    @media (min-width: 1024px) {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }
  }
}
