/*
====================================================

* 	[Master Stylesheet]

	Theme Name :
	Version    :
	Author     :
	Author URI :

====================================================
*/


/* ---------------------------------
1. PRIMARY STYLES
--------------------------------- */

html {
    font-size: 100%;
    height: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
}

body {
    font-size: 15px;
    font-family: "Open Sans", sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    background: #EDF3F3;
    color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
ul,
span,
li,
img {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.5;
}

p {
    line-height: 1.6;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 400;
    color: #444;
}

h1 {
    font-size: 4em;
    line-height: 1;
}

h2 {
    font-size: 2.8em;
    line-height: 1.1;
}

h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: .9em;
    letter-spacing: 1px;
}

a,
button {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
}

a:focus,
a:active,
a:hover,
button:focus,
button:active,
button:hover {
    text-decoration: none;
    color: white;
}

b {
    font-weight: 500;
}

img {
    width: 100%;
}

li {
    list-style: none;
    display: inline-block;
}

span {
    display: inline-block;
}


/* ---------------------------------
2. COMMONS FOR PAGE DESIGN
--------------------------------- */

.section {
    padding: 70px 0 40px;
}

.section .heading {
    padding-bottom: 70px;
}

.center-text {
    text-align: center;
}

.color-white {
    color: #fff;
}

.display-table {
    display: table;
    height: 100%;
    width: 100%;
}

.display-table-cell {
    display: table-cell;
    vertical-align: middle;
}

.card {
    background: transparent;
    border: 0;
}

.no-side-padding {
    padding-right: 0px;
    padding-left: 0px;
}

.no-left-padding {
    padding-left: 0px;
}

.no-right-padding {
    padding-right: 0px;
}

.icon {
    font-size: 2em;
}

::-webkit-input-placeholder {
    font-size: .9em;
    letter-spacing: 1px;
}

::-moz-placeholder {
    font-size: .9em;
    letter-spacing: 1px;
}

:-ms-input-placeholder {
    font-size: .9em;
    letter-spacing: 1px;
}

:-moz-placeholder {
    font-size: .9em;
    letter-spacing: 1px;
}


/* NAV ICON */

.menu-nav-icon {
    display: none;
    height: 60px;
    width: 50px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    position: absolute;
    right: 0;
    font-size: 1.8em;
}


/* ---------------------------------
5. SINGLE POST
--------------------------------- */

.blog-area .row div[class^="col"] {
    margin-bottom: 30px;
}

.blog-area {
    text-align: center;
    background: #EDF3F3;
}

.blog-area .single-post {
    height: 100%;
    position: relative;
    padding-bottom: 45px;
    overflow: hidden;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, .1);
    border: 1px solid #ddd;
    background: #fff;
}

.blog-area .single-post .title {
    padding: 20px 30px 30px;
}

.single-post .avatar {
    margin: 0 auto;
    margin-top: -40px;
    width: 70px;
    height: 70px;
    overflow: hidden;
    z-index: 10;
    border-radius: 100px;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
}

.single-post .post-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.single-post .post-footer>li {
    width: 33.33%;
    display: inline-block;
    border-right: 1px solid #fff;
    background: #EDF3F3;
}

.single-post .post-footer>li:first-child {
    float: left;
}

.single-post .post-footer>li:last-child {
    border: 0px;
    float: right;
}

.single-post .post-footer>li>a {
    line-height: 45px;
    width: 100%;
}

.single-post .post-footer i {
    display: inline-block;
    margin-right: 10px;
    opacity: .6;
    font-size: 1.1em;
}


/* ---------------------------------
6. NORMAL BLOG
--------------------------------- */

.post-style-1 .blog-image {
    max-height: 200px;
    overflow: hidden;
}


/* ---------------------------------
7. EXTRA BIG BLOG
--------------------------------- */

.blog-area .post-style-2 {
    padding-bottom: 0;
    text-align: left;
}

.blog-area .post-style-2 .title {
    padding: 15px 0px 20px;
}

.post-style-2 .avatar-area {
    padding: 25px 0 15px;
    position: relative;
}

.post-style-2 .avatar {
    margin: 0px;
}

.post-style-2 .avatar-area .right-area {
    margin-left: 90px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.post-style-2 .blog-image {
    width: 50%;
    float: left;
    height: 100%;
}

.post-style-2 .blog-image img {
    height: 100%;
    width: 100%;
}

.post-style-2 .blog-info {
    width: 50%;
    float: left;
    height: 100%;
    position: relative;
    padding: 30px;
    padding-bottom: 45px;
}


/* ---------------------------------
8. EXTRA MEDIUM BLOG
--------------------------------- */

.post-style-2.post-style-3 .blog-info {
    width: 100%;
    float: none;
}


/* ---------------------------------
9. EXTRA SMALL BLOG
--------------------------------- */

.blog-area .post-style-4 {
    margin-bottom: 30px;
}

.display-table .display-table-cell.title {
    padding: 30px;
}

.load-more-btn {
    padding: 15px 40px;
    margin: 10px 0 30px;
    transition: all .3s;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, .4);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, .3);
}


/* ---------------------------------
10. FOOTER
--------------------------------- */

footer {
    padding: 70px 0 30px;
    background: #fff;
}

footer .footer-section {
    margin-bottom: 40px;
}

footer .footer-section .title {
    margin-bottom: 20px;
}

footer .footer-section ul>li {
    margin-right: 10px;
    margin-top: 10px;
}

footer .copyright {
    margin: 10px 0;
}

footer .icons>li>a {
    height: 40px;
    width: 40px;
    border-radius: 40px;
    line-height: 40px;
    text-align: center;
    transition: all .3s;
    font-size: 1.2em;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 1);
    background: #03153e;
    color: #fff;
}

footer .icons>li>a:hover {
    transform: translateY(-2px);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, .3);
}

footer .input-area {
    position: relative;
    height: 50px;
    width: 100%;
    box-shadow: 0px 0px 1px #bbb;
    background: #F5F7F6;
}

footer .input-area .email-input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 70px 0 20px;
    background: transparent;
    border: 0;
    outline: 0;
}

footer .input-area .email-input:focus {
    box-shadow: 0px 0px 1px #aaa;
}

footer .input-area .submit-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50px;
    background: none;
    border: 0;
    outline: 0;
    margin-right: 10px;
    opacity: .8;
    cursor: pointer;
    transition: all .2s;
}


/* ---------------------------------
11. SLIDER CATEGORY CARDS
--------------------------------- */

.favorite_posts {
    color: var(--accent-color);
}

.main-slider {
    height: 300px;
    padding: 6px !important;
}

.modern-swiper {
    padding: 10px 0;
}

.slider-category-card {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    height: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateZ(0);
    transition: transform .35s ease, box-shadow .35s ease;
}

.slider-category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform .5s ease;
}

.slider-category-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: var(--header-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-overlay h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    letter-spacing: 0.3px;
}

.empty-state {
    padding: 30px;
    text-align: center;
    background: #111;
    color: #fff;
    border-radius: 12px;
}

.swiper-wrapper {
    display: flex;
    width: max-content;
    animation: autoSlide 20s linear infinite;
}

.swiper-slide {
    flex: 0 0 auto;
}

@keyframes autoSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ---------------------------------
12. POST CARD (legacy)
--------------------------------- */

.post-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20, 35, 28, .08);
    border: 1px solid #EEF1F0;
    transition: transform .3s ease, box-shadow .3s ease;
    text-align: left;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 35, 28, .16);
}

.post-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.06);
}

.post-tag-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    background: var(--header-color);
    font-size: .78em;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-tag-badge svg {
    width: 12px;
    height: 12px;
}

.post-card-body {
    padding: 18px 20px 20px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.post-author img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.post-author-info .name {
    font-size: .85em;
    font-weight: 600;
    color: #14231C;
}

.post-author-info .time {
    font-size: .78em;
    color: #9AA6A0;
}

.post-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #14231C;
    margin-bottom: 14px;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-stats {
    display: flex;
    border-top: 1px solid #EEF1F0;
    padding-top: 12px;
    margin: 0;
}

.post-stats li {
    flex: 1;
    text-align: center;
    font-size: .84em;
    color: #7C8B84;
    display: inline-block;
}

.post-stats li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    width: auto;
}

.post-stats li a:hover {
    color: var(--accent-color);
}

.post-stats svg {
    width: 15px;
    height: 15px;
}

.load-more {
    background: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}


/* =====================================================
13. HOME REDESIGN
Colours come from --header-color / --accent-color
(set per-blog in .env via the .home-page inline style)
===================================================== */

.home-page {
    --navy: var(--header-color, #03153e);
    --orange: var(--accent-color, #da940d);
    font-family: 'Poppins', 'Open Sans', sans-serif;
    background: linear-gradient(180deg, #fbfcff 0%, #f4f8fd 100%);
    padding-bottom: 40px;
}

.home-page p {
    font-family: inherit;
}

/* Hero — image is the container background (right / bottom), text on the left.
   Path is relative to this file: assets/frontend/css/home/ -> assets/frontend/images/ */
.blog-hero {
    display: flex;
    align-items: center;
    padding: 46px 0 38px;
    /* Layer 1: fade from page colour (left) to transparent so the image melts into the background.
       Layer 2: the hero image itself, pinned to the right. */
    background-image:
        linear-gradient(90deg, #fbfcff 0%, #fbfcff 36%, rgba(251, 252, 255, 0) 72%),
        url('../../images/home-hero.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left center, right bottom;
    background-size: 100% 100%, auto 100%;
    min-height: 260px;
}

.blog-hero__text {
    flex: 1 1 100%;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--orange);
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--orange);
    display: inline-block;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    line-height: 1.12;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px;
}

.hero-title .o {
    color: var(--orange);
    font-weight: inherit;
}

.hero-sub {
    font-size: 17px;
    color: #64748b;
    max-width: 640px;
    margin: 0;
    line-height: 1.6;
}

/* Category filter */
.cat-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 34px;
}

.cat-arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e3e8ef;
    background: #fff;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(3, 21, 62, .08);
    transition: .25s;
}

.cat-arrow:hover {
    background: var(--navy);
    color: #fff;
}

.cat-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px;
    flex: 1 1 auto;
    scrollbar-width: none;
}

.cat-track::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e3e8ef;
    color: var(--navy);
    font-weight: 500;
    font-size: 12.5px;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(3, 21, 62, .05);
    transition: .25s;
}

.cat-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.cat-pill.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 6px 16px rgba(218, 148, 13, .3);
}

/* Posts grid */
.home-blog {
    padding: 0 0 10px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(3, 21, 62, .07);
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(3, 21, 62, .13);
}

.blog-card__media {
    position: relative;
    display: block;
    height: 140px;
    overflow: hidden;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.06);
}

.blog-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    background: var(--navy);
}

.blog-card__badge.alt {
    background: var(--orange);
}

.blog-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #5f6f82;
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.blog-card__meta .sep {
    display: none;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 10px;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--orange);
}

.blog-card__excerpt {
    color: #6b7a8c;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}

.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.blog-card__more:hover {
    color: var(--orange);
}

.blog-card__more i {
    transition: transform .25s;
}

.blog-card__more:hover i {
    transform: translateX(5px);
}

/* Load more */
.load-more-wrap {
    text-align: center;
    margin: 42px 0 10px;
}

.btn-load-more {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 13px 34px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: .4px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(218, 148, 13, .3);
    transition: .25s;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    filter: brightness(.95);
    color: #fff;
}

.post-empty-state {
    grid-column: 1 / -1;
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    color: #64748b;
    border-radius: 14px;
    border: 1px dashed #cfd8e3;
}