/* BASE */
:root{

    /* BACKGROUNDS */
    --bg-main:#f4f8ff;
    --bg-soft:#ffffff;
    --bg-section:#edf4ff;

    /* PRIMARY */
    --primary:#1a73e8;
    --primary-light:#4285F4;
    --primary-dark:#174ea6;

    /* ACCENT */
    --accent:#FBBC05;
    --accent-dark:#e2a800;

    /* EXTRA */
    --green:#34A853;
    --red:#EA4335;
    --primary-pale:#D2E3FC;

    /* TEXT */
    --text:#374151;
    --muted:#6b7280;
    --dark:#111827;

    /* BASE */
    --white:#ffffff;
    --border:#d6e4ff;
}
.blog-theme {
    background: var(--bg-section);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
}

/* ================= HERO ================= */
.blog-theme .hero {
    background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-light)
    );
    border-radius: 16px;
    padding: 40px;
}

/* ================= SECTION TITLE ================= */
.section-title1 {
      color: var(--dark) !important;

    opacity: 1 !important;

    visibility: visible !important;
    position: relative;
    font-weight: 600;
    margin-bottom: 20px;
    
}

.section-title1::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: -6px;
}

/* FEATURED CARD UPGRADE */
.featured-card {
    border-radius: 18px;
    overflow: hidden;
    border: none;
    transition: 0.4s;
}

.featured-card img {
    height: 260px;
    object-fit: cover;
    transition: 0.5s;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* ================= NORMAL POSTS ================= */
/* NORMAL POSTS - STRONGER CARD STYLE */
/* ================= INSANE POST CARDS ================= */
/* FADE IN EFFECT */
.post-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.post-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.35s ease;
}

/* GRADIENT EDGE GLOW */
.post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent),
    transparent
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.3s;
}

/* IMAGE */
.post-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* IMAGE OVERLAY */
.post-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 180px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
    opacity: 0;
    transition: 0.4s;
}

/* HOVER MAGIC */
.post-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 50px rgba(26,115,232,0.42);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover img {
    transform: scale(1.08);
}

.post-card:hover::after {
    opacity: 1;
}

/* TEXT */
.post-card h5 {
    font-weight: 600;
    transition: 0.3s;
}

.post-card:hover h5 {
    color: var(--primary);
}

.post-card {
    cursor: pointer;
}

/* READ MORE */
.read-more {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

.read-more::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

.read-more:hover::after {
    width: 100%;
}
/* ================= TEXT ================= */
.blog-theme h3 {
    font-weight: 700;
}

.blog-theme h5 {
    font-weight: 600;
}

.blog-theme .text-muted,
.blog-theme .text-muted * {
    color: var(--muted) !important;
    font-size: 14px;
    line-height: 1.6;
}


/* ================= BADGES ================= */
.blog-theme .badge {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 20px;
}


/* ================= SIDEBAR ================= */
.sidebar {
    background: var(--white);
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: var(--text);
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* ================= PAGINATION ================= */
.blog-theme .pagination a {
    border-radius: 10px !important;
    padding: 6px 12px;
}

.blog-theme .pagination .active {
    background: var(--primary);
    color: #fff !important;
}

/* ================= CONTENT BOX ================= */
.content-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.blog-theme .col-md-6 {
    margin-bottom: 10px;
}

.featured-card .card-body {
    padding: 20px;
}

.featured-card h3 {
    font-size: 26px;
    font-weight: 700;
}

.blog-theme .hero h1 {
    font-size: 36px;
    font-weight: 700;
}


/* ================= STICKY SIDEBAR ================= */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

/* ================= HERO UPGRADE ================= */
.blog-theme .hero {
    background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary)
    );
    border-radius: 18px;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.blog-theme .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.blog-theme .hero h1, .hero p {
    position: relative;
}


/* RELATED POSTS PREMIUM */

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* CARD */
.related-card {
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* IMAGE WRAPPER */
.related-img-wrap {
    position: relative;
    overflow: hidden;
}

/* IMAGE */
.related-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* IMAGE ZOOM */
.related-card:hover .related-img {
    transform: scale(1.08);
}

/* GRADIENT OVERLAY */
.related-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* CATEGORY BADGE */
.related-category {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* READING TIME */
.related-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    padding: 3px 8px;
    border-radius: 10px;
}

/* TITLE */
.related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin: 8px 0;
    line-height: 1.4;
}
/* PREMIUM BLUE THEME IMPROVEMENTS */

.post-card,
.related-card,
.sidebar,
.content-box,
.featured-card{

    border: 1px solid rgba(66,133,244,0.08);

    box-shadow:
      0 8px 30px rgba(66,133,244,0.06);
}

/* HOVER */
.post-card:hover,
.related-card:hover,
.featured-card:hover{

    box-shadow:
      0 18px 45px rgba(66,133,244,0.16);
}

/* BETTER TEXT */
.blog-theme{

    color: var(--text);

    background: linear-gradient(
      180deg,
      var(--bg-main),
      #ffffff
    );
}

/* LINKS */
.blog-theme a{

    transition: all 0.25s ease;
}

.blog-theme a:hover{

    color: var(--primary);
}

/* =========================================
   BLOG / POST PAGE HEADING FIX
========================================= */

.sidebar h3,
.sidebar h4,
.sidebar h5,
.sidebar h6,
.sidebar-card h3,
.sidebar-card h4,
.sidebar-card h5,
.sidebar-card h6,
.related-posts h3,
.related-posts h4,
.related-posts h5,
.related-posts h6{

    color: var(--dark) !important;

    opacity: 1 !important;

    visibility: visible !important;
}

/* POST PAGE TITLES */

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6{

    color: var(--dark) !important;
}