:root {
    --primary-color: #12163c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    --border-radius: 0.75rem;
    --transition: all 0.3s ease;
}

body {
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    background-color: var(--light-bg);
}

/* Hero Section Styles */
.hero-section {
    padding: 60px 0;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

.hero-description {
    max-width: 800px;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.page-title {
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-size: 1.75rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #fff;
    box-shadow: var(--card-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 160px;
    overflow: hidden;
}

.card-img {
    transition: var(--transition);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.read-more-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none !important;
}

.read-more-btn:hover {
    background-color: #12163c !important;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 1.1rem;
    line-height: 1.3;
}

.summary-text {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-blog {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.featured-img {
    height: 300px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-blog:hover .featured-img img {
    transform: scale(1.03);
}

.featured-content {
    padding: 1.5rem;
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.featured-summary {
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .featured-img {
        height: 200px;
    }
}

@media (max-width: 426px) {
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Blog Detail Page Styles */
.blog-detail {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 3rem;
}

.blog-header {
    margin-bottom: 1.5rem;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: #777;
    font-size: 0.9rem;
}

.blog-featured-image {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.blog-content p {
    margin-bottom: 1.2rem;
}

.blog-navigation {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.back-to-blogs {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.back-to-blogs:hover {
    color: #3a5cda;
}

@media (max-width: 767px) {
    .blog-title {
        font-size: 1.5rem;
    }

    .blog-detail {
        padding: 1.5rem;
    }
}
