﻿:root {
    --primary-color: #6366F1;
    --accent-color: #3f83f8;
    --highlight-color: #6c5ce7;
    --link-color: #2563eb;
    --text-color: #333;
    --gray: #808080;
    --light-gray: #f0f0f0;
    --bg-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif;
    text-decoration: none;
}

body {
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

a {
    color: inherit;
}

.header .container {
    display: grid;
}

/*.header {
    margin-top: 40px;
    box-shadow: 0 4px 34px 0 rgba(161, 161, 161, 0.25);
}

.container-1 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5.25rem;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 4.375rem;
    width: 1.938rem;
}

.logo,
.h3 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    display: flex;
    gap: 16px;
    align-items: center;
    background-color: #fff;
}

.search-container span {*/
    /* display: flex; */
    /*justify-content: center;
    align-items: center;
    gap: 16px;
    background: #003b5c;
    color: #fff;
    border-radius: 7px;
    padding: 9px 17px;
    font-weight: bold;
    cursor: pointer;
}

.search-btn-container {
    display: flex;
    border: 1px solid black;
    border-radius: 0.5625rem;
    padding: 0.5rem 1rem;
    max-width: 22%;
    top: 15px;
    right: 50px;
    left: 56%;
    position: absolute;
}

.search-input {
    flex-grow: 1;*/
/*    border: none;*/
    /*font-size: 14px;
}

.search-icon {
    color: #6a62fe;
    font-size: 1.25rem;
    margin-left: 0.75rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.search-btn-icon {
    display: none;
}

.menu-dropdown {
    display: none;
    width: 160px;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
    flex-direction: column;
    gap: 15px;
    border-radius: 14px;
    z-index: 2;
    right: 0;
    top: 43px;
}

.menu-dropdown a {
    text-decoration: none;
    color: black;
}

.menu-dropdown a:hover,
.article-card:hover,
.sidebar div:hover {
    color: #6a62fe;
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

.show {
    display: flex;
}

#dropdownBtn {
    border: none;
    background-color: white;
}*/

.container {
    display: flex;
    max-width: 1200px;
/*    margin: 40px auto;*/
    gap: 30px;
    padding: 1px 2.25rem;
}

#mainContainer {
    margin-top: 0px;
}

.main-content .main-image {
    margin-bottom: 32px;
}
.main-content img {
    margin: 40px 20px 0px 8px;
    width: 721px;
    margin-bottom: -10px;
    height: 490px;
    display: inline !important;
}

.main-content {
    flex: 2;
}

.main-content .breadcrumb {
    font-size: 12px;
    margin-bottom: 24px;
    margin-top: 15px;
}

.main-content .breadcrumb p {
    font-size: 14px;
}

.main-content .breadcrumb span,
.sidebar span {
    color: #6a62fe;
}

.sidebar {
    flex: 1;
    margin-top: 40px;
}

.main-content p,
h1 {
    margin-bottom: 15px;
}

.main-content h4 {
    font-weight: bold;
    margin-bottom: 7px;
}

.main-image {
    width: 100%;
    /* border-radius: 10px; */
    margin-top: 15px;
}

.sidebar h2 {
    margin-bottom: 33px;
}

.sidebar img:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.sidebar h2 span {
    font-weight: bold;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
    align-items: center;
}

.sidebar ul li a {
    display: flex;
    gap: 16px;
}

.sidebar ul li img {
    width: 32%;
    height: 46%;
    object-fit: cover;
    border-radius: 5px;
}

.sidebar ul li div {
    flex: 1;
}

.sidebar ul li h3 {
    font-size: 13px;
    font-weight: bold;
}

.sidebar ul li a span {
    font-size: 13px;
    color: #888;
}

.article-container {
    background-color: #f9f9ff;
    padding: 0 1.25rem;
    margin-bottom: 50px;
}

.article-class {
    padding: 0;
}

.article-container h2 {
    padding-top: 1.5rem;
}

.article-container .container {
    flex-direction: column;
}

.Latest,
.art-color {
    font-size: 1.5rem;
}

.articles {
    display: grid;
    gap: 1.25rem;
    margin-top: -41px;
}

.article-card {
    position: relative;
    text-align: center;
    margin-bottom: 3.125rem;
}

.article-card img {
    width: 100%;
    height: 394px;
    object-fit: cover;
    border-radius: 0.6875rem;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.article-card h4 {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.875rem;
    position: absolute;
    background-color: white;
    padding: 0.9375rem;
    bottom: -1rem;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1);
}

.article-card span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2.6875rem;
    background-color: #6a62fe;
    color: white;
    padding: 0.75rem 17px 10px 17px;
    border-radius: 0.625rem;
}

.article-card img:hover {
    transform: scale(1.05);
}

.art-color {
    color: #7b61ff;
}

.next-article-wrapper {
    background-color: #f9f9ff;
    display: flex;
    padding: 54px 172px;
}

.next-article-box {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    display: flex;
    width: 65%;
    max-width: 100%;
    overflow: hidden;
}

.left-space {
    width: 50%;
    border-right: 1px solid #ccc;
}

.right-content {
    border: none;
    outline: none;
    background: none;
    width: 50%;
    padding: 20px;
}

.next-title {
    font-weight: bold;
    font-size: 15px;
    color: #000;
    margin-bottom: 20px;
    text-align: right;
}

.article-title {
    display: block;
    font-weight: bold;
    color: #000;
    margin-bottom: 22px;
}

/* container start */

.main-article {
    /*word-break: normal;
    hyphens: auto;*/
}

.main-content {
    margin: 0.5rem 0;
}

.main-content .post-content a {
    color: #482bdd;
}

.main-content .post-content p {
    margin-bottom: 0.1rem;
    color: #444;
}

.main-content strong {
    color: #222;
    font-weight: 600;
}

.main-content h3 {
    margin: 1rem 0 0.5rem;
    color: #222;
}


.main-content ul,
.main-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.main-content li {
    margin-bottom: 0.5rem;
}

.main-content img {
    height: auto !important;
    width: 100% !important;
}

.main-content .post-content a {
    color: #0200ff !important;
    text-decoration-line: underline;
    transition: all 0.2s ease !important;
}

/* Common table styles */
.main-content .post-content table {
    width: 100%;
    border: 1px solid;
    border-collapse: collapse;
    background-color: #fff;
    border-color: #000;
}

.main-content  table th,
.main-content table td {
    border: 1px solid;
    padding: 6px;
    color: #000;
    word-break:break-word;
}

/* Striped rows */
.main-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* container end */


@media (max-width: 1024px) {

/*    .header-content {
        margin-top:10px;
    }*/
    .container {
        margin: 10px auto;
    }

    #mainContainer {
        margin-top: 0px;
    }

    .search-btn-icon {
        display:none;
    }

    .search-btn-text {
        display: none;
    }

    .article-container {
        margin-bottom: 92px;
    }
    .sidebar ul li {
        display: grid;
    }
}

@media (max-width: 992px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .container {
        flex-direction: column;
        padding: 0 20px;
    }

    .search-btn-icon {
        display: none;
    }

/*    .main-content {
        margin: 2.5rem 0;
    }*/

/*    .footer-links {
        flex-direction: row;
        gap:3rem;
    }*/

    .sidebar {
        margin-top: 0px;
    }

    .next-article-box {
    flex-direction: column;
        /* display: none; */
    }

    footer{
        margin-top:-6rem;
    }
}

@media (max-width: 768px) {
    .sidebar ul li {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar ul li img {
        width: 22%;
    }

    .article-card img {
        height: 280px;
    }

    .search-btn-icon {
        display: none;
    }
    .search-container {
        width: 12rem;
    }

    .search-container button {
/*        padding: 8px 16px;
        font-size: 14px;*/
        border:none;
        background-color:white;
    }

/*    .search-icon{
        left:16rem;
    }*/
    .container-1 {
        padding: 0 1.25rem;
    }

    .search-btn-container {
        max-width: 30%;
        left: 52%;
    }

    li a {
        flex-direction: column;
    }

    #mainContainer {
        margin-top: 0px;
    }

    .sidebar{
        margin-top:0px;
    }
    .sidebar ul li a {
        display: flex;
        gap: 16px;
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
        margin-top: -21px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    h4 {
        font-size: 12px;
    }

    h5 {
        font-size: 8px;
    }

    h6 {
        font-size: 6px;
    }

    .container {
        padding: 10px 5px 0 5px;
    }

    #mainContainer{
        margin-top: 50px;
    }
    main {
        padding: 0px;
        margin: 0px auto;
    }

    .meta {
        gap: 0.8rem;
        row-gap: 0.5rem;
    }

    .main-content {
        margin: -1.5rem 0;
    }

    .author-card {
        padding: 12px 12px;
    }

    .article-card h4 {
        font-size: 13px;
    }

    .article-card span {
        font-size: 12px;
    }

    .article-card img {
        height: 200px;
    }

    .articles-grid, .f-Article, .cards, .articles {
        padding-bottom: 0rem;
    }

    .article-container {
        margin-bottom: 55px;
        margin-top: 1rem;
    }

    .article-container h2 {
        padding-top: 0rem;
    }

    .search-container {
        width: 95%;
        position: absolute;
        background-color: white;
        /* border: 1px solid black;
        border-radius: 14px;*/
        top: 45px;
        display: block;
        margin: 8px;
        left: 0px;
        border: 0;
    }

    .search-btn-icon {
        display: block;
    }

    .container:first-of-type {
        padding: 0px 0.5rem 0px;
        margin-top: 19px;
    }

    .fa-solid, .fas {
        font-weight: 900;
        margin-top: -6px;
    }

    .search-container button {
        padding: 0px;
        border: none;
    }

    .next-article-wrapper {
        display: none;
    }

    .search-btn-container {
        display: flex;
        border: 1px solid black;
        border-radius: 0.5625rem;
        padding: 0.5rem 1rem;
        max-width: 102%;
        top: 68px;
        right: 37px;
        left: 26px;
        position: absolute;
    }

    .sidebar {
        flex: 1;
        margin-top: 0px;
        margin-bottom: -5rem;
    }

    .sidebar ul li img {
        width: 100%;
    }

    .sidebar ul li a {
        display: flex;
        gap: 16px;
        flex-direction: column;
    }

    footer {
        margin-top: 3rem;
    }
}

