
.blog-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.main-featured .blog-img-wrapper img {
    min-height: 450px;
}

.blog-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    color: #2d2d2d;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-family: "Cocogoose Pro";
    font-weight: 300;
}

.subscribe-box {
    background-color: #1a1e4d;
    border-radius: 12px;
}

.subscribe-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.blog-categories .nav-link {
    color: #2d2d2d;
    background: #f8f9fa;
    margin-right: 10px;
    border-radius: 5px;
}

.blog-categories .nav-link.active {
    background-color: #f1f2f6;
    color: #1a1e4d;
    font-weight: normal;
}

/* Grid Card */
.blog-grid-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.blog-grid-card h2, .blog-grid-card h3, .blog-grid-card h4, .blog-grid-card h5, .blog-grid-card h6, .blog-grid-card p  { font-weight:300; }
.blog-grid-card:hover {
    transform: translateY(-5px);
}

.badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 300;
    color: #1a1e4d;

}

/* New CSS */

.blog-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.large-blog {
    max-height: 450px;
}

.medium-blog {
    max-height: 400px;
}

.subscribe-card {
    height: 400px;
}.subscribe-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: end;
}

h2.section-title { font-weight:300; }
h2.section-title {
    color: #2c2c7c;
}
ul.nav.nav-pills.blog-categories li.nav-item a {
    font-weight: 300;
    background: none;
}
ul.nav.nav-pills.blog-categories li.nav-item a.nav-link.active {
    background: #f7f7f7;
    border-radius: 50px;
}
input#searchInput {
    border-radius: 50px;
}
div#blog-grid h5.card-title {
    font-size: 16px;
    line-height: 26px;
}
div#blog-grid .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 10px;
}

ul.pagination li.page-item.active span {
    color: #2c2c7c !important;
    border: none;
    background: transparent;
    font-weight: 300;

}
ul.pagination a.page-link {
    color: #2d2d2d;
    border: none;
    background: transparent;
    font-weight: 300;
}
form.subscribe-form {
    border: 1px solid #fff;
    padding: 5px;
}
input[placeholder], [placeholder], *[placeholder] {
    color: #fff !important;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    padding: 25px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.badge-category {
    background: #fff;
    color: #2c2c7c;
    padding: 9px 12px 6px;
    border-radius: 20px;
    font-size: 12px;
    width: max-content;
    font-family: "Cocogoose Pro";
    font-weight: 300;

}

.blog-grid-card {
    padding: 0;
}
.blog-grid-card img.card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center center;
}
.blog-text {
    margin-top: auto;
}

.blog-text h2,
.blog-text h5 {
    font-size: 18px;
    font-weight: normal;
    color: #fff;
    margin: 0;
    font-weight: 300;
}

.blog-text h5 {
    font-size: 18px;
}

.blog-date {
    font-size: 13px;
    margin-bottom: 15px;
    display: block;
    color: #fff;
    font-weight: 300;
}

.blog-text h2 {
    padding-bottom: 10px;
    width: 30%;
    line-height: 32px;
}
.subscribe-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscribe-form .form-control:focus, .subscribe-form input {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: #fff;
}

.subscribe-btn {
    background: #4c5cff;
    color: #fff;
    border: none;
    padding: 10px 20px;
}
/* blog details */

.category-badge {
    color: #ef6145;
    border: 1px solid #ef6145;
    padding: 3px 20px;
    border-radius: 25px;
    font-size: 13px;
    display: inline-block;
    font-weight: 300;
}
.main-blog-image {
    border-radius: 6px;
    overflow: hidden;
}
.main-title {
    font-size: 22px;
    font-weight: normal;
    color: #2d2d2d;
    line-height: 32px;
    font-weight: 300;
}
.long-description p strong, .long-description h1, .long-description h2, .long-description h3, .long-description h4, .long-description h5, .long-description h6 { font-weight:400;     margin: auto;
}
.long-description p, li, ul, ol, a, span {
    font-weight: 300;
    margin: auto;
    color: #2d2d2d;
}
.section-heading {
    font-size: 18px;
    font-weight: normal;
    color: #2d2d2d;
    margin-bottom: 20px;
}

.article-text p {
    font-size: 16px;
    color: #2d2d2d;
    line-height: 24px;
    margin-bottom: 20px;
}

/* Sidebar Styling */
.sidebar-title {
    font-size: 22px;
    font-weight: normal;
    color: #2d2d2d;
    font-weight: 300;
}
.mini-blog-card {
    border-radius: 4px;
    border: 1px solid #3e3e3e;
    overflow: hidden;
}

.mini-thumb img {
    width: 90px;
    height: 70px;
    object-fit: cover;
}
.mini-content a {
    text-decoration: none;
    color: #2d2d2d;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 22px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
/* Sidebar Subscribe Card */
.sidebar-subscribe-card {
    background: url('<?= base_url("assets/images/blogs/Subscribe.png") ?>') no-repeat center center;
    background-size: cover;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    height: 230px;
}

.sidebar-subscribe-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* Dark overlay */
}

.subscribe-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    padding: 20px;
}

.subscribe-inner h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 300;
}

.subscribe-inner p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.subscribe-input-group {
    display: flex;
    gap: 10px;
}

.subscribe-input-group input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 14px;
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
}

.subscribe-input-group input::placeholder {
    color: #ddd;
}

.subscribe-btn {
    background-color: #1a1e4d; /* Navy Blue */
    color: #fff;
    border: none;
    padding: 6px 6px;
    font-weight: normal;
    border-radius: 4px;
    cursor: pointer;
}
.subscribe-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
    color: #fff;
}

/* Blog Details */

@media(max-width: 991.9px){
    .blog-text h2 { width:100%; }
   .subscribe-card, .medium-blog {
    max-height: 300px;
}
.large-blog {
    max-height: 350px;
}
}