/* Root Variables */
:root {
    /* Colors */
    --color-primary:  #00f; /* Dark blue */
    --color-secondary: #0a74da; /* Rich blue, complements dark blue */
    --color-tertiary: #5ec7d3; /* Neon cyan */
    --color-background: #fff; /* White */
    --color-alt-background: #f4f8fb; /* Soft, muted blue for differentiation */
    --color-text: #333; /* Text color */
    --color-grey-light: #ddd; /* Light grey */
    --color-grey-dark: #555; /* Darker grey */

}

/* Base CSS - Mobile First Approach */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: white;
}

/* Ensure the body and html fill the entire viewport */
html, body {
    height: 100%; /* Ensure full viewport height */
    margin: 0; /* Remove default margin */
    display: flex;
    flex-direction: column; /* Stack header, main, and footer */
}

main {
    flex: 1; /* Allow the main content to grow and fill available space */
    display: flex;
    flex-direction: column; /* Stack child elements in main vertically */
}



.container {
    background-color: white;
    max-width: 1200px; /* Limit the page width to 1200px */
    margin: 0 auto; /* Center the container */
    padding: 0 20px;
    display: flex;
    flex-direction: column; /* Stack child elements */
    gap: 20px;
}

.blog-list-filter {
    width: 100%; /* Ensure it spans the full container width */
    margin: 0 auto; /* Center within the container */
    padding: 20px 0; /* Add spacing above and below */
    box-sizing: border-box; /* Include padding in width calculations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary);
}


a {
    color: #007bff;
    text-decoration: none;
}

/* Header Container for Desktop */
.header .container {
    max-width: 1200px; /* Match the site container width */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align elements in desktop */
}
/* Header Default Style */
.header {
    position: relative;
    width: 100%;
    background-color: white;
    text-align: center;
    padding: 15px 0;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Header Title */
#site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #5ec7d3;
    margin: 0;
    text-shadow: 0 0 5px #00f, 0 0 10px #00f, 0 0 15px #5ec7d3, 0 0 20px #5ec7d3;
    transition: font-size 0.3s ease;
}

/* Navbar */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Navbar Links (Desktop) */
nav ul {
    list-style: none;
    display: flex; /* Ensure links are visible in desktop */
    margin: 0;
    padding: 0;
}

nav ul li {
    padding: 0 15px;
}

nav ul li a {
    color: var(--color-tertiary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
}

nav ul li a:hover {
    color: var(--color-secondary);
}

/* Burger Menu */
.burger-menu {
    display: none; /* Hidden by default */
    font-size: 2rem;
    color: var(--color-tertiary);
    cursor: pointer;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Dropdown Menu (Mobile) */
#nav-links {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0; /* Align to viewport start */
    width: 100%; /* Full width of viewport */
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow */
    text-align: center;
    padding: 10px 0;
}

#nav-links.active {
    display: flex; /* Show dropdown menu when active */
}

nav ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-primary); /* Separator for items */
}

nav ul li:last-child {
    border-bottom: none; /* Remove last item separator */
}

/* Sticky Header on Scroll */
.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow when fixed */
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
    .header {
        justify-content: space-between;
        padding: 10px 15px;
    }

    #site-title {
        font-size: 1.2rem; /* Smaller title for mobile */
    }

    nav ul {
        display: none; /* Hide links on mobile */
    }

    .burger-menu {
        display: block; /* Show burger menu on mobile */
    }

    #nav-links {
        left: 0;
        width: 100%; /* Full width of the viewport */
    }
}

/* Ensure dropdown disappears on resize back to desktop */
@media (min-width: 769px) {
    #nav-links {
        display: flex !important; /* Always visible in desktop */
        flex-direction: row;
        position: static; /* Reset position */
        width: auto; /* Reset width */
        box-shadow: none; /* Remove shadow */
        background-color: transparent; /* Transparent for desktop */
        padding: 0;
    }

    nav ul li {
        border-bottom: none; /* Remove separators */
        padding: 0 15px;
    }
}

main {
    background-image: url('neonbackground.webp'); /* Replace with the actual image path */
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    padding: 0;
    margin: 0;
}

/* Hero Section Layout */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px 0;
}

.featured-post {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative;
    text-align: center;
    padding: 10px;
}

.featured-post img {
    max-width: 100%;
    border-radius: 5px;
}

.post-description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(94, 199, 211, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    color: white;
}

.posts-left {
    background-color: var(--color-alt-background);
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding-right: 20px;
}

.posts-left h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.posts-left .post-title {
    color: var(--color-tertiary);
    font-size: 1.2rem;
    text-decoration: none;
}

.posts-left .post-title:hover {
    text-decoration: underline;
    color: var(--color-secondary);
}

.posts-left .post-date {
    color: grey;
    font-size: 0.9rem;
    margin: 5px 0;
}

.posts-left .post-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.about {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 15px;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex; /* Flexbox to handle alignment */
    justify-content: center; /* Horizontally center the image */
    align-items: center; /* Vertically center the image (if parent has height) */
}

.about-text {
    margin-top: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #333;
}

.about-text p {
    line-height: 1.6;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    color: #5ec7d3;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00f;
}

.subscribe-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 20px;
    border: 2px solid #00f;
    border-radius: 5px;
}

.subscribe-right h3 {
    margin-bottom: 15px;
}

.subscribe-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.subscribe-form button {
    background: linear-gradient(135deg, #5ec7d3, #00f);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, #00f, #5ec7d3);
}


/* Subscribe Form Styles */
.subscribe-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.subscribe-form button {
    background: linear-gradient(135deg, #5ec7d3, #00f);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, #00f, #5ec7d3); /* Reverse gradient on hover */
}


/* Blog List Filter Section */
.blog-list-filter {
    width: 100%; /* Full width of parent container */
    margin: 0; /* Remove auto-centering margin */
    padding: 20px 0; /* Add spacing above and below */
    box-sizing: border-box; /* Include padding in width calculations */
    background-color: var(--color-alt-background); /* Optional for differentiation */
}


.blog-list-left {
    margin: 0 auto; /* Center the content within the section */
    padding: 0 20px; /* Add internal padding */
}

.filter-right {
    flex: 0 1; /* Filter column takes 1/3 width */
    padding: 20px;
}

/* Blog Post List Styling */
h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.blog-post {
    margin-bottom: 20px;
    position: relative;
}

.post-header {
    padding-right: 40px;
}

/* Post Title Link */
.post-link {
    color:var(--color-tertiary);
    font-size: 1.5rem;
    text-decoration: none;
    max-width: calc(100% - 60px); /* Reserve space for the chevron */
    white-space: normal; /* Allow wrapping */
    overflow-wrap: break-word; /* Break long words if necessary */
}

.post-title:hover {
    text-decoration: underline;
}

/* Post Date */
.post-date {
    color: grey; /* Grey color for the post date */
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Normal Post Text */
.post-text {
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Toggle button for post details */
.toggle-details {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-details i {
    font-size: 1.2rem;
    color: var(--color-secondary);
    transition: color 0.3s ease; /* Smooth transition for hover */
}

.post-details {
    display: none;
    padding: 10px;
    border-radius: 5px;
    background-color: #c2e5f0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.blog-post.active .post-details {
    display: flex;
    max-height: 500px; /* Adjust as needed */
}


/* Filter dropdown (hidden by default) */
.month-list {
    display: none; /* Hidden by default */
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.post-image img {
    max-width: 100px;
    border-radius: 5px;
    margin-right: 10px;
}

.post-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* Filter Form Styling */
.filter-right h3 {
    margin-bottom: 15px;
}

.year-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.year-list > li {
    margin-bottom: 15px;
}

.year-toggle {
    background-color: #00f; /* Dark blue */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 25%;
    text-align: left;
    cursor: pointer;
}

.year-toggle i {
    margin-left: 10px;
}

.year-toggle:hover {
    background-color: #0056b3; /* Darker blue */
}

.month-list {
    display: none; /* Hidden by default */
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.year-list > li.active .month-list {
    display: block;
}

.month-list li {
    padding: 5px 0;
    cursor: pointer;
}

.month-list li:hover {
    color: #0056b3;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .blog-list-filter {
        flex-direction: column;
    }

    .blog-list-left, .filter-right {
        max-width: 100%;
        padding: 10px 0;
    }
}


article {
    padding: 20px;
    background: var(--color-background);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;          /* center + add top spacing */
    max-width: 70ch;            /* readable line length */
    line-height: 1.7;           /* slightly looser for long-form text */
}

article p {
    margin: 0 0 1.4rem;         /* space after each paragraph */
    color: var(--color-text);
}

article h2,
article h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

article ul,
article ol {
    margin: 0 0 1.4rem 1.5rem;  /* indent + space after list */
    padding-left: 1.2rem;
}

article li + li {
    margin-top: 0.25rem;        /* slight space between list items */
}


article img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

article .content {
    line-height: 1.6;
    color: var(--color-text);
}

article blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-alt-background);
    font-style: italic;
    color: var(--color-grey-dark);
}

article blockquote p {
    margin: 0;   /* blockquote already has padding; don’t add extra */
}



.placeholder {
    height: 100px; /* Add height for the missing section */
    background-color: var(--color-alt-background); /* Optional visual cue */
}


.site-footer {
    background-color: var(--color-background);
    color: var(--color-text);
    text-align: center;
    width: 100%; /* Full width of parent container */
    max-width: 1200px; /* Align with .container width */
    margin: 0 auto; /* Center footer within the parent */
    box-sizing: border-box; /* Include padding in width calculations */
    padding: 20px; /* Add padding */
}


/* Container inside the footer */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto; /* Center the container within the footer */
    padding: 20px; /* Add internal padding */
}

.footer-right .social-links a {
    color: #5ec7d3;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-right .social-links a:hover {
    color: #00f; /* Dark blue on hover */
}

.footer-bottom {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid var(--color-primary);
    display: flex;
    flex-direction: row; /* Arrange items in a single row */
    align-items: center; /* Vertically align items */
    justify-content: space-around; /* Add space between address and rights text */
    gap: 10px; /* Optional: Add spacing between items */
}

.footer-address {
    display: flex;
    flex-direction: row; /* Ensure logo and text align horizontally */
    align-items: center; /* Vertically align content */
    gap: 5px; /* Add spacing between logo and text */
}

.footer-address p {
    margin: 0; /* Remove extra margin for alignment */
}

.footer-bottom p {
    margin: 0; /* Ensure consistent alignment */
}

.logo-container {
    display: flex;
    flex-direction: row; /* Ensure logo and text are aligned horizontally */
    align-items: center; /* Center the logo and text vertically */
    gap: 5px; /* Add spacing between the static logo and text */
}

.logo-static {
    position: relative;
    width: 12px;
    height: 50px;
    max-width: 20px;
    max-height: 80px;
    background: linear-gradient(180deg, #0aff00, #04ff87); /* Neon green to neon cyan gradient */
    border-radius: 5px;
    box-shadow: 0 0 5px #0aff00, 0 0 10px #04ff87; /* Neon glow effect */
}

.logo-static::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 30px;
    height: 8px;
    background: linear-gradient(90deg, #0aff00, #04ff87); /* Neon green to neon cyan gradient */
    border-radius: 5px;
    box-shadow: 0 0 5px #0aff00, 0 0 10px #04ff87; /* Neon glow effect */
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-static {
        width: 12px;
        height: 50px;
    }

    .logo-static::before {
        top: 0;
        left: -10px;
        width: 30px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .logo-static {
        width: 10px;
        height: 40px;
    }

    .logo-static::before {
        top: 0;
        left: -8px;
        width: 25px;
        height: 6px;
    }
}

/* Style for the logo-text-static */
.logo-text-static {
    display: flex;
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: #FF6EC7; /* White text */
    text-shadow: 0 0 5px rgb(0, 212, 255); /* Neon cyan glow */
    text-transform: uppercase;
    margin-left: 5px;
    max-width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-text-static {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .logo-text-static {
        font-size: 24px;
    }
}

/* Styling individual spans in the logo text */
.logo-text-static span {
    display: inline-block;
    color: #FF6EC7;
    text-shadow: 0 0 5px rgb(0, 212, 255), 
                 0 0 10px rgb(0, 212, 255 / 0.9),
                 0 0 20px rgb(0, 212, 255 / 0.8), 
                 0 0 40px rgb(255, 0, 255 / 0.8),
                 0 0 60px rgb(255, 0, 255 / 0.7); /* Pink glow */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left, .footer-right {
        padding: 10px 0;
        text-align: center;
    }

    .footer-right .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

/* Consolidated Media Queries for larger screens */
@media (min-width: 768px) {
    /* Larger screen adjustments */
    header h1 {
        font-size: 2rem;
    }

    .container {
        max-width: 750px;
    }

    /* Hide burger menu on desktop */
    .burger-menu {
        display: none; /* Ensure burger is hidden on desktop */
    }

    /* Restore original link layout for desktop */
    nav ul {
        display: flex; /* Display links inline on desktop */
        justify-content: center;
        flex-direction: row;
    }

    nav ul li {
        padding: 0 15px; /* Restore original spacing */
        border: none; /* Remove borders on desktop */
    }
}

@media (min-width: 1024px) {
    header h1 {
        font-size: 2.5rem;
    }

    .container {
        max-width: 1200px;
    }
}

/* Responsive Layout */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .featured-post {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .posts-left {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .about {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .subscribe-right {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    .profile-image {
        display: flex;
        justify-content: center; /* Center the image container horizontally */
    }

    .blog-post {
        flex-direction: row; /* Maintain row layout for small screens */
    }

    .post-link {
        max-width: calc(100% - 50px); /* Adjust space for chevron */
    }

    .toggle-details {
        width: 30px; /* Ensure consistent button size */
        height: 30px;
    }
}
.breadcrumbs {
    font-size: 0.9rem; /* Small font for subtlety */
    color: var(--color-grey-dark); /* Neutral text color */
    margin: 10px 20px; /* Space around the breadcrumb */
    display: flex; /* Flexbox for better alignment */
    flex-wrap: wrap; /* Handle wrapping on smaller screens */
    gap: 5px; /* Spacing between links and separators */
    justify-content: flex-start; /* Align breadcrumbs to the left */
    text-align: left; /* Ensure text alignment is left */
}

.breadcrumbs a {
    color: var(--color-tertiary); /* Link color */
    text-decoration: none; /* No underline for a clean look */
    transition: color 0.3s ease; /* Smooth hover effect */
}

.breadcrumbs a:hover {
    color: var(--color-secondary); /* Hover color for links */
}

.breadcrumbs span {
    color: var(--color-grey-dark); /* Color for separators */
}

/* Responsive styles */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem; /* Slightly smaller font on mobile */
        margin: 5px 10px; /* Reduce margin for smaller screens */
    }
}

.toc {
    background-color: var(--color-alt-background);
    border: 1px solid var(--color-grey-light);
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0; /* Space around the ToC */
    font-size: 0.9rem;
}

.toc h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    margin-bottom: 5px;
}

.toc ul li a {
    color: var(--color-secondary);
    text-decoration: none;
}

.toc ul li a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}


@media (max-width: 768px) {
    .toc {
        font-size: 0.8rem;
        margin: 10px 0;
    }

    .toc h2 {
        font-size: 1rem;
    }
}

/* Epigraph and Epitaph Styling */
.epigraph,
.epitaph {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-grey-dark);
    border-left: 4px solid var(--color-primary);
    padding: 20px 25px;
    margin: 30px 0;
    background-color: var(--color-alt-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
}

.epigraph::before,
.epitaph::before {
    content: '“'; /* Opening quotation mark */
    font-size: 2.5rem;
    color: var(--color-primary);
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 0;
}

.epigraph::after,
.epitaph::after {
    content: '”'; /* Closing quotation mark */
    font-size: 2.5rem;
    color: var(--color-primary);
    position: absolute;
    bottom: -10px;
    right: 15px;
    line-height: 0;
}

.epigraph blockquote,
.epitaph blockquote {
    margin: 0;
    padding-left: 25px; /* Ensure padding compensates for the quotation mark */
}

.epigraph .author,
.epitaph .author {
    font-size: 1rem;
    font-weight: bold;
    text-align: right;
    margin-top: 15px;
    color: var(--color-secondary);
}

.epigraph footer,
.epitaph footer {
    text-align: right;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--color-grey-light);
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .epigraph,
    .epitaph {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .epigraph::before,
    .epitaph::before,
    .epigraph::after,
    .epitaph::after {
        font-size: 2rem;
    }

    .epigraph .author,
    .epitaph .author {
        font-size: 0.9rem;
    }

    .epigraph footer,
    .epitaph footer {
        font-size: 0.8rem;
    }
}

.post-heading {
  scroll-margin-top: 90px; /* adjust to your fixed header height */
  margin-top: 2.2rem;      /* normal spacing between sections */
  padding-top: 0;          /* remove the big gap */
  font-size: 1.5rem;       /* keep if you want */
}

@media (max-width: 480px) {
    article img {
        max-width: 90%;
        margin: 0 auto 20px auto;
    }
}
