body {
    font-family: 'Segoe UI', sans-serif;
    background-color: hsl(20, 20%, 98%);
}

:root {
    --primary-color: #4F0709;
    --secondary-color: hsl(15, 15%, 88%);
    --subitile-color: hsl(0, 10%, 50%);
}

/* Header */
.navbar {
    background-color: #5a1f1f;
}

.navbar-nav {
    margin: 0 auto;
}

.nav-link {
    color: #fff !important;
    margin: 0 15px;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
}

.sub_title {
    color: var(--subitile-color) !important;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.175rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: #000;
    overflow: hidden;
}

/* Compact hero image height */
.hero .hero-img {
    width: 100%;
    height: 500px; /* compact height similar to old padding */
    object-fit: cover;
    display: block;
}

/* Content box styling */
.hero .content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    max-width: 600px;
    margin: auto;
    border-radius: 8px;

    /* Center the content over the image */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.1rem;
    color: #333;
    margin: 20px 0;
}

.btn-pink {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.btn-pink:hover {
    border-color: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Stats */
.stats {
    background: hsl(0 0% 100%);
    padding: 40px 0;
    text-align: center;
}

.stats h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #5a1f1f;
}

.stats p {
    margin: 0;
    color: #555;
}

/* Articles */
.articles {
    padding: 60px 0;
    background: hsl(15 15% 88%);
}

.article-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    overflow: visible;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.articles .col-md-4 {
    display: flex; /* Make columns flex containers so cards can stretch */
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px; /* same as image height */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.article-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.image-wrapper .badge-custom {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #8c3a3a;
    color: white;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 10px;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-card:hover h3 {
    color: var(--primary-color);
}
.article-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212574;

}
.article-card a{
    text-decoration: none !important;
}

.article-card .card-body {
    flex: 1; /* fill available vertical space */
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.article-card .short_description {
    flex-grow: 1; /* take remaining space */
    color: var(--subitile-color);
}

.meta-row {
    font-size: 0.85rem;
    color: #777;
}

.meta-item {
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--subitile-color);
}

.meta_stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--subitile-color);
}

.meta-row-top {
    margin-bottom: 0.5rem;
}

.meta-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read_more {
    background: var(--primary-color);
    text-decoration: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: auto; /* push to bottom */
    align-self: flex-start; /* align left */
}

.more_article_btn {
    padding: 12px 35px;
    font-size: 14px;
}

/* Why Choose Us */
.why-choose {
    background: #f7f4f1;
    padding: 60px 0;
}

.why-choose .icon {
    font-size: 2rem;
    color: #8c3a3a;
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter {
    background-color: #5a1f1f;
    color: white;
    padding: 50px 0;
}

/* Footer */
footer {
    background-color: #3c0e0e;
    color: white;
    padding: 40px 0;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 12px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.shadow {
    background: var(--primary-color);
}

.brand_name {
    color: #F3E0D9;
    font-weight: 700;
}

.brand_sub_title {
    color: #D7C4B5;
}

.nav_link {
    color: #F3E0D9;
    text-decoration: none;
}

.nav_link.active {
    border-bottom: 2px solid #D2A679
}

.subscribe_btn a{
    border-color: #F3E0D9;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 5px 10px;
    text-decoration: none;
}

.subscribe_btn:hover {
    color: var(--primary-color);
}

.newsletter .btn-light {
    color: var(--primary-color);
}

.contact-us-section {
    background-color: #f9f7f5;
    color: #3a1e1e;
}

.contact-us-section h2 {
    font-weight: 700;
    color: #5a1b1b;
}

.form-control {
    border-radius: 6px;
    border-color: hsl(15, 15%, 92%);
    transition: border-color 0.3s ease;
    background-color: hsl(20, 20%, 98%);
    font-size: .875rem;
    line-height: 1.25rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
}


.post-header {
    margin-top: 20px;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: hsl(20, 50%, 95%);
    text-align: center;
    line-height: 50px;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.tags {
    margin-top: 20px;
    color: var(--primary-color);
}

.tag {
    background-color: var(--secondary-color);
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 20px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

.author-box {
    background: linear-gradient(to bottom right, hsl(0, 0%, 100%), hsl(25, 40%, 92%));
    box-shadow: 0 2px 20px hsla(0, 45%, 25%, 0.1);
}

.author-box .btn-outline-secondary {
    color: #000000;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

.author-box .btn-outline-secondary:hover {
    background: hsl(340, 40%, 85%) !important;
    border: 1px solid hsl(340, 40%, 85%);
}

.author-avatar-info {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.comment-section {
    margin-top: 30px;
}

.shadow-box {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.comment-reply {
    margin-top: 10px;
}

.reply-btn {
    background-color: transparent;
    border: none;
    color: #6c2d3e;
    cursor: pointer;
}

.reply-btn:hover {
    text-decoration: underline;
}

.blog-details .container {
    padding: 40px;
}

.breadcrumb {
    margin-bottom: 32px;
}

.breadcrumb .breadcrumb-item a {
    color: var(--subitile-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

.breadcrumb .breadcrumb-item.active {
    color: hsl(0, 15%, 20%) !important;
}

.bg-dark {
    background-color: var(--primary-color) !important;
    border-radius: 10px;
}

.post_title {
    font-weight: 700;
    margin-bottom: 20px;
}

.fa {
    color: var(--subitile-color);
}

.icon_flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-name {
    color: var(--primary-color);
    font-weight: 500;
}

.author_bio {
    color: var(--subitile-color);
    font-size: 14px;
}

.btn-light {
    background: #ffffff !important;
}

.btn-light:hover {
    background: hsl(340, 40%, 85%) !important;
}

.info_btn {
    gap: 15px;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.post-content {
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 30px;
}

.comment-box-btn {
    background: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.comment_icon {
    color: var(--primary-color);
}

.comment-section h5 span {
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}
.comment-author{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.comment-section .author-avatar-info{
    width: 40px;
    height: 40px;
    font-weight: 600;
}
.page-link, .page-link:hover {
    color: var(--primary-color);
}
.page-item.active  .page-link{
    background: var(--primary-color);
    color: white;
}
.page-link {
    outline: 0;
}
.all_articles_icon {
    margin-left: 15px;
}
.article-card .short_description {
    height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;   /* Show "..." */
}
