/* KWS Blog Elements Styles */

/* Blog Carousel */
.kws-blog-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.kws-blog-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kws-blog-post {
    max-width: 300px;
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px;
}

.kws-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.kws-post-title {
    font-size: 18px;
    margin: 10px 0;
}

.kws-post-title a {
    text-decoration: none;
    color: #333;
}

.kws-post-title a:hover {
    color: #007cba;
}

.kws-post-excerpt {
    font-size: 14px;
    color: #666;
}

.kws-banner-slider {
    width: 100%;
    position: relative;
    padding-bottom: 10px;
}

.kws-banner-slide {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 6px;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kws-banner-slide__thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.kws-banner-slide__meta {
    font-size: 12px;
    color: #7c7c7c;
}

.kws-banner-slide__title {
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}

.kws-banner-slide__title a {
    color: #1f4e8c;
    text-decoration: none;
}

.kws-banner-slide__title a:hover {
    text-decoration: underline;
}

.kws-banner-slide__excerpt {
    font-size: 13px;
    color: #4b4b4b;
}

/* Article List */
.kws-article-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.kws-article-item {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    align-items: flex-start;
}

.kws-article-item:last-child {
    border-bottom: none;
}

.kws-article-thumb {
    flex: 0 0 200px;
    max-width: 220px;
    border-radius: 4px;
    overflow: hidden;
}

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

.kws-article-content {
    flex: 1 1 auto;
}

.kws-article-title {
    font-size: 20px;
    margin: 0 0 5px 0;
}

.kws-article-title a {
    text-decoration: none;
    color: #333;
}

.kws-article-title a:hover {
    color: #007cba;
}

.kws-article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.kws-article-excerpt {
    font-size: 14px;
    color: #666;
}

.kws-article-readmore {
    display: inline-block;
    margin-top: 8px;
    color: #1f4e8c;
    text-decoration: none;
    font-weight: 600;
}

.kws-article-readmore:hover {
    text-decoration: underline;
}

/* Keyword Sidebar */
.kws-keyword-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.kws-sidebar-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #333;
}

.kws-keyword-list {
    list-style: none;
    padding: 0;
}

.kws-keyword-item {
    margin-bottom: 5px;
}

.kws-keyword-item a {
    text-decoration: none;
    color: #007cba;
    font-size: 14px;
}

.kws-keyword-item a:hover {
    text-decoration: underline;
}

/* Hero Section */
.kws-hero {
    padding: 24px 16px 32px;
    background: #ffffff;
    border-bottom: 1px solid #dfe6f0;
}

.kws-hero__breadcrumbs {
    font-size: 12px;
    color: #6c7686;
    margin-bottom: 8px;
}

.kws-hero__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.kws-hero__text {
    flex: 1 1 320px;
}

.kws-hero__category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    color: #1f4e8c;
    border: 1px solid #1f4e8c;
    border-radius: 999px;
    margin-bottom: 10px;
}

.kws-hero__subtitle {
    font-size: 13px;
    color: #6c7686;
    margin-bottom: 6px;
}

.kws-hero__title {
    font-size: 24px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1f4e8c;
}

.kws-hero__meta {
    font-size: 12px;
    color: #7a7a7a;
    margin-bottom: 12px;
}

.kws-hero__lead {
    font-size: 14px;
    color: #444;
}

.kws-hero__image {
    flex: 0 0 280px;
    max-width: 320px;
    text-align: right;
}

.kws-hero__image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Categories Section */
.kws-categories {
    background: #f5f7fb;
    padding: 12px 16px;
    border: 1px solid #d6deea;
    border-radius: 4px;
}

.kws-categories__list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kws-categories__item a {
    font-size: 13px;
    color: #1f4e8c;
    text-decoration: none;
}

.kws-categories__item a:hover {
    text-decoration: underline;
}

/* CTA */
.kws-cta {
    background: #edf4fb;
    border: 1px solid #d6deea;
    padding: 20px 16px;
    margin: 24px 0;
    border-radius: 4px;
}

.kws-cta__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.kws-cta__title {
    margin: 0;
    color: #1f4e8c;
    font-size: 16px;
}

.kws-cta__description {
    font-size: 13px;
    color: #4a4a4a;
    margin-top: 4px;
}

.kws-cta__button {
    display: inline-block;
    background: #1f4e8c;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.kws-cta__button:hover {
    background: #163b6b;
}

/* Article Content */
.kws-article-content {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
}

.kws-article-content__image {
    margin: 16px 0;
}

.kws-article-content__image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.kws-article-content__meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.kws-article-content__body p {
    margin: 0 0 14px 0;
}

/* Recommendation box */
.kws-reco {
    background: #f5f7fb;
    border: 1px solid #d6deea;
    padding: 14px 12px;
    border-radius: 4px;
    margin: 18px 0;
}

.kws-reco__title {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #1f4e8c;
}

.kws-reco__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kws-reco__item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kws-reco__thumb {
    flex: 0 0 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 4px;
    background: #d8d8d8;
}

.kws-reco__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kws-reco__label {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.kws-reco__label:hover {
    color: #1f4e8c;
}

.kws-reco__desc {
    font-size: 12px;
    color: #6d6d6d;
    margin-top: 2px;
}

/* Recommendation grid */
.kws-reco-grid {
    margin: 16px 0;
}

.kws-reco-grid__title {
    margin: 0 0 12px 0;
    color: #1f4e8c;
    font-size: 16px;
}

.kws-reco-grid__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.kws-reco-grid__card {
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kws-reco-grid__thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.kws-reco-grid__label {
    font-size: 14px;
    margin: 0;
}

.kws-reco-grid__label a {
    text-decoration: none;
    color: #2d2d2d;
}

.kws-reco-grid__label a:hover {
    color: #1f4e8c;
}

/* News grid */
.kws-news-grid__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.kws-news-grid__card {
    background: #fff;
    border: 1px solid #e1e6ef;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kws-news-grid__thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.kws-news-grid__meta {
    font-size: 12px;
    color: #777;
}

.kws-news-grid__title {
    margin: 0;
    font-size: 15px;
}

.kws-news-grid__title a {
    text-decoration: none;
    color: #1f4e8c;
}

.kws-news-grid__title a:hover {
    text-decoration: underline;
}

.kws-news-grid__excerpt {
    font-size: 13px;
    color: #555;
}

/* Post list */
.kws-post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.kws-post-list__item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

.kws-post-list__meta {
    font-size: 12px;
    color: #7a7a7a;
    margin-bottom: 4px;
}

.kws-post-list__title {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.kws-post-list__title a {
    color: #1f4e8c;
    text-decoration: none;
}

.kws-post-list__title a:hover {
    text-decoration: underline;
}

.kws-post-list__excerpt {
    font-size: 14px;
    color: #555;
}

/* Sidebar widget */
.kws-sidebar-widget {
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 13px;
}

.kws-sidebar-block {
    border: 1px solid #e1e6ef;
    border-radius: 4px;
    padding: 12px 10px;
    background: #fff;
}

.kws-sidebar-block__title {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #1f4e8c;
}

.kws-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kws-sidebar-list li a {
    color: #3b3b3b;
    text-decoration: none;
    line-height: 1.4;
}

.kws-sidebar-list li a:hover {
    color: #1f4e8c;
}

.kws-sidebar-cta {
    border: 1px solid #e1e6ef;
    border-radius: 4px;
    padding: 12px 10px;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kws-sidebar-cta__title {
    font-size: 14px;
    color: #1f4e8c;
}

.kws-sidebar-cta__button {
    display: inline-block;
    background: #1f4e8c;
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
}

.kws-sidebar-cta__button:hover {
    background: #163b6b;
}

@media (max-width: 768px) {
    .kws-article-item {
        flex-direction: column;
    }

    .kws-article-thumb {
        width: 100%;
    }

    .kws-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .kws-hero__image {
        width: 100%;
        max-width: none;
    }

    .kws-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
