/*********************************************************
    Blog (Category, Single Post & Sidebar)
*********************************************************/
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #2D6D80 0%, #2b748b 55%, #003241 100%);
    padding: 70px 5%;
    text-align: center;
    overflow: hidden;
}

.blog-hero.has-bg {
    background-image: linear-gradient(135deg, rgba(45, 109, 128, 0.6) 0%, rgba(43, 116, 139, 0.6) 55%, rgba(0, 50, 65, 0.6) 100%), var(--blog-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero::before,
.blog-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.blog-hero::before {
    width: 320px;
    height: 320px;
    top: -140px;
    left: -80px;
}

.blog-hero::after {
    width: 240px;
    height: 240px;
    bottom: -120px;
    right: -40px;
}

.blog-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.blog-hero-label {
    display: inline-block;
    font-family: "Albert Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #dbe921;
    margin-bottom: 10px;
}

.blog-hero h1 {
    font-family: "Sue Ellen Francisco", cursive;
    font-size: 64px;
    font-weight: 400;
    color: #f3f3f3;
    line-height: 1.1;
    margin-bottom: 15px;
}

.blog-hero .blog-hero-desc,
.blog-hero .blog-hero-desc p {
    font-family: "Libre Baskerville", serif;
    font-size: 17px;
    line-height: 30px;
    color: #ececec;
    margin-bottom: 0;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 25px;
    margin-top: 20px;
    font-family: "Albert Sans", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #ececec;
}

.blog-hero-meta i {
    color: #dbe921;
    margin-right: 6px;
}

.blog-hero-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.blog-hero-cats a {
    font-family: "Albert Sans", sans-serif;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px 0 15px 0;
    padding: 5px 16px;
    transition: all 0.3s;
}

.blog-hero-cats a:hover {
    background-color: #fff;
    color: #2D6D80;
}

.blog-section {
    background-color: var(--light-gray-color);
    padding: 70px 5%;
}

/* Category Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 15px 0 15px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--green-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-img {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background-color: #D8D8D8;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-card:hover .blog-card-img img {transform: scale(1.06);}

.blog-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 42px;
    color: #A0A0A0;
}

.blog-card-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #2D6D80;
    color: #fff;
    text-align: center;
    border-radius: 10px 0 10px 0;
    padding: 6px 12px;
    font-family: "Albert Sans", sans-serif;
    line-height: 1.1;
}

.blog-card-date strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
}

.blog-card-date span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px;
}

.blog-card-body h2 {
    font-family: "Albert Sans", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 12px;
}

.blog-card-body h2 a {color: var(--dark-black-color);}

.blog-card-body h2 a:hover {color: #2b748b;}

.blog-card-body p {
    font-family: "Libre Baskerville", serif;
    font-size: 15px;
    line-height: 27px;
    color: #4F4F4F;
    margin-bottom: 20px;
}

.blog-read-more {
    margin-top: auto;
    font-family: "Albert Sans", sans-serif;
    font-size: 17px;
    color: #2b748b;
}

.blog-read-more i {
    margin-left: 6px;
    transition: margin 0.3s;
}

.blog-read-more:hover {color: #b13a3a;}

.blog-read-more:hover i {margin-left: 12px;}

.blog-empty {
    grid-column: 1 / -1;
    background-color: #fff;
    border-radius: 15px 0 15px 0;
    padding: 50px 20px;
    text-align: center;
    font-family: "Albert Sans", sans-serif;
    font-size: 19px;
    color: #5E5E5E;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
    padding: 0 14px;
    background-color: #fff;
    border-radius: 10px 0 10px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    font-family: "Albert Sans", sans-serif;
    font-size: 16px;
    color: var(--dark-black-color);
    transition: all 0.3s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background-color: #2D6D80;
    color: #fff;
}

/* Single Post */
.blog-single-wrap {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.blog-article {
    width: calc(68% - 20px);
    background-color: #fff;
    border-radius: 15px 0 15px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.blog-article-head {
    position: relative;
    padding: 55px 45px 40px;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border-bottom: 1px solid #ececec;
    overflow: hidden;
}

.blog-article-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2D6D80 0%, #2b748b 50%, var(--green-color) 100%);
}

.blog-article-head::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(45, 109, 128, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.blog-article-head h1 {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto 22px;
    padding-bottom: 22px;
    font-family: "Sue Ellen Francisco", cursive;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.5px;
    color: #2D6D80;
    word-wrap: break-word;
}

.blog-article-head h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: var(--green-color);
}

.blog-article-head span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 15px 0 15px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    font-family: "Albert Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #545454;
}

.blog-article-head span i {
    color: var(--green-color);
    font-size: 15px;
}

.blog-article-img img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article-content {
    padding: 45px;
    font-family: "Libre Baskerville", serif;
    font-size: 17px;
    line-height: 32px;
    color: #434343;
}

.blog-article-content p {margin-bottom: 22px;}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5,
.blog-article-content h6 {
    font-family: "Albert Sans", sans-serif;
    font-weight: 500;
    color: #2D6D80;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article-content h2 {font-size: 28px;}

.blog-article-content h3 {font-size: 24px;}

.blog-article-content h4 {font-size: 21px;}

.blog-article-content a {color: #2b748b;}

.blog-article-content a:hover {color: #b13a3a;}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 25px;
    margin-bottom: 22px;
}

.blog-article-content ul {list-style: disc;}

.blog-article-content ol {list-style: decimal;}

.blog-article-content li {margin-bottom: 8px;}

.blog-article-content img {
    max-width: 100%;
    height: auto;
}

.blog-article-content blockquote {
    border-left: 4px solid var(--green-color);
    background-color: var(--light-gray-color);
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #545454;
}

/* Sidebar */
.blog-sidebar {
    width: calc(32% - 20px);
    position: sticky;
    top: 30px;
}

.blog-widget {
    background-color: #fff;
    border-radius: 15px 0 15px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.blog-widget-title {
    background-color: #2D6D80;
    padding: 18px 25px;
}

.blog-widget-title h3 {
    font-family: "Sue Ellen Francisco", cursive;
    font-size: 32px;
    font-weight: 400;
    color: #f3f3f3;
    margin-bottom: 0;
}

.blog-widget-list {padding: 10px 25px 15px;}

.blog-widget-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ececec;
}

.blog-widget-item:last-child {border-bottom: none;}

.blog-widget-thumb {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 10px 0 10px 0;
    overflow: hidden;
    background-color: #D8D8D8;
}

.blog-widget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-widget-item:hover .blog-widget-thumb img {transform: scale(1.1);}

.blog-widget-thumb .blog-card-noimg {font-size: 22px;}

.blog-widget-info a {
    display: block;
    font-family: "Albert Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: var(--dark-black-color);
    margin-bottom: 5px;
    transition: color 0.3s;
}

.blog-widget-info a:hover {color: #2b748b;}

.blog-widget-info span {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    color: #696969;
}

.blog-widget-info span i {
    color: var(--green-color);
    margin-right: 5px;
}

.blog-widget-empty {
    padding: 20px 0;
    font-family: "Albert Sans", sans-serif;
    font-size: 16px;
    color: #5E5E5E;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1199px) {
    .blog-grid {grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 991px) {
    .blog-single-wrap {flex-direction: column;}

    .blog-article,
    .blog-sidebar {width: 100%;}

    .blog-sidebar {position: static;}
}

@media (max-width: 767px) {
    .blog-hero {padding: 50px 15px;}

    .blog-hero h1 {font-size: 44px;}

    .blog-hero .blog-hero-desc,
    .blog-hero .blog-hero-desc p {font-size: 15px; line-height: 26px;}

    .blog-section {padding: 40px 12px;}

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-card-img {height: 210px;}

    .blog-article-head {padding: 40px 20px 30px;}

    .blog-article-head h1 {
        font-size: 40px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .blog-article-head span {
        font-size: 13px;
        padding: 7px 16px;
    }

    .blog-article-content {
        padding: 25px 20px;
        font-size: 15px;
        line-height: 28px;
    }
}
