@import url("assets.a3cbec0069e7.css");

*,
::after,
::before {
    box-sizing: border-box;
}

.funky_divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--divider), var(--divider), var(--divider), var(--divider), transparent);
}

.toolbar {
    position: fixed;
    top: 0;
    z-index: 9990;
    background-color: var(--colorPrimary);
    width: 100%;
    padding: 0 50px;
    min-height: 70px;
    border-bottom: 3px solid var(--colorAccent);
}

.toolbar_menu_icon {
    color: white !important;
    font-size: large;
    padding: 0 0 0 20px;
    cursor: pointer;
}

.row_alignment {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.category_tag {
    position: absolute;
    top: 20px;
    left: 0;
    color: whitesmoke;
    font-size: medium;
    /*font-weight: bold;*/
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    z-index: 999;
    background-color: var(--colorAccent);
}

.column_alignment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app_title {
    font-family: 'Comfortaa', cursive;
    color: white;
    font-size: xx-large;
    font-weight: bold;
}

.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.menu a {
    text-decoration: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: large;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    padding: 10px 16px;
}

.menu a:hover {
    text-decoration: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: large;
    color: white;
    background-color: #212121;
}

.toolbar-search {
    margin-left: 16px;
}

.toolbar .toolbar-search input[type="text"] {
    padding: 0 12px !important;
    height: 36px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-size: 13px !important;
    outline: none !important;
    width: 180px !important;
    line-height: 30px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.toolbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.toolbar-search input:focus {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.toolbar-search input:-webkit-autofill,
.toolbar-search input:-webkit-autofill:hover,
.toolbar-search input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(50, 50, 50, 1) inset !important;
    box-shadow: 0 0 0px 1000px rgba(50, 50, 50, 1) inset !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}


.main_content {
    width: 100%;
    max-width: 1200px;
}

.article_footer {
    display: flex;
    flex-direction: row;
    margin-bottom: 16px;
}

.align_right {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.popular_posts {
    padding: 20px;
    display: flex;
    margin-left: 20px !important;
    flex: 0 0 30%;
    flex-direction: column;
}

.articles {
    padding: 10px;
    display: flex;
    flex: 0 1 700px;
    flex-direction: column;
}

article {
    width: 100%;
}

.popular_posts_img {
    display: block;
    position: relative;
    z-index: 1;
    width: auto;
    max-height: 120px !important;
    object-fit: cover;
}

.fb-comments,
.fb-comments span,
.fb-comments.fb_iframe_widget span iframe {
    width: 100% !important;
}

.home_social {
    float: left;
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: inline-flex;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 999;
}

.home_social li {
    list-style: none;
}

.home_social li a {
    display: inline-block;
    float: left;
    text-align: center;
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
    padding-top: 2px;
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    color: var(--colorPrimary);
}

.home_social li a:hover {
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    background-color: var(--colorAccent);
    color: whitesmoke;
    cursor: pointer;
}

.main_content_body {
    margin: 80px 10px 0;
}

.home-sideNav-virtual-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.3);
}

.home-sideNav {
    position: fixed;
    top: 0;
    width: 250px;
    height: 100%;
    display: flex;
    flex-direction: row;
    z-index: 9999;
    right: -260px;
    overflow: hidden;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
}

.side_navigation {
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

.side_navigation::-webkit-scrollbar {
    display: none;
}

.side_navigation_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
}

.category {
    color: var(--colorPrimary);
    font-weight: 300;
    font-family: 'Noto Sans', sans-serif !important;
    padding: 10px 30px;
}

.category:hover {
    background-color: ghostwhite;
}

.menu_item {
    color: var(--colorAccent);
    font-weight: 300;
    font-family: 'Noto Sans', sans-serif !important;
    padding: 2px 30px;
    font-size: small;
}

.menu_item:hover {
    background-color: ghostwhite;
}

@media only screen and (max-width: 1024px) {

    .popular_posts {
        padding: 20px;
        display: flex;
        flex: 0 0 30%;
        margin-left: 0 !important;
        flex-direction: column;
    }
}

@media only screen and (max-width: 400px) {
    .article_footer {
        display: flex;
        flex-direction: column;
        margin-bottom: 16px;
        align-items: center;
        justify-content: center;
    }

    .popular_posts {
        display: none;
    }

}

@media only screen and (max-width: 640px) {
    .app_title {
        font-family: 'Comfortaa', cursive;
        color: white;
        font-size: large;
        font-weight: bold;
        flex: 1 1 100%;
    }

    .menu {
        display: none;
    }

    .main_content_body {
        margin: 60px 5px 0;
    }

    .category_tag {
        position: absolute;
        top: 12px;
        left: 0;
        color: whitesmoke;
        font-size: small;
        /*font-weight: bold;*/
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
        padding: 4px 8px;
        z-index: 999;
        background-color: var(--colorAccent);
    }

    .popular_posts {
        display: none;
    }

    .toolbar {
        position: fixed;
        top: 0;
        z-index: 9990;
        background-color: var(--colorPrimary);
        width: 100%;
        padding: 0 20px;
        min-height: 50px;
        border-bottom: 3px solid var(--colorAccent);
    }

}

/* Global Dark Mode & Modern Theme Styles */
html,
body {
    background-color: var(--bg_main) !important;
    color: var(--textColor);
    min-height: 100vh;
    transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="dark"],
[data-theme="dark"] body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .main_content,
[data-theme="dark"] .main_content_body,
[data-theme="dark"] .articles,
[data-theme="dark"] .popular_posts {
    background-color: transparent !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .if-post,
[data-theme="dark"] .card,
[data-theme="dark"] .post-detail,
[data-theme="dark"] .side_navigation {
    background-color: var(--card_bg) !important;
    color: var(--textColor) !important;
    border: 1px solid var(--card_border);
}

[data-theme="dark"] .side_navigation a,
[data-theme="dark"] .category,
[data-theme="dark"] .menu_item {
    color: var(--textColor) !important;
}

[data-theme="dark"] .category:hover,
[data-theme="dark"] .menu_item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .if-post-content h2 a,
[data-theme="dark"] .if-post-content h5 a,
[data-theme="dark"] .popular_posts h4 {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .entry-content,
[data-theme="dark"] .entry-content p,
[data-theme="dark"] .entry-content li,
[data-theme="dark"] .entry-content span,
[data-theme="dark"] .entry-content a {
    color: #dcdcdc !important;
}

[data-theme="dark"] .entry-content blockquote {
    background-color: #1c1c1c !important;
    color: #e0e0e0 !important;
    border-left-color: var(--colorAccent) !important;
}

[data-theme="dark"] .post-image-info h1 {
    color: #ffffff;
}

/* Bookmark Buttons */
.bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 4px 6px;
    border-radius: 4px;
}
.bookmark-btn:hover {
    transform: scale(1.15);
    color: var(--colorAccent);
}
.bookmark-btn.bookmarked i {
    font-weight: 900;
    color: #ff9800;
}

/* Table of Contents */
.table-of-contents-box {
    background: var(--tag_back_color);
    border: 1px solid var(--card_border);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--textHeading);
}
.toc-list {
    margin: 12px 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toc-list li a {
    color: var(--colorAccent);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}
.toc-list li a:hover {
    text-decoration: underline;
}

/* Newsletter Subscription Box */
.newsletter-card {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08), rgba(0, 176, 255, 0.05));
    border: 1px solid var(--card_border);
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
    text-align: center;
}
[data-theme="dark"] .newsletter-card {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.18), rgba(0, 176, 255, 0.12));
}
.newsletter-card h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: var(--textHeading);
}
.newsletter-card p {
    color: var(--textMuted);
    margin-bottom: 16px;
    font-size: 0.92rem;
}
.newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 8px;
}
.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--input_border);
    background: var(--input_bg);
    color: var(--textColor);
    font-size: 0.95rem;
    outline: none;
}
.newsletter-btn {
    padding: 10px 20px;
    background: var(--colorAccent);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.newsletter-btn:hover {
    opacity: 0.9;
}
.newsletter-msg {
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--colorAccent), #00e5ff);
    width: 0%;
    z-index: 99999;
    transition: width 0.05s ease-out;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 6px 10px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.theme-toggle-btn:hover {
    transform: scale(1.15);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Reading Time Pill */
.read-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--tag_color);
    margin-left: 8px;
    background: var(--tag_back_color);
    padding: 2px 8px;
    border-radius: 10px;
}

/* AEO Key Highlights Container */
.aeo-highlights {
    background: rgba(21, 101, 192, 0.06);
    border-left: 4px solid var(--colorAccent);
    padding: 16px 20px;
    margin: 18px 0 24px;
    border-radius: 0 8px 8px 0;
}
[data-theme="dark"] .aeo-highlights {
    background: rgba(68, 138, 255, 0.12);
}
.aeo-highlights h4 {
    margin: 0 0 8px 0;
    color: var(--colorAccent);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}
.aeo-highlights p {
    margin: 0;
    color: var(--textColor);
    line-height: 1.6;
    font-size: 0.95rem;
}