/* BASE */
body {
    background: #f4f8fb;
    font-family: 'Segoe UI', sans-serif;
}

/* ================= NAVBAR (UNCHANGED CORE) ================= */
.navbar {
    background: linear-gradient(90deg, #0d6efd, #3b82f6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    color: #fff !important;
}

.nav-link:hover {
    color: #dbeafe !important;
}

.nav-link.active {
    border-bottom: 2px solid #fff;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    border: none;
}

/* Search */
form input {
    border-radius: 20px;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #111, #0d6efd);
    border-radius: 16px;
    padding: 40px;
}

/* ================= SECTION TITLE ================= */
.section-title {
    position: relative;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #0d6efd;
    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: #fff;
    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, #0d6efd, #3b82f6, 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(13,110,253,0.15);
}

.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: #0d6efd;
}

/* READ MORE */
.read-more {
    text-decoration: none;
    font-weight: 500;
    color: #0d6efd;
    position: relative;
}

.read-more::after {
    content: "";
    width: 0;
    height: 2px;
    background: #0d6efd;
    position: absolute;
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

.read-more:hover::after {
    width: 100%;
}
/* ================= TEXT ================= */
h3 {
    font-weight: 700;
}

h5 {
    font-weight: 600;
}

.text-muted {
    font-size: 14px;
    line-height: 1.6;
}

/* ================= BADGES ================= */
.badge {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 20px;
}


/* ================= SIDEBAR ================= */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: #444;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #0d6efd;
    transform: translateX(5px);
}

/* ================= PAGINATION ================= */
.pagination a {
    border-radius: 10px !important;
    padding: 6px 12px;
}

.pagination .active {
    background: #0d6efd;
    color: #fff !important;
}

/* ================= CONTENT BOX ================= */
.content-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.col-md-6 {
    margin-bottom: 10px;
}

.featured-card .card-body {
    padding: 20px;
}

.featured-card h3 {
    font-size: 26px;
    font-weight: 700;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
}

/* ================= NAVBAR UPGRADE ================= */
.navbar {
    background: linear-gradient(90deg, #0a58ca, #2563eb);
    box-shadow: 0 2px 16px rgba(13,110,253,0.18);
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}

.nav-search-form input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px !important;
    color: #fff;
    font-size: 12px;
    padding: 5px 14px;
    width: 160px;
    transition: 0.3s;
}

.nav-search-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.nav-search-form input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: none;
    color: #fff;
    width: 200px;
    outline: none;
}

.btn-nav-search {
    background: #fff;
    color: #1d4ed8;
    border-radius: 16px !important;
    font-weight: 600;
    font-size: 11px;
    padding: 4px 12px;
    border: none;
    transition: 0.2s;
}

.btn-nav-search:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.dropdown-menu {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-top: 8px !important;
}

.dropdown-item {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 2px 4px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* ================= STICKY SIDEBAR ================= */
.sticky-sidebar {
    position: sticky;
    top: 80px;
}

/* ================= HERO UPGRADE ================= */
.hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    border-radius: 18px;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.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: #fff;
    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: #222;
    margin: 8px 0;
    line-height: 1.4;
}