
/* --- Global Styles & Variables --- */
:root {
  --primary-color: #0077b6;
  --secondary-color: #00b4d8;
  --text-color: #e0e0e0;
  --bg-color: #03045e;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font-family: 'Poppins', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  background-image: linear-gradient(to bottom right, #023e8a, #03045e);
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

a:hover {
  color: #90e0ef;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

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

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Glassmorphism Effect --- */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

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

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

.site-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

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

.main-nav a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  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 {
  width: 100%;
}

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

.main-content {
  grid-column: 1 / -1;
}

/* --- Homepage Specific --- */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero-section h1 {
  margin-bottom: 1.5rem;
}

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

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

.article-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.article-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.article-card p {
  flex-grow: 1;
  color: #ccc;
}

.read-more-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background: var(--secondary-color);
  color: #fff;
}

/* --- Sidebar --- */
.sidebar-widget {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

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

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

.sidebar-widget ul a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget ul a::before {
  content: '▶';
  font-size: 0.8em;
  color: var(--primary-color);
}

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

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

.article-meta {
  font-size: 0.9rem;
  color: #ccc;
}

.article-content {
  padding: 2rem;
}

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

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

.article-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.cta-section {
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}


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

/* --- Responsive Design --- */
@media (min-width: 768px) {
  .main-layout {
    grid-template-columns: 3fr 1fr;
  }
  
  .main-content {
    grid-column: 1 / 2;
  }

  .sidebar {
    grid-column: 2 / 3;
  }
}

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

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