/* =========================================================
   BLOG PAGE
========================================================= */

.dementiaCon {
    width: 100%;
    background: #040725;
    overflow: hidden;
}

.dementiaBg {
    width: 100%;
    height: 300px;

    background:
        linear-gradient(
            90deg,
            rgba(4, 7, 37, 0.94),
            rgba(4, 7, 37, 0.72)
        ),
        url("../images/blog-bg.jpg") center center / cover no-repeat;

    position: relative;
}

/* Optional banner content if added later */
.dementiaBg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(4, 7, 37, 0.25)
    );
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.pageContainer {
    max-width: 1250px;
    margin: 0 auto;
}

.rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 45px;
    align-items: start;
}


/* =========================================================
   BLOG LIST
========================================================= */

.blogorder {
    width: 100%;
}

.blogList {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;

       border: 1px solid rgba(173, 180, 205, 0.45);
    background: #030727;
    margin-bottom: 30px;
    padding: 20px;

   
    border-radius: 4px;

    box-shadow: 0 8px 30px rgba(4, 7, 37, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.blogList:hover {
    transform: translateY(-4px);
    border-color: rgba(235, 179, 10, 0.45);

    box-shadow:
        0 15px 40px rgba(4, 7, 37, 0.10);
}


/* =========================================================
   BLOG IMAGE
========================================================= */

.blogImg {
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #fff;
    border: solid 1px #838a99;
}

.blogImg img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.blogList:hover .blogImg img {
    transform: scale(1.04);
}


/* =========================================================
   BLOG CONTENT
========================================================= */

.blogTxt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.blogTxt h2 {
    margin: 0 0 13px;
    padding: 0;
        font-family: "Playfair Display", Georgia, serif;
}

.blogTxt h2 a {
    color: #fff;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.3s ease;
}

.blogTxt h2 a:hover {
    color: #fff;
}

.blogTxt p {
    margin: 0 0 20px;

    color: #e0e2ec;
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   READ MORE BUTTON
========================================================= */

.readBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 22px;

    background: #d69d00;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    text-decoration: none;

    border: 1px solid #050f37;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.readBtn:hover {
    background: #e0e2ec;
    border-color: #e0e2ec;
    color: #050f37;
}


/* =========================================================
   BLOG SIDEBAR
========================================================= */

.blogCat {
    width: 100%;
}

.adulthoodCon {
       background: #080e2f;
    border: 1px solid #cfcfcf6e;
    box-shadow: 0 8px 30px rgba(4, 7, 37, 0.06);
}

.dementiacareTle {
    padding: 22px 25px;

    background: #dca300;

    border-bottom: 3px solid #cfcfcf6e;
}

.dementiacareTle h1 {
    margin: 0;

    color: #ffffff;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   CATEGORY LIST
========================================================= */

.dementiacareBox {
    padding: 8px 0;
}

.dementiacareborder {
    width: 100%;
}

.dementiacareLeft {
    width: 100%;
}

.dementiacareLeft ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.dementiacareLeft ul li {
    margin: 0;
    padding: 0;

    border-bottom: 1px solid #cfcfcf6e;
}

.dementiacareLeft ul li:last-child {
    border-bottom: 0;
}

.dementiacareLeft ul li a {
    position: relative;

    display: block;

    padding: 14px 25px 14px 42px;

    color: #e0e2ec;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        padding-left 0.3s ease;
}

.dementiacareLeft ul li a::before {
    content: "\f054";

    position: absolute;
    left: 24px;
    top: 50%;

    transform: translateY(-50%);

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: #ebb30a;

    font-size: 9px;
}

.dementiacareLeft ul li a:hover {
    padding-left: 47px;

      background: #050f37;
    color: #fff;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 45px 0 10px;
}

.pagination a,
.pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    margin: 0 4px;

    border: 1px solid #dfe2e8;

    background: #ffffff;

    color: #050f37;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
       background: #050f37;
    border-color: #050f37;
    color: #ebb30a;
    border: 1px solid rgba(173, 180, 205, 0.25);
}


/* =========================================================
   CLEARFIX
========================================================= */

.clearfixer::after {
    content: "";
    display: table;
    clear: both;
}

.dementiacareLeft ul li.active a {
    padding-left: 47px;
   background: #050f37;
    color: #fff;
}

.dementiacareLeft ul li.active a::before {
    color: #ebb30a;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .rows {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .blogCat {
        max-width: 100%;
    }

    .blogList {
        grid-template-columns: 240px 1fr;
    }

    .blogImg {
        height: 190px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .dementiaBg {
        height: 230px;
    }

    .pageContainer {
        padding: 35px 15px !important;
    }

    .rows {
        display: block;
    }

    .blogList {
        display: block;

        padding: 15px;

        margin-bottom: 25px;
    }

    .blogImg {
        width: 100%;
        height: 220px;

        margin-bottom: 20px;
    }

    .blogTxt h2 a {
        font-size: 21px;
    }

    .blogTxt p {
        font-size: 14px;
        line-height: 1.7;
    }

    .blogCat {
        margin-top: 35px;
    }

    .dementiacareTle {
        padding: 18px 20px;
    }

    .dementiacareTle h1 {
        font-size: 18px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        margin: 0;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .dementiaBg {
        height: 200px;
    }

    .blogImg {
        height: 190px;
    }

    .blogTxt h2 a {
        font-size: 19px;
    }

    .readBtn {
        width: 100%;
    }
}


/* =========================================================
   SINGLE BLOG POST
========================================================= */

.dementiaCon {
    width: 100%;
    background:#040725;
}

.dementiacenter {
    padding: 70px 20px 90px;
}

.pageContainersingle {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: #080e2f;
    padding: 45px 50px;
    border: 1px solid #cfcfcf6e;
    box-shadow: 0 12px 40px rgba(4, 7, 37, 0.07);
}


/* =========================================================
   DATE / META
========================================================= */

.entry-meta {
    margin: 0 0 25px;

    color: #8a8f9c;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* =========================================================
   FEATURED IMAGE
========================================================= */

.singlePagecontent {
    width: 100%;
    margin: 0 0 35px;

    overflow: hidden;
}

.singlePagecontent img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 520px;

    object-fit: cover;

    border-radius: 2px;
}


/* =========================================================
   POST CONTENT
========================================================= */

.pageContainersingle > p:not(.entry-meta) {
    color: #e0e2ec;

    font-size: 13px;
    line-height: 1.8;
}

.pageContainersingle h1,
.pageContainersingle h2,
.pageContainersingle h3,
.pageContainersingle h4,
.pageContainersingle h5,
.pageContainersingle h6 {
    color: #050f37;

    line-height: 1.35;

    margin-top: 35px;
    margin-bottom: 18px;
}

.pageContainersingle h2 {
    font-size: 30px;
}

.pageContainersingle h3 {
    font-size: 24px;
}

.pageContainersingle h4 {
    font-size: 20px;
}

.pageContainersingle p {
    color: #555b68;

    font-size: 16px;
    line-height: 1.9;

    margin: 0 0 22px;
}

.pageContainersingle a {
    color: #b28008;

    text-decoration: none;

    transition: color 0.3s ease;
}

.pageContainersingle a:hover {
    color: #050f37;
}


/* =========================================================
   LISTS
========================================================= */

.pageContainersingle ul,
.pageContainersingle ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.pageContainersingle li {
    margin-bottom: 10px;

    color: #555b68;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.pageContainersingle blockquote {
    margin: 30px 0;
    padding: 22px 28px;

    background: #f7f8fb;

    border-left: 4px solid #ebb30a;

    color: #050f37;

    font-size: 18px;
    line-height: 1.7;

    font-style: italic;
}


/* =========================================================
   TABLE
========================================================= */

.pageContainersingle table {
    width: 100%;

    margin: 30px 0;

    border-collapse: collapse;
}

.pageContainersingle th,
.pageContainersingle td {
    padding: 13px 15px;

    border: 1px solid #e3e5ea;

    text-align: left;
}

.pageContainersingle th {
    background: #050f37;
    color: #ffffff;
}


/* =========================================================
   BACK TO BLOG
========================================================= */

.pageContainersingle > p:last-child {
    margin-top: 40px;
    padding-top: 25px;

    border-top: 1px solid #e6e8ee;
}

.pageContainersingle > p:last-child a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    background: #d69d00;
    color: #ffffff;

    border: 1px solid #050f37;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.6px;
    text-transform: uppercase;

    transition: all 0.3s ease;
}

.pageContainersingle > p:last-child a:hover {
    background: #ebb30a;
    border-color: #ebb30a;
    color: #050f37;
}


/* =========================================================
   PAGE TITLE / BREADCRUMB
========================================================= */

.page-title {
    padding: 35px 20px;

    background: #050f37;

    text-align: center;
}

.page-title h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 38px;
    font-weight: 700;     font-family: "Playfair Display", Georgia, serif;
}

.page-title nav ul {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.page-title nav ul li {
    color: rgba(255,255,255,0.65);

    font-size: 13px;
}

.page-title nav ul li::before {
    display: none;
}

.page-title nav ul li a {
    color: #ebb30a;

    text-decoration: none;
}

.page-title nav ul li a:hover {
    color: #ffffff;
}


/* =========================================================
   IMAGES INSIDE CONTENT
========================================================= */

.singlePagecontent + img,
.pageContainersingle img:not(.singlePagecontent img) {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 768px) {

    .dementiacenter {
        padding: 45px 15px 60px;
    }

    .pageContainersingle {
        padding: 30px 25px;
    }

    .page-title {
        padding: 30px 15px;
    }

    .page-title h2 {
        font-size: 30px;
    }

    .pageContainersingle p,
    .pageContainersingle li {
        font-size: 15px;
        line-height: 1.8;
    }

    .pageContainersingle h2 {
        font-size: 26px;
    }

    .pageContainersingle h3 {
        font-size: 22px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 480px) {

    .dementiacenter {
        padding: 30px 12px 45px;
    }

    .pageContainersingle {
        padding: 22px 18px;
    }

    .page-title h2 {
        font-size: 25px;
    }

    .page-title nav ul {
        flex-wrap: wrap;
        gap: 6px;
    }

    .entry-meta {
        font-size: 11px;
    }

    .singlePagecontent {
        margin-bottom: 25px;
    }

    .pageContainersingle p,
    .pageContainersingle li {
        font-size: 14px;
        line-height: 1.75;
    }

    .pageContainersingle h2 {
        font-size: 23px;
    }

    .pageContainersingle h3 {
        font-size: 20px;
    }

    .pageContainersingle blockquote {
        padding: 18px 20px;
        font-size: 16px;
    }

    .pageContainersingle > p:last-child a {
        width: 100%;
    }
}