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

/* ---=== Root Variables (Modern & Bold Theme 2025) ===--- */
:root {
    --primary-color: #4A47A3; /* Bold Purple */
    --primary-hover-color: #35327a;
    --bg-color: #F3F4F6; /* Light Gray */
    --surface-color: #FFFFFF;
    --text-color: #111827; /* Near Black */
    --text-muted: #4B5563;
    --border-color: #D1D5DB;
    --font-main: 'Poppins', sans-serif;
    --container-width: 1100px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-color);
    font-weight: 700;
}

h1 { font-size: 3rem; letter-spacing: -1px; }
h2 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background: var(--primary-hover-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---=== Header & Navigation ===--- */
.site-header {
    background: var(--surface-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 35px;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
    text-decoration: none;
    position: relative;
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
    text-decoration: none;
}

/* ---=== Main Content & Grid Layout ===--- */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* ---=== Hero Section ===--- */
.hero {
    text-align: center;
    padding: 4rem 2rem;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
}
.hero p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 1rem auto 0;
    font-size: 1.2rem;
}

/* ---=== Articles Grid (Homepage) ===--- */
.articles-grid h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

.articles-grid .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

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

.article-card h3 {
    padding: 25px 25px 0 25px;
}

.article-card p {
    padding: 0 25px;
    flex-grow: 1;
    margin-top: 0.5rem;
}

.article-card .btn {
    margin: 0 25px 25px 25px;
    align-self: flex-start;
}

/* ---=== Sidebar ===--- */
.sidebar-widget {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-list li {
    margin-bottom: 15px;
}
.widget-list li a {
    color: var(--text-color);
    font-weight: 600;
}
.widget-list li a:hover {
    color: var(--primary-color);
}

.promo-widget {
    text-align: center;
    background: var(--primary-color);
    color: white;
}
.promo-widget h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
.promo-widget p {
    color: rgba(255, 255, 255, 0.9);
}
.promo-widget .btn {
    background: var(--surface-color);
    color: var(--primary-color);
    width: 100%;
}
.promo-widget .btn:hover {
    background: #e9e9e9;
}


/* ---=== Full Article & Static Pages ===--- */
.full-article, .static-page {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.full-article h2 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.full-article ul, .full-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.full-article ul {
    list-style-type: disc;
}
.full-article ol {
    list-style-type: decimal;
}

.full-article li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    padding-left: 5px;
}

.cta-section {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
    border-radius: 8px;
}
.cta-section h2 {
    font-size: 1.8rem;
}

/* ---=== Contact Form (Placeholder) ===--- */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 71, 163, 0.2);
}

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

.site-footer .footer-links {
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: #a7b5c4;
    margin: 0 15px;
    font-weight: 600;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer p {
    color: #8a9aaa;
    font-size: 0.9rem;
    margin: 0;
}

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

/* For Tablets */
@media (min-width: 768px) {
    .main-content-grid {
        grid-template-columns: 2.5fr 1fr;
    }

    .articles-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 { font-size: 3.5rem; }
}

/* For Desktops */
@media (min-width: 1024px) {
    .articles-grid .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}