/* ======== SITE STYLES ======== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #1E1B4B;
    background-color: #F3E8FF;
    min-height: 100dvh;
}

/* wrapper for sticky footer */
#siteWrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

#mainArea {
    flex-grow: 1;
}

/* ======== HEADER ======== */
#header {
    background-color: #7C3AED;
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 3px solid #5B21B6;
}

#header .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

#header .logo-text:hover {
    color: #E9D5FF;
}

#headerNav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#headerNav a {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

#headerNav a:hover {
    border-bottom: 2px solid #34D399;
    color: #F3E8FF;
}

/* ======== LAYOUT ======== */
#layoutRow {
    display: flex;
    flex-direction: row;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}

#leftSidebar {
    width: 22%;
    min-width: 240px;
    order: 1;
}

#mainContent {
    width: 74%;
    flex-grow: 1;
    order: 2;
}

/* ======== SIDEBAR WIDGETS ======== */
.widgetBox {
    background: #FFFFFF;
    border: 1px solid #DDD6FE;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.08);
}

.widgetTitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #5B21B6;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E9D5FF;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list li a {
    color: #7C3AED;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 4px 0;
}

.sidebar-list li a:hover {
    color: #581C87;
    text-decoration: underline;
}

/* tag widget placeholder styling */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

a.tagLink {
    display: inline-block;
    background-color: #F3E8FF;
    color: #6B21A8;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #DDD6FE;
    font-weight: 500;
}

a.tagLink:hover {
    background-color: #7C3AED;
    color: #fff;
    border-color: #7C3AED;
}

/* ======== HERO SECTION ======== */
.heroBanner {
    background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 50%, #A78BFA 100%);
    color: #fff;
    padding: 64px 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(91, 33, 182, 0.25);
}

.heroBanner h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.heroBanner p {
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.heroBanner p a {
    color: #10B981; 
    text-decoration: none;
    font-weight: 800;
}

.heroBanner p a:hover {
    text-decoration: underline;
}

.heroBtn {
    display: inline-block;
    background-color: #10B981;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.heroBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    background-color: #059669;
}

/* ======== ARTICLE CARDS ======== */
.cardGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.articleCard {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 280px;
    background-color: #1E1B4B;
    box-shadow: 0 4px 12px rgba(30, 27, 75, 0.15);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.articleCard:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(30, 27, 75, 0.25);
}

.articleCard .cardBg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.cardBgImg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.articleCard .cardOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 27, 75, 0.95) 0%, rgba(30, 27, 75, 0.4) 50%, rgba(30, 27, 75, 0.1) 100%);
    z-index: 2;
}

.articleCard .cardText {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 3;
    color: #fff;
}

.articleCard .cardTitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #fff;
}

.articleCard .cardExcerpt {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 8px;
    color: #E9D5FF;
}

.articleCard .cardDate {
    font-size: 12px;
    opacity: 0.7;
    color: #DDD6FE;
}

/* ======== CATEGORY PAGE ======== */
.pageTitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #1E1B4B;
    margin-bottom: 24px;
}

/* ======== BREADCRUMBS ======== */
.breadcrumbWrap {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbWrap ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.breadcrumbWrap li {
    display: inline;
}

.breadcrumbWrap a {
    color: #7C3AED;
    text-decoration: none;
}

.breadcrumbWrap a:hover {
    text-decoration: underline;
    color: #581C87;
}

.breadcrumbWrap span {
    color: #6B7280;
}

/* ======== ARTICLE PAGE ======== */
.articleHeader {
    margin-bottom: 24px;
}

.articleHeader h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #1E1B4B;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.pubDate {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 16px;
    display: block;
}

.featuredImage {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 24px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ======== ARTICLE BODY ======== */
.article-body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1E1B4B;
}

.article-body h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #5B21B6;
    margin-top: 36px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #6B21A8;
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-body h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #1E1B4B;
    margin-top: 22px;
    margin-bottom: 10px;
}

.article-body p {
    margin-bottom: 16px;
}

.article-body ul, .article-body ol {
    margin-bottom: 16px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: #7C3AED;
    text-decoration: underline;
}

.article-body a:hover {
    color: #581C87;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-body th {
    background-color: #7C3AED;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid #DDD6FE;
    background-color: #fff;
}

.article-body tr:nth-child(even) td {
    background-color: #FAF5FF;
}

.article-body tr:hover td {
    background-color: #F3E8FF;
}

/* Blockquotes */
.article-body blockquote {
    background-color: #FAF5FF;
    border-left: 4px solid #7C3AED;
    padding: 18px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #4C1D95;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Infobox */
.article-body .infobox {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #10B981;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0;
    color: #064E3B;
}

.article-body .infobox strong {
    color: #047857;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Stat block */
.article-body .stat-block {
    background: linear-gradient(135deg, #F3E8FF 0%, #EDE9FE 100%);
    border: 1px solid #A78BFA;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.article-body .stat-block .stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #5B21B6;
    display: block;
    margin-bottom: 6px;
}

.article-body .stat-block .stat-label {
    font-size: 14px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Images in article */
.article-body img, .featuredImage, figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
    border-radius: 8px;
}

.article-body figure {
    margin: 24px 0;
}

.article-body figcaption {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    margin-top: 8px;
}

/* Drop caps on first paragraph - used on some articles */
.article-body.dropcaps > p:first-child::first-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 56px;
    float: left;
    line-height: 0.8;
    margin-right: 8px;
    color: #7C3AED;
}

/* ======== TAGS AT BOTTOM ======== */
.articleTags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #DDD6FE;
}

.articleTags-label {
    font-weight: 700;
    color: #5B21B6;
    margin-right: 8px;
    font-family: 'Space Grotesk', sans-serif;
}

/* ======== FOOTER ======== */
#footer {
    background-color: #312E81;
    color: #C4B5FD;
    padding: 48px 24px 24px 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #C4B5FD;
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #4338CA;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #A5B4FC;
}

/* ======== MOBILE ======== */
@media (max-width: 768px) {
    #layoutRow {
        flex-direction: column;
        padding: 16px;
    }
    #leftSidebar {
        width: 100%;
        order: 2;
    }
    #mainContent {
        width: 100%;
        order: 1;
    }
    .cardGrid {
        grid-template-columns: 1fr;
    }
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }
    .heroBanner h1 {
        font-size: 26px;
    }
    #header {
        flex-direction: column;
        align-items: flex-start;
    }
    #headerNav {
        gap: 12px;
    }
    #mobileMenuBtn {
        display: inline-block !important;
    }
    #headerNav {
        display: none;
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .cardGrid {
        grid-template-columns: 1fr;
    }
}

/* ======== NOOB REDUNDANCIES ======== */
.content-box {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #DDD6FE;
}

#main-content {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid #DDD6FE;
}

.someClass {
    color: #1E1B4B;
}

.another_class {
    font-family: 'Inter', sans-serif;
}

.randomClass123 {
    margin: 0;
    padding: 0;
}

/* duplicate rules for noob effect */
#header {
    background: #7C3AED;
}

#headerNav a {
    color: white;
}

/* hardcoded inline-like colors */
.specialText {
    color: #6B21A8;
}

.bigHeading {
    font-size: 32px;
    color: #5B21B6;
}

/* more redundancy */
.widgetBox {
    background-color: #FFFFFF;
    border-color: #DDD6FE;
}

.articleCard {
    border-radius: 10px;
}
