/* Key Offerings (tabs + scrolling list) and What's New.
   Mobile: stacked.  Desktop (992px+): two columns.
   Colours come from the dbim-theme tokens. */

.offerings {
  --offer-title-size: 1.875rem;
  --offer-tab-size: 2rem;
  --offer-item-size: 1.5rem;
  --offer-more-size: 1rem;
  --offer-list-max: 25rem;     /* height of the scrolling list: about 4 items */

  padding-block: 2.5rem;
  background: var(--bright-gray);          /* Linen */
  color: var(--black);
  font-family: "Noto Sans", sans-serif;
  padding-top: 3rem;
  padding-bottom: 3rem;
}


.offerings-inner {
  width: calc(100% - 3rem);
  max-width: 1590px;
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}
.offerings .offer-col { display: flex; flex-direction: column; min-width: 0; }
.offerings .offer-box { flex: 1; }
.offerings ul { list-style: none; margin: 0; padding: 0; }

/* Heading with icon (single-colour SVG, recoloured with the key colour) */
.offerings .offer-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: var(--offer-title-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--key);
}
.offerings .ico {
  flex: none;
  width: 4rem;                              /* 48px */
  height: 4rem;
  background-color: var(--key);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.offerings .ico-offer   { -webkit-mask-image: url("../../assets/images/icons/offerings.svg"); mask-image: url("../../assets/images/icons/offerings.svg"); }
.offerings .ico-sparkle { -webkit-mask-image: url("../../assets/images/icons/whats_new.svg");   mask-image: url("../../assets/images/icons/whats_new.svg"); }

/* Tabs */
.offerings .offer-tabs {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--key);
  border-radius: 0.25rem;
  overflow: hidden;
}
.offerings .offer-tab {
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  color: var(--key);
  border: 0;
  border-left: 1px solid var(--key);
  font: inherit;
  font-size: var(--offer-tab-size);
  cursor: pointer;
}
.offerings .offer-tab:first-child { border-left: 0; }
.offerings .offer-tab:hover { background: var(--azureish-white-bg); }
.offerings .offer-tab[aria-selected="true"] {
  background: var(--key);
  color: var(--on-key);
  font-weight: 700;
}
.offerings .offer-tab:focus-visible { outline: 2px solid var(--key); outline-offset: -4px; }
.offerings .offer-tab[aria-selected="true"]:focus-visible { outline-color: var(--on-key); }

/* Scrolling list */
.offerings .offer-panel[hidden] { display: none; }
.offerings .offer-list {
  margin-top: 0.375rem;
  max-height: var(--offer-list-max);
  overflow-y: auto;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--key) transparent;
}
.offerings .offer-list::-webkit-scrollbar { width: 6px; }
.offerings .offer-list::-webkit-scrollbar-thumb { background: var(--key); border-radius: 3px; }

.offerings .offer-list li { border-bottom: 1px solid var(--azureish-white); }
.offerings .offer-list li:last-child { border-bottom: 0; }

/* Links with a chevron on the right */
.offerings .offer-list a,
.offerings .offer-news a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--offer-item-size);
  line-height: 1.5;
  text-decoration: none;
  color: inherit;
}
.offerings .offer-list a::after,
.offerings .offer-news a::after,
.offerings .offer-more::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.offerings .offer-list a { padding: 1rem 1.25rem; color: var(--black); }
.offerings .offer-list a::after { color: var(--key); }
.offerings .offer-list a:hover { background: var(--azureish-white-bg); text-decoration: underline; text-underline-offset: 3px; }
.offerings .offer-list a:focus-visible,
.offerings .offer-news a:focus-visible { outline: 2px solid var(--key); outline-offset: -2px; }

/* What's New panel */
.offerings .offer-news {
  background: var(--key);
  color: var(--on-key);
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
}
.offerings .offer-news li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom-color: color-mix(in srgb, var(--on-key) 50%, transparent);
}
.offerings .offer-news li:last-child { border-bottom: 0; }
.offerings .offer-news a { padding: 1rem 0; }
.offerings .offer-news a:hover { text-decoration: underline; text-underline-offset: 3px; }
.offerings .offer-news a:focus-visible { outline-color: var(--on-key); }

/* View more button */
.offerings .offer-more {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--key);
  border: 1px solid var(--key);
  border-radius: 0.25rem;
  font-size: var(--offer-more-size);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;      /* short label only */
  text-decoration: none;
}
.offerings .offer-more:hover { background: var(--azureish-white-bg); }
.offerings .offer-more:focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }

@media (min-width: 576px) {
  .offerings {
    --offer-title-size: 1.875rem;
    --offer-tab-size: 1.25rem;
    --offer-item-size: 1.25rem;
    --offer-more-size: 1.25rem;
    --offer-more-size: 0.75rem;
  }

  .offerings-inner {
    width: calc(100% - 3rem);
  }
}

@media (min-width: 992px) {
  .offerings {
    --offer-title-size: 2rem;
    --offer-tab-size: 1.4rem;
      --offer-item-size: 1.4rem;
      --offer-more-size: 1.4rem;
      --offer-more-size: 1.25rem;
  
    }
  .offerings-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; }
}
@media (min-width: 1200px) {
  .offerings {
    --offer-title-size: 2.25rem;
    --offer-tab-size: 2rem;
    --offer-item-size: 1.5rem;
    --offer-more-size: 1.5rem;
    --offer-more-size: 1.5rem;
    
  }
    .offerings-inner {
      width: 88%; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
      gap: 2rem;
    }
}

/* =====================================================
   SERVICES MAIN CONTAINER
===================================================== */

.services-list {
    width: 100%;
}


/* =====================================================
   TOP TOOLBAR
===================================================== */

.services-toolbar {
    display: grid;

    grid-template-columns:
        2fr
        1.35fr
        1.35fr
        1.1fr;

    gap: 5px;

    margin-bottom: 36px;
}


/* =====================================================
   SEARCH
===================================================== */

.service-search {
    height: 60px;

    display: flex;
    align-items: center;

    border: 1px solid #16828a;

    border-radius: 6px;

    background: #fff;

    box-sizing: border-box;
}


.service-search .search-icon {
    margin-left: 20px;

    margin-right: 20px;

    font-size: 30px;

    line-height: 1;

    color: #147c84;
}


.service-search input {
    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    font-family: inherit;

    font-size: 1.1rem;

    color: #222;
}


.service-search input::placeholder {
    color: #777;
}


/* =====================================================
   FILTER BOX
===================================================== */

.service-filter {
    height: 60px;

    display: flex;

    align-items: center;

    border: 1px solid #16828a;

    border-radius: 6px;

    background: #fff;

    box-sizing: border-box;
}


.filter-icon {
    margin-left: 20px;

    margin-right: 18px;

    color: #147c84;

    font-size: 25px;
}


.service-filter select {
    flex: 1;

    height: 100%;

    padding: 0 35px 0 0;

    border: none;

    outline: none;

    background: #fff;

    appearance: auto;

    font-family: inherit;

    font-size: 1.05rem;

    color: #111;

    cursor: pointer;
}


/* =====================================================
   TABLE HEADER
===================================================== */

.services-header {
    display: grid;

    grid-template-columns:
        2.4fr
        3.8fr
        1.5fr
        1.2fr;

    align-items: center;

    min-height: 60px;

    padding: 0 2rem;

    background: #a8d9dc;

    color: #075c63;

    font-size: 0.95rem;

    font-weight: 700;

    letter-spacing: 0.04em;
}


/* =====================================================
   SERVICE ROW
===================================================== */

.service-row {
    display: grid;

    grid-template-columns:
        2.4fr
        3.8fr
        1.5fr
        1.2fr;

    align-items: center;

    margin-top: 8px;

    padding: 1.3rem 2rem;

    min-height: 125px;

    background: #fff;

    border: 1px solid #e2e2e2;

    border-radius: 10px;

    box-sizing: border-box;
}


/* =====================================================
   TITLE
===================================================== */

.service-title {
    display: flex;

    align-items: flex-start;

    gap: 1rem;

    padding-right: 1.4rem;
}


.service-number {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border: 1px solid #176f76;

    border-radius: 50%;

    color: #176f76;

    font-size: 0.85rem;

    font-weight: 700;
}


.service-title h2 {
    margin: 0;

    font-size: 1.15rem;

    line-height: 1.45;

    font-weight: 500;

    color: #111;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.service-description {
    padding: 0 1.5rem;

    font-size: 0.95rem;

    line-height: 1.55;

    color: #333;
}


.service-description p {
    margin: 0 0 0.6rem;
}


.service-description h3 {
    margin: 0.4rem 0 0.3rem;

    color: #075c63;

    font-size: 0.9rem;

    font-weight: 700;
}


.service-description ul {
    margin: 0;

    padding-left: 1.2rem;
}


.service-description li {
    margin-bottom: 0.3rem;
}


/* =====================================================
   BUDGET
===================================================== */

.service-budget {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 0 1rem;

    font-size: 0.85rem;
}


.service-budget strong {
    color: #075c63;

    font-size: 0.95rem;
}


.service-budget span {
    line-height: 1.4;
}


/* =====================================================
   VIEW BUTTON
===================================================== */

.service-action {
    display: flex;

    justify-content: center;

    padding-left: 1rem;
}


.service-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 110px;

    height: 54px;

    padding: 0 1.3rem;

    background: #a8d9dc;

    color: #075c63;

    border-radius: 6px;

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.04em;

    transition: 0.2s ease;
}


.service-btn:hover {
    background: #8bcbd0;
}


/* =====================================================
   BOTTOM FOOTER
===================================================== */

.services-footer {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 100px;

    margin-top: 15px;
}


/* =====================================================
   PAGINATION
===================================================== */

.pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


.page-number,
.page-arrow {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 38px;

    height: 38px;

    color: #075c63;

    text-decoration: none;

    font-size: 1rem;

    font-weight: 600;
}


.page-number:hover,
.page-arrow:hover {
    color: #111;
}


.page-number.active {
    font-weight: 800;

    color: #075c63;
}


.page-arrow {
    font-size: 2rem;

    font-weight: 400;
}


.page-arrow.disabled {
    color: #ccc;

    pointer-events: none;
}


.page-dots {
    padding: 0 4px;

    color: #111;

    font-size: 1rem;
}


/* =====================================================
   ARCHIVE BUTTON
===================================================== */

.archive-btn {
    position: absolute;

    right: 0;

    top: 50%;

    transform: translateY(-50%);

    display: inline-flex;

    align-items: center;

    gap: 10px;

    height: 54px;

    padding: 0 1.4rem;

    background: #a8d9dc;

    color: #075c63;

    text-decoration: none;

    border-radius: 6px;

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.04em;
}


.archive-btn span {
    font-size: 1.4rem;
}


.archive-btn:hover {
    background: #8bcbd0;
}
@media (max-width: 1000px) {

    .services-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .services-header {
        grid-template-columns:
            2fr
            3fr
            1.5fr
            1fr;
    }

    .service-row {
        grid-template-columns:
            2fr
            3fr
            1.5fr
            1fr;
    }

    .service-title h2 {
        font-size: 1rem;
    }

    .service-description {
        padding: 0 0.8rem;
    }

}

.offer-index-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.offer-index-list li {
    margin: 0;
    padding: 0;
}

.offer-index-list li a {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 68px;
    padding: 14px 18px;

    background: #ffffff;
    border: 1px solid #e1e8e4;
    border-radius: 8px;

    color: #2f4f46;
    text-decoration: none;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.offer-index-list li a img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
}

.offer-index-list li a span:not(.offer-arrow) {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.offer-arrow {
    font-size: 22px;
    font-weight: 500;
    color: #4a746a;
    transition: transform 0.25s ease;
}

.offer-index-list li a:hover {
    background: #f3f8f5;
    border-color: #b8cec5;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.offer-index-list li a:hover .offer-arrow {
    transform: translateX(5px);
}

.offer-index-list li a:focus-visible {
    outline: 3px solid rgba(74, 116, 106, 0.3);
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 576px) {
    .offer-index-list {
        gap: 10px;
    }

    .offer-index-list li a {
        min-height: 60px;
        padding: 12px 14px;
        gap: 12px;
    }

    .offer-index-list li a img {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .offer-index-list li a span:not(.offer-arrow) {
        font-size: 15px;
    }

    .offer-arrow {
        font-size: 20px;
    }
}
