/* Home page (index.html) and the shared games block (featuredgamesmain.php). hp-* classes only. */
.hp { margin: 18px 0 8px; font-family: 'Raleway', Arial, sans-serif; color: #1f2a30; text-align: left; }
.hp *, .hp *::before, .hp *::after, .hp-section *, .hp-section *::before { box-sizing: border-box; }

/* Hero: slider + "Coming up" panel */
.hp-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin: 0 0 30px; }
/* Banners are all about 1.91 : 1 (960x502), so the slider uses that shape and shows each one whole. */
.hp-slider { position: relative; aspect-ratio: 960 / 502; align-self: start; border-radius: 16px; overflow: hidden; background: #e9eff2; box-shadow: 0 6px 22px rgba(0, 0, 0, .12); }
.hp-slider .swiper { width: 100%; height: 100%; }
.hp-slider .swiper-slide { position: relative; }
.hp-slider .swiper-slide > a { position: absolute; inset: 0; display: block; color: #fff !important; text-decoration: none !important; }
.hp-slider .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: 60px 26px 30px; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
.hp-cap h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1.15; color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.hp-cap span { flex: 0 0 auto; padding: 9px 18px; font-size: 15px; font-weight: 700; color: #24758a; background: #fff; border-radius: 22px; }
.hp-slider .swiper-button-next, .hp-slider .swiper-button-prev { width: 42px; height: 42px; margin-top: -21px; color: #1f2a30;
    background: rgba(255, 255, 255, .85); border-radius: 50%; }
.hp-slider .swiper-button-next::after, .hp-slider .swiper-button-prev::after { font-size: 16px; font-weight: 700; }
.hp-slider .swiper-pagination { bottom: 10px !important; }
.hp-slider .swiper-pagination-bullet { background: #fff; opacity: .6; }
.hp-slider .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 5px; }

.hp-panel { display: flex; flex-direction: column; padding: 20px 20px 16px; background: #fff; border: 1px solid #dde4e8; border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.hp-panel h2 { margin: 0 0 12px; font-family: 'Playfair Display', Georgia, serif; font-size: 22px; color: #1f2a30; }
/* The holiday list spreads out to fill the panel beside the slider. */
.hp-days { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.hp-days li { margin: 0; padding: 0; list-style: none; }
.hp-days a { display: flex; align-items: center; gap: 12px; padding: 7px 6px; margin: 0 -6px; color: #1f2a30 !important; text-decoration: none !important;
    border-radius: 10px; }
.hp-days a:hover { background: #f2f7f9; }
.hp-date { flex: 0 0 auto; width: 48px; padding: 4px 0; text-align: center; color: #24758a; background: #e3f1f5; border-radius: 9px; line-height: 1.1; }
.hp-date small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.hp-date b { display: block; font-size: 19px; }
.hp-days strong { display: block; font-size: 15px; font-weight: 600; }
.hp-days em { display: block; font-size: 13px; font-style: normal; color: #6b7a82; }
.hp-follow { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef2f4; }
.hp-follow-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hp-follow-row > span { font-size: 14px; font-weight: 700; color: #3b4a52; }
.hp-icons { display: flex; gap: 8px; align-items: center; }
.hp-icons img { display: block; width: 30px !important; height: 30px !important; }
.hp-new-link { display: block; margin-top: 12px; padding: 10px; text-align: center; font-size: 15px; font-weight: 700; color: #fff !important;
    text-decoration: none !important; background: #2f8ea6; border-radius: 10px; }
.hp-new-link:hover { background: #24758a; }

/* Card sections */
.hp-section { margin: 0 0 34px; font-family: 'Raleway', Arial, sans-serif; text-align: left; clear: both; }
.hp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.hp-section-head h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 700; color: #1f2a30; }
.hp-section-head a { font-size: 16px; font-weight: 700; color: #2f8ea6 !important; text-decoration: none !important; white-space: nowrap; }
.hp-section-head a:hover { text-decoration: underline !important; }
.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-card { display: flex; flex-direction: column; overflow: hidden; color: #1f2a30 !important; text-decoration: none !important; background: #fff;
    border: 1px solid #dde4e8; border-radius: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: transform .15s, box-shadow .15s; }
.hp-card:hover, .hp-card:focus { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); outline: none; }
.hp-pic { position: relative; display: block; aspect-ratio: 328 / 172; background: #eef2f4; }
.hp-pic img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; margin: 0 !important; }
.hp-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    color: #fff; background: #e07b1f; border-radius: 12px; }
.hp-title { display: block; padding: 12px 14px 14px; font-size: 16px; font-weight: 600; line-height: 1.3; }

/* Phones and tablets (wherever the hamburger menu shows): the holidays are in the menu instead. */
@media (max-width: 1145px) {
    .hp-hero { grid-template-columns: 1fr; }
    .hp-panel { display: none; }
}
@media (max-width: 860px) {
    .hp-hero { grid-template-columns: 1fr; }
    .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
    .hp { margin-top: 12px; }
    .hp-cap { padding: 40px 14px 26px; }
    .hp-cap h2 { font-size: 21px; }
    .hp-cap span { padding: 7px 12px; font-size: 13px; }
    .hp-slider .swiper-button-next, .hp-slider .swiper-button-prev { display: none; }
    .hp-section-head h2 { font-size: 23px; }
    .hp-grid { gap: 10px; }
    .hp-title { padding: 9px 10px 11px; font-size: 14px; }
}
