/* ===== Base Container ===== */
.container {
    font-family: 'poppins';
    margin-top: -20px;
}

.blog-hero{
    background: linear-gradient(90deg, #071a3c, #380d0d);
    color:#fff;
    padding:50px 135px;
    margin-top: -38px;
}

.blog-hero h1{
  font-size: 36px;
  font-weight: 400;
  color: #ffffff;
  margin:2px 0;
}

/* Tablet */
@media (max-width: 992px) {
  .blog-hero {
    padding: 50px 30px;   /* Tablet */
  }
  
  .blog-hero h1{
    font-size: 22px;     /* Tablet */
  }
}

/* Mobile */
@media (max-width: 576px) {
  .blog-hero {
    padding: 50px 30px;   /* Mobile */
  }
  
  .blog-hero h1{
    font-size: 22px;     /* Tablet */
  }
}

.blog-hero p{
  padding-top: 5px;
  max-width:80%;
  color: #ffffff;
  opacity:.9;
  line-height:1.2;
}

.blog-hero .tag {
  font-size:18px;
  color:#FF0000;
  font-weight: 500;
  line-height: 0px;
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 150px;
}

/* ===== Blog Card ===== */
.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* ===== BLOG DATE RIGHT SIDE ===== */
.blog-date {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    font-style: italic;
    margin-right: 5px;
}

/* ===== Image ===== */
.blog-card-img {
    width: 100%;
    aspect-ratio: 5 / 3;
    background-size: cover;
    background-position: center;
}

/* ===== Card Body ===== */
.blog-card-body {
    padding: 18px;
}

.blog-subject {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c63ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    margin-top: 6px;
}

.blog-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* ============================= */
/* ===== MOBILE OPTIMIZATION ===== */
/* ============================= */

@media (max-width: 992px) {
    .container {
        margin: 0 50px;
    }

    h2 {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    .blog-card-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 25px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    }

    .blog-card-img {
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-subject {
        font-size: 0.8rem;
    }

    .blog-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .blog-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0 12px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .blog-card {
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    .blog-card-img {
        height: 200px;
    }

    .blog-card-body {
        padding: 14px;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-desc {
        font-size: 0.88rem;
        line-height: 1.45;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-date {
        text-align: right;
        margin-top: 3px;
        margin-right: 0;
        font-size: 0.85rem;
    }
}