/* Blog Page Styles */
.blog-header {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 80px 0;
}

.blog-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-content {
    padding: 60px 0;
}

/* Featured Post Styles */
.featured-post {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.featured-post:hover {
    transform: translateY(-5px);
}

.featured-post img {
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.featured-post .card-body {
    padding: 2rem;
}

/* Blog Grid Cards */
.blog-card {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card .card-footer {
    padding: 1rem 1.5rem;
}

/* Category Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Author Section */
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar.small {
    width: 32px;
    height: 32px;
}

/* Newsletter Section */


.newsletter h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter .form-control {
    min-width: 300px;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    color: var(--bs-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-post img {
        min-height: 300px;
    }
    
    .newsletter .form-control {
        min-width: auto;
    }
    
    .blog-card .card-img-top {
        height: 180px;
    }
}

/* Base avatar */
.avatar{
  --size:48px;            /* default */
  width:var(--size);
  height:var(--size);
  border-radius:50%;      /* perfect circle */
  overflow:hidden;        /* crop inside */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f1f5f9;     /* light fallback bg */
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;       /* fill nicely without stretch */
}

/* Size helpers */
.avatar-40{ --size:40px; }
.avatar-48{ --size:48px; }
.avatar-56{ --size:56px; }
.avatar-64{ --size:64px; }

/* Optional: clean border + soft shadow */
.avatar{
  border:2px solid #e2e8f0;
  box-shadow:0 2px 10px rgba(15,23,42,.08);
}

/* Optional: gradient ring (brand accent) */
.avatar-ring{
  padding:2px;                        /* ring thickness */
  background:
    conic-gradient(from 0deg,
      #0ea5e9, #38bdf8, #0ea5e9);     /* your brand shades */
}
.avatar-ring img{
  border-radius:50%;
  background:#fff;                    /* inner backdrop */
}
/* Pagination Styling */
.pagination {
  gap: 8px; /* spacing between buttons */
}

.pagination .page-link {
  border-radius: 8px;          /* smooth rounded corners */
  border: 1px solid #e2e8f0;   /* light border */
  color: #0369a1;              /* brand text color */
  font-weight: 500;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background-color: #f0f9ff;   /* light brand hover */
  color: #0284c7;
}

.pagination .page-item.active .page-link {
  background-color: #0ea5e9;   /* active brand color */
  border-color: #0ea5e9;
  color: #fff;
  font-weight: 600;
}

.pagination .page-item.disabled .page-link {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}
.blog-header {
  background: url(../images/blog/bg-trading.jpg) center / cover no-repeat;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.blog-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,140,197,0.85), rgba(8,157,221,0.85));
  z-index: 1;
}

.blog-header .container {
  position: relative;
  z-index: 2;
}



.blog-header h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
}

.blog-header p {
  font-size: 18px;
  color: #e2e8f0;
}

