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

:root {
  --font-family: 'Montserrat', sans-serif;
  --primary-text-color: #ffffff;
  --secondary-text-color: #e0e0e0;
  --accent-color: #8A2BE2; /* BlueViolet */
  --accent-hover-color: #9370DB; /* MediumPurple */
  --glass-bg: rgba(0, 0, 0, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

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

body {
  font-family: var(--font-family);
  color: var(--primary-text-color);
  line-height: 1.7;
  font-size: 16px;
  background: linear-gradient(135deg, #1d2b64, #f8cdda);
  background-attachment: fixed;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Glassmorphism Effect --- */
.glass-panel {
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: var(--glass-border);
}

/* --- Header & Navigation --- */
.site-header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: var(--glass-border);
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

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

.main-nav a {
  color: var(--primary-text-color);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-bottom-color: var(--accent-color);
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; color: var(--accent-hover-color); }

p {
  margin-bottom: 1rem;
  color: var(--secondary-text-color);
}

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

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

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* --- Homepage Specifics --- */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

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

.article-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
}

.article-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.article-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --- Page Layout with Sidebar --- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.sidebar {
  padding: 1.5rem;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

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

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

.sidebar-widget ul li a::before {
  content: '✨ ';
}

/* --- Article Page --- */
.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1rem;
}

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

.article-meta span {
  margin-right: 1rem;
}

.article-content {
    padding: 2rem;
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-text-color);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--primary-text-color);
    font-family: var(--font-family);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.7);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--secondary-text-color);
  font-size: 0.9rem;
  background: rgba(0,0,0,0.2);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .header-content {
    flex-wrap: wrap;
  }
  
  .main-nav {
    display: none; /* JS would be needed to toggle this */
    width: 100%;
    margin-top: 1rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}
