body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: #222;
}

/* Hero section */
.hero-section {
    min-height: 78vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

/* Card images */
.card img {
    height: 220px;
    object-fit: cover;
}

/* Page hero (section headers) */
.page-hero {
    background: linear-gradient(135deg, #111827, #1f2937);
}

/* Article content readability */
.article-content {
    max-width: 860px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ── News / Articles ─────────────────────────────────────────────────── */

/* Featured card lift on hover */
.news-featured-card {
    transition: box-shadow .25s ease;
    border-radius: .75rem !important;
    overflow: hidden;
}
.news-featured-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.14) !important;
}

/* Article grid card */
.news-card {
    border-radius: .75rem !important;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0,0,0,.12) !important;
}

/* Card image wrapper — fixed-height with overlay badge */
.news-card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.04);
}
.news-card-badge {
    position: absolute;
    bottom: .65rem;
    left: .75rem;
    font-size: .7rem;
    letter-spacing: .04em;
}

/* Card title – clamp to 3 lines */
.news-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

/* "Read more" link arrow animation */
.news-read-link .bi-arrow-right {
    transition: transform .2s ease;
    display: inline-block;
}
.news-read-link:hover .bi-arrow-right {
    transform: translateX(4px);
}

/* Category filter bar — hide scrollbar on WebKit */
.sticky-top::-webkit-scrollbar { display: none; }

/* Pagination active pill */
.pagination .page-link {
    font-size: .875rem;
    min-width: 2.1rem;
    text-align: center;
}
.pagination .active .page-link {
    background: #111827 !important;
    border-color: #111827 !important;
}

/* ── PIXAM Stories ───────────────────────────────────────────────────── */

/* Deep indigo hero */
.pixam-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e1b4b 100%);
}

/* Featured story card */
.pixam-featured-card {
    border-radius: .75rem !important;
    overflow: hidden;
    transition: box-shadow .25s ease;
}
.pixam-featured-card:hover {
    box-shadow: 0 12px 40px rgba(99,102,241,.18) !important;
}

/* Active filter pill (indigo) */
.pixam-filter-active {
    background: #4f46e5 !important;
    color: #fff !important;
    border-color: #4f46e5 !important;
}
.pixam-filter-active:hover {
    background: #4338ca !important;
    border-color: #4338ca !important;
}

/* "Read story" link — indigo tint */
.pixam-read-link {
    color: #4f46e5 !important;
}
.pixam-read-link:hover {
    color: #4338ca !important;
}

/* Pagination active — indigo */
.pixam-page-active {
    background: #4f46e5 !important;
}

/* Projects strip links */
.pixam-proj-link {
    color: #a5b4fc;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s;
}
.pixam-proj-link:hover {
    color: #fff;
}

/* ── Hover-open navigation dropdowns ────────────────────────────────────
   Desktop (>=992px): clicking the nav link navigates; hovering shows the
   dropdown. Mobile (<992px): a separate caret button toggles the menu.
──────────────────────────────────────────────────────────────────────── */

/* Desktop: show dropdown on hover */
@media (min-width: 992px) {
    .nav-hover-drop:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Caret indicator on the nav link text */
    .nav-hover-drop > .nav-link::after {
        display: inline-block;
        margin-left: .3em;
        vertical-align: .15em;
        content: "";
        border-top: .3em solid;
        border-right: .3em solid transparent;
        border-bottom: 0;
        border-left: .3em solid transparent;
        opacity: .65;
    }
}

/* Mobile caret toggle button (visible only in collapsed navbar) */
.nav-drop-toggle {
    background: none;
    border: none;
    padding: .2rem .6rem;
    color: rgba(255, 255, 255, .65);
    cursor: pointer;
    line-height: 1;
    font-size: .9rem;
}
.nav-drop-toggle:hover,
.nav-drop-toggle:focus {
    color: #fff;
    outline: none;
}

/* Mobile: link text and caret on the same row */
@media (max-width: 991.98px) {
    .nav-hover-drop {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
    }
    .nav-hover-drop > .nav-link {
        flex: 1;
    }
    .nav-hover-drop > .dropdown-menu {
        flex-basis: 100%;
    }
}
