:root {
    --bg: #eef3f3;
    --card: #ffffff;
    --muted: #6d7a7a;
    --accent1: #8fd3c7;
    --accent2: #9ad1ff;
    --radius: 20px;
    --container-w: 1100px;
    /* ticker vars */
    --green: #138808;
    --white: #ffffff;
    --gray: #333333;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f3f7f7 0%, #eef6f5 100%);
    color: #123;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

/* page wrapper */
.wrap {
    max-width: calc(var(--container-w) + 64px);
    margin: 20px auto;
    padding: 18px;
}

.panel {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(16, 24, 24, 0.06);
    padding: 18px;
    border: 1px solid rgba(20, 30, 30, 0.04);
    overflow: hidden;
}

/* header */
header.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: #0b2a2a;
    font-size: 20px;
    letter-spacing: 0.3px;
}

nav.topnav {
    display: flex;
    gap: 18px;
    align-items: center;
    flex: 1;
    justify-content: center;
    font-weight:600;
}

nav.topnav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight:600;
}

nav.topnav a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.03)
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center
}

.icon-btn {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* mobile nav toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff
}

.nav-collapsed {
    display: none;
    margin-top: 10px;
    gap: 10px;
}

/* marquee / ticker */
.news-ticker {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    height: 52px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    /* margin: 14px 0; */
    border-radius: 8px;
    margin-top: 25px;
}

.news-label {
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 14px;
}

.news-label::after {
    content: "🔴";
    margin-left: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1
    }

    25%,
    75% {
        opacity: 0
    }
}

.news-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding-left: 12px
}

.scroll-track {
    display: inline-block;
    /* we will duplicate content for truly infinite feel (JS duplicates) */
    animation: scroll-left 28s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* note: anim distance uses duplicated content width (handled in JS) */

.scroll-item {
    display: inline-block;
    margin-right: 60px;
    color: var(--gray);
    font-size: 15px;
    white-space: nowrap
}

.scroll-item strong {
    color: #000;
    margin-right: 6px
}

/* layout grid */
.layout {
    display: grid;
    /* grid-template-columns: 1fr 340px; */
    /* gap: 22px; */
    align-items: start;
}

/* hero */
.hero {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    border-radius: 12px;
    display: flex;
    gap: 20px;
    padding: 20px;
    color: #072b2b;
    min-height: 200px;
    align-items: center;
}

.hero-left {
    flex: 1;
    min-width: 240px
}

.hero-left h1 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    line-height: 1.04;
}

.hero-left p {
    margin: 10px 0 0;
    color: rgba(6, 20, 20, 0.75);
    max-width: 560px
}

.hero-cta {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.hero-right {
    /* width: 340px; */
    display: flex;
    justify-content: flex-end
}

.hero-right img {
    /* width: 320px;
            height: auto; */
    width: 780px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(6, 24, 24, 0.12);
    border: 6px solid rgba(255, 255, 255, 0.35);
    object-fit: cover
}

/* main articles */
.main {
    margin-top: 14px;
}

.featured {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.featured .thumb {
    flex: 0 0 260px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden
}

.featured .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.featured .meta {
    flex: 1
}

.featured h2 {
    margin: 0 0 6px;
    font-family: "Playfair Display", serif;
    font-size: 24px
}

.featured p {
    margin: 4px 0;
    color: var(--muted)
}

.list {
    display: grid;
    gap: 12px;
    margin-top: 10px
}

.list .item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background: #fafafa;
    transition: transform .18s ease, box-shadow .18s ease;
}

.list .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(16, 24, 24, 0.06)
}

.i-thumb {
    width: 84px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0
}

.i-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

/* mini cards */
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px
}

.mini-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04)
}

.mini-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px
}

.mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: all .22s ease
}

/* sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.widget {
    background: var(--card);
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04)
}

.small-stat {
    background: linear-gradient(180deg, rgba(154, 209, 255, 0.95), rgba(143, 211, 199, 0.95));
    color: #042a2a
}

.subscribe input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    width: 100%;
    box-sizing: border-box
}

/* responsive */
@media (max-width:1100px) {
    .hero-right img {
        max-width: 260px
    }

    .layout {
        grid-template-columns: 1fr 300px
    }
}

@media (max-width:900px) {
    .layout {
        grid-template-columns: 1fr
    }

    .hero {
        flex-direction: column;
        text-align: center
    }

    .hero-right {
        justify-content: center;
        width: 100%
    }

    .hero-right img {
        max-width: 60%
    }

    .news-ticker {
        height: 50px
    }
}

@media (max-width:600px) {
    .brand {
        font-size: 18px
    }

    nav.topnav {
        display: none
    }

    /* hidden desktop nav on small screens */
    .nav-toggle {
        display: inline-flex
    }

    .nav-collapsed {
        display: flex;
        flex-direction: column
    }

    .hero-left h1 {
        font-size: 26px
    }

    .scroll-item {
        font-size: 13px;
        margin-right: 36px
    }

    .mini-card img {
        height: 70px
    }

    .cards-row {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:420px) {
    .cards-row {
        grid-template-columns: 1fr
    }

    .hero-right img {
        max-width: 80%
    }

    .scroll-item {
        margin-right: 28px
    }
}

/* small utility */
a.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #072b2b;
    background: rgba(0, 0, 0, 0.06)
}



/* Basic Styling for Item */
.item {
    background: #fff;
    /* border: 1px solid #ddd; */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* height: 100%; */
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.i-thumb img {
    width: 100%;
    /* height: 220px; */
    object-fit: cover;
}

.i-body {
    padding: 15px;
}

.i-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #222;
}

.i-body p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

section.list {
    /*padding: 40px 0;*/
    background: #f8f9fa;
}

.card-header {
    text-align: center;
    font-size: 20px;
    color: black;
    font-weight: 700;
}