/* Home page — portal layout */

.hp {
    --hp-red: #e61b23;
    --hp-red-dark: #b5121a;
    --hp-ink: #141414;
    --hp-ink-2: #3a3a3a;
    --hp-muted: #6b6b6b;
    --hp-line: #e6e6e6;
    --hp-soft: #f5f5f3;
    --hp-ml: "Noto Sans Malayalam", "Poppins", sans-serif;

    background: #fff;
    color: var(--hp-ink);
    font-family: var(--hp-ml);
    padding-bottom: 8px;
}

.hp a,
.hp h1,
.hp h2,
.hp h3,
.hp h4 {
    font-family: var(--hp-ml);
    color: inherit;
}

.hp a:hover h1,
.hp a:hover h3,
.hp a:hover h4,
.hp-list a:hover,
.hp-timeline a:hover,
.hp-ranked a:hover {
    color: var(--hp-red);
}

/* Ticker */

.hp-ticker {
    background: var(--hp-soft);
    border-bottom: 1px solid var(--hp-line);
}

.hp-ticker-inner {
    display: flex;
    align-items: stretch;
    height: 42px;
}

.hp-ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 0 14px;
    background: var(--hp-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hp-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: hp-pulse 1.4s ease-in-out infinite;
}

@keyframes hp-pulse {
    50% { opacity: .25; }
}

.hp-ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.hp-ticker-move {
    display: flex;
    white-space: nowrap;
    animation: hp-scroll 90s linear infinite;
}

.hp-ticker-track:hover .hp-ticker-move {
    animation-play-state: paused;
}

.hp-ticker-move a {
    position: relative;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 500;
}

.hp-ticker-move a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2px;
    background: var(--hp-red);
    border-radius: 50%;
}

.hp-ticker-move a:hover {
    color: var(--hp-red);
}

@keyframes hp-scroll {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-ticker-move { animation: none; }
    .hp-live-dot { animation: none; }
}

/* Thumbnails */

.hp-thumb {
    position: relative;
    overflow: hidden;
    background: var(--hp-soft);
}

.hp-thumb > img,
.hp-thumb-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hp-thumb > img {
    object-fit: cover;
    transition: transform .5s ease;
}

a:hover .hp-thumb > img {
    transform: scale(1.04);
}

.hp-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f4f2, #e9e9e6);
}

.hp-thumb-empty img {
    width: 42%;
    max-width: 160px;
    opacity: .35;
    filter: grayscale(1);
}

.hp-ratio-16x10 { aspect-ratio: 16 / 10; }
.hp-ratio-16x9 { aspect-ratio: 16 / 9; }
.hp-ratio-4x3 { aspect-ratio: 4 / 3; }

/* Shared text bits */

.hp-kicker {
    display: inline-block;
    margin: 12px 0 4px;
    color: var(--hp-red);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
}

.hp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    color: var(--hp-muted);
    font-size: 12.5px;
}

.hp-meta span + span::before {
    content: "•";
    margin-right: 14px;
}

.hp-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--hp-ink);
}

.hp-block-head h2 {
    position: relative;
    margin: 0;
    padding: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.hp-block-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--hp-red);
}

.hp-block-head a {
    padding-bottom: 8px;
    color: var(--hp-red);
    font-size: 13px;
    font-weight: 600;
}

/* Lead area */

.hp-lead-area {
    padding: 26px 0 30px;
    border-bottom: 1px solid var(--hp-line);
}

.hp-lead h1 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.45;
    transition: color .2s;
}

.hp-lead-excerpt {
    margin: 0 0 10px;
    color: var(--hp-ink-2);
    font-size: 15.5px;
    line-height: 1.75;
}

.hp-lead-secondary {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--hp-line);
}

.hp-card {
    display: block;
}

.hp-card h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.6;
    transition: color .2s;
}

.hp-card p {
    margin: 8px 0 0;
    color: var(--hp-ink-2);
    font-size: 14px;
    line-height: 1.7;
}

.hp-card-large h3 {
    font-size: 21px;
    line-height: 1.5;
}

/* Lists */

.hp-list,
.hp-timeline,
.hp-ranked {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-list li {
    border-bottom: 1px solid var(--hp-line);
}

.hp-list li:last-child {
    border-bottom: 0;
}

.hp-list > li > a {
    display: block;
    padding: 11px 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    transition: color .2s;
}

.hp-list-thumbs > li > a {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
}

.hp-list-thumbs li:first-child > a {
    padding-top: 0;
}

.hp-list-thumbs .hp-kicker {
    margin: 0 0 2px;
    font-size: 11.5px;
}

.hp-list-thumbs h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    transition: color .2s;
}

.hp-timeline {
    position: relative;
    padding-left: 18px;
}

.hp-timeline::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--hp-line);
}

.hp-timeline li {
    position: relative;
    padding: 0 0 14px;
}

.hp-timeline li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 5px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--hp-red);
    border-radius: 50%;
    background: #fff;
}

.hp-timeline time {
    display: block;
    color: var(--hp-red);
    font-family: "Poppins", sans-serif;
    font-size: 11.5px;
    font-weight: 600;
}

.hp-timeline a {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    transition: color .2s;
}

/* E-paper */

.hp-epaper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: var(--hp-ink);
    color: #fff !important;
    border-left: 4px solid var(--hp-red);
    transition: background .2s;
}

.hp-epaper:hover {
    background: #262626;
}

.hp-epaper > i:first-child {
    font-size: 26px;
    color: var(--hp-red);
}

.hp-epaper div {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.hp-epaper strong {
    font-size: 16px;
}

.hp-epaper span {
    color: #bdbdbd;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

.hp-epaper-arrow {
    font-size: 13px;
    color: #8a8a8a;
}

/* Sections */

.hp-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--hp-line);
}

.hp-section:last-child {
    border-bottom: 0;
}

.hp-section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hp-ink);
}

.hp-section-head h2 {
    margin: 0;
    padding-left: 12px;
    border-left: 5px solid var(--hp-red);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.hp-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.hp-chips::-webkit-scrollbar {
    display: none;
}

.hp-chips a {
    flex-shrink: 0;
    padding: 4px 12px;
    border: 1px solid var(--hp-line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}

.hp-chips a:hover {
    border-color: var(--hp-red);
    background: var(--hp-red);
    color: #fff;
}

.hp-cat {
    height: 100%;
}

.hp-cat .hp-card h3 {
    margin-top: 10px;
    font-size: 16.5px;
}

.hp-cat .hp-list {
    margin-top: 6px;
}

/* Sidebar */

.hp-ad {
    display: block;
    margin-bottom: 26px;
    text-align: center;
}

.hp-ad small {
    display: block;
    margin-bottom: 4px;
    color: var(--hp-muted);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hp-ad img {
    max-width: 100%;
}

.hp-side {
    margin-bottom: 28px;
}

.hp-ranked {
    counter-reset: hp-rank;
}

.hp-ranked li {
    counter-increment: hp-rank;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid var(--hp-line);
}

.hp-ranked li:last-child {
    border-bottom: 0;
}

.hp-ranked li::before {
    content: counter(hp-rank);
    color: var(--hp-red);
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.hp-ranked a {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    transition: color .2s;
}

.hp-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hp-social a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #fff !important;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: opacity .2s;
}

.hp-social a:hover {
    opacity: .88;
}

.hp-social small {
    margin-left: auto;
    font-size: 11px;
    opacity: .85;
}

.hp-social-facebook { background: #1877f2; }
.hp-social-twitter { background: #111; }
.hp-social-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.hp-social-youtube { background: #ff0000; }

/* Videos */

.hp-videos {
    margin-top: 10px;
    padding: 34px 0 30px;
    background: #111;
    color: #fff;
}

.hp-block-head-dark {
    border-bottom-color: #3a3a3a;
}

.hp-block-head-dark h2 {
    color: #fff;
}

.hp-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.hp-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hp-video h3 {
    margin: 10px 0 0;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.55;
}

.hp-video h3 a {
    color: #fff;
}

.hp-video h3 a:hover {
    color: #ff6b6b;
}

.hp-block-head-dark a {
    color: #ff6b6b;
}

.hp-videos-page {
    margin-top: 0;
    min-height: 60vh;
}

/* Responsive */

@media (max-width: 991.98px) {
    .hp-lead-area {
        padding-top: 18px;
    }

    .hp-section-head h2 {
        font-size: 21px;
    }

    .hp-chips {
        flex-basis: 100%;
    }
}

@media (max-width: 575.98px) {
    .hp-ticker-label {
        padding: 0 10px;
        font-size: 12px;
    }

    .hp-list-thumbs > li > a {
        grid-template-columns: 88px 1fr;
    }

    .hp-social {
        grid-template-columns: 1fr;
    }
}
