/* =========================================================
   PACKAGING EUROPE - WEBINARS PAGE
   ========================================================= */

.pe-webinars-page {
    width: 100%;
    background: #fff;
}


/* =========================================================
   HERO
   ========================================================= */

.pe-webinars-hero {
    max-width: 75rem;
    height: 18.75rem;
    margin: 0 auto 2.8125rem;

    background-image: linear-gradient(rgb(0 0 0 / 0%), rgba(0, 0, 0, 0.62)), url(https://storage.ghost.io/c/61/60/61607b5b-1c0b-4249-a886-4bc4c284c107/content/images/2026/09/webinartest_859364.png);

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.pe-webinars-hero-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pe-webinars-hero h1 {
    margin: 0 0 1.25rem;
    color: #fff;
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 700;
}

.pe-webinars-hero-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;

    background: #d20001;
    color: #fff !important;

    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
  border-radius: 2rem;
}

.pe-webinars-hero-button:hover {
    background: #071535;
    color: #fff !important;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.pe-webinars-section {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 0 1.25rem 3.4375rem;
}

.pe-webinars-section h2 {
    margin: 0 0 1.875rem;

    text-align: center;

    color: #000;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}


/* =========================================================
   WEBINAR LIST
   ONE CARD PER ROW
   ========================================================= */

.pe-webinars-grid {
    display: flex;
    flex-direction: column;
    gap: 1.625rem;
}


/* =========================================================
   WEBINAR CARD
   ========================================================= */

.pe-webinar-card {
    display: grid;
    grid-template-columns: 22.5rem 1fr;

    width: 100%;
    min-height: 13.125rem;

    
    background: #fff;

    overflow: hidden;
}


/* =========================================================
   WEBINAR IMAGE

   IMPORTANT:
   This is the first element inside .pe-webinar-card
   ========================================================= */

.pe-webinar-card > a {
    display: block;
    width: 22.5rem;
    height: 13.125rem;
    overflow: hidden;
}

.pe-webinar-card > a img {
    display: block;

    width: 100%;
    height: 100%;

  /*  object-fit: cover; */
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.pe-webinar-card-content {
    padding: 0rem 1.75rem;

    display: flex;
    flex-direction: column;
    justify-content: normal;
}


/* Title */

.pe-webinar-card-content h3 {
    margin: 0 0 0.625rem;

    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.pe-webinar-card-content h3 a {
   /* color: #000 !important; */
    text-decoration: none !important;
}

.pe-webinar-card-content h3 a:hover {
    color: #d20001;
  text-decoration: none !important;
}


/* Excerpt */

.pe-webinar-card-content p {
    margin: 0 0 0.625rem;

    color: #666;
    font-size: 1rem;
    line-height: 1.25;
}


/* =========================================================
   BUTTON
   ========================================================= */

.pe-webinar-button {
    display: inline-block;
    align-self: flex-start;

    padding: 0.5rem 1rem;

    background: #d20001;
    color: #fff !important;

    border-radius: 2rem;

    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;

    text-decoration: none !important;
}

.pe-webinar-button:hover {
    background: #071535;
    color: #fff !important;
}


/* =========================================================
   EMPTY MESSAGE
   ========================================================= */

.pe-webinars-empty {
    text-align: center;

    color: #777;
    font-size: 1rem;

    padding: 1.25rem 0 2.5rem;
}


/* =========================================================
   ON DEMAND WEBINARS - 3 COLUMN GRID
   ========================================================= */

.pe-webinars-on-demand {
    padding-top: 0.625rem;
}

.pe-webinars-on-demand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5625rem;
}


/* Individual On Demand card */

.pe-webinars-on-demand-grid .pe-webinar-card {
    display: flex;
    flex-direction: column;

    min-height: 0;
    width: 100%;
}


/* Image */

.pe-webinars-on-demand-grid .pe-webinar-card > a {
    width: 100%;
    height: 11.875rem;
    flex-shrink: 0;
}

.pe-webinars-on-demand-grid .pe-webinar-card > a img {
    width: 100%;
    height: 100%;
  /*  object-fit: cover; */
}


/* Content */

.pe-webinars-on-demand-grid .pe-webinar-card-content {
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pe-webinars-on-demand-grid .pe-webinar-card-content h3 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 0.625rem;
}

.pe-webinars-on-demand-grid .pe-webinar-card-content p {
    font-size: 1rem;
    line-height: 1.45;
}


/* View all button */

.pe-webinars-view-all {
    text-align: center;
    margin-top: 2.1875rem;
}

.pe-webinars-view-all a {
    display: inline-block;

    padding: 0.75rem 1.875rem;
border-radius: 2em;
    border: 0.0625rem solid #d20001;
    background: #fff;

    color: #d20001 !important;

   font-size: .85rem;
    font-weight: 600;

    text-decoration: none !important;
}

.pe-webinars-view-all a:hover {
    background: #e60000;
    color: #fff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 56.25rem) {

    .pe-webinars-on-demand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 37.5rem) {

    .pe-webinars-on-demand-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 43.75rem) {

    .pe-webinars-hero {
        height: 14.375rem;
        margin-bottom: 2.1875rem;
    }

    .pe-webinars-hero h1 {
        font-size: 2.625rem;
    }

    .pe-webinars-section {
        padding-left: 0.9375rem;
        padding-right: 0.9375rem;
    }

    .pe-webinars-section h2 {
        font-size: 2rem;
    }

    /* Stack image above text on mobile */
    .pe-webinar-card {
        display: block;
    }

    .pe-webinar-card > a {
        width: 100%;
        height: auto;
    }

    .pe-webinar-card > a img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .pe-webinar-card-content {
        padding: 1.125rem;
    }

    .pe-webinar-card-content h3 {
        font-size: 1rem;
    }

}

/* =========================================================
   ON DEMAND WEBINARS - FINAL 3 COLUMN LAYOUT
   ========================================================= */

/* This selector matches the HBS structure exactly */
.pe-webinars-on-demand .pe-webinars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Individual card */
.pe-webinars-on-demand .pe-webinar-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

/* Keep the original image proportions.
   No fixed height and no object-fit: cover. */
.pe-webinars-on-demand .pe-webinar-card > a {
    display: block;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}

.pe-webinars-on-demand .pe-webinar-card > a img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Content */
.pe-webinars-on-demand .pe-webinar-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.625rem 0.625rem 0.75rem;
}

/* Smaller title + fixed title area.
   This makes the Watch now buttons line up. */
.pe-webinars-on-demand .pe-webinar-card-content h3 {
    margin: 0 0 0.625rem;
    min-height: 3.4375rem;
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 700;
}

/* No descriptions in On Demand cards */
.pe-webinars-on-demand .pe-webinar-card-content p {
    display: none;
}

/* Buttons stay at the same level */
.pe-webinars-on-demand .pe-webinar-button {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    line-height: 1;
}

/* View more - matches the HBS class */
.pe-webinars-view-more {
    display: table;
    margin: 2.1875rem auto 0;
    padding: 0.75rem 1.875rem;
    border: 1px solid #e60000;
    border-radius: 1.25rem;
    background: #fff;
    color: #e60000 !important;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none !important;
}

.pe-webinars-view-more:hover {
    background: #e60000;
    color: #fff !important;
}

/* Tablet */
@media (max-width: 56.25rem) {
    .pe-webinars-on-demand .pe-webinars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 43.75rem) {
    .pe-webinars-on-demand .pe-webinars-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pe-webinars-on-demand .pe-webinar-card-content h3 {
        min-height: auto;
        font-size: 0.9375rem;
    }
}
