/* ============================================
   NEWS PAGE PREMIUM UI/UX ENHANCEMENTS
   ============================================ */

/* ============================================
   1. SKELETON LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-card {
    margin-bottom: 30px;
    padding: 0;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    margin-bottom: 15px;
}

.skeleton-title {
    width: 80%;
    height: 24px;
    margin-bottom: 10px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 60%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Hide skeleton when content is loaded */
.content-loaded .skeleton {
    display: none;
}

/* ============================================
   2. PREMIUM CARD DESIGN WITH HOVER EFFECTS
   ============================================ */
.tg-blog-grid-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tg-blog-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   3. IMAGE GRADIENT OVERLAYS
   ============================================ */
.tg-blog-standard-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.tg-blog-standard-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.tg-blog-grid-item:hover .tg-blog-standard-thumb::before {
    opacity: 1;
}

.tg-blog-standard-thumb img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.tg-blog-grid-item:hover .tg-blog-standard-thumb img {
    transform: scale(1.08);
}

/* ============================================
   4. READING TIME BADGE
   ============================================ */
.reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #228B22;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(34, 139, 34, 0.3);
    transition: all 0.3s ease;
}

.reading-time-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.4);
}

.reading-time-badge svg {
    width: 14px;
    height: 14px;
}

/* Card Equal Height Alignment */
.tg-blog-grid-wrap .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.tg-blog-grid-wrap .col-xl-6,
.tg-blog-grid-wrap .col-md-6 {
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}


/* ============================================
   5. ENHANCED TYPOGRAPHY & SPACING
   ============================================ */
.tg-blog-standard-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tg-blog-standard-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.tg-blog-standard-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tg-blog-standard-title a:hover {
    color: #228B22;
}

.tg-blog-standard-para {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.tg-blog-standard-date {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tg-blog-standard-date span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 13px;
    transition: color 0.3s ease;
}

.tg-blog-standard-date span:hover {
    color: #228B22;
}

/* ============================================
   6. ENHANCED BUTTON STYLES
   ============================================ */
.tg-blog-sidebar-btn {
    margin-top: auto;
}

.tg-blog-sidebar-btn .tg-btn {
    background: #228B22;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.tg-blog-sidebar-btn .tg-btn:hover {
    background: #d7821c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(215, 130, 28, 0.4);
}

/* ============================================
   7. PREMIUM PAGINATION DESIGN
   ============================================ */
.tg-pagenation-wrap {
    margin-top: 60px;
}

.tg-pagenation-wrap ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tg-pagenation-wrap ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tg-pagenation-wrap ul li a:hover {
    background: #228B22;
    color: #ffffff;
    border-color: #228B22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.tg-pagenation-wrap ul li a.active {
    background: #228B22;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.4);
}

.tg-pagenation-wrap ul li a.p-btn {
    background: transparent;
    border: 2px solid #228B22;
    color: #228B22;
}

.tg-pagenation-wrap ul li a.p-btn:hover {
    background: #228B22;
    color: #ffffff;
}

/* ============================================
   8. ENHANCED SIDEBAR STYLES
   ============================================ */
.tg-blog-sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tg-blog-sidebar-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tg-blog-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #228B22;
    position: relative;
}

.tg-blog-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #228B22;
}

.tg-blog-post-item {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tg-blog-post-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.tg-blog-post-thumb {
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.tg-blog-post-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tg-blog-post-item:hover .tg-blog-post-thumb img {
    transform: scale(1.1);
}

.tg-blog-post-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.tg-blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tg-blog-post-title a:hover {
    color: #228B22;
}

.tg-blog-post-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   9. BREADCRUMB ENHANCEMENTS
   ============================================ */
.tg-breadcrumb-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tg-breadcrumb-list-4 ul li a {
    transition: all 0.3s ease;
}

.tg-breadcrumb-list-4 ul li a:hover {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   10. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .tg-blog-grid-wrap {
        margin-right: 0 !important;
    }

    .tg-blog-standard-thumb img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .tg-blog-standard-thumb img {
        height: 200px;
    }

    .tg-blog-standard-title {
        font-size: 18px;
    }

    .tg-pagenation-wrap ul {
        flex-wrap: wrap;
    }

    .tg-pagenation-wrap ul li a {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .tg-blog-standard-content {
        padding: 15px;
    }

    .tg-blog-standard-title {
        font-size: 16px;
    }

    .tg-blog-sidebar-box {
        padding: 20px;
    }
}

/* ============================================
   11. SMOOTH SCROLL BEHAVIOR
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   12. LAZY LOADING FADE-IN EFFECT
   ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ============================================
   13. ACCESSIBILITY ENHANCEMENTS
   ============================================ */
.tg-blog-grid-item:focus-within {
    outline: 3px solid #17401c;
    outline-offset: 4px;
}

a:focus-visible {
    outline: 2px solid #17401c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   14. PRINT STYLES
   ============================================ */
@media print {

    .tg-blog-sidebar,
    .tg-pagenation-wrap,
    .tg-breadcrumb-area {
        display: none;
    }

    .tg-blog-grid-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}