/* 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;
}

.post-card {
    cursor: pointer;
}

/* 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: linear-gradient(
      180deg,
      #e8f0ff 0%,
      #dce9ff 100%
    );
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.46);
}
/* remove last border */
.sidebar li:last-child{
    border-bottom: none;
    padding-bottom: 0;

}

.sidebar a {

    color: #444;

    text-decoration: none;

    display: block;

    transition: 0.3s;

    line-height: 1.5;

}

.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;
}

.navbar-brand {
    font-size: 1.5rem; /* Slightly larger brand text */
    font-weight: 600; /* Bold brand text */
    color: #007bff; /* Matching color scheme */
    
}
/* ================= 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;
}

/* ================= RECENT POSTS ================= */

.recent-post-card{

    display:block;

    background:#fff;

    border:1px solid rgba(0,0,0,0.66);

    border-radius:16px;

    overflow:hidden;

    margin-bottom:16px;

    transition:0.35s ease;

    text-decoration:none;

    box-shadow:0 4px 14px rgba(0,0,0,0.43);

}

.recent-post-card:hover{

    transform:translateY(-4px);

    box-shadow:0 14px 34px rgba(13,110,253,0.14);

    border-color:rgba(13,110,253,0.22);

}

/* IMAGE */

.recent-post-thumb{

    width:100%;

    height:auto;

    overflow:hidden;

    position:relative;

}

/* subtle overlay */

.recent-post-thumb::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
      to bottom,
      rgba(0,0,0,0.04),
      rgba(0,0,0,0.18)
    );

}

.recent-post-thumb img{

    width:100%;
    height:auto;

    object-fit:cover;

    transition:0.5s ease;

}

.recent-post-card:hover img{

    transform:scale(1.06);

}

/* CONTENT */

.recent-post-content{

    padding:16px 18px;

    border-top:1px solid rgba(0,0,0,0.08);

    background:
    linear-gradient(
      to bottom,
      rgba(248,250,255,0.7),
      #fff
    );

}

/* TITLE */

.recent-post-content h6{

    font-size:16px;

    font-weight:700;

    line-height:1.5;

    margin:0;

    color:#1e293b;

    transition:0.3s ease;

}

.recent-post-card:hover h6{

    color:#0d6efd;

}

/* ================= PREMIUM TRENDING ================= */

.premium-trending-item{

    padding:14px 0;

    border-bottom:1px solid rgba(0,0,0,0.08);

    transition:0.3s ease;

}

.premium-trending-item:last-child{

    border-bottom:none;

    padding-bottom:0;

}

.premium-trending-item:hover{

    transform:translateX(4px);

}

.premium-trending-item a{

    display:flex;

    gap:12px;

    align-items:flex-start;

    text-decoration:none;

}

.trend-arrow{

    color:#0d6efd;

    font-size:18px;

    font-weight:700;

    line-height:1.4;

    flex-shrink:0;

    transition:0.3s ease;

}

.trend-title{

    color:#222;

    font-size:14px;

    line-height:1.6;

    transition:0.3s ease;

}

.premium-trending-item:hover .trend-title{

    color:#0d6efd;

}

.premium-trending-item:hover .trend-arrow{

    transform:translateX(3px);

}

    /* footer start */
        footer {
            background-color: #0d6efd;
            color: #FFFFFF;
        }
        footer a {
            color: #FFFFFF;
            text-decoration: underline;
        }

/* footer end */

/*Tooltip */

    .tooltip.custom-tooltip .tooltip-inner {
            background-color: yellow !important;
            color: red !important;
            font-weight: 600;
        }

        .tooltip.custom-tooltip .tooltip-arrow::before {
            border-bottom-color: yellow !important;
        }

        .tooltip.red-tooltip .tooltip-inner {
            background-color: red !important;
            color: white !important;
        }

        .tooltip.red-tooltip .tooltip-arrow::before {
            border-bottom-color: red !important;
        }
        .tooltip.blue-tooltip .tooltip-inner {
            background-color: #0d6efd !important;
            color: white !important;
        }

        .tooltip.blue-tooltip .tooltip-arrow::before {
            border-bottom-color: #0d6efd !important;
        }
         .tooltip.by-tooltip .tooltip-inner {
            background-color: black !important;
            color: yellow !important;
        }

        .tooltip.by-tooltip .tooltip-arrow::before {
            border-bottom-color: #0d6efd !important;
        }

/*Nabar*/

    /* nav */

.navbar-nav .nav-item {
    margin: 0 5px; /* Increased spacing between menu items */
   
}
.navbar-nav .nav-link {
    font-size: 0.8rem; /* Smaller font size */
    padding: 6px 10px; /* Adjusted padding for compactness */
    color: #333; /* Darker color for better readability */
    transition: color 0.3s ease, transform 0.2s ease; /* Smooth hover effects */
     
}


.navbar-nav .nav-link:hover {
    color: #007bff; /* Bootstrap primary color for hover */
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

.navbar-brand {
    font-size: 1.5rem; /* Slightly larger brand text */
    font-weight: 600; /* Bold brand text */
    color: #007bff; /* Matching color scheme */
    
}

.navbar {
    /* Light background for the navbar */
    background-color: #0d6efd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

@media (max-width: 992px) {
    .navbar-nav .nav-item {
        margin: 10px 0; /* Vertical spacing for collapsed menu */
    }
}
.navbar-brand, .nav-link {
     color: white !important; 
    /* border: 1px solid white; */
   
}

.nav-link:hover {
     background-color: #1e40af; 
     border-radius: 5px; 
    }
  
    /* new navbar for nested dropdown */
    
    /* Nav end */

.navbar{
    background:#0d6efd !important;
}

.navbar .navbar-brand,
.navbar .nav-link{
    color:#fff !important;
}