/* ===================================
   DETAIL TRAVEL GUIDE - STYLES
   =================================== */

/* === Hero === */
.tg-detail-hero {
    position: relative;
    width: 100%;
    height: 550px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
}

.tg-detail-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 50%);
    z-index: 1;
}

.tg-detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 60px;
}

.tg-hero-category {
    display: inline-block;
    background: #ffcc05;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 3px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: background 0.3s;
}

.tg-hero-category:hover {
    background: #e6b800;
    color: #333;
    text-decoration: none;
}

.tg-detail-title {
    font-family: "eicons";
    font-size: 2.8rem;
    font-weight: 600;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.25;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.tg-detail-hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.tg-detail-hero-meta i {
    color: #ffcc05;
    margin-right: 5px;
}

/* === Article Content === */
.tg-detail-content {
    padding: 50px 0 60px;
    background: #fff;
}

/* Featured Image in Article Body */
.tg-featured-image {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.tg-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Lead Text */
.tg-lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    padding: 25px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 4px solid #ffcc05;
    padding-left: 20px;
}

/* Article Body */
.tg-article-body {
    color: #555;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 30px;
}

.tg-article-body p {
    margin-bottom: 18px;
}

.tg-article-body h2,
.tg-article-body h3,
.tg-article-body h4 {
    color: #333;
    margin-top: 35px;
    margin-bottom: 15px;
    font-family: "eicons";
}

.tg-article-body h2 { font-size: 24px; }
.tg-article-body h3 { font-size: 20px; }
.tg-article-body h4 { font-size: 18px; }

.tg-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.tg-article-body blockquote {
    border-left: 4px solid #ffcc05;
    margin: 25px 0;
    padding: 20px 25px;
    background: #fefdf5;
    font-style: italic;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
    border-radius: 0 6px 6px 0;
}

.tg-article-body ul,
.tg-article-body ol {
    padding-left: 25px;
    margin-bottom: 18px;
}

.tg-article-body li {
    margin-bottom: 8px;
}

.tg-article-body a {
    color: #c8a415;
    text-decoration: underline;
}

.tg-article-body a:hover {
    color: #333;
}

/* === Tags === */
.tg-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.tg-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s;
}

.tg-tag:hover {
    background: #ffcc05;
    color: #333;
    text-decoration: none;
}

/* === Social Share === */
.tg-share-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.tg-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tg-share-icons {
    display: flex;
    gap: 8px;
}

.tg-share-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.tg-share-fb { background: #3b5998; }
.tg-share-tw { background: #1da1f2; }
.tg-share-li { background: #0077b5; }

.tg-share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
    text-decoration: none;
}

/* === Author Box === */
.tg-author-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 30px;
}

.tg-author-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tg-author-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
}

.tg-author-name {
    font-family: "eicons";
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* === Sidebar === */
.tg-sidebar {
    padding-left: 25px;
}

.tg-sidebar-sticky {
    position: sticky;
    top: 130px;
}

.tg-sidebar-widget {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 25px;
}

.tg-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ffcc05;
}

/* Category List */
.tg-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tg-category-list li:last-child {
    border-bottom: none;
}

.tg-category-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.tg-category-list a:hover {
    color: #c8a415;
}

.cat-count {
    color: #ccc;
    font-size: 12px;
}

/* Recent Posts */
.tg-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-recent-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    padding: 5px;
    border-radius: 4px;
}

.tg-recent-item:hover {
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.tg-recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.tg-recent-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.4;
}

.tg-recent-date {
    font-size: 11px;
    color: #aaa;
}

/* Ad Space */
.tg-ad-space {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-ad-space .ad-placeholder {
    text-align: center;
    color: #ccc;
}

.tg-ad-space .ad-placeholder i {
    font-size: 35px;
    margin-bottom: 8px;
    display: block;
}

.tg-ad-space .ad-placeholder span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Related Posts Section === */
.tg-related-section {
    padding: 50px 0 70px;
    background: #fafafa;
}

.tg-related-title {
    font-family: "eicons";
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.tg-section-divider {
    width: 60px;
    height: 3px;
    background: #ffcc05;
    margin: 0 0 30px;
    border: none;
}

.tg-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tg-related-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.tg-related-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.tg-related-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tg-related-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.tg-related-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.tg-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.tg-related-card:hover .tg-related-image img {
    transform: scale(1.05);
}

.tg-related-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffcc05;
    color: #333;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 2px;
}

.tg-related-body {
    padding: 18px 15px;
}

.tg-related-body h3 {
    font-family: "eicons";
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    transition: color 0.3s;
}

.tg-related-card:hover .tg-related-body h3 {
    color: #c8a415;
}

.tg-related-date {
    font-size: 12px;
    color: #aaa;
}

.tg-related-date i {
    color: #ffcc05;
    margin-right: 4px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .tg-detail-hero {
        height: 450px;
    }

    .tg-detail-title {
        font-size: 2.2rem;
    }

    .tg-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }

    .tg-sidebar-sticky {
        position: static;
    }

    .tg-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tg-detail-hero {
        height: 380px;
        background-attachment: scroll;
    }

    .tg-detail-hero-content {
        padding-bottom: 40px;
    }

    .tg-detail-title {
        font-size: 1.7rem;
        padding: 0 10px;
    }

    .tg-detail-hero-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }

    .tg-article-body {
        font-size: 15px;
    }

    .tg-lead-text {
        font-size: 16px;
    }

    .tg-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tg-author-box {
        padding: 18px;
    }

    .tg-related-grid {
        grid-template-columns: 1fr;
    }

    .tg-detail-content {
        padding: 30px 0 40px;
    }

    .tg-related-section {
        padding: 30px 0 50px;
    }
}

@media (max-width: 576px) {
    .tg-detail-hero {
        height: 320px;
    }

    .tg-detail-title {
        font-size: 1.4rem;
    }

    .tg-hero-category {
        font-size: 9px;
        padding: 4px 12px;
    }

    .tg-author-avatar {
        width: 50px;
        height: 50px;
    }
}
