/* --- Feather Theme --- */

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

/* --- CSS Variables --- */
:root {
    --background-color: #FFFFFF;
    --text-color: #333333;
    --primary-accent-color: #72DDF7; /* Light Blue */
    --secondary-accent-color: #F4F7F5; /* Very light grey/green */
    --border-color: #E0E0E0;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

/* --- Global Styles & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-accent-color);
    padding-bottom: 10px;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.25em;
}

a {
    color: var(--primary-accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #1a9fcc;
    text-decoration: underline;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--background-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}
.site-title:hover {
    color: var(--primary-accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


/* --- Main Content & Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--secondary-accent-color);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.article-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    margin-top: 0;
}

.card-content a {
    text-decoration: none;
    color: inherit;
}

.read-more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-accent-color);
}

/* --- Sidebar --- */
.sidebar-widget {
    background-color: var(--secondary-accent-color);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}
.sidebar-widget ul li a:hover {
    color: var(--primary-accent-color);
}


/* --- Article Page --- */
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    margin-bottom: 0.25em;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.cta-section {
    background-color: var(--primary-accent-color);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    margin-top: 0;
    color: white;
}

.cta-section a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
    background-color: #333;
    color: #f4f4f4;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-container {
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
}
.footer-links a:hover {
    color: var(--primary-accent-color);
}

.copyright {
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    h1 {
        font-size: 2.2rem;
    }

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


@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 2.5fr 1fr;
    }

    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-layout .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
