/* style.css - Styling for the Canticle India Blog - Red Theme */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg-white: #FFFFFF;
    --bg-light-gray: #F9FAFB;
    --text-dark: #212529;
    --accent-red: #DC2626; /* A vibrant red */
    --border-gray: #E5E7EB;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light-gray);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* New Header */
.main-header {
    background-color: var(--accent-red);
    color: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-title a {
    color: inherit;
    text-decoration: none;
    display: flex; /* ADDED: To align logo and text */
    align-items: center; /* ADDED: To vertically center logo and text */
}

/* --- NEW: Logo Styling --- */
.header-logo {
    height: 35px; /* You can adjust this value to make your logo bigger or smaller */
    width: auto;
    margin-right: 12px; /* Space between logo and text */
}

.header-nav a {
    color: var(--bg-white);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.8;
}

/* Main Content Container */
.blog-container {
    max-width: 1100px; 
    margin: 40px auto;
    padding: 20px;
}

/* Hero Welcome Box */
.hero-welcome {
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(254, 226, 226, 0.5));
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-welcome .icon {
    font-size: 2.5rem;
    color: var(--accent-red);
}

.hero-welcome h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0;
}

.hero-welcome p {
    font-size: 1rem;
    color: #4B5563;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout for Blog Posts (Homepage Only) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; 
}

/* Post Preview Styling */
.post-preview {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; 
    transition: transform 0.2s ease-in-out;
    display: flex; 
    flex-direction: column;
}

.post-preview:hover {
    transform: translateY(-5px);
}

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

.post-content-preview {
    padding: 25px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.post-title a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.5rem; 
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.post-title a:hover {
    color: var(--accent-red);
}

.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.post-excerpt {
    margin-top: 15px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--accent-red);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    align-self: flex-start; 
}

.read-more-btn:hover {
    background-color: #B91C1C; 
}

/* Single Post Styling */
.single-post-container {
    max-width: 800px; 
    margin: 0 auto; 
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.single-post-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}
.single-post-featured-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}
.single-post-content {
    margin-top: 30px;
    font-size: 1.1rem;
}

.back-to-blog {
    display: block; 
    text-align: center;
    margin-top: 40px;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
}