/* 
---
Theme: Zenith
Font: Poppins
Tone: Friendly & Casual
---
*/

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background-color: #F7FFF7; /* Very light mint */
    color: #1A535C; /* Dark Teal/Blue */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Variables --- */
:root {
    --primary-color: #FF6B6B; /* Coral */
    --secondary-color: #4ECDC4; /* Teal Accent */
    --background-color: #F7FFF7;
    --surface-color: #ffffff;
    --text-color: #1A535C;
    --light-text-color: #4A7C85;
    --border-color: #e9ecef;
    --header-bg: #ffffff;
    --footer-bg: #1A535C;
    --footer-text: #f8f9fa;
    --shadow: 0 4px 12px rgba(26, 83, 92, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* --- General Typography & Links --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

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

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

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

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), #ff8a8a);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 107, 107, 0.3);
}

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: var(--text-color);
}
.site-title a:hover {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 600;
    color: var(--light-text-color);
    padding: 0.5rem 0;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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


/* --- Main Content & Layout --- */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

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

main {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

aside {
    padding: 1.5rem;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* --- Blog Articles Section --- */
.articles-section {
    padding: 2rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(26, 83, 92, 0.12);
}

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

.article-card h2 {
    font-size: 1.3rem;
    margin-top: 0;
}

.article-card p {
    color: var(--light-text-color);
    flex-grow: 1;
}

.article-card .btn {
    align-self: flex-start;
    margin-top: 1rem;
}


/* --- Sidebar --- */
.sidebar-widget {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

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

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

.sidebar-widget li {
    margin-bottom: 0.75rem;
}

.sidebar-widget a {
    color: var(--text-color);
    font-weight: 600;
}

.sidebar-widget a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

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

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--light-text-color);
    font-weight: 600;
}

.article-content {
    font-size: 1.1rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    color: var(--secondary-color);
}

.article-content h3 {
    margin-top: 2rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--light-text-color);
    background: var(--background-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.cta-section {
    background: linear-gradient(45deg, #4ECDC4, #55e0d5);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem 0;
    color: #fff;
}
.cta-section h2 {
    color: #fff;
}
.cta-section a.btn {
    background: #fff;
    color: var(--primary-color);
    box-shadow: none;
}
.cta-section a.btn:hover {
    background: var(--background-color);
}

/* --- Contact Page Specifics --- */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- Responsive Media Queries --- */
@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 2fr 1fr;
    }

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

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