
/* --- Basic Setup & Variables --- */
:root {
  --primary-color: #ffffff;
  --text-color: #e0e0e0;
  --accent-color: #4ade80; /* A bright green for contrast */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font-family: 'Poppins', sans-serif;
  --container-width: 1200px;
}

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

/* --- Base & Typography --- */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: #111827 url('https://picsum.photos/seed/bg/1920/1080') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 500; }
p { margin-bottom: 1rem; }

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

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

/* --- Glassmorphism Effect --- */
.glass-effect {
  background: var(--glass-bg);
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Layout --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 0;
}

.site-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.site-nav a:hover {
  background-color: var(--glass-bg);
  text-decoration: none;
}

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

.main-content, .sidebar {
  padding: 2rem;
}

.site-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* --- Components --- */
.hero {
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}
.hero h1 {
    color: var(--primary-color);
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.article-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.article-card h3 {
    margin-top: 0;
}
.article-card a.read-more {
  margin-top: auto;
  align-self: flex-start;
  font-weight: bold;
}

.widget {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget-title {
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.widget ul {
  list-style: none;
}

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

.article-header {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}
.article-meta {
    font-size: 0.9rem;
    color: #a5b4fc;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
}
.cta-section h3 {
    color: var(--primary-color);
}

/* --- Forms (for contact page) --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    border-radius: 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: transparent;
}

.submit-btn {
    padding: 1rem;
    background-color: var(--accent-color);
    color: #111827;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #a7f3d0;
}


/* --- Responsive Design --- */
@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  
  .main-layout {
    grid-template-columns: 3fr 1fr;
  }

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