/**
 * Matthuga Jog Falls - Blog Stylesheet
 * Integrates seamlessly with style.css and matches the resort's brand identity.
 */

/* ==========================================================================
   1. HERO BANNER FOR BLOG PAGES
   ========================================================================== */
.blog-hero {
    position: relative;
    padding: 170px 0 80px 0;
    background: linear-gradient(135deg, rgba(26, 28, 29, 0.82) 0%, rgba(26, 28, 29, 0.65) 100%),
                url('../img/blog/blog_hero.webp') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    border-bottom: 3px solid var(--color-gold);
}

.blog-hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 44px;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.breadcrumb-nav .sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.breadcrumb-nav .current {
    color: #ffffff;
    font-weight: 500;
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* ==========================================================================
   2. FILTER & SEARCH TOOLBAR
   ========================================================================== */
.blog-toolbar-section {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    position: sticky;
    top: 75px;
    z-index: 40;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.blog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.category-btn {
    border: 1px solid var(--color-border);
    background: var(--color-light);
    color: var(--color-primary);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.88rem;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.category-btn:hover {
    background: #eae5dc;
    border-color: #d1c8bb;
}

.category-btn.active {
    background: var(--color-gold);
    color: #ffffff;
    border-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(168, 103, 78, 0.3);
}

.blog-search-box {
    position: relative;
    min-width: 280px;
    flex: 0 1 340px;
}

.blog-search-box input {
    width: 100%;
    padding: 10px 18px 10px 42px;
    border: 1px solid var(--color-border);
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    background: var(--color-light);
    color: var(--color-primary);
    transition: var(--transition);
}

.blog-search-box input:focus {
    background: #ffffff;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(168, 103, 78, 0.15);
}

.blog-search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   3. BLOG LISTING GRID
   ========================================================================== */
.blog-listing-section {
    padding: 60px 0 90px 0;
    background-color: var(--color-light);
    min-height: 500px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    border-color: rgba(168, 103, 78, 0.3);
}

.blog-card-media {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #e9e5dd;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.blog-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-gold);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

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

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--color-gold);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

.blog-card:hover .blog-card-title {
    color: var(--color-gold);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.blog-read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(4px);
}

.blog-read-more:hover {
    color: var(--color-gold-hover);
}

.no-results-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed var(--color-border);
}

.no-results-msg i {
    font-size: 2.8rem;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.no-results-msg h3 {
    margin-bottom: 8px;
    color: var(--color-primary);
}

/* ==========================================================================
   4. SINGLE BLOG POST LAYOUT
   ========================================================================== */
.single-post-hero {
    position: relative;
    padding: 170px 0 60px 0;
    background: linear-gradient(135deg, rgba(26, 28, 29, 0.88) 0%, rgba(26, 28, 29, 0.72) 100%),
                url('../img/blog/jog-falls.webp') center/cover no-repeat;
    color: #ffffff;
    border-bottom: 3px solid var(--color-gold);
}

.single-post-hero-content {
    max-width: 950px;
    margin: 0 auto;
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    color: #ffffff;
    line-height: 1.25;
    margin: 14px 0 16px 0;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.single-post-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.author-chip img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Post Container Layout */
.single-post-section {
    padding: 60px 0 90px 0;
    background-color: #ffffff;
}

.single-post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    align-items: start;
}

/* Main Article Content */
.post-main-content {
    color: #383838;
    line-height: 1.85;
    font-size: 1.05rem;
}

.post-featured-media {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-featured-media img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.featured-caption {
    padding: 10px 18px;
    font-size: 0.88rem;
    color: #666;
    font-style: italic;
    background: #FAF8F4;
    border-top: 1px solid #EAE3D2;
}

.post-main-content .lead-text {
    font-size: 1.18rem;
    line-height: 1.8;
    color: #222;
    margin-bottom: 28px;
    font-weight: 400;
}

.post-main-content h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--color-primary);
    margin: 40px 0 16px 0;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.post-main-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.post-main-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-gold);
    margin: 28px 0 12px 0;
    font-weight: 600;
}

.post-main-content p {
    margin-bottom: 22px;
}

.post-main-content ul,
.post-main-content ol {
    margin: 0 0 24px 24px;
}

.post-main-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-main-content strong {
    color: #1a1a1a;
}

/* Highlight & Tip Boxes */
.article-highlight-card {
    background: #FAF8F4;
    border: 1px solid #EAE3D2;
    border-radius: 10px;
    padding: 24px;
    margin: 30px 0;
}

.article-highlight-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    font-size: 0.95rem;
}

.article-tip-box {
    background: #FDF9F5;
    border-left: 4px solid var(--color-gold);
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    margin: 28px 0;
}

.article-tip-box h4 {
    color: var(--color-gold);
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tip-box p {
    margin-bottom: 0;
    font-size: 0.96rem;
    color: #4a4a4a;
}

.article-image-box {
    margin: 32px 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-light);
    border: 1px solid var(--color-border);
}

.article-image-box img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    display: block;
}

.article-image-box .img-caption {
    display: block;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    background: #FAF8F4;
    border-top: 1px solid var(--color-border);
}

/* Post Tags */
.post-tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 28px 0;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.post-tags-row .tags-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-right: 6px;
}

.post-tag {
    background: var(--color-light);
    color: var(--color-text);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.post-tag:hover {
    background: var(--color-gold);
    color: #ffffff;
    border-color: var(--color-gold);
}

/* Post Share Section */
.post-share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 16px;
}

.share-title {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter  { background: #1DA1F2; }
.share-copy     { background: #4a4a4a; }

/* Author Bio Card */
.post-author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    margin: 36px 0;
}

.author-box-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    border: 1px solid var(--color-border);
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.author-box-info p {
    font-size: 0.88rem;
    color: var(--color-text);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   5. SIDEBAR STYLING
   ========================================================================== */
.blog-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168, 103, 78, 0.2);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--color-gold);
}

/* Stay Promo Widget */
.stay-promo-widget {
    background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
    border: 1px solid #EAE3D5;
    text-align: center;
}

.promo-img-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.promo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stay-promo-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.stay-promo-widget p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.promo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-sidebar-book {
    width: 100%;
    padding: 12px;
    background: var(--color-gold);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    transition: var(--transition);
}

.btn-sidebar-book:hover {
    background: var(--color-gold-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 103, 78, 0.35);
}

.btn-sidebar-call {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sidebar-call:hover {
    background: var(--color-gold);
    color: #ffffff;
}

/* Category Widget */
.sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    transition: var(--transition);
}

.sidebar-category-item:hover {
    background: var(--color-light);
    color: var(--color-gold);
    padding-left: 16px;
}

.category-count {
    background: var(--color-light);
    color: var(--color-text-light);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* ==========================================================================
   6. CALL TO ACTION STRIP
   ========================================================================== */
.blog-cta-banner {
    background: linear-gradient(135deg, #1A1C1D 0%, #2A2C2E 100%);
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.blog-cta-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.blog-cta-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.blog-cta-buttons {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   7. BACK TO TOP BUTTON (STICKY BOTTOM-RIGHT)
   ========================================================================== */
.standalone-back-to-top,
.fab-totop {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    left: auto !important;
    width: 45px !important;
    height: 45px !important;
    background-color: var(--color-gold) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    border: none !important;
    z-index: 99999 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.standalone-back-to-top.show,
.fab-totop.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.standalone-back-to-top:hover,
.fab-totop:hover {
    background-color: var(--color-primary) !important;
    transform: translateY(-4px) !important;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
    .single-post-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 20px;
    }

    .blog-toolbar-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 60px 0;
    }
    
    .single-post-hero {
        padding: 130px 0 50px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search-box {
        width: 100%;
        flex: 1 1 auto;
    }

    .blog-categories {
        overflow-x: auto;
        padding-bottom: 6px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .standalone-back-to-top,
    .fab-totop {
        bottom: 20px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
    }
}
/* ==========================================================================
   CHATY FLOATING WIDGET (FIXED BOTTOM-LEFT)
   ========================================================================== */
.chaty-widget {
    position: fixed !important;
    bottom: 25px !important;
    left: 20px !important;
    z-index: 999999 !important;
    width: 60px !important;
    height: 60px !important;
}

.chaty-main-btn {
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 2 !important;
    transition: transform 0.3s ease !important;
    padding: 0 !important;
}

.chaty-main-btn:hover {
    transform: scale(1.05) !important;
}

.chaty-item {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 2.5px !important;
    left: 2.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 1 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(0, 0) scale(0.5) !important;
    text-decoration: none !important;
}

.chaty-whatsapp { background-color: #4dc247 !important; }
.chaty-phone    { background-color: #10c379 !important; }
.chaty-map      { background-color: #ea4335 !important; }

.chaty-widget.active .chaty-item {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.chaty-widget.active .chaty-whatsapp {
    transform: translate(75px, -5px) scale(1) !important;
}

.chaty-widget.active .chaty-phone {
    transform: translate(50px, -65px) scale(1) !important;
}

.chaty-widget.active .chaty-map {
    transform: translate(-5px, -80px) scale(1) !important;
}

.chaty-icon {
    width: 30px !important;
    height: 30px !important;
    fill: #000000 !important;
    transition: transform 0.3s ease !important;
}

.chaty-item svg {
    width: 24px !important;
    height: 24px !important;
    fill: #ffffff !important;
}

@media (max-width: 768px) {
    .chaty-widget {
        left: 15px !important;
        bottom: 15px !important;
    }
}