:root {
  --bg-color: #1a1513; /* Deep subtle brown-charcoal */
  --text-primary: #ffffff;
  --text-secondary: #d1b8b2;
  --accent-color: #a02000;
  --accent-hover: #c43209;
  --panel-bg: rgba(25, 20, 18, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: var(--bg-color);
  background-image: linear-gradient(135deg, #1a1513 0%, #2a221f 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
}

/* Panel utilities */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  box-shadow: var(--panel-shadow);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
header.about-section {
  position: relative;
  max-width: 1000px;
  padding: 3rem 2rem 2rem 2rem;
  margin: 3rem auto 2rem auto;
  text-align: left;
}

.logo {
  position: absolute;
  top: -60px;
  right: -30px;
  width: 160px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.about-text {
  max-width: calc(100% - 150px);
}

.about-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Links Section */
.quick-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.link-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border-color: rgba(255,255,255,0.15);
}

/* Sections */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--panel-border);
}

section {
  margin-bottom: 4rem;
}

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

.stream-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.stream-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stream-thumb {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 1rem;
}

.stream-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

.upcoming-badge {
  display: inline-block;
  background: #ef4444;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* News Feed */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.news-thumb {
  width: 150px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-hover);
}

.news-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item.expanded .news-desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Project Grid & Feed */
.project-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.project-item {
  display: block;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.news-source {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
}

.news-time {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.read-more-btn {
  display: none;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  width: fit-content;
}

.news-item.expanded .read-more-btn {
  display: inline-block;
}

.read-more-btn:hover {
  background: var(--accent-hover);
}

/* Inline Loaders */
.inline-loader {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--panel-bg);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.loader-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  border: 3px solid var(--accent-color);
  object-fit: cover;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  header.about-section {
    padding-top: 2rem;
    margin-top: 1rem;
    text-align: center;
  }
  .logo {
    position: relative;
    top: auto;
    right: auto;
    width: 140px;
    margin: 0 auto 1.5rem auto;
    display: block;
  }
  .about-text {
    max-width: 100%;
  }
  .quick-links {
    justify-content: center;
  }
  .news-item {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
    height: 200px;
  }
}
