/* --- DailyGrid Theme --- */
/* --- Font: Inter --- */
/* --- Tone: Informative & Straightforward --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --background-color: #f4f6f9;
  --surface-color: #ffffff;
  --text-color: #34495e;
  --light-text-color: #7f8c8d;
  --border-color: #ecf0f1;
  --font-family: 'Inter', sans-serif;
  --container-width: 1100px;
  --border-radius: 8px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

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

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

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

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

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

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

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

p {
  margin-bottom: 1.25rem;
}

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

li {
    margin-bottom: 0.5rem;
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--surface-color);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  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;
  color: var(--primary-color);
}

.site-title a {
  color: inherit;
  text-decoration: none;
}
.site-title a:hover {
    text-decoration: none;
}

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

.main-nav a {
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
}

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

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

/* --- Main Content Layout --- */
.page-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

/* --- Hero Section --- */
.hero {
  background-color: var(--surface-color);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

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

/* --- Article Grid --- */
.articles-section {
    padding: 2rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

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

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

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-content h3 a:hover {
    text-decoration: none;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--light-text-color);
}

.read-more-btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.read-more-btn:hover {
  background-color: #2980b9;
  color: #fff;
  text-decoration: none;
}

/* --- Article Page --- */
.article-full {
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

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

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

.article-meta {
  display: flex;
  gap: 1rem;
  color: var(--light-text-color);
  font-size: 0.9rem;
}

.article-content {
    max-width: 100%;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

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

.cta-section {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
}
.cta-section h3 {
    margin-bottom: 1rem;
}

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

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

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

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

.widget ul li a {
  text-decoration: none;
  font-weight: 600;
}

.promo-widget p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  color: #fff;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* --- Contact Page --- */
.contact-details {
    margin-top: 2rem;
}
.contact-details p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.contact-details strong {
    color: var(--primary-color);
}
.contact-note {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  h1 { font-size: 2rem; }
  .article-header h1 { font-size: 2.2rem; }
}

@media (min-width: 992px) {
  .page-wrapper {
    grid-template-columns: 2fr 1fr;
  }
  .article-full-layout {
      grid-template-columns: 3fr 1fr;
  }
}
