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

/* --- CSS Variables (Bold & Colorful) --- */
:root {
    --bg-color: #F5F7FA;
    --surface-color: #ffffff;
    --primary-color: #FF4081; /* Hot Pink */
    --secondary-color: #448AFF; /* Bright Blue */
    --accent-color: #FFC107; /* Amber Yellow */
    --text-color: #424242;
    --text-muted-color: #757575;
    --heading-color: #212121;
    --border-color: #e0e0e0;
    --font-family-heading: 'Lobster', cursive;
    --font-family-body: 'Poppins', sans-serif;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: normal;
}

h1 { font-size: 3.5rem; letter-spacing: 1px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--heading-color);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

p { margin-bottom: 1.25rem; }

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li { margin-bottom: 0.5rem; }

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--surface-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

.site-title {
    font-family: var(--font-family-heading);
    font-size: 2rem;
}

.site-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-title a:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style-type: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    padding-bottom: 5px;
    position: relative;
    text-decoration: none;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    color: white;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

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

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.article-card-content p {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    color: var(--text-muted-color);
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: scale(1.05);
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 8rem;
}
.widget { 
    margin-bottom: 2.5rem; 
    padding: 1.5rem;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.widget ul { list-style: none; padding: 0; }
.widget ul li { 
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.widget ul li a { color: var(--text-color); }
.widget ul li a:hover { color: var(--primary-color); }

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 3.2rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-top: 1rem;
    font-family: var(--font-family-body);
    font-weight: 700;
}
.article-meta a { font-weight: 700; }

.article-content h2 { margin-top: 2.5rem; font-size: 2.2rem; color: var(--secondary-color);}
.article-content h3 { margin-top: 2rem; font-size: 1.7rem; color: var(--primary-color); }

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.1rem;
    font-style: italic;
    background-color: #fff;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
}

.cta-section {
    background: linear-gradient(135deg, var(--accent-color), #f7b733);
    color: var(--heading-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 { color: var(--heading-color); margin-top: 0; font-size: 2.2rem; }
.cta-section p { color: var(--heading-color); opacity: 0.9; }

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cta-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    color: #fff;
}

/* --- Static Pages --- */
.page-header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}
.page-header h1 { font-size: 3.5rem; }
.page-header p { font-size: 1.2rem; color: var(--text-muted-color); max-width: 650px; margin: 0 auto; }

.page-content p strong { color: var(--primary-color); font-weight: 700; }

/* --- Footer --- */
.site-footer {
    background-color: var(--heading-color);
    color: #bdbdbd;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links { margin-top: 1rem; }
.footer-links a {
    color: #fff;
    margin: 0 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
    font-weight: 700;
}
.footer-links a:hover { color: var(--primary-color); }
