/**
 * Hisham News section (on trainer_hisham page) + single article page.
 * Matches the playful, branded look of the trainer page — accent
 * gradients, sticker-style dates, and gentle rise-on-hover motion.
 */

/* ═══════════════════════════════════════════════════════
   NEWS GRID SECTION (on trainer_hisham page)
   ═══════════════════════════════════════════════════════ */
.hp-news {
    position: relative;
    padding: 84px 0 96px;
    background:
        radial-gradient(1200px 500px at 50% -160px, rgba(51, 142, 170, 0.14), transparent 60%),
        linear-gradient(180deg, #f6f9fd 0%, #eef4fb 100%);
    overflow: hidden;
}
/* Playful accent strip along the top — matches the trainer sections */
.hp-news::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #27ae60 0%, #338eaa 50%, #7c4dff 100%);
}
/* Ambient decorative blobs */
.hp-news::after {
    content: '';
    position: absolute;
    inset: auto -80px -140px auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.14), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.hp-news__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
    position: relative;
    z-index: 2;
}
.hp-news__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    background: #fff;
    color: #338eaa;
    font-weight: 900;
    font-size: 12.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(51, 142, 170, 0.22);
    border: 1px solid rgba(51, 142, 170, 0.25);
    letter-spacing: 0.02em;
}
.hp-news__title {
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px;
    letter-spacing: -0.015em;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #338eaa 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hp-news__lead {
    color: #64748b;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.hp-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* Card — clean white with playful color accent */
.hp-news__card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s ease,
                border-color 0.45s ease;
    animation: hpNewsRise 0.6s ease-out both;
    animation-delay: var(--_d, 0s);
}
/* Colored top stripe — rotates through the trainer palette */
.hp-news__card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #338eaa);
    z-index: 4;
    transition: height 0.35s ease;
}
.hp-news__card:nth-child(2)::before { background: linear-gradient(90deg, #7c4dff, #338eaa); }
.hp-news__card:nth-child(3)::before { background: linear-gradient(90deg, #ff6b6b, #ff9f43); }
.hp-news__card:nth-child(4)::before { background: linear-gradient(90deg, #338eaa, #48dbfb); }
.hp-news__card:nth-child(5)::before { background: linear-gradient(90deg, #27ae60, #7c4dff); }
.hp-news__card:nth-child(6)::before { background: linear-gradient(90deg, #f39c12, #ff6b6b); }
.hp-news__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
    border-color: rgba(51, 142, 170, 0.35);
}
.hp-news__card:hover::before { height: 6px; }

.hp-news__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Media */
.hp-news__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4fb, #dae5f2);
}
.hp-news__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-news__card:hover .hp-news__media img { transform: scale(1.08); }

/* Subtle image tint on hover */
.hp-news__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.28) 100%);
    opacity: 0.85;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Placeholder icon when no featured image */
.hp-news__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(51, 142, 170, 0.5);
    font-size: 56px;
    background: linear-gradient(135deg, #eff4fa, #dfeaf5);
}

/* Sticker-style date badge */
.hp-news__date {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-news__date i { color: #338eaa; }
.hp-news__card:hover .hp-news__date { transform: rotate(0deg) scale(1.05); }

/* Card body */
.hp-news__body { padding: 22px 24px 26px; position: relative; }
.hp-news__card-title {
    font-size: 17.5px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.hp-news__card:hover .hp-news__card-title { color: #338eaa; }
.hp-news__excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-news__cta {
    color: #338eaa;
    font-weight: 900;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(51, 142, 170, 0.15);
    width: 100%;
    transition: gap 0.3s ease, color 0.3s ease;
}
.hp-news__card:hover .hp-news__cta { gap: 14px; color: #27ae60; }
.hp-news__cta i { transition: transform 0.35s ease; }
.hp-news__card:hover .hp-news__cta i { transform: translateX(-4px); }

@keyframes hpNewsRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) { .hp-news__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 620px) {
    .hp-news { padding: 56px 0 68px; }
    .hp-news__grid { grid-template-columns: 1fr; gap: 18px; }
    .hp-news__head { margin-bottom: 36px; }
}

/* ═══════════════════════════════════════════════════════
   SINGLE NEWS ARTICLE PAGE
   Article-style hero + body with sidebar share/back
   ═══════════════════════════════════════════════════════ */
.hp-news-single {
    background: #fff;
}

.hp-news-single__hero {
    position: relative;
    min-height: 460px;
    padding: 120px 0 70px;
    background: linear-gradient(135deg, #1e40af 0%, #338eaa 55%, #27ae60 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hp-news-single__hero.has-image { background-color: #0f172a; }
.hp-news-single__hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 60% at 50% 30%, rgba(15, 23, 42, 0.2) 0%, transparent 80%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.82) 100%);
}
/* Decorative floating dot */
.hp-news-single__hero::before {
    content: '';
    position: absolute;
    top: 10%;
    inset-inline-end: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hp-news-single__hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}
.hp-news-single__crumbs {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hp-news-single__crumbs a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease;
}
.hp-news-single__crumbs a:hover { background: rgba(255, 255, 255, 0.24); }
.hp-news-single__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}
.hp-news-single__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    margin: 0 0 24px;
    letter-spacing: -0.015em;
    line-height: 1.28;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    text-wrap: balance;
}
.hp-news-single__meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}
.hp-news-single__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* Body */
.hp-news-single__body {
    padding: 72px 0 88px;
    background: #fff;
}
.hp-news-single__body .container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 56px;
    max-width: 1120px;
}
.hp-news-single__content {
    font-size: 17px;
    line-height: 2.05;
    color: #1f2937;
    max-width: 720px;
}
.hp-news-single__content > *:first-child { margin-top: 0; }
.hp-news-single__content h2,
.hp-news-single__content h3 {
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.005em;
    line-height: 1.4;
}
.hp-news-single__content h2 {
    font-size: 26px;
    margin: 40px 0 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(51, 142, 170, 0.2);
    display: inline-block;
}
.hp-news-single__content h3 {
    font-size: 20px;
    margin: 30px 0 14px;
    color: #338eaa;
}
.hp-news-single__content p { margin: 0 0 20px; }
.hp-news-single__content ul,
.hp-news-single__content ol { margin: 0 0 24px; padding-inline-start: 28px; }
.hp-news-single__content li { margin-bottom: 10px; }
.hp-news-single__content ul li::marker { color: #338eaa; }
.hp-news-single__content a {
    color: #338eaa;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
}
.hp-news-single__content a:hover { color: #27ae60; }
.hp-news-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 28px 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.hp-news-single__content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f1f5f9, #e2f0f5);
    border-inline-start: 5px solid #338eaa;
    border-radius: 14px;
    font-size: 16.5px;
    color: #334155;
    font-style: italic;
    position: relative;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.hp-news-single__content blockquote::before {
    content: '"';
    position: absolute;
    inset-inline-start: 20px;
    top: -6px;
    font-size: 72px;
    color: rgba(51, 142, 170, 0.28);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Sidebar (share + back) */
.hp-news-single__aside {
    position: sticky;
    top: 110px;
    align-self: start;
}
.hp-news-single__share {
    background: linear-gradient(160deg, #f8fafc 0%, #eef4fb 100%);
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.hp-news-single__share span {
    font-size: 13.5px;
    color: #475569;
    font-weight: 800;
    width: 100%;
    margin-bottom: 6px;
}
.hp-news-single__share a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: #338eaa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    font-size: 17px;
}
.hp-news-single__share a:hover {
    background: #338eaa;
    color: #fff;
    transform: translateY(-4px) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(51, 142, 170, 0.35);
}
.hp-news-single__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #338eaa;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.hp-news-single__back:hover {
    background: #338eaa;
    color: #fff;
    border-color: #338eaa;
    transform: translateY(-2px);
}

/* Related news strip */
.hp-news-single__related {
    padding: 72px 0 88px;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(51, 142, 170, 0.1), transparent 60%),
        linear-gradient(180deg, #f6f9fd 0%, #eef4fb 100%);
    border-top: 1px solid #e2e8f0;
    position: relative;
}
.hp-news-single__related-title {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 36px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #338eaa 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
    .hp-news-single__body .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hp-news-single__aside { position: static; }
}
@media (max-width: 620px) {
    .hp-news-single__hero { padding: 92px 0 52px; min-height: 380px; }
    .hp-news-single__body { padding: 52px 0 60px; }
    .hp-news-single__related { padding: 52px 0 60px; }
    .hp-news-single__content h2 { font-size: 22px; }
    .hp-news-single__content h3 { font-size: 18px; }
}
