* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #5D00FF; 
    --primary-hover: #4A00CC; 
    --accent-dark: #343a40; 
    --accent-light: #F3E5F5;
    --text-dark: #212529; 
    --text-medium: #495057; 
    --text-light: #6c757d; 
    --text-subtle: #adb5bd; 
    --bg-light: #f8f9fa; 
    --bg-white: #ffffff;
    --border-grey: #e9ecef;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --shadow-lighter: rgba(0, 0, 0, 0.04);
    --hero-bg-color: var(--bg-white);
    --hero-border-color: var(--border-grey); 
    --hero-heading-color: var(--text-dark); 
    --hero-paragraph-color: var(--text-medium);
}

body {
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}



/* Hero Section Styles - */
.hero-section {
    background-color: var(--hero-bg-color); 
    text-align: center;
    padding: 80px 20px; 
    margin-bottom: 40px;
    box-shadow: 0 6px 16px var(--shadow-lighter); 
    border-radius: 12px; 
    border: 1px solid var(--hero-border-color);
    transition: all 0.3s ease;
}

.hero-section h1 {
    font-size: 3.5em; 
    margin-bottom: 18px; 
    color: var(--hero-heading-color); 
    font-weight: 700; 
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3em; 
    max-width: 800px; 
    margin: 0 auto; 
    color: var(--hero-paragraph-color); 
    font-weight: 400;
    line-height: 1.6;
}

/* Featured Post Section Styles */
.featured-post {
    display: flex; 
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-soft); 
    margin-bottom: 60px;
    overflow: hidden; 
}

.featured-img {
    flex: 2; 
    min-width: 40%; 
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 12px 0 0 12px; 
}

.featured-content {
    flex: 3; 
    padding: 30px;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
}

.featured-content .tag {
    background-color: var(--accent-dark); 
    color: var(--bg-white); 
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block; 
    margin-right: 8px; 
}

.featured-content h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

.featured-content .excerpt {
    font-size: 1.1em;
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-content .post-meta {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Blog Grid Section Styles */
.blog-grid-section h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-bottom: 60px;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

.post-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 18px var(--shadow-soft); 
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

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

.post-card .tag {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--primary-color); 
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
    margin-right: 6px;
}

.post-card h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card h3 a {
    text-decoration: none;
    color: var(--text-dark);
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-card .excerpt {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card .post-meta {
    font-size: 0.85em;
    color: var(--text-subtle);
    margin-top: auto; 
    margin-bottom: 15px;
}

/* Button styling for all "Read More" */
.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color); 
    color: var(--bg-white);
    padding: 12px 25px;
    border-radius: 8px; 
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start; 
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; 
    box-shadow: 0 4px 10px rgba(93, 0, 255, 0.2); 
}

.read-more-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    text-decoration: none; 
    box-shadow: 0 6px 15px rgba(93, 0, 255, 0.3);
}


/* --- Responsive Design (Media Queries) --- */

/* Tablets and smaller desktops (max-width: 992px) */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 20px 70px;
    }
    .hero-section h1 {
        font-size: 2.8em;
    }
    .hero-section p {
        font-size: 1.2em;
    }

    .featured-post {
        flex-direction: column;
    }

    .featured-img {
        min-width: 100%;
        height: 300px;
        border-radius: 12px 12px 0 0; 
    }

    .featured-content {
        padding: 25px;
    }

    .featured-content h2 {
        font-size: 1.8em;
    }

    .featured-content .excerpt {
        font-size: 1em;
    }

    .post-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .post-card img {
        height: 180px;
    }

    .post-card .card-content {
        padding: 15px;
    }

    .post-card h3 {
        font-size: 1.2em;
    }
}

/* Mobile phones (max-width: 768px) */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-header .logo {
        margin-bottom: 15px;
    }

    .site-header .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header .main-nav li {
        margin: 0 15px 10px;
    }

    .hero-section {
        padding: 40px 15px 50px;
        margin-bottom: 30px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .featured-post {
        margin-bottom: 40px;
        border-radius: 8px;
    }

    .featured-img {
        height: 250px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-content .tag {
        font-size: 0.8em;
        padding: 5px 10px;
        margin-bottom: 10px;
    }

    .featured-content h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .featured-content .excerpt {
        font-size: 0.9em;
        margin-bottom: 15px;
        -webkit-line-clamp: 5;
    }

    .featured-content .post-meta {
        font-size: 0.8em;
        margin-bottom: 20px;
    }

    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .post-card {
        border-radius: 8px;
    }

    .post-card img {
        height: 160px;
    }

    .post-card .card-content {
        padding: 15px;
    }

    .post-card h3 {
        font-size: 1.1em;
    }

    .post-card .excerpt {
        font-size: 0.85em;
        -webkit-line-clamp: 4;
    }

    .post-card .post-meta {
        font-size: 0.75em;
    }
}