:root {
    --primary: #ff6b4a;
    --secondary: #f5b33b;
    --dark: #0f1a1e;
    --light: #f6f8fb;
    --gray: #7f8b92;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(20, 30, 40, 0.08);
    --radius: 16px;
    --gradient: #b6483d;
    --gradient-reverse: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
}

/* Global Styles */
body {
    background-color: #fffaef;

    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Spacing */
.blog-header-spacer {
    height: 100px;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), url('../image/blogbg.jpg') center/cover no-repeat;
    border-radius: calc(var(--radius) + 6px);
    /* padding: 80px 40px; */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
}

.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 26, 30, 0.1), rgba(15, 26, 30, 0.7));
    pointer-events: none;
}

.blog-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 107, 74, 0.06), rgba(245, 179, 59, 0.03));
    pointer-events: none;
    mix-blend-mode: overlay;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.blog-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(10, 20, 25, 0.06);
    animation: pulse 2s infinite;
}

.blog-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    color: #fff;
    margin: 0 0 20px 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-weight: 700;
}

.blog-date::after {
    content: "•";
    margin: 0 8px;
}

/* Main Content Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-bottom: 60px;
}

/* Article Content */
.blog-article {
    background: var(--card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.blog-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
}

.blog-content {
    font-size: 1.1rem;
}

.blog-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin: 30px 0 20px;

    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.blog-content h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.blog-content h3 {

    font-size: 1.4rem;
    margin: 25px 0 15px;

    /* position: relative; */
    padding-left: 15px;
}

.blog-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.blog-content p {
    margin-bottom: 20px;
    color: #333;
}

.blog-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
    list-style: none;
    /* Hide default bullets */
}

.blog-content ol {
    padding-left: 35px;
    margin-bottom: 20px;
}

.blog-content li {
    margin-bottom: 10px;
    position: relative;
}

.blog-content ul li {
    padding-left: 25px;
}

.blog-content ol li {
    padding-left: 5px;
    list-style: decimal;
    /* Ensure numbers show for ordered lists */
}



.blog-content a {
    text-decoration: none;
    color: #b6483d;
}

.blog-content ul li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Ensure ordered lists don't have the tick */
.blog-content ol li::before {
    content: none;
}


.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    margin: 30px 0;
    background: rgba(255, 107, 74, 0.03);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #555;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.blog-content blockquote::before {
    content: "" ";
 position absolute;
    top: -20px;
    left: 10px;
    font-size: 5rem;
    color: rgba(255, 107, 74, 0.1);
    font-family: Georgia, serif;
}

.blog-content blockquote p {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.blog-content cite {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--primary);
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-tag {
    padding: 6px 14px;
    background: rgba(255, 107, 74, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.blog-tag:hover::before {
    left: 100%;
}

.blog-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.2);
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
}

.sidebar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);

    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.recent-post:hover {
    background: rgba(245, 179, 59, 0.05);
    transform: translateX(5px);
}

.recent-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recent-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-title {
    font-weight: 700;
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--dark);
    transition: color 0.3s ease;
}

.recent-post:hover .recent-title {
    color: var(--primary);
}

.recent-meta {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Categories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.category-link::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-link:hover::before {
    opacity: 1;
}

.category-link:hover {
    color: var(--primary);
    padding-left: 20px;
}

.category-count {
    background: rgba(255, 107, 74, 0.1);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.1);
}

.newsletter-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 26px rgba(255, 107, 74, 0.12);
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 74, 0.2);
}

.newsletter-btn:active {
    transform: translateY(0);
}

/* Social Share */
.social-share {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.share-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1da1f2;
}

.share-pinterest {
    background: #bd081c;
}

.share-linkedin {
    background: #0077b5;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(180deg, rgba(249, 250, 252, 0.7), rgba(249, 250, 252, 1));
    border-radius: var(--radius);
}

.related-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 30px 0;
    text-align: center;
    /* color: var(--dark); */
    position: relative;
}

.related-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(.2, .9, .2, 1);
    position: relative;
}

.related-post:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 20, 25, 0.12);
}

.related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-post:hover .related-img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 107, 74, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-title-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.related-title-link:hover {
    color: var(--primary);
}

.related-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.related-read {
    display: inline-block;
    padding: 8px 15px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 26px rgba(255, 107, 74, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-read::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.related-read:hover::before {
    left: 100%;
}

.related-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 74, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 74, 0);
    }
}

/* Premium Elements */
.premium-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.3);
    z-index: 3;
    animation: pulse 2s infinite;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 179, 59, 0.2);
    color: #d4a017;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 74, 0.1);
    z-index: 0;
}

.floating-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    animation: float 8s infinite ease-in-out;
}

.floating-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 5%;
    animation: float 6s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Decorative Elements */
.decorative-line {
    position: absolute;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transform-origin: left;
}

.line-1 {
    width: 60px;
    top: 30px;
    left: 30px;
    transform: rotate(45deg);
}

.line-2 {
    width: 40px;
    bottom: 30px;
    right: 30px;
    transform: rotate(-30deg);
}

/* Premium Card Effects */
.premium-card {
    position: relative;
    overflow: hidden;
}

.premium-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.premium-card:hover::after {
    opacity: 1;
    animation: shine 1.5s;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-hero {
        padding: 60px 20px;
        min-height: 400px;
    }

    .blog-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 25px 15px;
        min-height: 220px;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-article {
        padding: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-date::after {
        content: none;
    }

    /* Table Responsiveness */
    .blog-content table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        border-collapse: collapse;
    }

    .blog-content td,
    .blog-content th {
        width: auto !important;
        min-width: 120px;
        padding: 10px !important;
    }

    .blog-content img {
        height: auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .blog-hero {
        padding: 15px 10px;
        min-height: 140px;
        margin-bottom: 15px;
        text-align: center;
        /* Center for attraction */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .blog-hero-content {
        margin: 0 auto;
    }

    .blog-title {
        font-size: 1rem !important;
        line-height: 1.2;
        margin-bottom: 8px;
        font-weight: 800;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .blog-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px !important;
        font-size: 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        padding: 10px;
        border-radius: 12px;
    }

    .blog-content h1,
    .blog-content h2 {
        font-size: 1.2rem !important;
        line-height: 1.4;
        /* color: var(--dark); */
        margin: 25px 0 15px;
        text-transform: none;
        /* Make it more natural */
    }

    .blog-article {
        padding: 12px !important;
        border-radius: 15px;
        margin-bottom: 30px;
    }

    /* Full-width image effect */
    .blog-content img {
        margin: -12px -12px 20px -12px !important;
        width: calc(100% + 24px) !important;
        max-width: none !important;
        border-radius: 15px 15px 0 0 !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .author-info {
        flex-direction: row;
        justify-content: center;
    }

    .blog-date::after {
        content: "•";
        display: inline;
    }
}

.dots {
    list-style: none;

}