/* === Reset and Base Styles === */
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif; /* Use Satoshi with fallbacks */
    color: #333;
    line-height: 1.6;
}

/* === Container Styles === */
.pl-30.pr-30 {
    padding-left: 20px;
    padding-right: 20px;
}

.author-topic,
.all-content-wraps,
.contents-wrapped,
.top-grid {
    max-width: 974px;
    margin: 0 auto;
}

/* === Article Header === */
.article-sec {
    padding: 2rem 0;
}

.topic {
    margin-bottom: 1.5rem;
}

.topic h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

.author-wraps {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    font-size: 0.9rem;
    color: #666;
}

.author-name h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
}

.author-name span {
    font-size: 0.85rem;
    color: #888;
}

.authord-img img {
    object-fit: cover;
}

/* === Featured Image === */
.article-featured-img-with-tag {
    position: relative;
    margin: 2rem 0;
}

.article-bg,
.article-featured-img-with-tag img {
    width: 100%;
    max-width: 900px;
    height: auto;
    /*max-height: 440px;*/
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.article-tag-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #111;
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* === Table of Contents (TOC) === */
.wp-block-rank-math-toc-block {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    margin: 1.5rem 0;
}

.wp-block-rank-math-toc-block h2,
.wp-block-rank-math-toc-block h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.wp-block-rank-math-toc-block ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.wp-block-rank-math-toc-block ul ul {
    list-style-type: circle;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.wp-block-rank-math-toc-block li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.wp-block-rank-math-toc-block a {
    color: #464646;
    text-decoration: none;
}

.wp-block-rank-math-toc-block a:hover {
    color: #ff0b0b;
    text-decoration: none;
}

/* === Article Content === */
.contents-wrapped {
    max-width: 900px;
    margin: 0 auto;
}

.contents-wrapped p,
.contents-wrapped h2,
.contents-wrapped h3,
.contents-wrapped ul,
.contents-wrapped ol {
    margin-bottom: 1rem;
}

.contents-wrapped h2,
.wp-block-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
}

.contents-wrapped h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
}

.contents-wrapped p {
    font-size: 1.1rem;
    text-align: justify;
}

.contents-wrapped ul,
.contents-wrapped ol {
    padding-left: 1rem;
}

.contents-wrapped li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contents-wrapped img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 1.5rem auto;
}

/* === Social Sharing === */
.navigation-wraps {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.flex-wraps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.nav-box {
    background: #f1f1f1;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #333;
}

.a2a_kit {
    display: flex;
    gap: 0.5rem;
}

/* === Related Articles === */
.related-article,
.mb-related-article {
    padding: 2rem 0;
    background: #f9f9f9;
}

.bdr-wraps-article,
.mb-related-article .pl-30.pr-30 {
    max-width: 1200px;
    margin: 0 auto;
}

.related-article .topic h2,
.mb-related-article .topic h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-card a {
    text-decoration: none;
    color: inherit;
}

.article-card .images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.article-content {
    padding: 1rem;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.block-btn {
    font-size: 0.85rem;
    color: #e63946;
    text-transform: uppercase;
}

.arrows img {
    width: 20px;
    height: 20px;
}

/* === Mobile View for Related Articles === */
.mb-related-article .swiper {
    padding-bottom: 2rem;
}

.mb-related-article .swiper-slide {
    width: 250px;
}

.swipe {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.swiper-button-next,
.swiper-button-prev {
    color: #e63946;
}

.swiper-pagination-bullet-active {
    background: #e63946;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .topic h1 {
        font-size: 1.8rem;
    }

    .author-wraps {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .article-bg,
    .article-featured-img-with-tag img {
        max-height: 300px;
    }

    .article-tag-overlay {
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .contents-wrapped {
        padding: 0 1rem;
    }

    .contents-wrapped h2 {
        font-size: 1.5rem;
    }

    .contents-wrapped h3 {
        font-size: 1.2rem;
    }

    .contents-wrapped p,
    .contents-wrapped li {
        font-size: 1rem;
    }

    .related-article {
        display: none;
    }

    .mb-related-article {
        display: block;
    }
}

@media (max-width: 480px) {
    .topic h1 {
        font-size: 1.5rem;
    }

    .contents-wrapped h2 {
        font-size: 1.3rem;
    }

    .contents-wrapped h3 {
        font-size: 1.1rem;
    }

    .article-card .images img {
        height: 120px;
    }

    .article-content h3 {
        font-size: 1rem;
    }
}

.article-sec .author-topic {
    flex-direction: column !important;
    padding-top: 50px;
}

.article-sec .author-topic .topic {
    width: 100% !important;
    margin-bottom: 40px;
}

.article-sec .contents-wrapped {
    padding: 0px !important;
}

/***gm css**/

.content-row-div {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

div#rank-math-toc {
    width: 28%;
    min-width: 250px;
    margin-top: 0px;
    padding: 15px;
    border-radius: 4px;
    margin-right: 30px;
}

.article-div-main-content {
    width: 65%;
    flex-grow: 1;
}

div#rank-math-toc h2 {
    font-size: 18px;
    margin-top: 10px;
    font-weight: 400;
}

div#rank-math-toc ul:first-of-type {
    /* text-decoration: none; */
    list-style: none;
    padding-left: 0px;
    margin-left: 0px;
}

div#rank-math-toc ul:first-of-type li {
    content: "*";
    position: relative;
    padding-left: 5px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}

/*div#rank-math-toc ul:first-of-type li::before {*/
/*    content: "*"; */
/*    font-family: "Font Awesome 5 Free";*/
/*    font-weight: 900;*/
/*    position: absolute;*/
/*    left: 0;*/
/*    color: #ff0b0b;*/
/*    font-size: 15px;*/
/*}*/

.article-sec .author-topic {

    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 806px) {
  .content-row-div {
    flex-direction: column;
  }

  #rank-math-toc,
  .article-div-main-content {
    width: 100% !important;
  }
  
  .article-sec .author-topic {
    padding-left: 10px;
    padding-right: 10px;
}
}

.article-sec .contents-wrapped h2 {
    max-width: 870px !important;
}
