
/* ---
Theme: DailyGrid
Font: Inter (Sans-Serif)
Tone: Informative & Straightforward
Language: English (North America)
--- */

/* --- Root Variables and Resets --- */
:root {
    --primary-color: #0a4d68;
    --secondary-color: #088395;
    --accent-color: #05bfdb;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --light-gray: #e9ecef;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.25rem; }

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

a:hover, a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* --- Main Layout & Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--white-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-color);
}

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

.site-header h1 {
    font-size: 2rem;
    margin: 0;
}

.site-header h1 a {
    text-decoration: none;
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

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

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

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


/* --- Main Content & Intro Section --- */
main {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.intro-section {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 2rem;
}

.intro-section h2 {
    color: var(--secondary-color);
}

/* --- Articles Section & Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-left: 5px solid var(--light-gray);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-color);
}

.article-card-content {
    padding: 1.5rem;
}

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

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

.read-more-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color var(--transition-speed);
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

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

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

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

.cta-section {
    background-color: var(--light-gray);
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

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

aside .widget h3 {
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 1rem;
}

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

aside .widget ul li {
    margin-bottom: 0.5rem;
}

aside .widget ul li a::before {
    content: '»';
    margin-right: 8px;
    color: var(--accent-color);
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.contact-form button {
    display: inline-block;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color var(--transition-speed);
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

.site-footer .container {
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

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

/* --- Media Queries (Desktop View) --- */
@media (min-width: 768px) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .main-nav ul {
        margin-top: 0;
    }
    
    .main-layout {
        grid-template-columns: 2fr 1fr;
    }

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

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

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