/* =============================
   FILE: assets/css/blog.css
   FUTURISTIC PREMIUM UPGRADE – CLEANED & FIXED
   ============================= */

/* ----- Blog Container ----- */
.blog-single {
    position: relative;
    background: linear-gradient(135deg, #fdfdfd 0%, #f4f6f7 100%);
    padding: 120px 0;
}

/* Subtle abstract shape */
.blog-single::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.1), transparent);
    z-index: -1;
    border-radius: 50%;
}

/* Content wrapper */
.reading-width {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Blog Header ----- */
.blog-back {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #040505;
}

.blog-title {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
    margin: 32px 0 16px;
    letter-spacing: -0.02em;
    color: #0A3328;
}

.blog-accent {
    width: 60px;
    height: 3px;
    background: #D4AF37;
    margin-bottom: 32px;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #0D1F1A;
    margin-bottom: 48px;
}

/* ----- Featured Image ----- */
.blog-featured {
    position: relative;
    margin-bottom: 48px;
}

.blog-featured img {
    width: 100%;
    border-radius: 18px;
    max-height: 450px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-featured img:hover {
    transform: scale(1.02);
}

.blog-featured::after {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 70%);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

/* ----- Blog Content ----- */
.blog-content {
    font-size: 18px;
    line-height: 1.85;
    color: #0B2E23; /* Visible dark color */
}

.blog-content p,
.blog-content li,
.blog-content blockquote,
.blog-content code {
    color: #0B2E23;
    margin-bottom: 28px;
}

.blog-content p:hover {
    color: #0D1F1A;
    transform: translateY(-2px);
}

.blog-content a {
    position: relative;
    color: #145C45;
    text-decoration: none;
    transition: color 0.35s ease;
}

.blog-content a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.35s ease;
}

.blog-content a:hover {
    color: #D4AF37;
}

.blog-content a:hover::after {
    width: 100%;
}

.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    font-weight: 600;
    color: #0A3328;
}

.blog-content h2 {
    font-size: 28px;
    margin: 64px 0 16px;
}

.blog-content ul {
    padding-left: 20px;
    margin-bottom: 32px;
}

.blog-content li {
    margin-bottom: 12px;
}

.blog-content blockquote {
    border-left: 4px solid #D4AF37;
    padding: 16px 24px;
    font-style: italic;
    color: #111827;
    background: rgba(212,175,55,0.05);
    margin: 32px 0;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(212,175,55,0.2);
}

.blog-content code {
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 90%;
}

/* ----- Blog Tags ----- */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 16px 0 24px;
}

.blog-tag {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0D1F1A, #145C45);
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.blog-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.25);
    color: #fff;
}

/* ----- Related Posts ----- */
.related-posts {
    margin-top: 96px;
}

.related-posts h3 {
    font-size: 22px;
    margin-bottom: 32px;
    font-weight: 600;
    color: #0A3328;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.related-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    background: #ffffff;
    cursor: pointer;
    opacity: 1; /* Make visible immediately */
    transform: translateY(0);
    border: 1px solid rgba(212,175,55,0.1);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-card h4 {
    font-size: 16px;
    line-height: 1.4;
    padding: 16px;
    color: #0D1F1A;
}

.related-meta {
    font-size: 13px;
    color: #0D1F1A;
    padding: 0 16px 16px;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08), 0 0 12px rgba(212,175,55,0.25);
    border: 1px solid rgba(212,175,55,0.25);
}

.related-card:hover h4 {
    color: #D4AF37;
}

/* ----- Buttons ----- */
.blog-btn {
    padding: 16px 32px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

/* Outline button */
.btn-outline {
    border: 2px solid #D4AF37;
    color: #0D1F1A;
    background: transparent;
}

.btn-outline:hover {
    background: #D4AF37;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.35);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #0D1F1A, #145C45);
    color: #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25), 0 0 12px rgba(212,175,55,0.4);
}

/* ----- Author ----- */
.blog-author {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 64px;
}

.blog-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-author p {
    margin: 0;
    font-size: 14px;
    color: #0D1F1A;
}

/* ----- Fade-in Animation ----- */
.fade-in {
    opacity: 1 !important; /* Ensure visibility */
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
}

/* ----- Responsive Typography ----- */
@media (min-width: 1024px) {
    .blog-title { font-size: 48px; }
    .blog-content p { font-size: 20px; line-height: 2; }
}
.blog-content ul {
    padding-left: 40px;           /* give enough space for bullets */
    margin-bottom: 32px;
    list-style-type: disc;        /* ensure bullets show */
    color: #0B2E23;               /* bullets inherit dark color */
}

.blog-content li {
    margin-bottom: 12px;
    position: relative;
}

/* Optional: make bullets more visible and styled */
.blog-content li::marker {
    color: #D4AF37;               /* gold bullets */
    font-size: 1em;
}
/* ==============================
   FUTURISTIC SHIMMER BULLETS
   ============================== */

.blog-content ul {
    padding-left: 28px; /* space for custom bullets */
}

.blog-content li {
    margin-bottom: 16px;
    position: relative;
    line-height: 1.85;
    transition: transform 0.3s ease;
}

/* Custom shimmering bullet */
.blog-content li::before {
    content: '●';
    position: absolute;
    left: -1.4em;
    top: 0;
    font-size: 1em;
    color: #D4AF37; /* gold base */
    text-shadow: 0 0 4px rgba(212,175,55,0.6), 0 0 8px rgba(212,175,55,0.3);
    animation: shimmer-bullet 2s infinite alternate;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect for list item */
.blog-content li:hover {
    transform: translateX(4px);
}

.blog-content li:hover::before {
    color: #FFC700; /* brighter gold on hover */
    transform: scale(1.2);
    text-shadow: 0 0 6px rgba(255,215,0,0.8), 0 0 12px rgba(255,215,0,0.4);
}

/* Shimmer animation */
@keyframes shimmer-bullet {
    0% { color: #D4AF37; text-shadow: 0 0 4px rgba(212,175,55,0.6), 0 0 8px rgba(212,175,55,0.3); }
    50% { color: #FFC700; text-shadow: 0 0 6px rgba(255,215,0,0.8), 0 0 12px rgba(255,215,0,0.4); }
    100% { color: #D4AF37; text-shadow: 0 0 4px rgba(212,175,55,0.6), 0 0 8px rgba(212,175,55,0.3); }
}
/* ==============================
   FUTURISTIC SHIMMER NUMBERED LIST
   ============================== */

.blog-content ol {
    padding-left: 36px; /* space for numbers */
}

.blog-content ol li {
    margin-bottom: 16px;
    position: relative;
    line-height: 1.85;
    counter-increment: item;
    transition: transform 0.3s ease;
}

/* Custom shimmering number */
.blog-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: -2em;
    top: 0;
    font-weight: 600;
    font-size: 1em;
    color: #D4AF37; /* gold base */
    text-shadow: 0 0 4px rgba(212,175,55,0.6), 0 0 8px rgba(212,175,55,0.3);
    animation: shimmer-number 2s infinite alternate;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect for numbered list item */
.blog-content ol li:hover {
    transform: translateX(4px);
}

.blog-content ol li:hover::before {
    color: #FFC700; /* brighter gold on hover */
    transform: scale(1.2);
    text-shadow: 0 0 6px rgba(255,215,0,0.8), 0 0 12px rgba(255,215,0,0.4);
}

/* Shimmer animation */
@keyframes shimmer-number {
    0% { color: #D4AF37; text-shadow: 0 0 4px rgba(212,175,55,0.6), 0 0 8px rgba(212,175,55,0.3); }
    50% { color: #FFC700; text-shadow: 0 0 6px rgba(255,215,0,0.8), 0 0 12px rgba(255,215,0,0.4); }
    100% { color: #D4AF37; text-shadow: 0 0 4px rgba(212,175,55,0.6), 0 0 8px rgba(212,175,55,0.3); }
}
/* All internal links */
.blog-content a[href^="/"] {
    color: #145C45;       /* Brand color */
    font-weight: 600;
    text-decoration: underline;
}

.blog-content a[href^="/"]:hover {
    color: #1E7A60;       /* Slightly darker on hover */
}
/* Blog links */
.blog-content a[href^="/blog/"] {
    color: #0A3328;
}

/* Service links */
.blog-content a[href^="/service/"] {
    color: #145C45;
}
.blog-content a[href^="/"]:hover {
    text-decoration: underline;
    transition: 0.2s;
}
