/*------------------------------------------------------------------
[Blog Stylesheet]
Project:    Jaha Travel Blog
Version:    1.0
Matches:    travel-setting.css color scheme
Primary:    #ffb300 (amber)
Secondary:  #26bdf7 (light blue)
-------------------------------------------------------------------*/

/* ============================================
   BLOG LISTING PAGE
   ============================================ */

.blog-section {
    padding: 40px 0 60px;
    background: #f9f9f9;
}

.blog-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.blog-section .section-title h2 {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.blog-section .section-title p {
    color: #555;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Blog Card */
.blog-card {
    margin-bottom: 30px;
}

.blog-card .card-inner {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card .card-inner:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Blog Image */
.blog-card .card-image {
    position: relative;
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.blog-card .card-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffb300;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.blog-card .card-image .category-badge.culture {
    background: #26bdf7;
}

.blog-card .card-image .category-badge.adventure {
    background: #27ae60;
}

.blog-card .card-image .category-badge.tips {
    background: #9b59b6;
}

.blog-card .card-image .category-badge.food {
    background: #e74c3c;
}

/* Blog Content */
.blog-card .card-content {
    padding: 20px 25px 25px;
}

.blog-card .card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #888;
}

.blog-card .card-meta i {
    color: #ffb300;
    margin-right: 5px;
}

.blog-card .card-meta .author {
    display: flex;
    align-items: center;
}

.blog-card .card-meta .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

.blog-card .card-title {
    margin: 0 0 12px;
}

.blog-card .card-title a {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.blog-card .card-title a:hover {
    color: #26bdf7;
}

.blog-card .card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-card .read-more {
    color: #26bdf7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .read-more:hover {
    color: #ffb300;
}

.blog-card .read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.blog-card .read-more:hover i {
    transform: translateX(5px);
}

.blog-card .reading-time {
    color: #999;
    font-size: 12px;
}

.blog-card .reading-time i {
    margin-right: 5px;
}

/* ============================================
   FEATURED POST (Large)
   ============================================ */

.blog-featured {
    margin-bottom: 40px;
}

.blog-featured .card-inner {
    display: flex;
    flex-direction: row;
    min-height: 350px;
}

.blog-featured .card-image {
    flex: 0 0 55%;
}

.blog-featured .card-image img {
    height: 100%;
    min-height: 350px;
}

.blog-featured .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 35px;
}

.blog-featured .card-title a {
    font-size: 26px;
    line-height: 1.3;
}

.blog-featured .card-excerpt {
    font-size: 15px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .blog-featured .card-inner {
        flex-direction: column;
    }

    .blog-featured .card-image {
        flex: none;
    }

    .blog-featured .card-image img {
        min-height: 250px;
    }
}

/* ============================================
   SINGLE BLOG POST
   ============================================ */

.blog-single {
    padding: 40px 0 60px;
}

.blog-single-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-single-header .category-badge {
    display: inline-block;
    background: #ffb300;
    color: #fff;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 15px;
}

.blog-single-header h1 {
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-single-header .post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: #888;
    font-size: 14px;
}

.blog-single-header .post-meta i {
    color: #ffb300;
    margin-right: 6px;
}

.blog-single-header .post-meta .author-info {
    display: flex;
    align-items: center;
}

.blog-single-header .post-meta .author-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.blog-single-header .post-meta .author-info .author-name {
    font-weight: 600;
    color: #333;
}

/* Featured Image */
.blog-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Blog Content */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.blog-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 35px 0 20px;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px;
}

.blog-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 25px 0 15px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
}

.blog-content blockquote {
    border-left: 4px solid #ffb300;
    padding: 20px 25px;
    margin: 30px 0;
    background: #f9f9f9;
    font-style: italic;
    font-size: 18px;
    color: #555;
}

.blog-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    color: #888;
}

.blog-content ul,
.blog-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.blog-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.blog-content a {
    color: #26bdf7;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-content a:hover {
    border-bottom-color: #26bdf7;
}

/* Tags */
.blog-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.blog-tags .tag-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.blog-tags a {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    margin: 5px 5px 5px 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tags a:hover {
    background: #26bdf7;
    color: #fff;
}

/* Share Buttons */
.blog-share {
    margin-top: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 6px;
    text-align: center;
}

.blog-share .share-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.blog-share .share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.blog-share .share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.blog-share .share-buttons a:hover {
    transform: scale(1.1);
}

.blog-share .share-buttons .facebook {
    background: #3b5998;
}

.blog-share .share-buttons .twitter {
    background: #1da1f2;
}

.blog-share .share-buttons .pinterest {
    background: #bd081c;
}

.blog-share .share-buttons .whatsapp {
    background: #25d366;
}

.blog-share .share-buttons .telegram {
    background: #0088cc;
}

/* Author Box */
.author-box {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    gap: 25px;
}

.author-box .author-avatar {
    flex: 0 0 100px;
}

.author-box .author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box .author-info {
    flex: 1;
}

.author-box .author-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.author-box .author-title {
    color: #26bdf7;
    font-size: 14px;
    margin-bottom: 10px;
}

.author-box .author-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 575px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box .author-avatar {
        margin: 0 auto;
    }
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

/* ============================================
   SIDEBAR
   ============================================ */

.blog-sidebar {
    padding-left: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffb300;
    position: relative;
}

/* Search Widget */
.search-widget form {
    display: flex;
}

.search-widget input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-widget input[type="text"]:focus {
    border-color: #26bdf7;
    outline: none;
}

.search-widget button {
    background: #26bdf7;
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-widget button:hover {
    background: #ffb300;
}

/* Categories Widget */
.categories-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li {
    border-bottom: 1px solid #eee;
}

.categories-widget li:last-child {
    border-bottom: none;
}

.categories-widget a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-widget a:hover {
    color: #26bdf7;
}

.categories-widget .count {
    background: #f5f5f5;
    color: #888;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* Recent Posts Widget */
.recent-posts-widget .recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-posts-widget .recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-widget .recent-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.recent-posts-widget .recent-post .post-info {
    flex: 1;
}

.recent-posts-widget .recent-post .post-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-posts-widget .recent-post .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts-widget .recent-post .post-title a:hover {
    color: #26bdf7;
}

.recent-posts-widget .recent-post .post-date {
    font-size: 12px;
    color: #888;
}

.recent-posts-widget .recent-post .post-date i {
    color: #ffb300;
    margin-right: 5px;
}

/* Tags Widget */
.tags-widget .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-widget .tag-cloud a {
    display: inline-block;
    background: #f5f5f5;
    color: #666;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-widget .tag-cloud a:hover {
    background: #ffb300;
    color: #fff;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #414b4f 0%, #2c3438 100%);
    color: #fff;
}

.newsletter-widget .widget-title {
    color: #fff;
    border-bottom-color: #ffb300;
}

.newsletter-widget p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-widget input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.newsletter-widget button {
    width: 100%;
    background: #ffb300;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-widget button:hover {
    background: #26bdf7;
}

/* ============================================
   PAGINATION
   ============================================ */

.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #ddd;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    border-color: #26bdf7;
    color: #26bdf7;
}

.blog-pagination .current {
    background: #26bdf7;
    border-color: #26bdf7;
    color: #fff;
}

.blog-pagination .prev,
.blog-pagination .next {
    padding: 0 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }

    .blog-single-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .blog-section {
        padding: 30px 0 40px;
    }

    .blog-section .section-title h2 {
        font-size: 26px;
    }

    .blog-card .card-image img {
        height: 200px;
    }

    .blog-single-header h1 {
        font-size: 24px;
    }

    .blog-single-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-content p,
    .blog-content li {
        font-size: 15px;
    }

    .blog-content h2 {
        font-size: 22px;
    }

    .blog-content h3 {
        font-size: 19px;
    }
}

/* ============================================
   HOMEPAGE BLOG SECTION
   ============================================ */

.home-blog-section {
    padding: 60px 0;
    background: #fff;
}

.home-blog-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-blog-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.home-blog-section .section-header p {
    color: #666;
    font-size: 16px;
}

.home-blog-section .view-all-btn {
    text-align: center;
    margin-top: 30px;
}

.home-blog-section .view-all-btn a {
    display: inline-block;
    background: #26bdf7;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.home-blog-section .view-all-btn a:hover {
    background: #ffb300;
}
