/* Blog-specific styles for better content readability */

.content-detail {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    clear: both;
    position: relative;
    z-index: 1;
}

/* First heading in content should not have top margin to prevent overlap */
.content-detail > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.content-detail h1,
.content-detail h2,
.content-detail h3,
.content-detail h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    clear: both;
}

.content-detail h1 {
    font-size: 2rem;
    margin-top: 3rem;
}

.content-detail h2 {
    font-size: 1.75rem;
}

.content-detail h3 {
    font-size: 1.5rem;
}

.content-detail h4 {
    font-size: 1.25rem;
}

.content-detail p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.content-detail ul,
.content-detail ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-detail li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

.content-detail ul {
    list-style-type: disc;
}

.content-detail ol {
    list-style-type: decimal;
}

.content-detail blockquote {
    border-left: 4px solid #4F46E5;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
    background-color: #f8f9fa;
}

.content-detail code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    color: #e83e8c;
}

.content-detail pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.content-detail pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.9rem;
}

.content-detail a {
    color: #4F46E5;
    text-decoration: underline;
    transition: color 0.2s;
}

.content-detail a:hover {
    color: #3730A3;
}

.content-detail strong {
    font-weight: 700;
    color: #333;
}

.content-detail em {
    font-style: italic;
}

.content-detail hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

.content-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Table styles if needed */
.content-detail table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.content-detail th,
.content-detail td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.content-detail th {
    background-color: #f8f9fa;
    font-weight: 700;
}

/* Featured blog card */
.card-blog-featured {
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

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

.card-blog-featured .card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.card-blog-featured .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Improve blog post cards */
.card-blog-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

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

.card-blog-grid .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-blog-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-blog-grid .card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
