/* --- STYLES (Largely unchanged, but now support more elements) --- */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');

/* Navbar Customization */
.header-logo .blog-accent {
    color: var(--color-primary);
    font-style: italic;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* Hero Image Section */
.article-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 30em;
    /* background-image: url('https://github.com/MaxDevv/FlashySurf/raw/main/Images/new-marquee.png?raw=true'); */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: rgb(0, 0, 0);
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 75rem;
    text-align: left;
    width: fit-content  ;

    background-color: white;
    box-shadow: 0px 0px 20px 1px rgb(85, 85, 85),
                inset 0 15px 30px -8px rgba(0,0,0,0.4);            border-radius: 1em;
    padding: 2em;
    padding-left: 3em;
    padding-right: 3em;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    width: fit-content;
    
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); */
}

.hero-content .article-meta {
    font-family: "EB Garamond", serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
.article-meta {
    padding-top: 1em;
}
.article-meta::before {
    content: "Published: ";
    opacity: 65%;
}
/* Article Body Styles */
.article-main {
    background-color: #ffffff;
}

.article-container {
    max-width: 58rem;
    margin: 0 auto;
    padding: 4rem 1rem 5rem 1rem;
    margin-top: -3em;

    background-color: white;
    z-index: 10;
    position: relative;
    box-shadow: 0 0rem 4rem rgba(0, 0, 0, 0.025);
    /* box-shadow: 0px 0px 20px 1px rgb(85, 85, 85); */
    /* border-radius: 1em;   */
    padding: 3em;
}

.article-container:before {
    position: absolute;
    width: 100%;
    height: 30vh;
    top: 0;
    left: 0;
    box-shadow: 0 -6.5rem 4rem rgba(0, 0, 0, 0.1);
    content: '';
    z-index: -1;
}

.article-body {
    font-family:  "EB Garamond", serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

/* Styles for Markdown elements generated by marked.js */
.article-body p, .article-body ul, .article-body ol {
    margin-bottom: 1.75rem;
    max-width: 55em;
    font-size: 1.3rem;
}

.article-body ol, .article-body ul {
    padding-left: 2em;
}

.article-body > p:first-of-type::first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding: 0.25rem 0.5rem 0 0;
    font-weight: 700;
    color: var(--color-primary);
}

.article-body h2, .article-body h3, .article-body h4 {
    font-family:  "EB Garamond", serif;
    color: var(--color-text-dark);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-body strong {
    font-weight: 700;
    color: #222;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
    transition: all 0.2s ease;
}

.article-body a:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-bottom-color: var(--color-primary);
}

.references-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-family: "EB Garamond", serif;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.references-section a {
        color: var(--color-text-light);
        text-decoration: underline;
}

.references-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-family: "EB Garamond", serif;
    font-size: 0.95rem;
}

.references-section h2 {
        font-family:  "EB Garamond", serif;
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.references-section ol {
    list-style: none;
    padding-left: 0;
}

.references-section li {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
    padding-left: 2rem;
    position: relative;
}

.references-section li::before {
    content: counter(list-item) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--color-text-dark);
}

.references-section p {

    font-size: 0.9rem;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .article-container {
            padding: 3rem 1.5rem;
    }
    .article-body {
        font-size: 1.05rem;
    }
}

body {
  font-family: 'Inter', sans-serif !important;
  line-height: 1.7 !important;
}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
}