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

body {
    font-family: "PT Sans", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.8em;
    color: #555555;
    background-color: #f5f5f5;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #d0d0d0;
}

body.dark-mode .blog-post {
    background-color: #242424;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #e0e0e0;
}

body.dark-mode .post-header {
    border-bottom-color: #ffcd38;
}

body.dark-mode .post-meta {
    color: #999999;
}

body.dark-mode .back-link {
    color: #33b5e5;
}

body.dark-mode .back-link:hover {
    color: #0099cc;
}

body.dark-mode a {
    color: #33b5e5;
}

body.dark-mode a:hover {
    color: #0099cc;
}

body.dark-mode .author-box {
    background-color: #1f1f1f;
}

body.dark-mode .nav-link {
    background-color: #2a2a2a;
}

body.dark-mode .nav-link:hover {
    background-color: #333333;
}

body.dark-mode blockquote {
    background-color: #2a2a2a;
    color: #b0b0b0;
    border-left-color: #ffcd38;
}

body.dark-mode .highlight-box {
    background-color: #2a2a1a;
    border-left-color: #ffcd38;
}

body.dark-mode .post-content code {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .post-content pre {
    background-color: #2a2a2a;
}

body.dark-mode #toc {
    background-color: #2a2a2a;
    border-color: #ffcd38;
}

body.dark-mode #toc a {
    color: #b0b0b0;
}

body.dark-mode #toc a:hover {
    color: #33b5e5;
}

body.dark-mode .tag:hover {
    background-color: #1a1a1a;
    color: #e0e0e0;
    box-shadow: inset 0 0 0 2px #ffcd38;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", Helvetica, sans-serif;
    color: #222222;
    font-weight: 400;
}

h1 { font-size: 36px; margin-bottom: 20px; }
h2 { font-size: 28px; margin: 50px 0 15px; }
h3 { font-size: 22px; margin: 35px 0 12px; }

a {
    color: #0099cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #006699;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-post {
    background-color: rgba(255, 255, 255, 1);
    padding: 60px 50px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: background-color 0.3s;
}

.post-header {
    border-bottom: 3px solid #ffcd38;
    padding-bottom: 25px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-title {
    color: #222222;
    margin-bottom: 15px;
}

.post-meta {
    color: #9c9c9c;
    font-size: 14px;
    font-family: "Oswald", Helvetica, sans-serif;
}

.post-meta span {
    margin-right: 25px;
}

.post-meta span::before {
    content: "•";
    margin-right: 8px;
    color: #ffcd38;
}

.post-meta span:first-child::before {
    content: "";
    margin-right: 0;
}

.featured-image {
    width: 66%;
    height: auto;
    margin: 30px 17% 0px;
    border-radius: 4px;
}

.post-content {
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.post-content ul, .post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.block-title {
    position: relative;
    margin: 40px 0 25px;
}

.block-title h3 {
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
}

.block-title h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ffcd38;
}

.highlight-box {
    background-color: #fff9e6;
    border-left: 4px solid #ffcd38;
    padding: 20px;
    margin: 25px 0;
}

blockquote {
    border-left: 4px solid #ffcd38;
    padding: 15px 20px;
    margin: 25px 0;
    background-color: #fafafa;
    font-style: italic;
    color: #555;
}

.tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    display: inline-block;
    background-color: #ffcd38;
    color: #222222;
    padding: 6px 16px;
    margin: 5px 5px 5px 0;
    border-radius: 3px;
    font-size: 13px;
    font-family: "Oswald", Helvetica, sans-serif;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.tag:hover {
    background-color: #ffffff;
    color: #222222;
    box-shadow: inset 0 0 0 2px #ffcd38;
}

.tag a {
   
    color: #555555;
}

.author-box {
    background-color: #f5f5f5;
    padding: 30px;
    margin-top: 40px;
    border-radius: 4px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s;
}

.author-box h4 {
    margin-bottom: 10px;
    color: #222;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0099cc;
    font-family: "Oswald", Helvetica, sans-serif;
}

.back-link:hover {
    color: #006699;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e5e5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-link:hover {
    background-color: #fff9e6;
    transform: translateY(-2px);
}

.nav-link.next-link {
    text-align: right;
}

.nav-label {
    font-family: "Oswald", Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #0099cc;
    margin-bottom: 8px;
}

.nav-title {
    font-family: "Oswald", Helvetica, sans-serif;
    font-size: 16px;
    color: #222222;
}

/* Accessibility Controls */
.accessibility-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    font-family: "Oswald", Helvetica, sans-serif;
    font-size: 16px;
    color: #222222;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: #ffcd38;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.control-btn:active {
    transform: translateY(0);
}

body.dark-mode .control-btn {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .control-btn:hover {
    background-color: #ffcd38;
    color: #222222;
}

/* Table of Contents */
#toc {
    background-color: #f5f5f5;
    border-left: 4px solid #ffcd38;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#toc h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #222222;
}

#toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#toc li {
    margin-bottom: 8px;
}

#toc a {
    color: #555555;
    display: block;
    padding: 5px 0;
    transition: color 0.3s, padding-left 0.3s;
}

#toc a:hover {
    color: #0099cc;
    padding-left: 10px;
}

#toc .toc-h3 {
    padding-left: 20px;
    font-size: 14px;
}

/* Share Button */
.share-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #0077b5;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: "Oswald", Helvetica, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.share-btn:hover {
    background-color: #006399;
    transform: translateY(-2px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media print {
    body {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .blog-post {
        padding: 25px 15px;
    }

    h1 { font-size: 28px; }
    h2 { font-size: 24px; margin-top: 35px; }
    h3 { font-size: 20px; margin-top: 25px; }

    .post-content {
        font-size: 16px;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-link.next-link {
        text-align: left;
    }

    .accessibility-controls {
        top: 10px;
        right: 10px;
        gap: 8px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}