:root {
    --bg: #111827;
    --bgSoft: #1f3050;
    --text: #dee4eb;
    --textSoft: #cbd2d9;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

body.light {
    --bg: #dee4eb;
    --text: #111827;
}

/* Global link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Content area link styles */
.singleContent a,
.listItmeTexts a {
    color: #60a5fa; /* Light blue color to match the theme */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.singleContent a:hover,
.listItmeTexts a:hover {
    color: #3b82f6; /* Slightly darker blue on hover */
    text-decoration: none;
}

/* Dark theme specific link colors */
body:not(.light) .singleContent a,
body:not(.light) .listItmeTexts a {
    color: #60a5fa;
}

body:not(.light) .singleContent a:hover,
body:not(.light) .listItmeTexts a:hover {
    color: #3b82f6;
}

/* Light theme specific link colors */
body.light .singleContent a,
body.light .listItmeTexts a {
    color: #2563eb; /* Darker blue for better contrast in light mode */
}

body.light .singleContent a:hover,
body.light .listItmeTexts a:hover {
    color: #1d4ed8;
}

.container {
    max-width: 1366px;
    padding-left: 50px;
    padding-right: 50px;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* NAVBAR START */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

/* Light theme specific navbar styles */
body.light .navbar {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark theme specific navbar styles */
body:not(.light) .navbar {
    background-color: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-weight: bold;
    font-size: 34px;
    display: flex;
    align-items: center;
}

.logo-brackets {
    color: #608dc4; /* Light blue color for the brackets */
    font-weight: 900;
    margin-right: 8px;
    font-size: 1em;
    position: relative;
    top: -1px;
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
}

.searchButton {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    padding: 5px;
    border-radius: 10px;
}

.toggle {
    width: 40px;
    height: 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bgSoft);
    border: 0.5px solid var(--textSoft);
    padding: 3px;
    position: relative;
}

.ball {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    position: absolute;
    margin: 0 2px;
    left: 0;
    background-color: var(--textSoft);
    border: 1px solid var(--bgSoft);
}

.light .ball {
    left: unset;
    right: 0;
}

/* NAVBAR END  */

/* FOOTER START  */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    font-size: 14px;
}

.footerLinks {
    display: flex;
    gap: 10px;
}

/* FOOTER END  */

/* LIST START  */

.list {
    margin-top: 30px;
}

.listItem {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
}

.listItemImage {
    width: 350px;
    height: 200px;
    object-fit: cover;
}

.listItmeTexts {
    display: flex;
    flex-direction: column;
    gap: 10px;  
}

.listItemDetail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin: 3px 0;
}

.listItemCategories {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.listItemCategory {
    padding: 2px 5px;
    border-radius: 5px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
    font-size: 14px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.page-item {
    border: 1px solid gray;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.page-item.active {
    background-color: var(--text);
    color: var(--bg);
}

.page-item.disabled {
    background-color: #313845;
    cursor: not-allowed;
}

/* LIST END  */

/* SINGLE START */

.singleHead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.singleHeadTexts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.singleHeadTitle {
    font-size: 48px;
}

.singleHeadDesc {
    font-size: 18px;
    font-weight: 300;
}

.singleHeadDetail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.singleCategory {
    padding: 5px;
    border-radius: 5px;
    background-color: var(--bgSoft);
    color: var(--textSoft);
}

.singleHeadImg {
    flex: 1;
    height: 350px;
    object-fit: cover;
}

.singleBottom {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-top: 50px;
}

.singleContent {
    flex: 3;
    font-size: 18px;
    line-height: 30px;
}

.singleContent p,
.singleContent h1,
.singleContent h2,
.singleContent h3 {
    margin: 20px 0;
}

.singleContent h1 {
    line-height: 40px;
}

.singleContent img {
    width: 100%;
    object-fit: cover;
}

.singleContent pre {
    background-color: var(--bgSoft);
    color: #ffffff; /* Force white text color */
    border-radius: 5px;
    padding: 20px;
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.singleRightBar {
    flex: 1;
}

.single {
    margin-top: 20px;
}

/* SINGLE END  */

/* RIGHT BAR  */

.rightBar {
    position: sticky;
    top: 100px;
}

.rightBarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rightBarImgHr {
    display: none;
}

/* RIGHT END  */


@media (max-width: 1536px) {
    .container {
        max-width: 1366px;
    }
}
@media (max-width: 1366px) {
    .container {
        max-width: 1280px;
    }
}
@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .singleHeadImg {
        display: none;
    }

    .singleBottom {
        flex-direction: column-reverse;
    }

    .rightBarImg {
        display: none;
    }

    .rightBarImgHr {
        display: block;
        width: 100%;
    }

    .listItem {
        flex-direction: column;
        gap: 20px;
    }

    /* .listItemImage {
        width: 100%;
    } */

    .listItmeTexts {
        width: 90%;
    }
}
@media (max-width: 768px) {
    .container {
        max-width: 640px;
    }
    .links {
        font-size: 14px;
    }
    .category {
        display: none;
    }
    .home {
        display: none;
    }
}
@media (max-width: 640px) {
    .container {
        max-width: 475px;
    }
}