/* TVLBAI Website Styles - Simple, functional, academic */

:root {
  --color-primary: #1a365d;
  --color-secondary: #2c5282;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-border: #e2e8f0;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 900px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Layout */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

p {
  margin: 0 0 1em 0;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--color-primary);
  padding: 15px 0;
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.site-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.site-footer p {
  margin: 5px 0;
}

/* Page */
.page h1:first-child {
  margin-top: 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--color-border);
}

/* Post */
.post-header {
  margin-bottom: 2em;
}

.post-header h1 {
  margin-top: 0;
  margin-bottom: 0.25em;
}

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

/* Lists */
ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--color-border);
}

th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Home page intro */
.intro {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 2em;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.center-image {
  display: block;
  margin: 2em auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Post list (blog) */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .post-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.post-list .post-date {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* News section */
.news-section {
  margin: 2em 0;
}

.news-item {
  padding: 1.25em 0;
  border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5em;
}

.news-title {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5em 0;
}

.news-content {
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

.news-content a {
  color: var(--color-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.news-content a:hover {
  text-decoration: underline;
}

/* News with images */
.news-item-with-image {
  padding: 1.5em 0;
}

.news-content-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5em;
  align-items: start;
}

.news-image {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.news-image img:hover {
  transform: scale(1.05);
}

.news-text {
  flex: 1;
}


/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  
  .site-header .wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .site-nav {
    justify-content: center;
  }
  
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  
  .news-content-wrapper {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  
  .news-image {
    max-width: 100%;
  }
}
